/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #ifndef SWIGRUBY #define SWIGRUBY #endif #define SWIG_DIRECTORS #ifdef __cplusplus /* SwigValueWrapper is described in swig.swg */ template class SwigValueWrapper { struct SwigMovePointer { T *ptr; SwigMovePointer(T *p) : ptr(p) { } ~SwigMovePointer() { delete ptr; } SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } } pointer; SwigValueWrapper& operator=(const SwigValueWrapper& rhs); SwigValueWrapper(const SwigValueWrapper& rhs); public: SwigValueWrapper() : pointer(0) { } SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } operator T&() const { return *pointer.ptr; } T *operator&() { return pointer.ptr; } }; template T SwigValueInit() { return T(); } #endif /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if defined(__GNUC__) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 #endif /* Intel's compiler complains if a variable which was never initialised is * cast to void, which is a common idiom which we use to indicate that we * are aware a variable isn't used. So we just silence that warning. * See: https://github.com/swig/swig/issues/192 for more discussion. */ #ifdef __INTEL_COMPILER # pragma warning disable 592 #endif /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if defined(__GNUC__) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 #endif /* Intel's compiler complains if a variable which was never initialised is * cast to void, which is a common idiom which we use to indicate that we * are aware a variable isn't used. So we just silence that warning. * See: https://github.com/swig/swig/issues/192 for more discussion. */ #ifdef __INTEL_COMPILER # pragma warning disable 592 #endif /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb) { int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { size_t l = 0; size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; const unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 #include /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which * breaks using rb_intern as an lvalue, as SWIG does. We work around this * issue for now by disabling this. * https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645 */ #ifdef rb_intern # undef rb_intern #endif /* Remove global macros defined in Ruby's win32.h */ #ifdef write # undef write #endif #ifdef read # undef read #endif #ifdef bind # undef bind #endif #ifdef close # undef close #endif #ifdef connect # undef connect #endif /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */ #ifndef NUM2LL #define NUM2LL(x) NUM2LONG((x)) #endif #ifndef LL2NUM #define LL2NUM(x) INT2NUM((long) (x)) #endif #ifndef ULL2NUM #define ULL2NUM(x) UINT2NUM((unsigned long) (x)) #endif /* Ruby 1.7 doesn't (yet) define NUM2ULL() */ #ifndef NUM2ULL #ifdef HAVE_LONG_LONG #define NUM2ULL(x) rb_num2ull((x)) #else #define NUM2ULL(x) NUM2ULONG(x) #endif #endif /* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */ /* Define these for older versions so we can just write code the new way */ #ifndef RSTRING_LEN # define RSTRING_LEN(x) RSTRING(x)->len #endif #ifndef RSTRING_PTR # define RSTRING_PTR(x) RSTRING(x)->ptr #endif #ifndef RSTRING_END # define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x)) #endif #ifndef RARRAY_LEN # define RARRAY_LEN(x) RARRAY(x)->len #endif #ifndef RARRAY_PTR # define RARRAY_PTR(x) RARRAY(x)->ptr #endif #ifndef RFLOAT_VALUE # define RFLOAT_VALUE(x) RFLOAT(x)->value #endif #ifndef DOUBLE2NUM # define DOUBLE2NUM(x) rb_float_new(x) #endif #ifndef RHASH_TBL # define RHASH_TBL(x) (RHASH(x)->tbl) #endif #ifndef RHASH_ITER_LEV # define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev) #endif #ifndef RHASH_IFNONE # define RHASH_IFNONE(x) (RHASH(x)->ifnone) #endif #ifndef RHASH_SIZE # define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries) #endif #ifndef RHASH_EMPTY_P # define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0) #endif #ifndef RSTRUCT_LEN # define RSTRUCT_LEN(x) RSTRUCT(x)->len #endif #ifndef RSTRUCT_PTR # define RSTRUCT_PTR(x) RSTRUCT(x)->ptr #endif /* * Need to be very careful about how these macros are defined, especially * when compiling C++ code or C code with an ANSI C compiler. * * VALUEFUNC(f) is a macro used to typecast a C function that implements * a Ruby method so that it can be passed as an argument to API functions * like rb_define_method() and rb_define_singleton_method(). * * VOIDFUNC(f) is a macro used to typecast a C function that implements * either the "mark" or "free" stuff for a Ruby Data object, so that it * can be passed as an argument to API functions like Data_Wrap_Struct() * and Data_Make_Struct(). */ #ifdef __cplusplus # ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */ # define PROTECTFUNC(f) ((VALUE (*)()) f) # define VALUEFUNC(f) ((VALUE (*)()) f) # define VOIDFUNC(f) ((void (*)()) f) # else # ifndef ANYARGS /* These definitions should work for Ruby 1.6 */ # define PROTECTFUNC(f) ((VALUE (*)()) f) # define VALUEFUNC(f) ((VALUE (*)()) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # else /* These definitions should work for Ruby 1.7+ */ # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f) # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # endif # endif #else # define VALUEFUNC(f) (f) # define VOIDFUNC(f) (f) #endif /* Don't use for expressions have side effect */ #ifndef RB_STRING_VALUE #define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s))) #endif #ifndef StringValue #define StringValue(s) RB_STRING_VALUE(s) #endif #ifndef StringValuePtr #define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s)) #endif #ifndef StringValueLen #define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s)) #endif #ifndef SafeStringValue #define SafeStringValue(v) do {\ StringValue(v);\ rb_check_safe_str(v);\ } while (0) #endif #ifndef HAVE_RB_DEFINE_ALLOC_FUNC #define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1) #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new") #endif static VALUE _mSWIG = Qnil; /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ /* Define some additional error types */ #define SWIG_ObjectPreviouslyDeletedError -100 /* Define custom exceptions for errors that do not map to existing Ruby exceptions. Note this only works for C++ since a global cannot be initialized by a function in C. For C, fallback to rb_eRuntimeError.*/ SWIGINTERN VALUE getNullReferenceError(void) { static int init = 0; static VALUE rb_eNullReferenceError ; if (!init) { init = 1; rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError); } return rb_eNullReferenceError; } SWIGINTERN VALUE getObjectPreviouslyDeletedError(void) { static int init = 0; static VALUE rb_eObjectPreviouslyDeleted ; if (!init) { init = 1; rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError); } return rb_eObjectPreviouslyDeleted; } SWIGINTERN VALUE SWIG_Ruby_ErrorType(int SWIG_code) { VALUE type; switch (SWIG_code) { case SWIG_MemoryError: type = rb_eNoMemError; break; case SWIG_IOError: type = rb_eIOError; break; case SWIG_RuntimeError: type = rb_eRuntimeError; break; case SWIG_IndexError: type = rb_eIndexError; break; case SWIG_TypeError: type = rb_eTypeError; break; case SWIG_DivisionByZero: type = rb_eZeroDivError; break; case SWIG_OverflowError: type = rb_eRangeError; break; case SWIG_SyntaxError: type = rb_eSyntaxError; break; case SWIG_ValueError: type = rb_eArgError; break; case SWIG_SystemError: type = rb_eFatal; break; case SWIG_AttributeError: type = rb_eRuntimeError; break; case SWIG_NullReferenceError: type = getNullReferenceError(); break; case SWIG_ObjectPreviouslyDeletedError: type = getObjectPreviouslyDeletedError(); break; case SWIG_UnknownError: type = rb_eRuntimeError; break; default: type = rb_eRuntimeError; } return type; } /* This function is called when a user inputs a wrong argument to a method. */ SWIGINTERN const char* Ruby_Format_TypeError( const char* msg, const char* type, const char* name, const int argn, VALUE input ) { char buf[128]; VALUE str; VALUE asStr; if ( msg && *msg ) { str = rb_str_new2(msg); } else { str = rb_str_new(NULL, 0); } str = rb_str_cat2( str, "Expected argument " ); sprintf( buf, "%d of type ", argn-1 ); str = rb_str_cat2( str, buf ); str = rb_str_cat2( str, type ); str = rb_str_cat2( str, ", but got " ); str = rb_str_cat2( str, rb_obj_classname(input) ); str = rb_str_cat2( str, " " ); asStr = rb_inspect(input); if ( RSTRING_LEN(asStr) > 30 ) { str = rb_str_cat( str, StringValuePtr(asStr), 30 ); str = rb_str_cat2( str, "..." ); } else { str = rb_str_append( str, asStr ); } if ( name ) { str = rb_str_cat2( str, "\n\tin SWIG method '" ); str = rb_str_cat2( str, name ); str = rb_str_cat2( str, "'" ); } return StringValuePtr( str ); } /* This function is called when an overloaded method fails */ SWIGINTERN void Ruby_Format_OverloadedError( const int argc, const int maxargs, const char* method, const char* prototypes ) { const char* msg = "Wrong # of arguments"; if ( argc <= maxargs ) msg = "Wrong arguments"; rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n" "Possible C/C++ prototypes are:\n%s", msg, method, prototypes); } /* ----------------------------------------------------------------------------- * rubytracking.swg * * This file contains support for tracking mappings from * Ruby objects to C++ objects. This functionality is needed * to implement mark functions for Ruby's mark and sweep * garbage collector. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif #if !defined(ST_DATA_T_DEFINED) /* Needs to be explicitly included for Ruby 1.8 and earlier */ #include #endif /* Ruby 1.8 actually assumes the first case. */ #if SIZEOF_VOIDP == SIZEOF_LONG # define SWIG2NUM(v) LONG2NUM((unsigned long)v) # define NUM2SWIG(x) (unsigned long)NUM2LONG(x) #elif SIZEOF_VOIDP == SIZEOF_LONG_LONG # define SWIG2NUM(v) LL2NUM((unsigned long long)v) # define NUM2SWIG(x) (unsigned long long)NUM2LL(x) #else # error sizeof(void*) is not the same as long or long long #endif /* Global hash table to store Trackings from C/C++ structs to Ruby Objects. */ static st_table* swig_ruby_trackings = NULL; static VALUE swig_ruby_trackings_count(ANYARGS) { return SWIG2NUM(swig_ruby_trackings->num_entries); } /* Setup a hash table to store Trackings */ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) { /* Create a hash table to store Trackings from C++ objects to Ruby objects. */ /* Try to see if some other .so has already created a tracking hash table, which we keep hidden in an instance var in the SWIG module. This is done to allow multiple DSOs to share the same tracking table. */ VALUE trackings_value = Qnil; /* change the variable name so that we can mix modules compiled with older SWIG's - this used to be called "@__trackings__" */ ID trackings_id = rb_intern( "@__safetrackings__" ); VALUE verbose = rb_gv_get("VERBOSE"); rb_gv_set("VERBOSE", Qfalse); trackings_value = rb_ivar_get( _mSWIG, trackings_id ); rb_gv_set("VERBOSE", verbose); /* The trick here is that we have to store the hash table pointer in a Ruby variable. We do not want Ruby's GC to treat this pointer as a Ruby object, so we convert it to a Ruby numeric value. */ if (trackings_value == Qnil) { /* No, it hasn't. Create one ourselves */ swig_ruby_trackings = st_init_numtable(); rb_ivar_set( _mSWIG, trackings_id, SWIG2NUM(swig_ruby_trackings) ); } else { swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value); } rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", swig_ruby_trackings_count, NULL); } /* Add a Tracking from a C/C++ struct to a Ruby object */ SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) { /* Store the mapping to the global hash table. */ st_insert(swig_ruby_trackings, (st_data_t)ptr, object); } /* Get the Ruby object that owns the specified C/C++ struct */ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) { /* Now lookup the value stored in the global hash table */ VALUE value; if (st_lookup(swig_ruby_trackings, (st_data_t)ptr, &value)) { return value; } else { return Qnil; } } /* Remove a Tracking from a C/C++ struct to a Ruby object. It is very important to remove objects once they are destroyed since the same memory address may be reused later to create a new object. */ SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) { /* Delete the object from the hash table */ st_delete(swig_ruby_trackings, (st_data_t *)&ptr, NULL); } /* This is a helper method that unlinks a Ruby object from its underlying C++ object. This is needed if the lifetime of the Ruby object is longer than the C++ object */ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) { VALUE object = SWIG_RubyInstanceFor(ptr); if (object != Qnil) { if (TYPE(object) != T_DATA) abort(); DATA_PTR(object) = 0; } } /* This is a helper method that iterates over all the trackings passing the C++ object pointer and its related Ruby object to the passed callback function. */ /* Proxy method to abstract the internal trackings datatype */ static int swig_ruby_internal_iterate_callback(void* ptr, VALUE obj, void(*meth)(void* ptr, VALUE obj)) { (*meth)(ptr, obj); return ST_CONTINUE; } SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) { st_foreach(swig_ruby_trackings, (int (*)(ANYARGS))&swig_ruby_internal_iterate_callback, (st_data_t)meth); } #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * Ruby API portion that goes into the runtime * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif SWIGINTERN VALUE SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { if (NIL_P(target)) { target = o; } else { if (TYPE(target) != T_ARRAY) { VALUE o2 = target; target = rb_ary_new(); rb_ary_push(target, o2); } rb_ary_push(target, o); } return target; } /* For ruby1.8.4 and earlier. */ #ifndef RUBY_INIT_STACK RUBY_EXTERN void Init_stack(VALUE* addr); # define RUBY_INIT_STACK \ VALUE variable_in_this_stack_frame; \ Init_stack(&variable_in_this_stack_frame); #endif #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * rubyrun.swg * * This file contains the runtime support for Ruby modules * and includes code for managing global variables and pointer * type checking. * ----------------------------------------------------------------------------- */ /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 /* for raw pointers */ #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0) #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own) #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags) #define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own) #define swig_owntype swig_ruby_owntype /* for raw packed data */ #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags) #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer) /* Error manipulation */ #define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code) #define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg) #define SWIG_fail goto fail /* Ruby-specific SWIG API */ #define SWIG_InitRuntime() SWIG_Ruby_InitRuntime() #define SWIG_define_class(ty) SWIG_Ruby_define_class(ty) #define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty) #define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value) #define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty) #include "assert.h" /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif typedef struct { VALUE klass; VALUE mImpl; void (*mark)(void *); void (*destroy)(void *); int trackObjects; } swig_class; /* Global pointer used to keep some internal SWIG stuff */ static VALUE _cSWIG_Pointer = Qnil; static VALUE swig_runtime_data_type_pointer = Qnil; /* Global IDs used to keep some internal SWIG stuff */ static ID swig_arity_id = 0; static ID swig_call_id = 0; /* If your swig extension is to be run within an embedded ruby and has director callbacks, you should set -DRUBY_EMBEDDED during compilation. This will reset ruby's stack frame on each entry point from the main program the first time a virtual director function is invoked (in a non-recursive way). If this is not done, you run the risk of Ruby trashing the stack. */ #ifdef RUBY_EMBEDDED # define SWIG_INIT_STACK \ if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \ ++swig_virtual_calls; # define SWIG_RELEASE_STACK --swig_virtual_calls; # define Ruby_DirectorTypeMismatchException(x) \ rb_raise( rb_eTypeError, "%s", x ); return c_result; static unsigned int swig_virtual_calls = 0; #else /* normal non-embedded extension */ # define SWIG_INIT_STACK # define SWIG_RELEASE_STACK # define Ruby_DirectorTypeMismatchException(x) \ throw Swig::DirectorTypeMismatchException( x ); #endif /* RUBY_EMBEDDED */ SWIGRUNTIME VALUE getExceptionClass(void) { static int init = 0; static VALUE rubyExceptionClass ; if (!init) { init = 1; rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception")); } return rubyExceptionClass; } /* This code checks to see if the Ruby object being raised as part of an exception inherits from the Ruby class Exception. If so, the object is simply returned. If not, then a new Ruby exception object is created and that will be returned to Ruby.*/ SWIGRUNTIME VALUE SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) { VALUE exceptionClass = getExceptionClass(); if (rb_obj_is_kind_of(obj, exceptionClass)) { return obj; } else { return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj)); } } /* Initialize Ruby runtime support */ SWIGRUNTIME void SWIG_Ruby_InitRuntime(void) { if (_mSWIG == Qnil) { _mSWIG = rb_define_module("SWIG"); swig_call_id = rb_intern("call"); swig_arity_id = rb_intern("arity"); } } /* Define Ruby class for C type */ SWIGRUNTIME void SWIG_Ruby_define_class(swig_type_info *type) { char *klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); if (NIL_P(_cSWIG_Pointer)) { _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); } rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); free((void *) klass_name); } /* Create a new pointer object */ SWIGRUNTIME VALUE SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) { int own = flags & SWIG_POINTER_OWN; int track; char *klass_name; swig_class *sklass; VALUE klass; VALUE obj; if (!ptr) return Qnil; if (type->clientdata) { sklass = (swig_class *) type->clientdata; /* Are we tracking this class and have we already returned this Ruby object? */ track = sklass->trackObjects; if (track) { obj = SWIG_RubyInstanceFor(ptr); /* Check the object's type and make sure it has the correct type. It might not in cases where methods do things like downcast methods. */ if (obj != Qnil) { VALUE value = rb_iv_get(obj, "@__swigtype__"); const char* type_name = RSTRING_PTR(value); if (strcmp(type->name, type_name) == 0) { return obj; } } } /* Create a new Ruby object */ obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), ( own ? VOIDFUNC(sklass->destroy) : (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 ) ), ptr); /* If tracking is on for this class then track this object. */ if (track) { SWIG_RubyAddTracking(ptr, obj); } } else { klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); klass = rb_const_get(_mSWIG, rb_intern(klass_name)); free((void *) klass_name); obj = Data_Wrap_Struct(klass, 0, 0, ptr); } rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); return obj; } /* Create a new class instance (always owned) */ SWIGRUNTIME VALUE SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type) { VALUE obj; swig_class *sklass = (swig_class *) type->clientdata; obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0); rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); return obj; } /* Get type mangle from class name */ SWIGRUNTIMEINLINE char * SWIG_Ruby_MangleStr(VALUE obj) { VALUE stype = rb_iv_get(obj, "@__swigtype__"); return StringValuePtr(stype); } /* Acquire a pointer value */ typedef struct { void (*datafree)(void *); int own; } swig_ruby_owntype; SWIGRUNTIME swig_ruby_owntype SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) { swig_ruby_owntype oldown = {0, 0}; if (obj) { oldown.datafree = RDATA(obj)->dfree; RDATA(obj)->dfree = own.datafree; } return oldown; } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, swig_ruby_owntype *own) { char *c; swig_cast_info *tc; void *vptr = 0; /* Grab the pointer */ if (NIL_P(obj)) { if (ptr) *ptr = 0; return SWIG_OK; } else { if (TYPE(obj) != T_DATA) { return SWIG_ERROR; } Data_Get_Struct(obj, void, vptr); } if (own) { own->datafree = RDATA(obj)->dfree; own->own = 0; } /* Check to see if the input object is giving up ownership of the underlying C struct or C++ object. If so then we need to reset the destructor since the Ruby object no longer owns the underlying C++ object.*/ if (flags & SWIG_POINTER_DISOWN) { /* Is tracking on for this class? */ int track = 0; if (ty && ty->clientdata) { swig_class *sklass = (swig_class *) ty->clientdata; track = sklass->trackObjects; } if (track) { /* We are tracking objects for this class. Thus we change the destructor * to SWIG_RubyRemoveTracking. This allows us to * remove the mapping from the C++ to Ruby object * when the Ruby object is garbage collected. If we don't * do this, then it is possible we will return a reference * to a Ruby object that no longer exists thereby crashing Ruby. */ RDATA(obj)->dfree = SWIG_RubyRemoveTracking; } else { RDATA(obj)->dfree = 0; } } /* Do type-checking if type info was provided */ if (ty) { if (ty->clientdata) { if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) { if (vptr == 0) { /* The object has already been deleted */ return SWIG_ObjectPreviouslyDeletedError; } } } if ((c = SWIG_MangleStr(obj)) == NULL) { return SWIG_ERROR; } tc = SWIG_TypeCheck(c, ty); if (!tc) { return SWIG_ERROR; } else { if (ptr) { if (tc->type == ty) { *ptr = vptr; } else { int newmemory = 0; *ptr = SWIG_TypeCast(tc, vptr, &newmemory); if (newmemory == SWIG_CAST_NEW_MEMORY) { assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ if (own) own->own = own->own | SWIG_CAST_NEW_MEMORY; } } } } } else { if (ptr) *ptr = vptr; } return SWIG_OK; } /* Check convert */ SWIGRUNTIMEINLINE int SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty) { char *c = SWIG_MangleStr(obj); if (!c) return 0; return SWIG_TypeCheck(c,ty) != 0; } SWIGRUNTIME VALUE SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) { char result[1024]; char *r = result; if ((2*sz + 1 + strlen(type->name)) > 1000) return 0; *(r++) = '_'; r = SWIG_PackData(r, ptr, sz); strcpy(r, type->name); return rb_str_new2(result); } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) { swig_cast_info *tc; const char *c; if (TYPE(obj) != T_STRING) goto type_error; c = StringValuePtr(obj); /* Pointer values must start with leading underscore */ if (*c != '_') goto type_error; c++; c = SWIG_UnpackData(c, ptr, sz); if (ty) { tc = SWIG_TypeCheck(c, ty); if (!tc) goto type_error; } return SWIG_OK; type_error: return SWIG_ERROR; } SWIGRUNTIME swig_module_info * SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata)) { VALUE pointer; swig_module_info *ret = 0; VALUE verbose = rb_gv_get("VERBOSE"); /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */ rb_gv_set("VERBOSE", Qfalse); /* first check if pointer already created */ pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); if (pointer != Qnil) { Data_Get_Struct(pointer, swig_module_info, ret); } /* reinstate warnings */ rb_gv_set("VERBOSE", verbose); return ret; } SWIGRUNTIME void SWIG_Ruby_SetModule(swig_module_info *pointer) { /* register a new class */ VALUE cl = rb_define_class("swig_runtime_data", rb_cObject); /* create and store the structure pointer to a global variable */ swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer); rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer); } /* This function can be used to check whether a proc or method or similarly callable function has been passed. Usually used in a %typecheck, like: %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) { $result = SWIG_Ruby_isCallable( $input ); } */ SWIGINTERN int SWIG_Ruby_isCallable( VALUE proc ) { if ( rb_respond_to( proc, swig_call_id ) ) return 1; return 0; } /* This function can be used to check the arity (number of arguments) a proc or method can take. Usually used in a %typecheck. Valid arities will be that equal to minimal or those < 0 which indicate a variable number of parameters at the end. */ SWIGINTERN int SWIG_Ruby_arity( VALUE proc, int minimal ) { if ( rb_respond_to( proc, swig_arity_id ) ) { VALUE num = rb_funcall( proc, swig_arity_id, 0 ); int arity = NUM2INT(num); if ( arity < 0 && (arity+1) < -minimal ) return 1; if ( arity == minimal ) return 1; return 1; } return 0; } #ifdef __cplusplus } #endif #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else /* ----------------------------------------------------------------------------- * director_common.swg * * This file contains support for director classes which is common between * languages. * ----------------------------------------------------------------------------- */ /* Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the 'Swig' namespace. This could be useful for multi-modules projects. */ #ifdef SWIG_DIRECTOR_STATIC /* Force anonymous (static) namespace */ #define Swig #endif /* ----------------------------------------------------------------------------- * director.swg * * This file contains support for director classes so that Ruby proxy * methods can be called from C++. * ----------------------------------------------------------------------------- */ /* Use -DSWIG_DIRECTOR_NOUEH if you prefer to avoid the use of the Undefined Exception Handler provided by swig. */ #ifndef SWIG_DIRECTOR_NOUEH #ifndef SWIG_DIRECTOR_UEH #define SWIG_DIRECTOR_UEH #endif #endif #include #include #include #include # define SWIG_DIRECTOR_CAST(ARG) dynamic_cast(ARG) namespace Swig { /* memory handler */ struct GCItem { virtual ~GCItem() { } virtual swig_ruby_owntype get_own() const { swig_ruby_owntype own = {0, 0}; return own; } }; struct GCItem_var { GCItem_var(GCItem *item = 0) : _item(item) { } GCItem_var& operator=(GCItem *item) { GCItem *tmp = _item; _item = item; delete tmp; return *this; } ~GCItem_var() { delete _item; } GCItem *operator->() const { return _item; } private: GCItem *_item; }; template struct GCItem_T : GCItem { GCItem_T(Type *ptr) : _ptr(ptr) { } virtual ~GCItem_T() { delete _ptr; } private: Type *_ptr; }; struct GCItem_Object : GCItem { GCItem_Object(swig_ruby_owntype own) : _own(own) { } virtual ~GCItem_Object() { } swig_ruby_owntype get_own() const { return _own; } private: swig_ruby_owntype _own; }; template struct GCArray_T : GCItem { GCArray_T(Type *ptr) : _ptr(ptr) { } virtual ~GCArray_T() { delete[] _ptr; } private: Type *_ptr; }; /* body args */ struct body_args { VALUE recv; ID id; int argc; VALUE *argv; }; /* Base class for director exceptions */ class DirectorException : public std::exception { protected: VALUE swig_error; std::string swig_msg; protected: DirectorException(VALUE error) : swig_error(error) { } DirectorException(VALUE error, const char *hdr, const char *msg ="") : swig_error(error), swig_msg(hdr) { if (msg[0]) { swig_msg += " "; swig_msg += msg; } if (swig_msg.size()) { VALUE str = rb_str_new(swig_msg.data(), swig_msg.size()); swig_error = rb_exc_new3(error, str); } else { swig_error = error; } } public: virtual ~DirectorException() throw() { } VALUE getType() const { return CLASS_OF(swig_error); } VALUE getError() const { return swig_error; } /* Deprecated, use what() instead */ const std::string& getMessage() const { return swig_msg; } const char *what() const throw() { return swig_msg.c_str(); } }; /* unknown exception handler */ class UnknownExceptionHandler { #ifdef SWIG_DIRECTOR_UEH static void handler() { try { throw; } catch (DirectorException& e) { std::cerr << "SWIG Director exception caught:" << std::endl << e.what() << std::endl; } catch (std::exception& e) { std::cerr << "std::exception caught: "<< e.what() << std::endl; } catch (...) { std::cerr << "Unknown exception caught." << std::endl; } std::cerr << std::endl << "Ruby interpreter traceback:" << std::endl; std::cerr << std::endl; std::cerr << "This exception was caught by the SWIG unexpected exception handler." << std::endl << "Try using %feature(\"director:except\") to avoid reaching this point." << std::endl << std::endl << "Exception is being re-thrown, program will like abort/terminate." << std::endl; throw; } public: std::unexpected_handler old; UnknownExceptionHandler(std::unexpected_handler nh = handler) { old = std::set_unexpected(nh); } ~UnknownExceptionHandler() { std::set_unexpected(old); } #endif }; /* Type mismatch in the return value from a Ruby method call */ class DirectorTypeMismatchException : public DirectorException { public: DirectorTypeMismatchException(VALUE error, const char *msg="") : DirectorException(error, "SWIG director type mismatch", msg) { } DirectorTypeMismatchException(const char *msg="") : DirectorException(rb_eTypeError, "SWIG director type mismatch", msg) { } static void raise(VALUE error, const char *msg) { throw DirectorTypeMismatchException(error, msg); } static void raise(const char *msg) { throw DirectorTypeMismatchException(msg); } }; /* Any Ruby exception that occurs during a director method call */ class DirectorMethodException : public DirectorException { public: DirectorMethodException(VALUE error) : DirectorException(error) { } DirectorMethodException(const char *msg = "") : DirectorException(rb_eRuntimeError, "SWIG director method error.", msg) { } static void raise(VALUE error) { throw DirectorMethodException(error); } }; /* Attempted to call a pure virtual method via a director method */ class DirectorPureVirtualException : public DirectorException { public: DirectorPureVirtualException(const char *msg = "") : DirectorException(rb_eRuntimeError, "SWIG director pure virtual method called", msg) { } static void raise(const char *msg) { throw DirectorPureVirtualException(msg); } }; /* Simple thread abstraction for pthreads on win32 */ #ifdef __THREAD__ # define __PTHREAD__ # if defined(_WIN32) || defined(__WIN32__) # define pthread_mutex_lock EnterCriticalSection # define pthread_mutex_unlock LeaveCriticalSection # define pthread_mutex_t CRITICAL_SECTION # define SWIG_MUTEX_INIT(var) var # else # include # define SWIG_MUTEX_INIT(var) var = PTHREAD_MUTEX_INITIALIZER # endif #endif #ifdef __PTHREAD__ struct Guard { pthread_mutex_t *_mutex; Guard(pthread_mutex_t &mutex) : _mutex(&mutex) { pthread_mutex_lock(_mutex); } ~Guard() { pthread_mutex_unlock(_mutex); } }; # define SWIG_GUARD(mutex) Guard _guard(mutex) #else # define SWIG_GUARD(mutex) #endif /* director base class */ class Director { private: /* pointer to the wrapped Ruby object */ VALUE swig_self; /* flag indicating whether the object is owned by Ruby or c++ */ mutable bool swig_disown_flag; public: /* wrap a Ruby object. */ Director(VALUE self) : swig_self(self), swig_disown_flag(false) { } /* discard our reference at destruction */ virtual ~Director() { } /* return a pointer to the wrapped Ruby object */ VALUE swig_get_self() const { return swig_self; } /* acquire ownership of the wrapped Ruby object (the sense of "disown" is from Ruby) */ void swig_disown() const { if (!swig_disown_flag) { swig_disown_flag = true; } } /* ownership management */ private: typedef std::map swig_ownership_map; mutable swig_ownership_map swig_owner; #ifdef __PTHREAD__ static pthread_mutex_t swig_mutex_own; #endif public: template void swig_acquire_ownership_array(Type *vptr) const { if (vptr) { SWIG_GUARD(swig_mutex_own); swig_owner[vptr] = new GCArray_T(vptr); } } template void swig_acquire_ownership(Type *vptr) const { if (vptr) { SWIG_GUARD(swig_mutex_own); swig_owner[vptr] = new GCItem_T(vptr); } } void swig_acquire_ownership_obj(void *vptr, swig_ruby_owntype own) const { if (vptr && own.datafree) { SWIG_GUARD(swig_mutex_own); swig_owner[vptr] = new GCItem_Object(own); } } swig_ruby_owntype swig_release_ownership(void *vptr) const { swig_ruby_owntype own = {0, 0}; if (vptr) { SWIG_GUARD(swig_mutex_own); swig_ownership_map::iterator iter = swig_owner.find(vptr); if (iter != swig_owner.end()) { own.datafree = iter->second->get_own().datafree; swig_owner.erase(iter); } } return own; } }; } /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_CThostFtdcAccountregisterField swig_types[0] #define SWIGTYPE_p_CThostFtdcAuthenticationInfoField swig_types[1] #define SWIGTYPE_p_CThostFtdcBrokerDepositField swig_types[2] #define SWIGTYPE_p_CThostFtdcBrokerField swig_types[3] #define SWIGTYPE_p_CThostFtdcBrokerSyncField swig_types[4] #define SWIGTYPE_p_CThostFtdcBrokerTradingAlgosField swig_types[5] #define SWIGTYPE_p_CThostFtdcBrokerTradingParamsField swig_types[6] #define SWIGTYPE_p_CThostFtdcBrokerUserEventField swig_types[7] #define SWIGTYPE_p_CThostFtdcBrokerUserField swig_types[8] #define SWIGTYPE_p_CThostFtdcBrokerUserFunctionField swig_types[9] #define SWIGTYPE_p_CThostFtdcBrokerUserOTPParamField swig_types[10] #define SWIGTYPE_p_CThostFtdcBrokerUserPasswordField swig_types[11] #define SWIGTYPE_p_CThostFtdcBrokerUserRightAssignField swig_types[12] #define SWIGTYPE_p_CThostFtdcBrokerWithdrawAlgorithmField swig_types[13] #define SWIGTYPE_p_CThostFtdcCFMMCBrokerKeyField swig_types[14] #define SWIGTYPE_p_CThostFtdcCFMMCTradingAccountKeyField swig_types[15] #define SWIGTYPE_p_CThostFtdcCFMMCTradingAccountTokenField swig_types[16] #define SWIGTYPE_p_CThostFtdcCancelAccountField swig_types[17] #define SWIGTYPE_p_CThostFtdcChangeAccountField swig_types[18] #define SWIGTYPE_p_CThostFtdcCombActionField swig_types[19] #define SWIGTYPE_p_CThostFtdcCombInstrumentGuardField swig_types[20] #define SWIGTYPE_p_CThostFtdcCombinationLegField swig_types[21] #define SWIGTYPE_p_CThostFtdcCommPhaseField swig_types[22] #define SWIGTYPE_p_CThostFtdcCommRateModelField swig_types[23] #define SWIGTYPE_p_CThostFtdcContractBankField swig_types[24] #define SWIGTYPE_p_CThostFtdcCurrTransferIdentityField swig_types[25] #define SWIGTYPE_p_CThostFtdcCurrentTimeField swig_types[26] #define SWIGTYPE_p_CThostFtdcDRTransferField swig_types[27] #define SWIGTYPE_p_CThostFtdcDepositResultInformField swig_types[28] #define SWIGTYPE_p_CThostFtdcDepthMarketDataField swig_types[29] #define SWIGTYPE_p_CThostFtdcDiscountField swig_types[30] #define SWIGTYPE_p_CThostFtdcDisseminationField swig_types[31] #define SWIGTYPE_p_CThostFtdcEWarrantOffsetField swig_types[32] #define SWIGTYPE_p_CThostFtdcErrExecOrderActionField swig_types[33] #define SWIGTYPE_p_CThostFtdcErrExecOrderField swig_types[34] #define SWIGTYPE_p_CThostFtdcErrOrderActionField swig_types[35] #define SWIGTYPE_p_CThostFtdcErrOrderField swig_types[36] #define SWIGTYPE_p_CThostFtdcErrorConditionalOrderField swig_types[37] #define SWIGTYPE_p_CThostFtdcExchangeCombActionField swig_types[38] #define SWIGTYPE_p_CThostFtdcExchangeExecOrderActionField swig_types[39] #define SWIGTYPE_p_CThostFtdcExchangeExecOrderField swig_types[40] #define SWIGTYPE_p_CThostFtdcExchangeField swig_types[41] #define SWIGTYPE_p_CThostFtdcExchangeForQuoteField swig_types[42] #define SWIGTYPE_p_CThostFtdcExchangeMarginRateAdjustField swig_types[43] #define SWIGTYPE_p_CThostFtdcExchangeMarginRateField swig_types[44] #define SWIGTYPE_p_CThostFtdcExchangeOrderActionErrorField swig_types[45] #define SWIGTYPE_p_CThostFtdcExchangeOrderActionField swig_types[46] #define SWIGTYPE_p_CThostFtdcExchangeOrderField swig_types[47] #define SWIGTYPE_p_CThostFtdcExchangeOrderInsertErrorField swig_types[48] #define SWIGTYPE_p_CThostFtdcExchangeQuoteActionField swig_types[49] #define SWIGTYPE_p_CThostFtdcExchangeQuoteField swig_types[50] #define SWIGTYPE_p_CThostFtdcExchangeRateField swig_types[51] #define SWIGTYPE_p_CThostFtdcExchangeSequenceField swig_types[52] #define SWIGTYPE_p_CThostFtdcExchangeTradeField swig_types[53] #define SWIGTYPE_p_CThostFtdcExecOrderActionField swig_types[54] #define SWIGTYPE_p_CThostFtdcExecOrderField swig_types[55] #define SWIGTYPE_p_CThostFtdcFensUserInfoField swig_types[56] #define SWIGTYPE_p_CThostFtdcForQuoteField swig_types[57] #define SWIGTYPE_p_CThostFtdcForQuoteRspField swig_types[58] #define SWIGTYPE_p_CThostFtdcForceUserLogoutField swig_types[59] #define SWIGTYPE_p_CThostFtdcFrontStatusField swig_types[60] #define SWIGTYPE_p_CThostFtdcFutureSignIOField swig_types[61] #define SWIGTYPE_p_CThostFtdcIndexPriceField swig_types[62] #define SWIGTYPE_p_CThostFtdcInputCombActionField swig_types[63] #define SWIGTYPE_p_CThostFtdcInputExecOrderActionField swig_types[64] #define SWIGTYPE_p_CThostFtdcInputExecOrderField swig_types[65] #define SWIGTYPE_p_CThostFtdcInputForQuoteField swig_types[66] #define SWIGTYPE_p_CThostFtdcInputOrderActionField swig_types[67] #define SWIGTYPE_p_CThostFtdcInputOrderField swig_types[68] #define SWIGTYPE_p_CThostFtdcInputQuoteActionField swig_types[69] #define SWIGTYPE_p_CThostFtdcInputQuoteField swig_types[70] #define SWIGTYPE_p_CThostFtdcInstrumentCommissionRateField swig_types[71] #define SWIGTYPE_p_CThostFtdcInstrumentField swig_types[72] #define SWIGTYPE_p_CThostFtdcInstrumentMarginRateAdjustField swig_types[73] #define SWIGTYPE_p_CThostFtdcInstrumentMarginRateField swig_types[74] #define SWIGTYPE_p_CThostFtdcInstrumentStatusField swig_types[75] #define SWIGTYPE_p_CThostFtdcInstrumentTradingRightField swig_types[76] #define SWIGTYPE_p_CThostFtdcInvestorAccountField swig_types[77] #define SWIGTYPE_p_CThostFtdcInvestorField swig_types[78] #define SWIGTYPE_p_CThostFtdcInvestorGroupField swig_types[79] #define SWIGTYPE_p_CThostFtdcInvestorPositionCombineDetailField swig_types[80] #define SWIGTYPE_p_CThostFtdcInvestorPositionDetailField swig_types[81] #define SWIGTYPE_p_CThostFtdcInvestorPositionField swig_types[82] #define SWIGTYPE_p_CThostFtdcInvestorProductGroupMarginField swig_types[83] #define SWIGTYPE_p_CThostFtdcInvestorWithdrawAlgorithmField swig_types[84] #define SWIGTYPE_p_CThostFtdcLinkManField swig_types[85] #define SWIGTYPE_p_CThostFtdcLoadSettlementInfoField swig_types[86] #define SWIGTYPE_p_CThostFtdcLoginForbiddenUserField swig_types[87] #define SWIGTYPE_p_CThostFtdcLoginInfoField swig_types[88] #define SWIGTYPE_p_CThostFtdcLogoutAllField swig_types[89] #define SWIGTYPE_p_CThostFtdcMDTraderOfferField swig_types[90] #define SWIGTYPE_p_CThostFtdcManualSyncBrokerUserOTPField swig_types[91] #define SWIGTYPE_p_CThostFtdcMarginModelField swig_types[92] #define SWIGTYPE_p_CThostFtdcMarketDataAsk23Field swig_types[93] #define SWIGTYPE_p_CThostFtdcMarketDataAsk45Field swig_types[94] #define SWIGTYPE_p_CThostFtdcMarketDataAveragePriceField swig_types[95] #define SWIGTYPE_p_CThostFtdcMarketDataBaseField swig_types[96] #define SWIGTYPE_p_CThostFtdcMarketDataBestPriceField swig_types[97] #define SWIGTYPE_p_CThostFtdcMarketDataBid23Field swig_types[98] #define SWIGTYPE_p_CThostFtdcMarketDataBid45Field swig_types[99] #define SWIGTYPE_p_CThostFtdcMarketDataExchangeField swig_types[100] #define SWIGTYPE_p_CThostFtdcMarketDataField swig_types[101] #define SWIGTYPE_p_CThostFtdcMarketDataLastMatchField swig_types[102] #define SWIGTYPE_p_CThostFtdcMarketDataStaticField swig_types[103] #define SWIGTYPE_p_CThostFtdcMarketDataUpdateTimeField swig_types[104] #define SWIGTYPE_p_CThostFtdcMdApi swig_types[105] #define SWIGTYPE_p_CThostFtdcMdSpi swig_types[106] #define SWIGTYPE_p_CThostFtdcMulticastGroupInfoField swig_types[107] #define SWIGTYPE_p_CThostFtdcNoticeField swig_types[108] #define SWIGTYPE_p_CThostFtdcNotifyFutureSignInField swig_types[109] #define SWIGTYPE_p_CThostFtdcNotifyFutureSignOutField swig_types[110] #define SWIGTYPE_p_CThostFtdcNotifyQueryAccountField swig_types[111] #define SWIGTYPE_p_CThostFtdcNotifySyncKeyField swig_types[112] #define SWIGTYPE_p_CThostFtdcOpenAccountField swig_types[113] #define SWIGTYPE_p_CThostFtdcOptionInstrCommRateField swig_types[114] #define SWIGTYPE_p_CThostFtdcOptionInstrDeltaField swig_types[115] #define SWIGTYPE_p_CThostFtdcOptionInstrMarginAdjustField swig_types[116] #define SWIGTYPE_p_CThostFtdcOptionInstrMiniMarginField swig_types[117] #define SWIGTYPE_p_CThostFtdcOptionInstrTradeCostField swig_types[118] #define SWIGTYPE_p_CThostFtdcOptionInstrTradingRightField swig_types[119] #define SWIGTYPE_p_CThostFtdcOrderActionField swig_types[120] #define SWIGTYPE_p_CThostFtdcOrderField swig_types[121] #define SWIGTYPE_p_CThostFtdcParkedOrderActionField swig_types[122] #define SWIGTYPE_p_CThostFtdcParkedOrderField swig_types[123] #define SWIGTYPE_p_CThostFtdcPartBrokerField swig_types[124] #define SWIGTYPE_p_CThostFtdcPositionProfitAlgorithmField swig_types[125] #define SWIGTYPE_p_CThostFtdcProductExchRateField swig_types[126] #define SWIGTYPE_p_CThostFtdcProductField swig_types[127] #define SWIGTYPE_p_CThostFtdcQryAccountregisterField swig_types[128] #define SWIGTYPE_p_CThostFtdcQryBrokerField swig_types[129] #define SWIGTYPE_p_CThostFtdcQryBrokerTradingAlgosField swig_types[130] #define SWIGTYPE_p_CThostFtdcQryBrokerTradingParamsField swig_types[131] #define SWIGTYPE_p_CThostFtdcQryBrokerUserEventField swig_types[132] #define SWIGTYPE_p_CThostFtdcQryBrokerUserField swig_types[133] #define SWIGTYPE_p_CThostFtdcQryBrokerUserFunctionField swig_types[134] #define SWIGTYPE_p_CThostFtdcQryCFMMCBrokerKeyField swig_types[135] #define SWIGTYPE_p_CThostFtdcQryCFMMCTradingAccountKeyField swig_types[136] #define SWIGTYPE_p_CThostFtdcQryCombActionField swig_types[137] #define SWIGTYPE_p_CThostFtdcQryCombInstrumentGuardField swig_types[138] #define SWIGTYPE_p_CThostFtdcQryCombinationLegField swig_types[139] #define SWIGTYPE_p_CThostFtdcQryCommRateModelField swig_types[140] #define SWIGTYPE_p_CThostFtdcQryContractBankField swig_types[141] #define SWIGTYPE_p_CThostFtdcQryDepthMarketDataField swig_types[142] #define SWIGTYPE_p_CThostFtdcQryEWarrantOffsetField swig_types[143] #define SWIGTYPE_p_CThostFtdcQryErrExecOrderActionField swig_types[144] #define SWIGTYPE_p_CThostFtdcQryErrExecOrderField swig_types[145] #define SWIGTYPE_p_CThostFtdcQryErrOrderActionField swig_types[146] #define SWIGTYPE_p_CThostFtdcQryErrOrderField swig_types[147] #define SWIGTYPE_p_CThostFtdcQryExchangeCombActionField swig_types[148] #define SWIGTYPE_p_CThostFtdcQryExchangeExecOrderActionField swig_types[149] #define SWIGTYPE_p_CThostFtdcQryExchangeExecOrderField swig_types[150] #define SWIGTYPE_p_CThostFtdcQryExchangeField swig_types[151] #define SWIGTYPE_p_CThostFtdcQryExchangeForQuoteField swig_types[152] #define SWIGTYPE_p_CThostFtdcQryExchangeMarginRateAdjustField swig_types[153] #define SWIGTYPE_p_CThostFtdcQryExchangeMarginRateField swig_types[154] #define SWIGTYPE_p_CThostFtdcQryExchangeOrderActionField swig_types[155] #define SWIGTYPE_p_CThostFtdcQryExchangeOrderField swig_types[156] #define SWIGTYPE_p_CThostFtdcQryExchangeQuoteActionField swig_types[157] #define SWIGTYPE_p_CThostFtdcQryExchangeQuoteField swig_types[158] #define SWIGTYPE_p_CThostFtdcQryExchangeRateField swig_types[159] #define SWIGTYPE_p_CThostFtdcQryExchangeSequenceField swig_types[160] #define SWIGTYPE_p_CThostFtdcQryExecOrderActionField swig_types[161] #define SWIGTYPE_p_CThostFtdcQryExecOrderField swig_types[162] #define SWIGTYPE_p_CThostFtdcQryForQuoteField swig_types[163] #define SWIGTYPE_p_CThostFtdcQryFrontStatusField swig_types[164] #define SWIGTYPE_p_CThostFtdcQryHisOrderField swig_types[165] #define SWIGTYPE_p_CThostFtdcQryInstrumentCommissionRateField swig_types[166] #define SWIGTYPE_p_CThostFtdcQryInstrumentField swig_types[167] #define SWIGTYPE_p_CThostFtdcQryInstrumentMarginRateField swig_types[168] #define SWIGTYPE_p_CThostFtdcQryInstrumentStatusField swig_types[169] #define SWIGTYPE_p_CThostFtdcQryInstrumentTradingRightField swig_types[170] #define SWIGTYPE_p_CThostFtdcQryInvestorField swig_types[171] #define SWIGTYPE_p_CThostFtdcQryInvestorGroupField swig_types[172] #define SWIGTYPE_p_CThostFtdcQryInvestorPositionCombineDetailField swig_types[173] #define SWIGTYPE_p_CThostFtdcQryInvestorPositionDetailField swig_types[174] #define SWIGTYPE_p_CThostFtdcQryInvestorPositionField swig_types[175] #define SWIGTYPE_p_CThostFtdcQryInvestorProductGroupMarginField swig_types[176] #define SWIGTYPE_p_CThostFtdcQryLinkManField swig_types[177] #define SWIGTYPE_p_CThostFtdcQryLoginForbiddenUserField swig_types[178] #define SWIGTYPE_p_CThostFtdcQryMDTraderOfferField swig_types[179] #define SWIGTYPE_p_CThostFtdcQryMarginModelField swig_types[180] #define SWIGTYPE_p_CThostFtdcQryNoticeField swig_types[181] #define SWIGTYPE_p_CThostFtdcQryOptionInstrCommRateField swig_types[182] #define SWIGTYPE_p_CThostFtdcQryOptionInstrTradeCostField swig_types[183] #define SWIGTYPE_p_CThostFtdcQryOptionInstrTradingRightField swig_types[184] #define SWIGTYPE_p_CThostFtdcQryOrderActionField swig_types[185] #define SWIGTYPE_p_CThostFtdcQryOrderField swig_types[186] #define SWIGTYPE_p_CThostFtdcQryParkedOrderActionField swig_types[187] #define SWIGTYPE_p_CThostFtdcQryParkedOrderField swig_types[188] #define SWIGTYPE_p_CThostFtdcQryPartBrokerField swig_types[189] #define SWIGTYPE_p_CThostFtdcQryProductExchRateField swig_types[190] #define SWIGTYPE_p_CThostFtdcQryProductField swig_types[191] #define SWIGTYPE_p_CThostFtdcQryQuoteActionField swig_types[192] #define SWIGTYPE_p_CThostFtdcQryQuoteField swig_types[193] #define SWIGTYPE_p_CThostFtdcQrySecAgentACIDMapField swig_types[194] #define SWIGTYPE_p_CThostFtdcQrySettlementInfoConfirmField swig_types[195] #define SWIGTYPE_p_CThostFtdcQrySettlementInfoField swig_types[196] #define SWIGTYPE_p_CThostFtdcQryStrikeOffsetField swig_types[197] #define SWIGTYPE_p_CThostFtdcQrySuperUserField swig_types[198] #define SWIGTYPE_p_CThostFtdcQrySuperUserFunctionField swig_types[199] #define SWIGTYPE_p_CThostFtdcQrySyncDepositField swig_types[200] #define SWIGTYPE_p_CThostFtdcQrySyncFundMortgageField swig_types[201] #define SWIGTYPE_p_CThostFtdcQrySyncStatusField swig_types[202] #define SWIGTYPE_p_CThostFtdcQryTradeField swig_types[203] #define SWIGTYPE_p_CThostFtdcQryTraderField swig_types[204] #define SWIGTYPE_p_CThostFtdcQryTraderOfferField swig_types[205] #define SWIGTYPE_p_CThostFtdcQryTradingAccountField swig_types[206] #define SWIGTYPE_p_CThostFtdcQryTradingCodeField swig_types[207] #define SWIGTYPE_p_CThostFtdcQryTradingNoticeField swig_types[208] #define SWIGTYPE_p_CThostFtdcQryTransferBankField swig_types[209] #define SWIGTYPE_p_CThostFtdcQryTransferSerialField swig_types[210] #define SWIGTYPE_p_CThostFtdcQryUserSessionField swig_types[211] #define SWIGTYPE_p_CThostFtdcQueryBrokerDepositField swig_types[212] #define SWIGTYPE_p_CThostFtdcQueryCFMMCTradingAccountTokenField swig_types[213] #define SWIGTYPE_p_CThostFtdcQueryMaxOrderVolumeField swig_types[214] #define SWIGTYPE_p_CThostFtdcQueryMaxOrderVolumeWithPriceField swig_types[215] #define SWIGTYPE_p_CThostFtdcQuoteActionField swig_types[216] #define SWIGTYPE_p_CThostFtdcQuoteField swig_types[217] #define SWIGTYPE_p_CThostFtdcRemoveParkedOrderActionField swig_types[218] #define SWIGTYPE_p_CThostFtdcRemoveParkedOrderField swig_types[219] #define SWIGTYPE_p_CThostFtdcReqAuthenticateField swig_types[220] #define SWIGTYPE_p_CThostFtdcReqCancelAccountField swig_types[221] #define SWIGTYPE_p_CThostFtdcReqChangeAccountField swig_types[222] #define SWIGTYPE_p_CThostFtdcReqDayEndFileReadyField swig_types[223] #define SWIGTYPE_p_CThostFtdcReqFutureSignOutField swig_types[224] #define SWIGTYPE_p_CThostFtdcReqOpenAccountField swig_types[225] #define SWIGTYPE_p_CThostFtdcReqQueryAccountField swig_types[226] #define SWIGTYPE_p_CThostFtdcReqQueryTradeResultBySerialField swig_types[227] #define SWIGTYPE_p_CThostFtdcReqRepealField swig_types[228] #define SWIGTYPE_p_CThostFtdcReqSyncKeyField swig_types[229] #define SWIGTYPE_p_CThostFtdcReqTransferField swig_types[230] #define SWIGTYPE_p_CThostFtdcReqUserLoginField swig_types[231] #define SWIGTYPE_p_CThostFtdcReturnResultField swig_types[232] #define SWIGTYPE_p_CThostFtdcRspAuthenticateField swig_types[233] #define SWIGTYPE_p_CThostFtdcRspFutureSignInField swig_types[234] #define SWIGTYPE_p_CThostFtdcRspFutureSignOutField swig_types[235] #define SWIGTYPE_p_CThostFtdcRspInfoField swig_types[236] #define SWIGTYPE_p_CThostFtdcRspQueryAccountField swig_types[237] #define SWIGTYPE_p_CThostFtdcRspQueryTradeResultBySerialField swig_types[238] #define SWIGTYPE_p_CThostFtdcRspRepealField swig_types[239] #define SWIGTYPE_p_CThostFtdcRspSyncKeyField swig_types[240] #define SWIGTYPE_p_CThostFtdcRspTransferField swig_types[241] #define SWIGTYPE_p_CThostFtdcRspUserLoginField swig_types[242] #define SWIGTYPE_p_CThostFtdcSecAgentACIDMapField swig_types[243] #define SWIGTYPE_p_CThostFtdcSettlementInfoConfirmField swig_types[244] #define SWIGTYPE_p_CThostFtdcSettlementInfoField swig_types[245] #define SWIGTYPE_p_CThostFtdcSettlementRefField swig_types[246] #define SWIGTYPE_p_CThostFtdcSpecificInstrumentField swig_types[247] #define SWIGTYPE_p_CThostFtdcStrikeOffsetField swig_types[248] #define SWIGTYPE_p_CThostFtdcSuperUserField swig_types[249] #define SWIGTYPE_p_CThostFtdcSuperUserFunctionField swig_types[250] #define SWIGTYPE_p_CThostFtdcSyncDepositField swig_types[251] #define SWIGTYPE_p_CThostFtdcSyncFundMortgageField swig_types[252] #define SWIGTYPE_p_CThostFtdcSyncStatusField swig_types[253] #define SWIGTYPE_p_CThostFtdcSyncingInstrumentCommissionRateField swig_types[254] #define SWIGTYPE_p_CThostFtdcSyncingInstrumentMarginRateField swig_types[255] #define SWIGTYPE_p_CThostFtdcSyncingInstrumentTradingRightField swig_types[256] #define SWIGTYPE_p_CThostFtdcSyncingInvestorField swig_types[257] #define SWIGTYPE_p_CThostFtdcSyncingInvestorGroupField swig_types[258] #define SWIGTYPE_p_CThostFtdcSyncingInvestorPositionField swig_types[259] #define SWIGTYPE_p_CThostFtdcSyncingTradingAccountField swig_types[260] #define SWIGTYPE_p_CThostFtdcSyncingTradingCodeField swig_types[261] #define SWIGTYPE_p_CThostFtdcTradeField swig_types[262] #define SWIGTYPE_p_CThostFtdcTraderApi swig_types[263] #define SWIGTYPE_p_CThostFtdcTraderField swig_types[264] #define SWIGTYPE_p_CThostFtdcTraderOfferField swig_types[265] #define SWIGTYPE_p_CThostFtdcTraderSpi swig_types[266] #define SWIGTYPE_p_CThostFtdcTradingAccountField swig_types[267] #define SWIGTYPE_p_CThostFtdcTradingAccountPasswordField swig_types[268] #define SWIGTYPE_p_CThostFtdcTradingAccountPasswordUpdateField swig_types[269] #define SWIGTYPE_p_CThostFtdcTradingAccountPasswordUpdateV1Field swig_types[270] #define SWIGTYPE_p_CThostFtdcTradingAccountReserveField swig_types[271] #define SWIGTYPE_p_CThostFtdcTradingCodeField swig_types[272] #define SWIGTYPE_p_CThostFtdcTradingNoticeField swig_types[273] #define SWIGTYPE_p_CThostFtdcTradingNoticeInfoField swig_types[274] #define SWIGTYPE_p_CThostFtdcTransferBankField swig_types[275] #define SWIGTYPE_p_CThostFtdcTransferBankToFutureReqField swig_types[276] #define SWIGTYPE_p_CThostFtdcTransferBankToFutureRspField swig_types[277] #define SWIGTYPE_p_CThostFtdcTransferFutureToBankReqField swig_types[278] #define SWIGTYPE_p_CThostFtdcTransferFutureToBankRspField swig_types[279] #define SWIGTYPE_p_CThostFtdcTransferHeaderField swig_types[280] #define SWIGTYPE_p_CThostFtdcTransferQryBankReqField swig_types[281] #define SWIGTYPE_p_CThostFtdcTransferQryBankRspField swig_types[282] #define SWIGTYPE_p_CThostFtdcTransferQryDetailReqField swig_types[283] #define SWIGTYPE_p_CThostFtdcTransferQryDetailRspField swig_types[284] #define SWIGTYPE_p_CThostFtdcTransferSerialField swig_types[285] #define SWIGTYPE_p_CThostFtdcUserIPField swig_types[286] #define SWIGTYPE_p_CThostFtdcUserLogoutField swig_types[287] #define SWIGTYPE_p_CThostFtdcUserPasswordUpdateField swig_types[288] #define SWIGTYPE_p_CThostFtdcUserRightField swig_types[289] #define SWIGTYPE_p_CThostFtdcUserRightsAssignField swig_types[290] #define SWIGTYPE_p_CThostFtdcUserSessionField swig_types[291] #define SWIGTYPE_p_CThostFtdcVerifyCustInfoField swig_types[292] #define SWIGTYPE_p_CThostFtdcVerifyFuturePasswordAndCustInfoField swig_types[293] #define SWIGTYPE_p_CThostFtdcVerifyFuturePasswordField swig_types[294] #define SWIGTYPE_p_CThostFtdcVerifyInvestorPasswordField swig_types[295] #define SWIGTYPE_p_a_1001__char swig_types[296] #define SWIGTYPE_p_a_101__char swig_types[297] #define SWIGTYPE_p_a_1025__char swig_types[298] #define SWIGTYPE_p_a_10__char swig_types[299] #define SWIGTYPE_p_a_11__char swig_types[300] #define SWIGTYPE_p_a_129__char swig_types[301] #define SWIGTYPE_p_a_12__char swig_types[302] #define SWIGTYPE_p_a_13__char swig_types[303] #define SWIGTYPE_p_a_15__char swig_types[304] #define SWIGTYPE_p_a_161__char swig_types[305] #define SWIGTYPE_p_a_16__char swig_types[306] #define SWIGTYPE_p_a_17__char swig_types[307] #define SWIGTYPE_p_a_201__char swig_types[308] #define SWIGTYPE_p_a_2049__char swig_types[309] #define SWIGTYPE_p_a_20__char swig_types[310] #define SWIGTYPE_p_a_21__char swig_types[311] #define SWIGTYPE_p_a_22__char swig_types[312] #define SWIGTYPE_p_a_23__char swig_types[313] #define SWIGTYPE_p_a_24__char swig_types[314] #define SWIGTYPE_p_a_256__char swig_types[315] #define SWIGTYPE_p_a_257__char swig_types[316] #define SWIGTYPE_p_a_25__char swig_types[317] #define SWIGTYPE_p_a_2__char swig_types[318] #define SWIGTYPE_p_a_31__char swig_types[319] #define SWIGTYPE_p_a_33__char swig_types[320] #define SWIGTYPE_p_a_36__char swig_types[321] #define SWIGTYPE_p_a_3__char swig_types[322] #define SWIGTYPE_p_a_401__char swig_types[323] #define SWIGTYPE_p_a_41__char swig_types[324] #define SWIGTYPE_p_a_4__char swig_types[325] #define SWIGTYPE_p_a_501__char swig_types[326] #define SWIGTYPE_p_a_513__char swig_types[327] #define SWIGTYPE_p_a_51__char swig_types[328] #define SWIGTYPE_p_a_5__char swig_types[329] #define SWIGTYPE_p_a_61__char swig_types[330] #define SWIGTYPE_p_a_65__char swig_types[331] #define SWIGTYPE_p_a_6__char swig_types[332] #define SWIGTYPE_p_a_71__char swig_types[333] #define SWIGTYPE_p_a_7__char swig_types[334] #define SWIGTYPE_p_a_81__char swig_types[335] #define SWIGTYPE_p_a_9__char swig_types[336] #define SWIGTYPE_p_char swig_types[337] #define SWIGTYPE_p_double swig_types[338] #define SWIGTYPE_p_int swig_types[339] #define SWIGTYPE_p_short swig_types[340] static swig_type_info *swig_types[342]; static swig_module_info swig_module = {swig_types, 341, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ #define SWIG_init Init_ctp #define SWIG_name "Ctp" static VALUE mCtp; #define SWIG_RUBY_THREAD_BEGIN_BLOCK #define SWIG_RUBY_THREAD_END_BLOCK #define SWIGVERSION 0x030012 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) #include #include "ThostFtdcUserApiDataType.h" #include "ThostFtdcUserApiStruct.h" #include "ThostFtdcTraderApi.h" #include "ThostFtdcMdApi.h" #ifdef __cplusplus extern "C" { #endif /* Ruby 1.9 changed the file name of this header */ #ifdef HAVE_RUBY_IO_H #include "ruby/io.h" #else #include "rubyio.h" #endif #ifdef __cplusplus } #endif #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_SYS_TIME_H # include struct timeval rb_time_timeval(VALUE); #endif #ifdef __cplusplus } #endif #include #if !defined(SWIG_NO_LLONG_MAX) # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) # define LLONG_MAX __LONG_LONG_MAX__ # define LLONG_MIN (-LLONG_MAX - 1LL) # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) # endif #endif #define SWIG_From_long LONG2NUM SWIGINTERNINLINE VALUE SWIG_From_int (int value) { return SWIG_From_long (value); } SWIGINTERN swig_type_info* SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } SWIGINTERNINLINE VALUE SWIG_FromCharPtrAndSize(const char* carray, size_t size) { if (carray) { if (size > LONG_MAX) { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); return pchar_descriptor ? SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil; } else { return rb_str_new(carray, static_cast< long >(size)); } } else { return Qnil; } } SWIGINTERNINLINE VALUE SWIG_From_char (char c) { return SWIG_FromCharPtrAndSize(&c,1); } SWIGINTERN VALUE SWIG_ruby_failed(void) { return Qnil; } /*@SWIG:/usr/local/Cellar/swig/3.0.12/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long *res = (long *)(args[1]); *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_long (VALUE obj, long* val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_short (VALUE obj, short *val) { long v; int res = SWIG_AsVal_long (obj, &v); if (SWIG_IsOK(res)) { if ((v < SHRT_MIN || v > SHRT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< short >(v); } } return res; } SWIGINTERNINLINE VALUE SWIG_From_short (short value) { return SWIG_From_long (value); } SWIGINTERN int SWIG_AsVal_int (VALUE obj, int *val) { long v; int res = SWIG_AsVal_long (obj, &v); if (SWIG_IsOK(res)) { if ((v < INT_MIN || v > INT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< int >(v); } } return res; } SWIGINTERN int SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) { if (TYPE(obj) == T_STRING) { char *cstr = StringValuePtr(obj); size_t size = RSTRING_LEN(obj) + 1; if (cptr) { if (alloc) { if (*alloc == SWIG_NEWOBJ) { *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size))); } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } } if (psize) *psize = size; return SWIG_OK; } else { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { void* vptr = 0; if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { if (cptr) *cptr = (char *)vptr; if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0; if (alloc) *alloc = SWIG_OLDOBJ; return SWIG_OK; } } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsCharArray(VALUE obj, char *val, size_t size) { char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); if (SWIG_IsOK(res)) { /* special case of single char conversion when we don't need space for NUL */ if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize; if (csize <= size) { if (val) { if (csize) memcpy(val, cptr, csize*sizeof(char)); if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); } if (alloc == SWIG_NEWOBJ) { delete[] cptr; res = SWIG_DelNewMask(res); } return res; } if (alloc == SWIG_NEWOBJ) delete[] cptr; } return SWIG_TypeError; } SWIGINTERN size_t SWIG_strnlen(const char* s, size_t maxlen) { const char *p; for (p = s; maxlen-- && *p; p++) ; return p - s; } SWIGINTERN int SWIG_AsVal_char (VALUE obj, char *val) { int res = SWIG_AsCharArray(obj, val, 1); if (!SWIG_IsOK(res)) { long v; res = SWIG_AddCast(SWIG_AsVal_long (obj, &v)); if (SWIG_IsOK(res)) { if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { if (val) *val = static_cast< char >(v); } else { res = SWIG_OverflowError; } } } return res; } /*@SWIG:/usr/local/Cellar/swig/3.0.12/share/swig/3.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); double *res = (double *)(args[1]); *res = NUM2DBL(obj); (void)type; return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_double (VALUE obj, double *val) { VALUE type = TYPE(obj); if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) { double v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } #define SWIG_From_double rb_float_new SWIGINTERN int SWIG_AsVal_bool (VALUE obj, bool *val) { if (obj == Qtrue) { if (val) *val = true; return SWIG_OK; } else if (obj == Qfalse) { if (val) *val = false; return SWIG_OK; } else { int res = 0; if (SWIG_AsVal_int (obj, &res) == SWIG_OK) { if (val) *val = res ? true : false; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERNINLINE VALUE SWIG_From_bool (bool value) { return value ? Qtrue : Qfalse; } SWIGINTERNINLINE VALUE SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } /* --------------------------------------------------- * C++ director class helpers * --------------------------------------------------- */ /* --------------------------------------------------- * C++ director class methods * --------------------------------------------------- */ #include "ctp.h" SwigDirector_CThostFtdcMdSpi::SwigDirector_CThostFtdcMdSpi(VALUE self): CThostFtdcMdSpi(), Swig::Director(self) { } void SwigDirector_CThostFtdcMdSpi::OnFrontConnected() { VALUE SWIGUNUSED result; result = rb_funcall(swig_get_self(), rb_intern("OnFrontConnected"), 0, NULL); } void SwigDirector_CThostFtdcMdSpi::OnFrontDisconnected(int nReason) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_From_int(static_cast< int >(nReason)); result = rb_funcall(swig_get_self(), rb_intern("OnFrontDisconnected"), 1,obj0); } void SwigDirector_CThostFtdcMdSpi::OnHeartBeatWarning(int nTimeLapse) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_From_int(static_cast< int >(nTimeLapse)); result = rb_funcall(swig_get_self(), rb_intern("OnHeartBeatWarning"), 1,obj0); } void SwigDirector_CThostFtdcMdSpi::OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspUserLogin), SWIGTYPE_p_CThostFtdcRspUserLoginField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspUserLogin"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcMdSpi::OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pUserLogout), SWIGTYPE_p_CThostFtdcUserLogoutField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspUserLogout"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcMdSpi::OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj1 = SWIG_From_int(static_cast< int >(nRequestID)); obj2 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspError"), 3,obj0,obj1,obj2); } void SwigDirector_CThostFtdcMdSpi::OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pSpecificInstrument), SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspSubMarketData"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcMdSpi::OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pSpecificInstrument), SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspUnSubMarketData"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcMdSpi::OnRspSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pSpecificInstrument), SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspSubForQuoteRsp"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcMdSpi::OnRspUnSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pSpecificInstrument), SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspUnSubForQuoteRsp"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcMdSpi::OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pDepthMarketData), SWIGTYPE_p_CThostFtdcDepthMarketDataField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnDepthMarketData"), 1,obj0); } void SwigDirector_CThostFtdcMdSpi::OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pForQuoteRsp), SWIGTYPE_p_CThostFtdcForQuoteRspField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnForQuoteRsp"), 1,obj0); } SwigDirector_CThostFtdcTraderSpi::SwigDirector_CThostFtdcTraderSpi(VALUE self): CThostFtdcTraderSpi(), Swig::Director(self) { } void SwigDirector_CThostFtdcTraderSpi::OnFrontConnected() { VALUE SWIGUNUSED result; result = rb_funcall(swig_get_self(), rb_intern("OnFrontConnected"), 0, NULL); } void SwigDirector_CThostFtdcTraderSpi::OnFrontDisconnected(int nReason) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_From_int(static_cast< int >(nReason)); result = rb_funcall(swig_get_self(), rb_intern("OnFrontDisconnected"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnHeartBeatWarning(int nTimeLapse) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_From_int(static_cast< int >(nTimeLapse)); result = rb_funcall(swig_get_self(), rb_intern("OnHeartBeatWarning"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRspAuthenticate(CThostFtdcRspAuthenticateField *pRspAuthenticateField, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspAuthenticateField), SWIGTYPE_p_CThostFtdcRspAuthenticateField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspAuthenticate"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspUserLogin), SWIGTYPE_p_CThostFtdcRspUserLoginField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspUserLogin"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pUserLogout), SWIGTYPE_p_CThostFtdcUserLogoutField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspUserLogout"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pUserPasswordUpdate), SWIGTYPE_p_CThostFtdcUserPasswordUpdateField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspUserPasswordUpdate"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pTradingAccountPasswordUpdate), SWIGTYPE_p_CThostFtdcTradingAccountPasswordUpdateField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspTradingAccountPasswordUpdate"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputOrder), SWIGTYPE_p_CThostFtdcInputOrderField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspOrderInsert"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pParkedOrder), SWIGTYPE_p_CThostFtdcParkedOrderField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspParkedOrderInsert"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pParkedOrderAction), SWIGTYPE_p_CThostFtdcParkedOrderActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspParkedOrderAction"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputOrderAction), SWIGTYPE_p_CThostFtdcInputOrderActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspOrderAction"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pQueryMaxOrderVolume), SWIGTYPE_p_CThostFtdcQueryMaxOrderVolumeField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQueryMaxOrderVolume"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pSettlementInfoConfirm), SWIGTYPE_p_CThostFtdcSettlementInfoConfirmField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspSettlementInfoConfirm"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRemoveParkedOrder), SWIGTYPE_p_CThostFtdcRemoveParkedOrderField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspRemoveParkedOrder"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRemoveParkedOrderAction), SWIGTYPE_p_CThostFtdcRemoveParkedOrderActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspRemoveParkedOrderAction"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputExecOrder), SWIGTYPE_p_CThostFtdcInputExecOrderField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspExecOrderInsert"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputExecOrderAction), SWIGTYPE_p_CThostFtdcInputExecOrderActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspExecOrderAction"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputForQuote), SWIGTYPE_p_CThostFtdcInputForQuoteField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspForQuoteInsert"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputQuote), SWIGTYPE_p_CThostFtdcInputQuoteField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQuoteInsert"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputQuoteAction), SWIGTYPE_p_CThostFtdcInputQuoteActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQuoteAction"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputCombAction), SWIGTYPE_p_CThostFtdcInputCombActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspCombActionInsert"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryOrder(CThostFtdcOrderField *pOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pOrder), SWIGTYPE_p_CThostFtdcOrderField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryOrder"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryTrade(CThostFtdcTradeField *pTrade, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pTrade), SWIGTYPE_p_CThostFtdcTradeField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryTrade"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryInvestorPosition(CThostFtdcInvestorPositionField *pInvestorPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInvestorPosition), SWIGTYPE_p_CThostFtdcInvestorPositionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryInvestorPosition"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pTradingAccount), SWIGTYPE_p_CThostFtdcTradingAccountField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryTradingAccount"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryInvestor(CThostFtdcInvestorField *pInvestor, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInvestor), SWIGTYPE_p_CThostFtdcInvestorField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryInvestor"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryTradingCode(CThostFtdcTradingCodeField *pTradingCode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pTradingCode), SWIGTYPE_p_CThostFtdcTradingCodeField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryTradingCode"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryInstrumentMarginRate(CThostFtdcInstrumentMarginRateField *pInstrumentMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInstrumentMarginRate), SWIGTYPE_p_CThostFtdcInstrumentMarginRateField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryInstrumentMarginRate"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryInstrumentCommissionRate(CThostFtdcInstrumentCommissionRateField *pInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInstrumentCommissionRate), SWIGTYPE_p_CThostFtdcInstrumentCommissionRateField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryInstrumentCommissionRate"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryExchange(CThostFtdcExchangeField *pExchange, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pExchange), SWIGTYPE_p_CThostFtdcExchangeField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryExchange"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryProduct(CThostFtdcProductField *pProduct, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pProduct), SWIGTYPE_p_CThostFtdcProductField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryProduct"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryInstrument(CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInstrument), SWIGTYPE_p_CThostFtdcInstrumentField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryInstrument"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pDepthMarketData), SWIGTYPE_p_CThostFtdcDepthMarketDataField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryDepthMarketData"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQrySettlementInfo(CThostFtdcSettlementInfoField *pSettlementInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pSettlementInfo), SWIGTYPE_p_CThostFtdcSettlementInfoField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQrySettlementInfo"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryTransferBank(CThostFtdcTransferBankField *pTransferBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pTransferBank), SWIGTYPE_p_CThostFtdcTransferBankField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryTransferBank"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryInvestorPositionDetail(CThostFtdcInvestorPositionDetailField *pInvestorPositionDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInvestorPositionDetail), SWIGTYPE_p_CThostFtdcInvestorPositionDetailField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryInvestorPositionDetail"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryNotice(CThostFtdcNoticeField *pNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pNotice), SWIGTYPE_p_CThostFtdcNoticeField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryNotice"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQrySettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pSettlementInfoConfirm), SWIGTYPE_p_CThostFtdcSettlementInfoConfirmField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQrySettlementInfoConfirm"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryInvestorPositionCombineDetail(CThostFtdcInvestorPositionCombineDetailField *pInvestorPositionCombineDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInvestorPositionCombineDetail), SWIGTYPE_p_CThostFtdcInvestorPositionCombineDetailField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryInvestorPositionCombineDetail"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryCFMMCTradingAccountKey(CThostFtdcCFMMCTradingAccountKeyField *pCFMMCTradingAccountKey, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pCFMMCTradingAccountKey), SWIGTYPE_p_CThostFtdcCFMMCTradingAccountKeyField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryCFMMCTradingAccountKey"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryEWarrantOffset(CThostFtdcEWarrantOffsetField *pEWarrantOffset, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pEWarrantOffset), SWIGTYPE_p_CThostFtdcEWarrantOffsetField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryEWarrantOffset"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryInvestorProductGroupMargin(CThostFtdcInvestorProductGroupMarginField *pInvestorProductGroupMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInvestorProductGroupMargin), SWIGTYPE_p_CThostFtdcInvestorProductGroupMarginField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryInvestorProductGroupMargin"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryExchangeMarginRate(CThostFtdcExchangeMarginRateField *pExchangeMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pExchangeMarginRate), SWIGTYPE_p_CThostFtdcExchangeMarginRateField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryExchangeMarginRate"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryExchangeMarginRateAdjust(CThostFtdcExchangeMarginRateAdjustField *pExchangeMarginRateAdjust, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pExchangeMarginRateAdjust), SWIGTYPE_p_CThostFtdcExchangeMarginRateAdjustField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryExchangeMarginRateAdjust"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryExchangeRate(CThostFtdcExchangeRateField *pExchangeRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pExchangeRate), SWIGTYPE_p_CThostFtdcExchangeRateField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryExchangeRate"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQrySecAgentACIDMap(CThostFtdcSecAgentACIDMapField *pSecAgentACIDMap, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pSecAgentACIDMap), SWIGTYPE_p_CThostFtdcSecAgentACIDMapField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQrySecAgentACIDMap"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryProductExchRate(CThostFtdcProductExchRateField *pProductExchRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pProductExchRate), SWIGTYPE_p_CThostFtdcProductExchRateField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryProductExchRate"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryOptionInstrTradeCost(CThostFtdcOptionInstrTradeCostField *pOptionInstrTradeCost, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pOptionInstrTradeCost), SWIGTYPE_p_CThostFtdcOptionInstrTradeCostField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryOptionInstrTradeCost"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryOptionInstrCommRate(CThostFtdcOptionInstrCommRateField *pOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pOptionInstrCommRate), SWIGTYPE_p_CThostFtdcOptionInstrCommRateField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryOptionInstrCommRate"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryExecOrder(CThostFtdcExecOrderField *pExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pExecOrder), SWIGTYPE_p_CThostFtdcExecOrderField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryExecOrder"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryForQuote(CThostFtdcForQuoteField *pForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pForQuote), SWIGTYPE_p_CThostFtdcForQuoteField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryForQuote"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryQuote(CThostFtdcQuoteField *pQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pQuote), SWIGTYPE_p_CThostFtdcQuoteField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryQuote"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryCombInstrumentGuard(CThostFtdcCombInstrumentGuardField *pCombInstrumentGuard, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pCombInstrumentGuard), SWIGTYPE_p_CThostFtdcCombInstrumentGuardField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryCombInstrumentGuard"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryCombAction(CThostFtdcCombActionField *pCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pCombAction), SWIGTYPE_p_CThostFtdcCombActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryCombAction"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryTransferSerial(CThostFtdcTransferSerialField *pTransferSerial, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pTransferSerial), SWIGTYPE_p_CThostFtdcTransferSerialField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryTransferSerial"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryAccountregister(CThostFtdcAccountregisterField *pAccountregister, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pAccountregister), SWIGTYPE_p_CThostFtdcAccountregisterField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryAccountregister"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj1 = SWIG_From_int(static_cast< int >(nRequestID)); obj2 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspError"), 3,obj0,obj1,obj2); } void SwigDirector_CThostFtdcTraderSpi::OnRtnOrder(CThostFtdcOrderField *pOrder) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pOrder), SWIGTYPE_p_CThostFtdcOrderField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnOrder"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnTrade(CThostFtdcTradeField *pTrade) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pTrade), SWIGTYPE_p_CThostFtdcTradeField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnTrade"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputOrder), SWIGTYPE_p_CThostFtdcInputOrderField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnOrderInsert"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnOrderAction(CThostFtdcOrderActionField *pOrderAction, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pOrderAction), SWIGTYPE_p_CThostFtdcOrderActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnOrderAction"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnRtnInstrumentStatus(CThostFtdcInstrumentStatusField *pInstrumentStatus) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInstrumentStatus), SWIGTYPE_p_CThostFtdcInstrumentStatusField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnInstrumentStatus"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnTradingNotice(CThostFtdcTradingNoticeInfoField *pTradingNoticeInfo) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pTradingNoticeInfo), SWIGTYPE_p_CThostFtdcTradingNoticeInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnTradingNotice"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnErrorConditionalOrder(CThostFtdcErrorConditionalOrderField *pErrorConditionalOrder) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pErrorConditionalOrder), SWIGTYPE_p_CThostFtdcErrorConditionalOrderField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnErrorConditionalOrder"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnExecOrder(CThostFtdcExecOrderField *pExecOrder) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pExecOrder), SWIGTYPE_p_CThostFtdcExecOrderField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnExecOrder"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputExecOrder), SWIGTYPE_p_CThostFtdcInputExecOrderField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnExecOrderInsert"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnExecOrderAction(CThostFtdcExecOrderActionField *pExecOrderAction, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pExecOrderAction), SWIGTYPE_p_CThostFtdcExecOrderActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnExecOrderAction"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputForQuote), SWIGTYPE_p_CThostFtdcInputForQuoteField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnForQuoteInsert"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnRtnQuote(CThostFtdcQuoteField *pQuote) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pQuote), SWIGTYPE_p_CThostFtdcQuoteField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnQuote"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputQuote), SWIGTYPE_p_CThostFtdcInputQuoteField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnQuoteInsert"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnQuoteAction(CThostFtdcQuoteActionField *pQuoteAction, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pQuoteAction), SWIGTYPE_p_CThostFtdcQuoteActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnQuoteAction"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pForQuoteRsp), SWIGTYPE_p_CThostFtdcForQuoteRspField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnForQuoteRsp"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnCFMMCTradingAccountToken(CThostFtdcCFMMCTradingAccountTokenField *pCFMMCTradingAccountToken) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pCFMMCTradingAccountToken), SWIGTYPE_p_CThostFtdcCFMMCTradingAccountTokenField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnCFMMCTradingAccountToken"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnCombAction(CThostFtdcCombActionField *pCombAction) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pCombAction), SWIGTYPE_p_CThostFtdcCombActionField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnCombAction"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pInputCombAction), SWIGTYPE_p_CThostFtdcInputCombActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnCombActionInsert"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryContractBank(CThostFtdcContractBankField *pContractBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pContractBank), SWIGTYPE_p_CThostFtdcContractBankField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryContractBank"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryParkedOrder(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pParkedOrder), SWIGTYPE_p_CThostFtdcParkedOrderField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryParkedOrder"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pParkedOrderAction), SWIGTYPE_p_CThostFtdcParkedOrderActionField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryParkedOrderAction"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryTradingNotice(CThostFtdcTradingNoticeField *pTradingNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pTradingNotice), SWIGTYPE_p_CThostFtdcTradingNoticeField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryTradingNotice"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryBrokerTradingParams(CThostFtdcBrokerTradingParamsField *pBrokerTradingParams, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pBrokerTradingParams), SWIGTYPE_p_CThostFtdcBrokerTradingParamsField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryBrokerTradingParams"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQryBrokerTradingAlgos(CThostFtdcBrokerTradingAlgosField *pBrokerTradingAlgos, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pBrokerTradingAlgos), SWIGTYPE_p_CThostFtdcBrokerTradingAlgosField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQryBrokerTradingAlgos"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pQueryCFMMCTradingAccountToken), SWIGTYPE_p_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQueryCFMMCTradingAccountToken"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRtnFromBankToFutureByBank(CThostFtdcRspTransferField *pRspTransfer) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspTransfer), SWIGTYPE_p_CThostFtdcRspTransferField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnFromBankToFutureByBank"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnFromFutureToBankByBank(CThostFtdcRspTransferField *pRspTransfer) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspTransfer), SWIGTYPE_p_CThostFtdcRspTransferField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnFromFutureToBankByBank"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnRepealFromBankToFutureByBank(CThostFtdcRspRepealField *pRspRepeal) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspRepeal), SWIGTYPE_p_CThostFtdcRspRepealField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnRepealFromBankToFutureByBank"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnRepealFromFutureToBankByBank(CThostFtdcRspRepealField *pRspRepeal) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspRepeal), SWIGTYPE_p_CThostFtdcRspRepealField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnRepealFromFutureToBankByBank"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnFromBankToFutureByFuture(CThostFtdcRspTransferField *pRspTransfer) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspTransfer), SWIGTYPE_p_CThostFtdcRspTransferField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnFromBankToFutureByFuture"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnFromFutureToBankByFuture(CThostFtdcRspTransferField *pRspTransfer) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspTransfer), SWIGTYPE_p_CThostFtdcRspTransferField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnFromFutureToBankByFuture"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnRepealFromBankToFutureByFutureManual(CThostFtdcRspRepealField *pRspRepeal) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspRepeal), SWIGTYPE_p_CThostFtdcRspRepealField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnRepealFromBankToFutureByFutureManual"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnRepealFromFutureToBankByFutureManual(CThostFtdcRspRepealField *pRspRepeal) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspRepeal), SWIGTYPE_p_CThostFtdcRspRepealField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnRepealFromFutureToBankByFutureManual"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnQueryBankBalanceByFuture(CThostFtdcNotifyQueryAccountField *pNotifyQueryAccount) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pNotifyQueryAccount), SWIGTYPE_p_CThostFtdcNotifyQueryAccountField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnQueryBankBalanceByFuture"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pReqTransfer), SWIGTYPE_p_CThostFtdcReqTransferField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnBankToFutureByFuture"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pReqTransfer), SWIGTYPE_p_CThostFtdcReqTransferField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnFutureToBankByFuture"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnRepealBankToFutureByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pReqRepeal), SWIGTYPE_p_CThostFtdcReqRepealField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnRepealBankToFutureByFutureManual"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnRepealFutureToBankByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pReqRepeal), SWIGTYPE_p_CThostFtdcReqRepealField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnRepealFutureToBankByFutureManual"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnErrRtnQueryBankBalanceByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pReqQueryAccount), SWIGTYPE_p_CThostFtdcReqQueryAccountField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnErrRtnQueryBankBalanceByFuture"), 2,obj0,obj1); } void SwigDirector_CThostFtdcTraderSpi::OnRtnRepealFromBankToFutureByFuture(CThostFtdcRspRepealField *pRspRepeal) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspRepeal), SWIGTYPE_p_CThostFtdcRspRepealField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnRepealFromBankToFutureByFuture"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnRepealFromFutureToBankByFuture(CThostFtdcRspRepealField *pRspRepeal) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspRepeal), SWIGTYPE_p_CThostFtdcRspRepealField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnRepealFromFutureToBankByFuture"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRspFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pReqTransfer), SWIGTYPE_p_CThostFtdcReqTransferField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspFromBankToFutureByFuture"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pReqTransfer), SWIGTYPE_p_CThostFtdcReqTransferField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspFromFutureToBankByFuture"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRspQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) { VALUE obj0 = Qnil ; VALUE obj1 = Qnil ; VALUE obj2 = Qnil ; VALUE obj3 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pReqQueryAccount), SWIGTYPE_p_CThostFtdcReqQueryAccountField, 0 ); obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(pRspInfo), SWIGTYPE_p_CThostFtdcRspInfoField, 0 ); obj2 = SWIG_From_int(static_cast< int >(nRequestID)); obj3 = SWIG_From_bool(static_cast< bool >(bIsLast)); result = rb_funcall(swig_get_self(), rb_intern("OnRspQueryBankAccountMoneyByFuture"), 4,obj0,obj1,obj2,obj3); } void SwigDirector_CThostFtdcTraderSpi::OnRtnOpenAccountByBank(CThostFtdcOpenAccountField *pOpenAccount) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pOpenAccount), SWIGTYPE_p_CThostFtdcOpenAccountField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnOpenAccountByBank"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnCancelAccountByBank(CThostFtdcCancelAccountField *pCancelAccount) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pCancelAccount), SWIGTYPE_p_CThostFtdcCancelAccountField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnCancelAccountByBank"), 1,obj0); } void SwigDirector_CThostFtdcTraderSpi::OnRtnChangeAccountByBank(CThostFtdcChangeAccountField *pChangeAccount) { VALUE obj0 = Qnil ; VALUE SWIGUNUSED result; obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pChangeAccount), SWIGTYPE_p_CThostFtdcChangeAccountField, 0 ); result = rb_funcall(swig_get_self(), rb_intern("OnRtnChangeAccountByBank"), 1,obj0); } static swig_class SwigClassCThostFtdcDisseminationField; SWIGINTERN VALUE _wrap_CThostFtdcDisseminationField_SequenceSeries_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDisseminationField *arg1 = (CThostFtdcDisseminationField *) 0 ; TThostFtdcSequenceSeriesType arg2 ; void *argp1 = 0 ; int res1 = 0 ; short 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_CThostFtdcDisseminationField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDisseminationField *","SequenceSeries", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDisseminationField * >(argp1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceSeriesType","SequenceSeries", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceSeriesType >(val2); if (arg1) (arg1)->SequenceSeries = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDisseminationField_SequenceSeries_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDisseminationField *arg1 = (CThostFtdcDisseminationField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceSeriesType 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_CThostFtdcDisseminationField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDisseminationField *","SequenceSeries", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDisseminationField * >(argp1); result = (TThostFtdcSequenceSeriesType) ((arg1)->SequenceSeries); vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDisseminationField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDisseminationField *arg1 = (CThostFtdcDisseminationField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcDisseminationField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDisseminationField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDisseminationField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDisseminationField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDisseminationField *arg1 = (CThostFtdcDisseminationField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcDisseminationField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDisseminationField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDisseminationField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcDisseminationField_allocate(VALUE self) #else _wrap_CThostFtdcDisseminationField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcDisseminationField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcDisseminationField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcDisseminationField"; CThostFtdcDisseminationField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcDisseminationField *)new CThostFtdcDisseminationField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcDisseminationField(void *self) { CThostFtdcDisseminationField *arg1 = (CThostFtdcDisseminationField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqUserLoginField; SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_InterfaceProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","InterfaceProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","InterfaceProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InterfaceProductInfo,arg2,11*sizeof(char)); else memset(arg1->InterfaceProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_InterfaceProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","InterfaceProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); result = (char *) ((arg1)->InterfaceProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_ProtocolInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","ProtocolInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ProtocolInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProtocolInfo,arg2,11*sizeof(char)); else memset(arg1->ProtocolInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_ProtocolInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","ProtocolInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); result = (char *) ((arg1)->ProtocolInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_MacAddress_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","MacAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MacAddress", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MacAddress,arg2,21*sizeof(char)); else memset(arg1->MacAddress,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_MacAddress_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","MacAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); result = (char *) ((arg1)->MacAddress); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_OneTimePassword_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","OneTimePassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","OneTimePassword", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OneTimePassword,arg2,41*sizeof(char)); else memset(arg1->OneTimePassword,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_OneTimePassword_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","OneTimePassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); result = (char *) ((arg1)->OneTimePassword); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_ClientIPAddress_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","ClientIPAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","ClientIPAddress", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClientIPAddress,arg2,16*sizeof(char)); else memset(arg1->ClientIPAddress,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqUserLoginField_ClientIPAddress_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *) 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_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","ClientIPAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp1); result = (char *) ((arg1)->ClientIPAddress); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqUserLoginField_allocate(VALUE self) #else _wrap_CThostFtdcReqUserLoginField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqUserLoginField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqUserLoginField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqUserLoginField"; CThostFtdcReqUserLoginField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqUserLoginField *)new CThostFtdcReqUserLoginField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqUserLoginField(void *self) { CThostFtdcReqUserLoginField *arg1 = (CThostFtdcReqUserLoginField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRspUserLoginField; SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_LoginTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","LoginTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LoginTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LoginTime,arg2,9*sizeof(char)); else memset(arg1->LoginTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_LoginTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","LoginTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->LoginTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_SystemName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SystemName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","SystemName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SystemName,arg2,41*sizeof(char)); else memset(arg1->SystemName,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_SystemName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SystemName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->SystemName); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_MaxOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","MaxOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","MaxOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MaxOrderRef,arg2,13*sizeof(char)); else memset(arg1->MaxOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_MaxOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","MaxOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->MaxOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_SHFETime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SHFETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SHFETime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SHFETime,arg2,9*sizeof(char)); else memset(arg1->SHFETime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_SHFETime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SHFETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->SHFETime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_DCETime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","DCETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","DCETime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DCETime,arg2,9*sizeof(char)); else memset(arg1->DCETime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_DCETime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","DCETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->DCETime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_CZCETime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","CZCETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CZCETime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CZCETime,arg2,9*sizeof(char)); else memset(arg1->CZCETime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_CZCETime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","CZCETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->CZCETime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_FFEXTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","FFEXTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","FFEXTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FFEXTime,arg2,9*sizeof(char)); else memset(arg1->FFEXTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_FFEXTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","FFEXTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->FFEXTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_INETime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","INETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","INETime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->INETime,arg2,9*sizeof(char)); else memset(arg1->INETime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspUserLoginField_INETime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","INETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1); result = (char *) ((arg1)->INETime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRspUserLoginField_allocate(VALUE self) #else _wrap_CThostFtdcRspUserLoginField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRspUserLoginField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRspUserLoginField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspUserLoginField"; CThostFtdcRspUserLoginField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRspUserLoginField *)new CThostFtdcRspUserLoginField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRspUserLoginField(void *self) { CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *)self; delete arg1; } static swig_class SwigClassCThostFtdcUserLogoutField; SWIGINTERN VALUE _wrap_CThostFtdcUserLogoutField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserLogoutField *arg1 = (CThostFtdcUserLogoutField *) 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_CThostFtdcUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserLogoutField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserLogoutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcUserLogoutField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserLogoutField *arg1 = (CThostFtdcUserLogoutField *) 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_CThostFtdcUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserLogoutField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserLogoutField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserLogoutField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserLogoutField *arg1 = (CThostFtdcUserLogoutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserLogoutField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserLogoutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserLogoutField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserLogoutField *arg1 = (CThostFtdcUserLogoutField *) 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_CThostFtdcUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserLogoutField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserLogoutField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcUserLogoutField_allocate(VALUE self) #else _wrap_CThostFtdcUserLogoutField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcUserLogoutField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcUserLogoutField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcUserLogoutField"; CThostFtdcUserLogoutField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcUserLogoutField *)new CThostFtdcUserLogoutField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcUserLogoutField(void *self) { CThostFtdcUserLogoutField *arg1 = (CThostFtdcUserLogoutField *)self; delete arg1; } static swig_class SwigClassCThostFtdcForceUserLogoutField; SWIGINTERN VALUE _wrap_CThostFtdcForceUserLogoutField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForceUserLogoutField *arg1 = (CThostFtdcForceUserLogoutField *) 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_CThostFtdcForceUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForceUserLogoutField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForceUserLogoutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcForceUserLogoutField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForceUserLogoutField *arg1 = (CThostFtdcForceUserLogoutField *) 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_CThostFtdcForceUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForceUserLogoutField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForceUserLogoutField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForceUserLogoutField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForceUserLogoutField *arg1 = (CThostFtdcForceUserLogoutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcForceUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForceUserLogoutField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForceUserLogoutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForceUserLogoutField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForceUserLogoutField *arg1 = (CThostFtdcForceUserLogoutField *) 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_CThostFtdcForceUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForceUserLogoutField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForceUserLogoutField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcForceUserLogoutField_allocate(VALUE self) #else _wrap_CThostFtdcForceUserLogoutField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcForceUserLogoutField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcForceUserLogoutField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcForceUserLogoutField"; CThostFtdcForceUserLogoutField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcForceUserLogoutField *)new CThostFtdcForceUserLogoutField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcForceUserLogoutField(void *self) { CThostFtdcForceUserLogoutField *arg1 = (CThostFtdcForceUserLogoutField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqAuthenticateField; SWIGINTERN VALUE _wrap_CThostFtdcReqAuthenticateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqAuthenticateField *arg1 = (CThostFtdcReqAuthenticateField *) 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_CThostFtdcReqAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqAuthenticateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqAuthenticateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqAuthenticateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqAuthenticateField *arg1 = (CThostFtdcReqAuthenticateField *) 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_CThostFtdcReqAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqAuthenticateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqAuthenticateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqAuthenticateField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqAuthenticateField *arg1 = (CThostFtdcReqAuthenticateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcReqAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqAuthenticateField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqAuthenticateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqAuthenticateField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqAuthenticateField *arg1 = (CThostFtdcReqAuthenticateField *) 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_CThostFtdcReqAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqAuthenticateField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqAuthenticateField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqAuthenticateField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqAuthenticateField *arg1 = (CThostFtdcReqAuthenticateField *) 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_CThostFtdcReqAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqAuthenticateField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqAuthenticateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqAuthenticateField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqAuthenticateField *arg1 = (CThostFtdcReqAuthenticateField *) 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_CThostFtdcReqAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqAuthenticateField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqAuthenticateField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqAuthenticateField_AuthCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqAuthenticateField *arg1 = (CThostFtdcReqAuthenticateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcReqAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqAuthenticateField *","AuthCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqAuthenticateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","AuthCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AuthCode,arg2,17*sizeof(char)); else memset(arg1->AuthCode,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqAuthenticateField_AuthCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqAuthenticateField *arg1 = (CThostFtdcReqAuthenticateField *) 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_CThostFtdcReqAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqAuthenticateField *","AuthCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqAuthenticateField * >(argp1); result = (char *) ((arg1)->AuthCode); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqAuthenticateField_allocate(VALUE self) #else _wrap_CThostFtdcReqAuthenticateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqAuthenticateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqAuthenticateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqAuthenticateField"; CThostFtdcReqAuthenticateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqAuthenticateField *)new CThostFtdcReqAuthenticateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqAuthenticateField(void *self) { CThostFtdcReqAuthenticateField *arg1 = (CThostFtdcReqAuthenticateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRspAuthenticateField; SWIGINTERN VALUE _wrap_CThostFtdcRspAuthenticateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspAuthenticateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspAuthenticateField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcRspAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspAuthenticateField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspAuthenticateField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspAuthenticateField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRspAuthenticateField_allocate(VALUE self) #else _wrap_CThostFtdcRspAuthenticateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRspAuthenticateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRspAuthenticateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspAuthenticateField"; CThostFtdcRspAuthenticateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRspAuthenticateField *)new CThostFtdcRspAuthenticateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRspAuthenticateField(void *self) { CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcAuthenticationInfoField; SWIGINTERN VALUE _wrap_CThostFtdcAuthenticationInfoField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *) 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_CThostFtdcAuthenticationInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAuthenticationInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAuthenticationInfoField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcAuthenticationInfoField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *) 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_CThostFtdcAuthenticationInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAuthenticationInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAuthenticationInfoField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAuthenticationInfoField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcAuthenticationInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAuthenticationInfoField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAuthenticationInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAuthenticationInfoField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *) 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_CThostFtdcAuthenticationInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAuthenticationInfoField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAuthenticationInfoField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAuthenticationInfoField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *) 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_CThostFtdcAuthenticationInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAuthenticationInfoField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAuthenticationInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAuthenticationInfoField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *) 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_CThostFtdcAuthenticationInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAuthenticationInfoField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAuthenticationInfoField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAuthenticationInfoField_AuthInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcAuthenticationInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAuthenticationInfoField *","AuthInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAuthenticationInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","AuthInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AuthInfo,arg2,129*sizeof(char)); else memset(arg1->AuthInfo,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAuthenticationInfoField_AuthInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *) 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_CThostFtdcAuthenticationInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAuthenticationInfoField *","AuthInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAuthenticationInfoField * >(argp1); result = (char *) ((arg1)->AuthInfo); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAuthenticationInfoField_IsResult_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *) 0 ; TThostFtdcBoolType 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_CThostFtdcAuthenticationInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAuthenticationInfoField *","IsResult", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAuthenticationInfoField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsResult", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsResult = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAuthenticationInfoField_IsResult_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcAuthenticationInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAuthenticationInfoField *","IsResult", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAuthenticationInfoField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsResult); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcAuthenticationInfoField_allocate(VALUE self) #else _wrap_CThostFtdcAuthenticationInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcAuthenticationInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcAuthenticationInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcAuthenticationInfoField"; CThostFtdcAuthenticationInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcAuthenticationInfoField *)new CThostFtdcAuthenticationInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcAuthenticationInfoField(void *self) { CThostFtdcAuthenticationInfoField *arg1 = (CThostFtdcAuthenticationInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferHeaderField; SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_Version_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","Version", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","Version", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Version,arg2,4*sizeof(char)); else memset(arg1->Version,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_Version_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","Version", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->Version); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_TradeSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","TradeSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeSerial,arg2,9*sizeof(char)); else memset(arg1->TradeSerial,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_TradeSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","TradeSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->TradeSerial); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_FutureID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","FutureID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","FutureID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureID,arg2,11*sizeof(char)); else memset(arg1->FutureID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_FutureID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","FutureID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->FutureID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_BankBrchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBrchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBrchID,arg2,5*sizeof(char)); else memset(arg1->BankBrchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_BankBrchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->BankBrchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_RecordNum_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","RecordNum", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","RecordNum", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RecordNum,arg2,7*sizeof(char)); else memset(arg1->RecordNum,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_RecordNum_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","RecordNum", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (char *) ((arg1)->RecordNum); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferHeaderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcTransferHeaderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferHeaderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferHeaderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferHeaderField_allocate(VALUE self) #else _wrap_CThostFtdcTransferHeaderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferHeaderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferHeaderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferHeaderField"; CThostFtdcTransferHeaderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferHeaderField *)new CThostFtdcTransferHeaderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferHeaderField(void *self) { CThostFtdcTransferHeaderField *arg1 = (CThostFtdcTransferHeaderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferBankToFutureReqField; SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_FutureAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","FutureAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccount,arg2,13*sizeof(char)); else memset(arg1->FutureAccount,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_FutureAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); result = (char *) ((arg1)->FutureAccount); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_FuturePwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 0 ; TThostFtdcFuturePwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","FuturePwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFuturePwdFlagType","FuturePwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFuturePwdFlagType >(val2); if (arg1) (arg1)->FuturePwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_FuturePwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFuturePwdFlagType 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","FuturePwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); result = (TThostFtdcFuturePwdFlagType) ((arg1)->FuturePwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_FutureAccPwd_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","FutureAccPwd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","FutureAccPwd", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccPwd,arg2,17*sizeof(char)); else memset(arg1->FutureAccPwd,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_FutureAccPwd_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","FutureAccPwd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); result = (char *) ((arg1)->FutureAccPwd); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_TradeAmt_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","TradeAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","TradeAmt", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->TradeAmt = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_TradeAmt_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","TradeAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->TradeAmt); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_CustFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CustFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CustFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_CustFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CustFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_CurrencyCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyCode,arg2,4*sizeof(char)); else memset(arg1->CurrencyCode,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureReqField_CurrencyCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *) 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_CThostFtdcTransferBankToFutureReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureReqField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureReqField * >(argp1); result = (char *) ((arg1)->CurrencyCode); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferBankToFutureReqField_allocate(VALUE self) #else _wrap_CThostFtdcTransferBankToFutureReqField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferBankToFutureReqField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferBankToFutureReqField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferBankToFutureReqField"; CThostFtdcTransferBankToFutureReqField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferBankToFutureReqField *)new CThostFtdcTransferBankToFutureReqField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferBankToFutureReqField(void *self) { CThostFtdcTransferBankToFutureReqField *arg1 = (CThostFtdcTransferBankToFutureReqField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferBankToFutureRspField; SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_RetCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","RetCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","RetCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RetCode,arg2,5*sizeof(char)); else memset(arg1->RetCode,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_RetCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","RetCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); result = (char *) ((arg1)->RetCode); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_RetInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","RetInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","RetInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RetInfo,arg2,129*sizeof(char)); else memset(arg1->RetInfo,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_RetInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","RetInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); result = (char *) ((arg1)->RetInfo); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_FutureAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","FutureAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccount,arg2,13*sizeof(char)); else memset(arg1->FutureAccount,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_FutureAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); result = (char *) ((arg1)->FutureAccount); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_TradeAmt_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","TradeAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","TradeAmt", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->TradeAmt = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_TradeAmt_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","TradeAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->TradeAmt); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_CustFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CustFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CustFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_CustFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CustFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_CurrencyCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyCode,arg2,4*sizeof(char)); else memset(arg1->CurrencyCode,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankToFutureRspField_CurrencyCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *) 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_CThostFtdcTransferBankToFutureRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankToFutureRspField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankToFutureRspField * >(argp1); result = (char *) ((arg1)->CurrencyCode); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferBankToFutureRspField_allocate(VALUE self) #else _wrap_CThostFtdcTransferBankToFutureRspField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferBankToFutureRspField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferBankToFutureRspField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferBankToFutureRspField"; CThostFtdcTransferBankToFutureRspField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferBankToFutureRspField *)new CThostFtdcTransferBankToFutureRspField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferBankToFutureRspField(void *self) { CThostFtdcTransferBankToFutureRspField *arg1 = (CThostFtdcTransferBankToFutureRspField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferFutureToBankReqField; SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_FutureAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","FutureAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccount,arg2,13*sizeof(char)); else memset(arg1->FutureAccount,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_FutureAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); result = (char *) ((arg1)->FutureAccount); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_FuturePwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 0 ; TThostFtdcFuturePwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","FuturePwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFuturePwdFlagType","FuturePwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFuturePwdFlagType >(val2); if (arg1) (arg1)->FuturePwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_FuturePwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFuturePwdFlagType 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","FuturePwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); result = (TThostFtdcFuturePwdFlagType) ((arg1)->FuturePwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_FutureAccPwd_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","FutureAccPwd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","FutureAccPwd", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccPwd,arg2,17*sizeof(char)); else memset(arg1->FutureAccPwd,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_FutureAccPwd_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","FutureAccPwd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); result = (char *) ((arg1)->FutureAccPwd); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_TradeAmt_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","TradeAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","TradeAmt", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->TradeAmt = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_TradeAmt_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","TradeAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->TradeAmt); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_CustFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CustFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CustFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_CustFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CustFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_CurrencyCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyCode,arg2,4*sizeof(char)); else memset(arg1->CurrencyCode,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankReqField_CurrencyCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *) 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_CThostFtdcTransferFutureToBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankReqField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankReqField * >(argp1); result = (char *) ((arg1)->CurrencyCode); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferFutureToBankReqField_allocate(VALUE self) #else _wrap_CThostFtdcTransferFutureToBankReqField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferFutureToBankReqField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferFutureToBankReqField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferFutureToBankReqField"; CThostFtdcTransferFutureToBankReqField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferFutureToBankReqField *)new CThostFtdcTransferFutureToBankReqField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferFutureToBankReqField(void *self) { CThostFtdcTransferFutureToBankReqField *arg1 = (CThostFtdcTransferFutureToBankReqField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferFutureToBankRspField; SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_RetCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","RetCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","RetCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RetCode,arg2,5*sizeof(char)); else memset(arg1->RetCode,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_RetCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","RetCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); result = (char *) ((arg1)->RetCode); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_RetInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","RetInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","RetInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RetInfo,arg2,129*sizeof(char)); else memset(arg1->RetInfo,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_RetInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","RetInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); result = (char *) ((arg1)->RetInfo); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_FutureAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","FutureAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccount,arg2,13*sizeof(char)); else memset(arg1->FutureAccount,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_FutureAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); result = (char *) ((arg1)->FutureAccount); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_TradeAmt_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","TradeAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","TradeAmt", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->TradeAmt = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_TradeAmt_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","TradeAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->TradeAmt); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_CustFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CustFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CustFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_CustFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CustFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_CurrencyCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyCode,arg2,4*sizeof(char)); else memset(arg1->CurrencyCode,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferFutureToBankRspField_CurrencyCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *) 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_CThostFtdcTransferFutureToBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferFutureToBankRspField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferFutureToBankRspField * >(argp1); result = (char *) ((arg1)->CurrencyCode); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferFutureToBankRspField_allocate(VALUE self) #else _wrap_CThostFtdcTransferFutureToBankRspField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferFutureToBankRspField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferFutureToBankRspField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferFutureToBankRspField"; CThostFtdcTransferFutureToBankRspField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferFutureToBankRspField *)new CThostFtdcTransferFutureToBankRspField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferFutureToBankRspField(void *self) { CThostFtdcTransferFutureToBankRspField *arg1 = (CThostFtdcTransferFutureToBankRspField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferQryBankReqField; SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankReqField_FutureAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankReqField *arg1 = (CThostFtdcTransferQryBankReqField *) 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_CThostFtdcTransferQryBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankReqField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankReqField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","FutureAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccount,arg2,13*sizeof(char)); else memset(arg1->FutureAccount,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankReqField_FutureAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankReqField *arg1 = (CThostFtdcTransferQryBankReqField *) 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_CThostFtdcTransferQryBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankReqField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankReqField * >(argp1); result = (char *) ((arg1)->FutureAccount); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankReqField_FuturePwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankReqField *arg1 = (CThostFtdcTransferQryBankReqField *) 0 ; TThostFtdcFuturePwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTransferQryBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankReqField *","FuturePwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankReqField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFuturePwdFlagType","FuturePwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFuturePwdFlagType >(val2); if (arg1) (arg1)->FuturePwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankReqField_FuturePwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankReqField *arg1 = (CThostFtdcTransferQryBankReqField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFuturePwdFlagType 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_CThostFtdcTransferQryBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankReqField *","FuturePwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankReqField * >(argp1); result = (TThostFtdcFuturePwdFlagType) ((arg1)->FuturePwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankReqField_FutureAccPwd_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankReqField *arg1 = (CThostFtdcTransferQryBankReqField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcTransferQryBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankReqField *","FutureAccPwd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankReqField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","FutureAccPwd", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccPwd,arg2,17*sizeof(char)); else memset(arg1->FutureAccPwd,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankReqField_FutureAccPwd_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankReqField *arg1 = (CThostFtdcTransferQryBankReqField *) 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_CThostFtdcTransferQryBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankReqField *","FutureAccPwd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankReqField * >(argp1); result = (char *) ((arg1)->FutureAccPwd); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankReqField_CurrencyCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankReqField *arg1 = (CThostFtdcTransferQryBankReqField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferQryBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankReqField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankReqField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyCode,arg2,4*sizeof(char)); else memset(arg1->CurrencyCode,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankReqField_CurrencyCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankReqField *arg1 = (CThostFtdcTransferQryBankReqField *) 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_CThostFtdcTransferQryBankReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankReqField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankReqField * >(argp1); result = (char *) ((arg1)->CurrencyCode); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferQryBankReqField_allocate(VALUE self) #else _wrap_CThostFtdcTransferQryBankReqField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferQryBankReqField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferQryBankReqField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferQryBankReqField"; CThostFtdcTransferQryBankReqField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferQryBankReqField *)new CThostFtdcTransferQryBankReqField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferQryBankReqField(void *self) { CThostFtdcTransferQryBankReqField *arg1 = (CThostFtdcTransferQryBankReqField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferQryBankRspField; SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_RetCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","RetCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","RetCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RetCode,arg2,5*sizeof(char)); else memset(arg1->RetCode,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_RetCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","RetCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); result = (char *) ((arg1)->RetCode); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_RetInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","RetInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","RetInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RetInfo,arg2,129*sizeof(char)); else memset(arg1->RetInfo,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_RetInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","RetInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); result = (char *) ((arg1)->RetInfo); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_FutureAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","FutureAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccount,arg2,13*sizeof(char)); else memset(arg1->FutureAccount,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_FutureAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); result = (char *) ((arg1)->FutureAccount); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_TradeAmt_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","TradeAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","TradeAmt", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->TradeAmt = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_TradeAmt_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","TradeAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->TradeAmt); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_UseAmt_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","UseAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","UseAmt", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->UseAmt = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_UseAmt_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","UseAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->UseAmt); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_FetchAmt_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","FetchAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FetchAmt", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FetchAmt = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_FetchAmt_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","FetchAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FetchAmt); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_CurrencyCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyCode,arg2,4*sizeof(char)); else memset(arg1->CurrencyCode,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryBankRspField_CurrencyCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *) 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_CThostFtdcTransferQryBankRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryBankRspField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryBankRspField * >(argp1); result = (char *) ((arg1)->CurrencyCode); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferQryBankRspField_allocate(VALUE self) #else _wrap_CThostFtdcTransferQryBankRspField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferQryBankRspField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferQryBankRspField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferQryBankRspField"; CThostFtdcTransferQryBankRspField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferQryBankRspField *)new CThostFtdcTransferQryBankRspField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferQryBankRspField(void *self) { CThostFtdcTransferQryBankRspField *arg1 = (CThostFtdcTransferQryBankRspField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferQryDetailReqField; SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailReqField_FutureAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailReqField *arg1 = (CThostFtdcTransferQryDetailReqField *) 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_CThostFtdcTransferQryDetailReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailReqField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailReqField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","FutureAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccount,arg2,13*sizeof(char)); else memset(arg1->FutureAccount,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailReqField_FutureAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailReqField *arg1 = (CThostFtdcTransferQryDetailReqField *) 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_CThostFtdcTransferQryDetailReqField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailReqField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailReqField * >(argp1); result = (char *) ((arg1)->FutureAccount); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferQryDetailReqField_allocate(VALUE self) #else _wrap_CThostFtdcTransferQryDetailReqField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferQryDetailReqField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferQryDetailReqField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferQryDetailReqField"; CThostFtdcTransferQryDetailReqField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferQryDetailReqField *)new CThostFtdcTransferQryDetailReqField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferQryDetailReqField(void *self) { CThostFtdcTransferQryDetailReqField *arg1 = (CThostFtdcTransferQryDetailReqField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferQryDetailRspField; SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_FutureSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; TThostFtdcTradeSerialNoType 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeSerialNoType","FutureSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeSerialNoType >(val2); if (arg1) (arg1)->FutureSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_FutureSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeSerialNoType 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (TThostFtdcTradeSerialNoType) ((arg1)->FutureSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_FutureID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","FutureID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","FutureID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureID,arg2,11*sizeof(char)); else memset(arg1->FutureID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_FutureID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","FutureID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (char *) ((arg1)->FutureID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_FutureAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[22] ; 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 22); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [22]","FutureAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FutureAccount,arg2,22*sizeof(char)); else memset(arg1->FutureAccount,0,22*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_FutureAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","FutureAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (char *) ((arg1)->FutureAccount); { size_t size = SWIG_strnlen(result, 22); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; TThostFtdcTradeSerialNoType 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeSerialNoType","BankSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeSerialNoType >(val2); if (arg1) (arg1)->BankSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeSerialNoType 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (TThostFtdcTradeSerialNoType) ((arg1)->BankSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_BankBrchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBrchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBrchID,arg2,5*sizeof(char)); else memset(arg1->BankBrchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_BankBrchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (char *) ((arg1)->BankBrchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_CertCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","CertCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CertCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CertCode,arg2,21*sizeof(char)); else memset(arg1->CertCode,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_CertCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","CertCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (char *) ((arg1)->CertCode); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_CurrencyCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyCode,arg2,4*sizeof(char)); else memset(arg1->CurrencyCode,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_CurrencyCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","CurrencyCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (char *) ((arg1)->CurrencyCode); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_TxAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","TxAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","TxAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->TxAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_TxAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","TxAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->TxAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_Flag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; TThostFtdcTransferValidFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","Flag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTransferValidFlagType","Flag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTransferValidFlagType >(val2); if (arg1) (arg1)->Flag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferQryDetailRspField_Flag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTransferValidFlagType 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_CThostFtdcTransferQryDetailRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferQryDetailRspField *","Flag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferQryDetailRspField * >(argp1); result = (TThostFtdcTransferValidFlagType) ((arg1)->Flag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferQryDetailRspField_allocate(VALUE self) #else _wrap_CThostFtdcTransferQryDetailRspField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferQryDetailRspField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferQryDetailRspField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferQryDetailRspField"; CThostFtdcTransferQryDetailRspField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferQryDetailRspField *)new CThostFtdcTransferQryDetailRspField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferQryDetailRspField(void *self) { CThostFtdcTransferQryDetailRspField *arg1 = (CThostFtdcTransferQryDetailRspField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRspInfoField; SWIGINTERN VALUE _wrap_CThostFtdcRspInfoField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspInfoField *arg1 = (CThostFtdcRspInfoField *) 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_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspInfoField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspInfoField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspInfoField *arg1 = (CThostFtdcRspInfoField *) 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_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspInfoField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspInfoField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspInfoField *arg1 = (CThostFtdcRspInfoField *) 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_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspInfoField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspInfoField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspInfoField *arg1 = (CThostFtdcRspInfoField *) 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_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspInfoField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRspInfoField_allocate(VALUE self) #else _wrap_CThostFtdcRspInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRspInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRspInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspInfoField"; CThostFtdcRspInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRspInfoField *)new CThostFtdcRspInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRspInfoField(void *self) { CThostFtdcRspInfoField *arg1 = (CThostFtdcRspInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeField *arg1 = (CThostFtdcExchangeField *) 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_CThostFtdcExchangeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeField *arg1 = (CThostFtdcExchangeField *) 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_CThostFtdcExchangeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeField_ExchangeName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeField *arg1 = (CThostFtdcExchangeField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[61] ; 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_CThostFtdcExchangeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeField *","ExchangeName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 61); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [61]","ExchangeName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExchangeName,arg2,61*sizeof(char)); else memset(arg1->ExchangeName,0,61*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeField_ExchangeName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeField *arg1 = (CThostFtdcExchangeField *) 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_CThostFtdcExchangeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeField *","ExchangeName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeField * >(argp1); result = (char *) ((arg1)->ExchangeName); { size_t size = SWIG_strnlen(result, 61); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeField_ExchangeProperty_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeField *arg1 = (CThostFtdcExchangeField *) 0 ; TThostFtdcExchangePropertyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeField *","ExchangeProperty", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExchangePropertyType","ExchangeProperty", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExchangePropertyType >(val2); if (arg1) (arg1)->ExchangeProperty = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeField_ExchangeProperty_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeField *arg1 = (CThostFtdcExchangeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExchangePropertyType 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_CThostFtdcExchangeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeField *","ExchangeProperty", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeField * >(argp1); result = (TThostFtdcExchangePropertyType) ((arg1)->ExchangeProperty); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeField"; CThostFtdcExchangeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeField *)new CThostFtdcExchangeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeField(void *self) { CThostFtdcExchangeField *arg1 = (CThostFtdcExchangeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcProductField; SWIGINTERN VALUE _wrap_CThostFtdcProductField_ProductID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProductID,arg2,31*sizeof(char)); else memset(arg1->ProductID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_ProductID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (char *) ((arg1)->ProductID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_ProductName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","ProductName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ProductName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProductName,arg2,21*sizeof(char)); else memset(arg1->ProductName,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_ProductName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","ProductName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (char *) ((arg1)->ProductName); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_ProductClass_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcProductClassType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","ProductClass", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcProductClassType","ProductClass", 2, argv[0] )); } arg2 = static_cast< TThostFtdcProductClassType >(val2); if (arg1) (arg1)->ProductClass = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_ProductClass_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcProductClassType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","ProductClass", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcProductClassType) ((arg1)->ProductClass); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_VolumeMultiple_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcVolumeMultipleType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","VolumeMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeMultipleType","VolumeMultiple", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeMultipleType >(val2); if (arg1) (arg1)->VolumeMultiple = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_VolumeMultiple_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeMultipleType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","VolumeMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcVolumeMultipleType) ((arg1)->VolumeMultiple); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_PriceTick_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","PriceTick", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PriceTick", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->PriceTick = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_PriceTick_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","PriceTick", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->PriceTick); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_MaxMarketOrderVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","MaxMarketOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MaxMarketOrderVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MaxMarketOrderVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_MaxMarketOrderVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","MaxMarketOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MaxMarketOrderVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_MinMarketOrderVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","MinMarketOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinMarketOrderVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MinMarketOrderVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_MinMarketOrderVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","MinMarketOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MinMarketOrderVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_MaxLimitOrderVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","MaxLimitOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MaxLimitOrderVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MaxLimitOrderVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_MaxLimitOrderVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","MaxLimitOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MaxLimitOrderVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_MinLimitOrderVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","MinLimitOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinLimitOrderVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MinLimitOrderVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_MinLimitOrderVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","MinLimitOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MinLimitOrderVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_PositionType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcPositionTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","PositionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPositionTypeType","PositionType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPositionTypeType >(val2); if (arg1) (arg1)->PositionType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_PositionType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPositionTypeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","PositionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcPositionTypeType) ((arg1)->PositionType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_PositionDateType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcPositionDateTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","PositionDateType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPositionDateTypeType","PositionDateType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPositionDateTypeType >(val2); if (arg1) (arg1)->PositionDateType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_PositionDateType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPositionDateTypeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","PositionDateType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcPositionDateTypeType) ((arg1)->PositionDateType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_CloseDealType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcCloseDealTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","CloseDealType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCloseDealTypeType","CloseDealType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCloseDealTypeType >(val2); if (arg1) (arg1)->CloseDealType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_CloseDealType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCloseDealTypeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","CloseDealType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcCloseDealTypeType) ((arg1)->CloseDealType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_TradeCurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","TradeCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","TradeCurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCurrencyID,arg2,4*sizeof(char)); else memset(arg1->TradeCurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_TradeCurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","TradeCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (char *) ((arg1)->TradeCurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_MortgageFundUseRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcMortgageFundUseRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","MortgageFundUseRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMortgageFundUseRangeType","MortgageFundUseRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMortgageFundUseRangeType >(val2); if (arg1) (arg1)->MortgageFundUseRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_MortgageFundUseRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMortgageFundUseRangeType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","MortgageFundUseRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcMortgageFundUseRangeType) ((arg1)->MortgageFundUseRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_ExchangeProductID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","ExchangeProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ExchangeProductID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExchangeProductID,arg2,31*sizeof(char)); else memset(arg1->ExchangeProductID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_ExchangeProductID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","ExchangeProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (char *) ((arg1)->ExchangeProductID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_UnderlyingMultiple_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; TThostFtdcUnderlyingMultipleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","UnderlyingMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcUnderlyingMultipleType","UnderlyingMultiple", 2, argv[0] )); } arg2 = static_cast< TThostFtdcUnderlyingMultipleType >(val2); if (arg1) (arg1)->UnderlyingMultiple = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductField_UnderlyingMultiple_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcUnderlyingMultipleType 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_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductField *","UnderlyingMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductField * >(argp1); result = (TThostFtdcUnderlyingMultipleType) ((arg1)->UnderlyingMultiple); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcProductField_allocate(VALUE self) #else _wrap_CThostFtdcProductField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcProductField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcProductField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcProductField"; CThostFtdcProductField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcProductField *)new CThostFtdcProductField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcProductField(void *self) { CThostFtdcProductField *arg1 = (CThostFtdcProductField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInstrumentField; SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_InstrumentName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","InstrumentName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","InstrumentName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentName,arg2,21*sizeof(char)); else memset(arg1->InstrumentName,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_InstrumentName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","InstrumentName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->InstrumentName); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ProductID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProductID,arg2,31*sizeof(char)); else memset(arg1->ProductID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ProductID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->ProductID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ProductClass_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcProductClassType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ProductClass", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcProductClassType","ProductClass", 2, argv[0] )); } arg2 = static_cast< TThostFtdcProductClassType >(val2); if (arg1) (arg1)->ProductClass = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ProductClass_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcProductClassType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ProductClass", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcProductClassType) ((arg1)->ProductClass); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_DeliveryYear_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcYearType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","DeliveryYear", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYearType","DeliveryYear", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYearType >(val2); if (arg1) (arg1)->DeliveryYear = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_DeliveryYear_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYearType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","DeliveryYear", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcYearType) ((arg1)->DeliveryYear); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_DeliveryMonth_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcMonthType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","DeliveryMonth", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMonthType","DeliveryMonth", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMonthType >(val2); if (arg1) (arg1)->DeliveryMonth = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_DeliveryMonth_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMonthType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","DeliveryMonth", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcMonthType) ((arg1)->DeliveryMonth); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_MaxMarketOrderVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","MaxMarketOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MaxMarketOrderVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MaxMarketOrderVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_MaxMarketOrderVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","MaxMarketOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MaxMarketOrderVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_MinMarketOrderVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","MinMarketOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinMarketOrderVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MinMarketOrderVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_MinMarketOrderVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","MinMarketOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MinMarketOrderVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_MaxLimitOrderVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","MaxLimitOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MaxLimitOrderVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MaxLimitOrderVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_MaxLimitOrderVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","MaxLimitOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MaxLimitOrderVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_MinLimitOrderVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","MinLimitOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinLimitOrderVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MinLimitOrderVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_MinLimitOrderVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","MinLimitOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MinLimitOrderVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_VolumeMultiple_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcVolumeMultipleType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","VolumeMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeMultipleType","VolumeMultiple", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeMultipleType >(val2); if (arg1) (arg1)->VolumeMultiple = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_VolumeMultiple_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeMultipleType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","VolumeMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcVolumeMultipleType) ((arg1)->VolumeMultiple); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_PriceTick_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","PriceTick", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PriceTick", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->PriceTick = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_PriceTick_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","PriceTick", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->PriceTick); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_CreateDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","CreateDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CreateDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CreateDate,arg2,9*sizeof(char)); else memset(arg1->CreateDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_CreateDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","CreateDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->CreateDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_OpenDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","OpenDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","OpenDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OpenDate,arg2,9*sizeof(char)); else memset(arg1->OpenDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_OpenDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","OpenDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->OpenDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ExpireDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ExpireDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ExpireDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExpireDate,arg2,9*sizeof(char)); else memset(arg1->ExpireDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ExpireDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ExpireDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->ExpireDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_StartDelivDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","StartDelivDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","StartDelivDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StartDelivDate,arg2,9*sizeof(char)); else memset(arg1->StartDelivDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_StartDelivDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","StartDelivDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->StartDelivDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_EndDelivDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","EndDelivDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","EndDelivDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EndDelivDate,arg2,9*sizeof(char)); else memset(arg1->EndDelivDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_EndDelivDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","EndDelivDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->EndDelivDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_InstLifePhase_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcInstLifePhaseType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","InstLifePhase", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstLifePhaseType","InstLifePhase", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInstLifePhaseType >(val2); if (arg1) (arg1)->InstLifePhase = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_InstLifePhase_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInstLifePhaseType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","InstLifePhase", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcInstLifePhaseType) ((arg1)->InstLifePhase); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_IsTrading_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcBoolType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","IsTrading", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsTrading", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsTrading = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_IsTrading_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","IsTrading", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsTrading); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_PositionType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcPositionTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","PositionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPositionTypeType","PositionType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPositionTypeType >(val2); if (arg1) (arg1)->PositionType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_PositionType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPositionTypeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","PositionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcPositionTypeType) ((arg1)->PositionType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_PositionDateType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcPositionDateTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","PositionDateType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPositionDateTypeType","PositionDateType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPositionDateTypeType >(val2); if (arg1) (arg1)->PositionDateType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_PositionDateType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPositionDateTypeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","PositionDateType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcPositionDateTypeType) ((arg1)->PositionDateType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_LongMarginRatio_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","LongMarginRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","LongMarginRatio", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->LongMarginRatio = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_LongMarginRatio_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","LongMarginRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->LongMarginRatio); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ShortMarginRatio_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ShortMarginRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","ShortMarginRatio", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->ShortMarginRatio = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_ShortMarginRatio_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","ShortMarginRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->ShortMarginRatio); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_MaxMarginSideAlgorithm_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcMaxMarginSideAlgorithmType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","MaxMarginSideAlgorithm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMaxMarginSideAlgorithmType","MaxMarginSideAlgorithm", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMaxMarginSideAlgorithmType >(val2); if (arg1) (arg1)->MaxMarginSideAlgorithm = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_MaxMarginSideAlgorithm_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMaxMarginSideAlgorithmType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","MaxMarginSideAlgorithm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcMaxMarginSideAlgorithmType) ((arg1)->MaxMarginSideAlgorithm); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_UnderlyingInstrID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","UnderlyingInstrID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","UnderlyingInstrID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UnderlyingInstrID,arg2,31*sizeof(char)); else memset(arg1->UnderlyingInstrID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_UnderlyingInstrID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","UnderlyingInstrID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (char *) ((arg1)->UnderlyingInstrID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_StrikePrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","StrikePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","StrikePrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->StrikePrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_StrikePrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","StrikePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->StrikePrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_OptionsType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcOptionsTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","OptionsType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOptionsTypeType","OptionsType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOptionsTypeType >(val2); if (arg1) (arg1)->OptionsType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_OptionsType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOptionsTypeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","OptionsType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcOptionsTypeType) ((arg1)->OptionsType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_UnderlyingMultiple_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcUnderlyingMultipleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","UnderlyingMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcUnderlyingMultipleType","UnderlyingMultiple", 2, argv[0] )); } arg2 = static_cast< TThostFtdcUnderlyingMultipleType >(val2); if (arg1) (arg1)->UnderlyingMultiple = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_UnderlyingMultiple_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcUnderlyingMultipleType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","UnderlyingMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcUnderlyingMultipleType) ((arg1)->UnderlyingMultiple); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_CombinationType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; TThostFtdcCombinationTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","CombinationType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCombinationTypeType","CombinationType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCombinationTypeType >(val2); if (arg1) (arg1)->CombinationType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentField_CombinationType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCombinationTypeType 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_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","CombinationType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentField * >(argp1); result = (TThostFtdcCombinationTypeType) ((arg1)->CombinationType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInstrumentField_allocate(VALUE self) #else _wrap_CThostFtdcInstrumentField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInstrumentField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInstrumentField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInstrumentField"; CThostFtdcInstrumentField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInstrumentField *)new CThostFtdcInstrumentField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInstrumentField(void *self) { CThostFtdcInstrumentField *arg1 = (CThostFtdcInstrumentField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerField *arg1 = (CThostFtdcBrokerField *) 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_CThostFtdcBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerField *arg1 = (CThostFtdcBrokerField *) 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_CThostFtdcBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerField_BrokerAbbr_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerField *arg1 = (CThostFtdcBrokerField *) 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_CThostFtdcBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerField *","BrokerAbbr", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","BrokerAbbr", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerAbbr,arg2,9*sizeof(char)); else memset(arg1->BrokerAbbr,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerField_BrokerAbbr_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerField *arg1 = (CThostFtdcBrokerField *) 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_CThostFtdcBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerField *","BrokerAbbr", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerField * >(argp1); result = (char *) ((arg1)->BrokerAbbr); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerField_BrokerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerField *arg1 = (CThostFtdcBrokerField *) 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_CThostFtdcBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerField *","BrokerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","BrokerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerName,arg2,81*sizeof(char)); else memset(arg1->BrokerName,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerField_BrokerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerField *arg1 = (CThostFtdcBrokerField *) 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_CThostFtdcBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerField *","BrokerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerField * >(argp1); result = (char *) ((arg1)->BrokerName); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerField *arg1 = (CThostFtdcBrokerField *) 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerField *arg1 = (CThostFtdcBrokerField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerField"; CThostFtdcBrokerField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerField *)new CThostFtdcBrokerField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerField(void *self) { CThostFtdcBrokerField *arg1 = (CThostFtdcBrokerField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTraderField; SWIGINTERN VALUE _wrap_CThostFtdcTraderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_InstallCount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 0 ; TThostFtdcInstallCountType 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","InstallCount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstallCountType","InstallCount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInstallCountType >(val2); if (arg1) (arg1)->InstallCount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_InstallCount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInstallCountType 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","InstallCount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (TThostFtdcInstallCountType) ((arg1)->InstallCount); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTraderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTraderField_allocate(VALUE self) #else _wrap_CThostFtdcTraderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTraderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTraderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTraderField"; CThostFtdcTraderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTraderField *)new CThostFtdcTraderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTraderField(void *self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInvestorField; SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_InvestorGroupID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorGroupID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorGroupID,arg2,13*sizeof(char)); else memset(arg1->InvestorGroupID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_InvestorGroupID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->InvestorGroupID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_InvestorName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","InvestorName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorName,arg2,81*sizeof(char)); else memset(arg1->InvestorName,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_InvestorName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","InvestorName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->InvestorName); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_IdentifiedCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IdentifiedCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdentifiedCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdentifiedCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_IdentifiedCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IdentifiedCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdentifiedCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ; TThostFtdcBoolType 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_Telephone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Telephone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Telephone,arg2,41*sizeof(char)); else memset(arg1->Telephone,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_Telephone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->Telephone); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_Address_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","Address", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Address,arg2,101*sizeof(char)); else memset(arg1->Address,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_Address_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->Address); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_OpenDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","OpenDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","OpenDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OpenDate,arg2,9*sizeof(char)); else memset(arg1->OpenDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_OpenDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","OpenDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->OpenDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_Mobile_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Mobile", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Mobile", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Mobile,arg2,41*sizeof(char)); else memset(arg1->Mobile,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_Mobile_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","Mobile", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->Mobile); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_CommModelID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","CommModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","CommModelID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CommModelID,arg2,13*sizeof(char)); else memset(arg1->CommModelID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_CommModelID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","CommModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->CommModelID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_MarginModelID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","MarginModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","MarginModelID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MarginModelID,arg2,13*sizeof(char)); else memset(arg1->MarginModelID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorField_MarginModelID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *) 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_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","MarginModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorField * >(argp1); result = (char *) ((arg1)->MarginModelID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInvestorField_allocate(VALUE self) #else _wrap_CThostFtdcInvestorField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInvestorField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInvestorField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInvestorField"; CThostFtdcInvestorField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInvestorField *)new CThostFtdcInvestorField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInvestorField(void *self) { CThostFtdcInvestorField *arg1 = (CThostFtdcInvestorField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTradingCodeField; SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 0 ; TThostFtdcBoolType 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_ClientIDType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 0 ; TThostFtdcClientIDTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ClientIDType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcClientIDTypeType","ClientIDType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcClientIDTypeType >(val2); if (arg1) (arg1)->ClientIDType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingCodeField_ClientIDType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcClientIDTypeType 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_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ClientIDType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1); result = (TThostFtdcClientIDTypeType) ((arg1)->ClientIDType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTradingCodeField_allocate(VALUE self) #else _wrap_CThostFtdcTradingCodeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTradingCodeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTradingCodeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingCodeField"; CThostFtdcTradingCodeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTradingCodeField *)new CThostFtdcTradingCodeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTradingCodeField(void *self) { CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcPartBrokerField; SWIGINTERN VALUE _wrap_CThostFtdcPartBrokerField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcPartBrokerField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPartBrokerField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcPartBrokerField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPartBrokerField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcPartBrokerField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPartBrokerField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 0 ; TThostFtdcBoolType 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_CThostFtdcPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPartBrokerField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcPartBrokerField_allocate(VALUE self) #else _wrap_CThostFtdcPartBrokerField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcPartBrokerField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcPartBrokerField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcPartBrokerField"; CThostFtdcPartBrokerField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcPartBrokerField *)new CThostFtdcPartBrokerField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcPartBrokerField(void *self) { CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSuperUserField; SWIGINTERN VALUE _wrap_CThostFtdcSuperUserField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserField *arg1 = (CThostFtdcSuperUserField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcSuperUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSuperUserField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserField *arg1 = (CThostFtdcSuperUserField *) 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_CThostFtdcSuperUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSuperUserField_UserName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserField *arg1 = (CThostFtdcSuperUserField *) 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_CThostFtdcSuperUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserField *","UserName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","UserName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserName,arg2,81*sizeof(char)); else memset(arg1->UserName,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSuperUserField_UserName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserField *arg1 = (CThostFtdcSuperUserField *) 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_CThostFtdcSuperUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserField *","UserName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserField * >(argp1); result = (char *) ((arg1)->UserName); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSuperUserField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserField *arg1 = (CThostFtdcSuperUserField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcSuperUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSuperUserField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserField *arg1 = (CThostFtdcSuperUserField *) 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_CThostFtdcSuperUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSuperUserField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserField *arg1 = (CThostFtdcSuperUserField *) 0 ; TThostFtdcBoolType 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_CThostFtdcSuperUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSuperUserField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserField *arg1 = (CThostFtdcSuperUserField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcSuperUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSuperUserField_allocate(VALUE self) #else _wrap_CThostFtdcSuperUserField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSuperUserField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSuperUserField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSuperUserField"; CThostFtdcSuperUserField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSuperUserField *)new CThostFtdcSuperUserField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSuperUserField(void *self) { CThostFtdcSuperUserField *arg1 = (CThostFtdcSuperUserField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSuperUserFunctionField; SWIGINTERN VALUE _wrap_CThostFtdcSuperUserFunctionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserFunctionField *arg1 = (CThostFtdcSuperUserFunctionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcSuperUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserFunctionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserFunctionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSuperUserFunctionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserFunctionField *arg1 = (CThostFtdcSuperUserFunctionField *) 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_CThostFtdcSuperUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserFunctionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserFunctionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSuperUserFunctionField_FunctionCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserFunctionField *arg1 = (CThostFtdcSuperUserFunctionField *) 0 ; TThostFtdcFunctionCodeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSuperUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserFunctionField *","FunctionCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserFunctionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFunctionCodeType","FunctionCode", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFunctionCodeType >(val2); if (arg1) (arg1)->FunctionCode = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSuperUserFunctionField_FunctionCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserFunctionField *arg1 = (CThostFtdcSuperUserFunctionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFunctionCodeType 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_CThostFtdcSuperUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserFunctionField *","FunctionCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserFunctionField * >(argp1); result = (TThostFtdcFunctionCodeType) ((arg1)->FunctionCode); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSuperUserFunctionField_allocate(VALUE self) #else _wrap_CThostFtdcSuperUserFunctionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSuperUserFunctionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSuperUserFunctionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSuperUserFunctionField"; CThostFtdcSuperUserFunctionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSuperUserFunctionField *)new CThostFtdcSuperUserFunctionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSuperUserFunctionField(void *self) { CThostFtdcSuperUserFunctionField *arg1 = (CThostFtdcSuperUserFunctionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInvestorGroupField; SWIGINTERN VALUE _wrap_CThostFtdcInvestorGroupField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorGroupField *arg1 = (CThostFtdcInvestorGroupField *) 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_CThostFtdcInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorGroupField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorGroupField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorGroupField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorGroupField *arg1 = (CThostFtdcInvestorGroupField *) 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_CThostFtdcInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorGroupField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorGroupField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorGroupField_InvestorGroupID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorGroupField *arg1 = (CThostFtdcInvestorGroupField *) 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_CThostFtdcInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorGroupField *","InvestorGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorGroupField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorGroupID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorGroupID,arg2,13*sizeof(char)); else memset(arg1->InvestorGroupID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorGroupField_InvestorGroupID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorGroupField *arg1 = (CThostFtdcInvestorGroupField *) 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_CThostFtdcInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorGroupField *","InvestorGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorGroupField * >(argp1); result = (char *) ((arg1)->InvestorGroupID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorGroupField_InvestorGroupName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorGroupField *arg1 = (CThostFtdcInvestorGroupField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorGroupField *","InvestorGroupName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorGroupField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","InvestorGroupName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorGroupName,arg2,41*sizeof(char)); else memset(arg1->InvestorGroupName,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorGroupField_InvestorGroupName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorGroupField *arg1 = (CThostFtdcInvestorGroupField *) 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_CThostFtdcInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorGroupField *","InvestorGroupName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorGroupField * >(argp1); result = (char *) ((arg1)->InvestorGroupName); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInvestorGroupField_allocate(VALUE self) #else _wrap_CThostFtdcInvestorGroupField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInvestorGroupField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInvestorGroupField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInvestorGroupField"; CThostFtdcInvestorGroupField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInvestorGroupField *)new CThostFtdcInvestorGroupField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInvestorGroupField(void *self) { CThostFtdcInvestorGroupField *arg1 = (CThostFtdcInvestorGroupField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTradingAccountField; SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreMortgage_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreMortgage", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreMortgage", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreMortgage = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreMortgage_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreMortgage", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreMortgage); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreCredit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreCredit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreCredit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreCredit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreCredit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreCredit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreCredit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreDeposit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreDeposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreDeposit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreDeposit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreDeposit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreDeposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreDeposit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreBalance_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreBalance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreBalance", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreBalance = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreBalance_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreBalance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreBalance); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_InterestBase_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","InterestBase", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","InterestBase", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->InterestBase = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_InterestBase_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","InterestBase", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->InterestBase); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Interest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Interest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Interest", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Interest = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Interest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Interest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Interest); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Deposit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Deposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Deposit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Deposit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Deposit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Deposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Deposit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Withdraw_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Withdraw", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Withdraw", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Withdraw = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Withdraw_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Withdraw", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Withdraw); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FrozenMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FrozenMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FrozenCash_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FrozenCash", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCash", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenCash = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FrozenCash_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FrozenCash", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenCash); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FrozenCommission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCommission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenCommission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FrozenCommission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenCommission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_CurrMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","CurrMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CurrMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CurrMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_CurrMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","CurrMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CurrMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_CashIn_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","CashIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CashIn", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CashIn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_CashIn_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","CashIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CashIn); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Commission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Commission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Commission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Commission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Commission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Commission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Commission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_CloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_CloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PositionProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PositionProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PositionProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PositionProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PositionProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Balance_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Balance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Balance", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Balance = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Balance_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Balance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Balance); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Available_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Available", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Available", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Available = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Available_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Available", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Available); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_WithdrawQuota_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","WithdrawQuota", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","WithdrawQuota", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->WithdrawQuota = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_WithdrawQuota_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","WithdrawQuota", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->WithdrawQuota); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Reserve_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Reserve", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Reserve", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Reserve = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Reserve_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Reserve", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Reserve); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Credit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Credit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Credit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Credit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Credit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Credit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Credit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Mortgage_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Mortgage", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Mortgage", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Mortgage = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_Mortgage_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","Mortgage", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Mortgage); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_ExchangeMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","ExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchangeMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchangeMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_ExchangeMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","ExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchangeMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_DeliveryMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","DeliveryMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","DeliveryMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->DeliveryMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_DeliveryMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","DeliveryMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->DeliveryMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_ExchangeDeliveryMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","ExchangeDeliveryMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchangeDeliveryMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchangeDeliveryMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_ExchangeDeliveryMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","ExchangeDeliveryMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchangeDeliveryMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_ReserveBalance_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","ReserveBalance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ReserveBalance", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ReserveBalance = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_ReserveBalance_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","ReserveBalance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ReserveBalance); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreFundMortgageIn_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreFundMortgageIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreFundMortgageIn", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreFundMortgageIn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreFundMortgageIn_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreFundMortgageIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreFundMortgageIn); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreFundMortgageOut_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreFundMortgageOut", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreFundMortgageOut", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreFundMortgageOut = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_PreFundMortgageOut_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","PreFundMortgageOut", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreFundMortgageOut); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FundMortgageIn_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FundMortgageIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FundMortgageIn", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FundMortgageIn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FundMortgageIn_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FundMortgageIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FundMortgageIn); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FundMortgageOut_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FundMortgageOut", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FundMortgageOut", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FundMortgageOut = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FundMortgageOut_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FundMortgageOut", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FundMortgageOut); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FundMortgageAvailable_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FundMortgageAvailable", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FundMortgageAvailable", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FundMortgageAvailable = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_FundMortgageAvailable_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","FundMortgageAvailable", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FundMortgageAvailable); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_MortgageableFund_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","MortgageableFund", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","MortgageableFund", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->MortgageableFund = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_MortgageableFund_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","MortgageableFund", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->MortgageableFund); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductFrozenMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductFrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductFrozenMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductFrozenMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductFrozenMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductFrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductFrozenMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductCommission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductCommission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductCommission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductCommission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductCommission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductFrozenCommission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductFrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductFrozenCommission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductFrozenCommission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductFrozenCommission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductFrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductFrozenCommission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductPositionProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductPositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductPositionProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductPositionProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductPositionProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductPositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductPositionProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductCloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductCloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductCloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductCloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductCloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductCloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductCloseProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductPositionProfitByAlg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductPositionProfitByAlg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductPositionProfitByAlg", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductPositionProfitByAlg = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductPositionProfitByAlg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductPositionProfitByAlg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductPositionProfitByAlg); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductExchangeMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductExchangeMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductExchangeMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountField_SpecProductExchangeMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","SpecProductExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductExchangeMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTradingAccountField_allocate(VALUE self) #else _wrap_CThostFtdcTradingAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTradingAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTradingAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingAccountField"; CThostFtdcTradingAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTradingAccountField *)new CThostFtdcTradingAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTradingAccountField(void *self) { CThostFtdcTradingAccountField *arg1 = (CThostFtdcTradingAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInvestorPositionField; SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PosiDirection_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcPosiDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPosiDirectionType","PosiDirection", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPosiDirectionType >(val2); if (arg1) (arg1)->PosiDirection = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PosiDirection_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPosiDirectionType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcPosiDirectionType) ((arg1)->PosiDirection); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PositionDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcPositionDateType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PositionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPositionDateType","PositionDate", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPositionDateType >(val2); if (arg1) (arg1)->PositionDate = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PositionDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPositionDateType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PositionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcPositionDateType) ((arg1)->PositionDate); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_YdPosition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","YdPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","YdPosition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->YdPosition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_YdPosition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","YdPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->YdPosition); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_Position_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","Position", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Position", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Position = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_Position_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","Position", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Position); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_LongFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","LongFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","LongFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->LongFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_LongFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","LongFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->LongFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_ShortFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","ShortFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","ShortFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->ShortFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_ShortFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","ShortFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->ShortFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_LongFrozenAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","LongFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongFrozenAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongFrozenAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_LongFrozenAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","LongFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongFrozenAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_ShortFrozenAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","ShortFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortFrozenAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortFrozenAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_ShortFrozenAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","ShortFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortFrozenAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_OpenVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","OpenVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","OpenVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->OpenVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_OpenVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","OpenVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->OpenVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CloseVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CloseVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","CloseVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->CloseVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CloseVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CloseVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->CloseVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_OpenAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","OpenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","OpenAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->OpenAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_OpenAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","OpenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->OpenAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CloseAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CloseAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CloseAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CloseAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PositionCost_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PositionCost", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PositionCost", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PositionCost = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PositionCost_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PositionCost", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PositionCost); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PreMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PreMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PreMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PreMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_UseMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","UseMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","UseMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->UseMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_UseMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","UseMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->UseMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_FrozenMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_FrozenMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_FrozenCash_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","FrozenCash", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCash", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenCash = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_FrozenCash_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","FrozenCash", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenCash); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_FrozenCommission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","FrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCommission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenCommission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_FrozenCommission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","FrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenCommission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CashIn_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CashIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CashIn", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CashIn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CashIn_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CashIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CashIn); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_Commission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","Commission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Commission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Commission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_Commission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","Commission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Commission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PositionProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PositionProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PositionProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PositionProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PositionProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PreSettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PreSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreSettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->PreSettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_PreSettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","PreSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->PreSettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_SettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","SettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->SettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_SettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->SettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_OpenCost_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","OpenCost", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","OpenCost", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->OpenCost = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_OpenCost_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","OpenCost", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->OpenCost); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_ExchangeMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","ExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchangeMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchangeMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_ExchangeMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","ExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchangeMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CombPosition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CombPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","CombPosition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->CombPosition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CombPosition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CombPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->CombPosition); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CombLongFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CombLongFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","CombLongFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->CombLongFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CombLongFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CombLongFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->CombLongFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CombShortFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CombShortFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","CombShortFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->CombShortFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CombShortFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CombShortFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->CombShortFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CloseProfitByDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CloseProfitByDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfitByDate", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfitByDate = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CloseProfitByDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CloseProfitByDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfitByDate); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CloseProfitByTrade_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CloseProfitByTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfitByTrade", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfitByTrade = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_CloseProfitByTrade_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","CloseProfitByTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfitByTrade); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_TodayPosition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","TodayPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","TodayPosition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->TodayPosition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_TodayPosition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","TodayPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->TodayPosition); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_MarginRateByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","MarginRateByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","MarginRateByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->MarginRateByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_MarginRateByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","MarginRateByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->MarginRateByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_MarginRateByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","MarginRateByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","MarginRateByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->MarginRateByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_MarginRateByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","MarginRateByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->MarginRateByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_StrikeFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","StrikeFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","StrikeFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->StrikeFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_StrikeFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","StrikeFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->StrikeFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_StrikeFrozenAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","StrikeFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","StrikeFrozenAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->StrikeFrozenAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_StrikeFrozenAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","StrikeFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->StrikeFrozenAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_AbandonFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","AbandonFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AbandonFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AbandonFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionField_AbandonFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","AbandonFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AbandonFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInvestorPositionField_allocate(VALUE self) #else _wrap_CThostFtdcInvestorPositionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInvestorPositionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInvestorPositionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInvestorPositionField"; CThostFtdcInvestorPositionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInvestorPositionField *)new CThostFtdcInvestorPositionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInvestorPositionField(void *self) { CThostFtdcInvestorPositionField *arg1 = (CThostFtdcInvestorPositionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInstrumentMarginRateField; SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_LongMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","LongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","LongMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->LongMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_LongMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","LongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->LongMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_LongMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","LongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_LongMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","LongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_ShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","ShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","ShortMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->ShortMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_ShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","ShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->ShortMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_ShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","ShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_ShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","ShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_IsRelative_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; TThostFtdcBoolType 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","IsRelative", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsRelative", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsRelative = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateField_IsRelative_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","IsRelative", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsRelative); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInstrumentMarginRateField_allocate(VALUE self) #else _wrap_CThostFtdcInstrumentMarginRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInstrumentMarginRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInstrumentMarginRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInstrumentMarginRateField"; CThostFtdcInstrumentMarginRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInstrumentMarginRateField *)new CThostFtdcInstrumentMarginRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInstrumentMarginRateField(void *self) { CThostFtdcInstrumentMarginRateField *arg1 = (CThostFtdcInstrumentMarginRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInstrumentCommissionRateField; SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_OpenRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","OpenRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","OpenRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->OpenRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_OpenRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","OpenRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->OpenRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_OpenRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","OpenRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","OpenRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->OpenRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_OpenRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","OpenRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->OpenRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_CloseRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","CloseRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_CloseRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","CloseRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_CloseRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","CloseRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_CloseRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","CloseRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_CloseTodayRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","CloseTodayRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseTodayRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseTodayRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_CloseTodayRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","CloseTodayRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseTodayRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_CloseTodayRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","CloseTodayRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseTodayRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseTodayRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentCommissionRateField_CloseTodayRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","CloseTodayRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseTodayRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInstrumentCommissionRateField_allocate(VALUE self) #else _wrap_CThostFtdcInstrumentCommissionRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInstrumentCommissionRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInstrumentCommissionRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInstrumentCommissionRateField"; CThostFtdcInstrumentCommissionRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInstrumentCommissionRateField *)new CThostFtdcInstrumentCommissionRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInstrumentCommissionRateField(void *self) { CThostFtdcInstrumentCommissionRateField *arg1 = (CThostFtdcInstrumentCommissionRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcDepthMarketDataField; SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_LastPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","LastPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LastPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LastPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_LastPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","LastPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LastPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_PreSettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","PreSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreSettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->PreSettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_PreSettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","PreSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->PreSettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_PreClosePrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","PreClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreClosePrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->PreClosePrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_PreClosePrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","PreClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->PreClosePrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_PreOpenInterest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcLargeVolumeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","PreOpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLargeVolumeType","PreOpenInterest", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLargeVolumeType >(val2); if (arg1) (arg1)->PreOpenInterest = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_PreOpenInterest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLargeVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","PreOpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcLargeVolumeType) ((arg1)->PreOpenInterest); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_OpenPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","OpenPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","OpenPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->OpenPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_OpenPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","OpenPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->OpenPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_HighestPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","HighestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","HighestPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->HighestPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_HighestPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","HighestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->HighestPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_LowestPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","LowestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LowestPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LowestPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_LowestPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","LowestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LowestPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_Turnover_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","Turnover", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Turnover", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Turnover = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_Turnover_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","Turnover", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Turnover); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_OpenInterest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcLargeVolumeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","OpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLargeVolumeType","OpenInterest", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLargeVolumeType >(val2); if (arg1) (arg1)->OpenInterest = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_OpenInterest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLargeVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","OpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcLargeVolumeType) ((arg1)->OpenInterest); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_ClosePrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","ClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","ClosePrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->ClosePrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_ClosePrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","ClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->ClosePrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_SettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","SettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->SettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_SettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->SettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_UpperLimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","UpperLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","UpperLimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->UpperLimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_UpperLimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","UpperLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->UpperLimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_LowerLimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","LowerLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LowerLimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LowerLimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_LowerLimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","LowerLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LowerLimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_PreDelta_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","PreDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","PreDelta", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->PreDelta = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_PreDelta_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","PreDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->PreDelta); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_CurrDelta_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","CurrDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CurrDelta", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CurrDelta = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_CurrDelta_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","CurrDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CurrDelta); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_UpdateTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","UpdateTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UpdateTime,arg2,9*sizeof(char)); else memset(arg1->UpdateTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_UpdateTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (char *) ((arg1)->UpdateTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_UpdateMillisec_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcMillisecType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","UpdateMillisec", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMillisecType","UpdateMillisec", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMillisecType >(val2); if (arg1) (arg1)->UpdateMillisec = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_UpdateMillisec_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMillisecType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","UpdateMillisec", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcMillisecType) ((arg1)->UpdateMillisec); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidPrice1_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidPrice1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice1", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidPrice1_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidPrice1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice1); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidVolume1_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidVolume1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume1", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidVolume1_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidVolume1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume1); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskPrice1_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice1", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskPrice1_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice1); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskVolume1_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskVolume1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume1", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskVolume1_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskVolume1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume1); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidPrice2_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidPrice2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice2", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidPrice2_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidPrice2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidVolume2_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidVolume2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume2", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidVolume2_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidVolume2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume2); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskPrice2_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice2", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskPrice2_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskVolume2_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskVolume2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume2", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskVolume2_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskVolume2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume2); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidPrice3_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidPrice3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice3", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice3 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidPrice3_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidPrice3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice3); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidVolume3_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidVolume3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume3", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume3 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidVolume3_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidVolume3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskPrice3_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice3", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice3 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskPrice3_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice3); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskVolume3_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskVolume3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume3", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume3 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskVolume3_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskVolume3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidPrice4_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidPrice4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice4", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice4 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidPrice4_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidPrice4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice4); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidVolume4_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidVolume4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume4", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume4 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidVolume4_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidVolume4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume4); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskPrice4_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice4", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice4 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskPrice4_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice4); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskVolume4_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskVolume4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume4", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume4 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskVolume4_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskVolume4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume4); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidPrice5_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidPrice5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice5", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice5 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidPrice5_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidPrice5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice5); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidVolume5_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidVolume5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume5", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume5 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_BidVolume5_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","BidVolume5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume5); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskPrice5_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice5", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice5 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskPrice5_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskPrice5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice5); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskVolume5_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskVolume5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume5", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume5 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AskVolume5_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AskVolume5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume5); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AveragePrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AveragePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AveragePrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AveragePrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_AveragePrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","AveragePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AveragePrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_ActionDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","ActionDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDay,arg2,9*sizeof(char)); else memset(arg1->ActionDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepthMarketDataField_ActionDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *) 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_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","ActionDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp1); result = (char *) ((arg1)->ActionDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcDepthMarketDataField_allocate(VALUE self) #else _wrap_CThostFtdcDepthMarketDataField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcDepthMarketDataField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcDepthMarketDataField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcDepthMarketDataField"; CThostFtdcDepthMarketDataField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcDepthMarketDataField *)new CThostFtdcDepthMarketDataField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcDepthMarketDataField(void *self) { CThostFtdcDepthMarketDataField *arg1 = (CThostFtdcDepthMarketDataField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInstrumentTradingRightField; SWIGINTERN VALUE _wrap_CThostFtdcInstrumentTradingRightField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentTradingRightField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentTradingRightField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentTradingRightField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentTradingRightField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentTradingRightField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentTradingRightField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentTradingRightField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentTradingRightField_TradingRight_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 0 ; TThostFtdcTradingRightType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","TradingRight", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradingRightType","TradingRight", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradingRightType >(val2); if (arg1) (arg1)->TradingRight = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentTradingRightField_TradingRight_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradingRightType 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_CThostFtdcInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","TradingRight", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1); result = (TThostFtdcTradingRightType) ((arg1)->TradingRight); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInstrumentTradingRightField_allocate(VALUE self) #else _wrap_CThostFtdcInstrumentTradingRightField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInstrumentTradingRightField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInstrumentTradingRightField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInstrumentTradingRightField"; CThostFtdcInstrumentTradingRightField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInstrumentTradingRightField *)new CThostFtdcInstrumentTradingRightField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInstrumentTradingRightField(void *self) { CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerUserField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","UserName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserName,arg2,81*sizeof(char)); else memset(arg1->UserName,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (char *) ((arg1)->UserName); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; TThostFtdcUserTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcUserTypeType","UserType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcUserTypeType >(val2); if (arg1) (arg1)->UserType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcUserTypeType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (TThostFtdcUserTypeType) ((arg1)->UserType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_IsUsingOTP_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","IsUsingOTP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsUsingOTP", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsUsingOTP = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_IsUsingOTP_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","IsUsingOTP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsUsingOTP); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerUserField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerUserField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerUserField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerUserField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerUserField"; CThostFtdcBrokerUserField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerUserField *)new CThostFtdcBrokerUserField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerUserField(void *self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerUserPasswordField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserPasswordField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserPasswordField *arg1 = (CThostFtdcBrokerUserPasswordField *) 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_CThostFtdcBrokerUserPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserPasswordField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserPasswordField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserPasswordField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserPasswordField *arg1 = (CThostFtdcBrokerUserPasswordField *) 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_CThostFtdcBrokerUserPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserPasswordField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserPasswordField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserPasswordField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserPasswordField *arg1 = (CThostFtdcBrokerUserPasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcBrokerUserPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserPasswordField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserPasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserPasswordField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserPasswordField *arg1 = (CThostFtdcBrokerUserPasswordField *) 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_CThostFtdcBrokerUserPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserPasswordField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserPasswordField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserPasswordField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserPasswordField *arg1 = (CThostFtdcBrokerUserPasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcBrokerUserPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserPasswordField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserPasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserPasswordField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserPasswordField *arg1 = (CThostFtdcBrokerUserPasswordField *) 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_CThostFtdcBrokerUserPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserPasswordField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserPasswordField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerUserPasswordField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerUserPasswordField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerUserPasswordField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerUserPasswordField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerUserPasswordField"; CThostFtdcBrokerUserPasswordField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerUserPasswordField *)new CThostFtdcBrokerUserPasswordField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerUserPasswordField(void *self) { CThostFtdcBrokerUserPasswordField *arg1 = (CThostFtdcBrokerUserPasswordField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerUserFunctionField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserFunctionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 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_CThostFtdcBrokerUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserFunctionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 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_CThostFtdcBrokerUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserFunctionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcBrokerUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserFunctionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 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_CThostFtdcBrokerUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserFunctionField_BrokerFunctionCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 0 ; TThostFtdcBrokerFunctionCodeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","BrokerFunctionCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBrokerFunctionCodeType","BrokerFunctionCode", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBrokerFunctionCodeType >(val2); if (arg1) (arg1)->BrokerFunctionCode = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserFunctionField_BrokerFunctionCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBrokerFunctionCodeType 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_CThostFtdcBrokerUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","BrokerFunctionCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(argp1); result = (TThostFtdcBrokerFunctionCodeType) ((arg1)->BrokerFunctionCode); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerUserFunctionField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerUserFunctionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerUserFunctionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerUserFunctionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerUserFunctionField"; CThostFtdcBrokerUserFunctionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerUserFunctionField *)new CThostFtdcBrokerUserFunctionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerUserFunctionField(void *self) { CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTraderOfferField; SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_TraderConnectStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 0 ; TThostFtdcTraderConnectStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","TraderConnectStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTraderConnectStatusType","TraderConnectStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTraderConnectStatusType >(val2); if (arg1) (arg1)->TraderConnectStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_TraderConnectStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTraderConnectStatusType 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","TraderConnectStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (TThostFtdcTraderConnectStatusType) ((arg1)->TraderConnectStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ConnectRequestDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ConnectRequestDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConnectRequestDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ConnectRequestDate,arg2,9*sizeof(char)); else memset(arg1->ConnectRequestDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ConnectRequestDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ConnectRequestDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->ConnectRequestDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ConnectRequestTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ConnectRequestTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConnectRequestTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ConnectRequestTime,arg2,9*sizeof(char)); else memset(arg1->ConnectRequestTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ConnectRequestTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ConnectRequestTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->ConnectRequestTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_LastReportDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","LastReportDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LastReportDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LastReportDate,arg2,9*sizeof(char)); else memset(arg1->LastReportDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_LastReportDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","LastReportDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->LastReportDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_LastReportTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","LastReportTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LastReportTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LastReportTime,arg2,9*sizeof(char)); else memset(arg1->LastReportTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_LastReportTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","LastReportTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->LastReportTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ConnectDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ConnectDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConnectDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ConnectDate,arg2,9*sizeof(char)); else memset(arg1->ConnectDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ConnectDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ConnectDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->ConnectDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ConnectTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ConnectTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConnectTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ConnectTime,arg2,9*sizeof(char)); else memset(arg1->ConnectTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_ConnectTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","ConnectTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->ConnectTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_StartDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","StartDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","StartDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StartDate,arg2,9*sizeof(char)); else memset(arg1->StartDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_StartDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","StartDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->StartDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_StartTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","StartTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","StartTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StartTime,arg2,9*sizeof(char)); else memset(arg1->StartTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_StartTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","StartTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->StartTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_MaxTradeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","MaxTradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MaxTradeID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MaxTradeID,arg2,21*sizeof(char)); else memset(arg1->MaxTradeID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_MaxTradeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","MaxTradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->MaxTradeID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_MaxOrderMessageReference_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","MaxOrderMessageReference", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","MaxOrderMessageReference", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MaxOrderMessageReference,arg2,7*sizeof(char)); else memset(arg1->MaxOrderMessageReference,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderOfferField_MaxOrderMessageReference_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *) 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_CThostFtdcTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderOfferField *","MaxOrderMessageReference", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderOfferField * >(argp1); result = (char *) ((arg1)->MaxOrderMessageReference); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTraderOfferField_allocate(VALUE self) #else _wrap_CThostFtdcTraderOfferField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTraderOfferField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTraderOfferField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTraderOfferField"; CThostFtdcTraderOfferField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTraderOfferField *)new CThostFtdcTraderOfferField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTraderOfferField(void *self) { CThostFtdcTraderOfferField *arg1 = (CThostFtdcTraderOfferField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSettlementInfoField; SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_Content_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[501] ; 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","Content", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 501); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [501]","Content", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Content,arg2,501*sizeof(char)); else memset(arg1->Content,0,501*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoField_Content_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *) 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_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","Content", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp1); result = (char *) ((arg1)->Content); { size_t size = SWIG_strnlen(result, 501); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSettlementInfoField_allocate(VALUE self) #else _wrap_CThostFtdcSettlementInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSettlementInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSettlementInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSettlementInfoField"; CThostFtdcSettlementInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSettlementInfoField *)new CThostFtdcSettlementInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSettlementInfoField(void *self) { CThostFtdcSettlementInfoField *arg1 = (CThostFtdcSettlementInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInstrumentMarginRateAdjustField; SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_LongMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","LongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","LongMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->LongMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_LongMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","LongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->LongMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_LongMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","LongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_LongMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","LongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_ShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","ShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","ShortMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->ShortMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_ShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","ShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->ShortMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_ShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","ShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_ShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","ShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_IsRelative_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; TThostFtdcBoolType 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","IsRelative", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsRelative", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsRelative = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentMarginRateAdjustField_IsRelative_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcInstrumentMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateAdjustField *","IsRelative", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentMarginRateAdjustField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsRelative); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInstrumentMarginRateAdjustField_allocate(VALUE self) #else _wrap_CThostFtdcInstrumentMarginRateAdjustField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInstrumentMarginRateAdjustField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInstrumentMarginRateAdjustField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInstrumentMarginRateAdjustField"; CThostFtdcInstrumentMarginRateAdjustField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInstrumentMarginRateAdjustField *)new CThostFtdcInstrumentMarginRateAdjustField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInstrumentMarginRateAdjustField(void *self) { CThostFtdcInstrumentMarginRateAdjustField *arg1 = (CThostFtdcInstrumentMarginRateAdjustField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeMarginRateField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_LongMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","LongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","LongMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->LongMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_LongMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","LongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->LongMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_LongMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","LongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_LongMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","LongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_ShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","ShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","ShortMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->ShortMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_ShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","ShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->ShortMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_ShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","ShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateField_ShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","ShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeMarginRateField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeMarginRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeMarginRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeMarginRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeMarginRateField"; CThostFtdcExchangeMarginRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeMarginRateField *)new CThostFtdcExchangeMarginRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeMarginRateField(void *self) { CThostFtdcExchangeMarginRateField *arg1 = (CThostFtdcExchangeMarginRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeMarginRateAdjustField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_LongMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","LongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","LongMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->LongMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_LongMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","LongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->LongMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_LongMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","LongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_LongMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","LongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","ShortMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->ShortMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->ShortMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ExchLongMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ExchLongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","ExchLongMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->ExchLongMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ExchLongMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ExchLongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->ExchLongMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ExchLongMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ExchLongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchLongMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchLongMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ExchLongMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ExchLongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchLongMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ExchShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ExchShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","ExchShortMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->ExchShortMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ExchShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ExchShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->ExchShortMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ExchShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ExchShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchShortMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchShortMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_ExchShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","ExchShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchShortMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_NoLongMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","NoLongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","NoLongMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->NoLongMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_NoLongMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","NoLongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->NoLongMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_NoLongMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","NoLongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","NoLongMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->NoLongMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_NoLongMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","NoLongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->NoLongMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_NoShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","NoShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","NoShortMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->NoShortMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_NoShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","NoShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->NoShortMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_NoShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","NoShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","NoShortMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->NoShortMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeMarginRateAdjustField_NoShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","NoShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->NoShortMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeMarginRateAdjustField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeMarginRateAdjustField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeMarginRateAdjustField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeMarginRateAdjustField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeMarginRateAdjustField"; CThostFtdcExchangeMarginRateAdjustField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeMarginRateAdjustField *)new CThostFtdcExchangeMarginRateAdjustField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeMarginRateAdjustField(void *self) { CThostFtdcExchangeMarginRateAdjustField *arg1 = (CThostFtdcExchangeMarginRateAdjustField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeRateField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *) 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_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *) 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_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeRateField_FromCurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","FromCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","FromCurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FromCurrencyID,arg2,4*sizeof(char)); else memset(arg1->FromCurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeRateField_FromCurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *) 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_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","FromCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeRateField * >(argp1); result = (char *) ((arg1)->FromCurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeRateField_FromCurrencyUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *) 0 ; TThostFtdcCurrencyUnitType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","FromCurrencyUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCurrencyUnitType","FromCurrencyUnit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCurrencyUnitType >(val2); if (arg1) (arg1)->FromCurrencyUnit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeRateField_FromCurrencyUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCurrencyUnitType 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_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","FromCurrencyUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeRateField * >(argp1); result = (TThostFtdcCurrencyUnitType) ((arg1)->FromCurrencyUnit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeRateField_ToCurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","ToCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","ToCurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ToCurrencyID,arg2,4*sizeof(char)); else memset(arg1->ToCurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeRateField_ToCurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *) 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_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","ToCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeRateField * >(argp1); result = (char *) ((arg1)->ToCurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeRateField_ExchangeRate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *) 0 ; TThostFtdcExchangeRateType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","ExchangeRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExchangeRateType","ExchangeRate", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExchangeRateType >(val2); if (arg1) (arg1)->ExchangeRate = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeRateField_ExchangeRate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExchangeRateType 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_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","ExchangeRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeRateField * >(argp1); result = (TThostFtdcExchangeRateType) ((arg1)->ExchangeRate); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeRateField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeRateField"; CThostFtdcExchangeRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeRateField *)new CThostFtdcExchangeRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeRateField(void *self) { CThostFtdcExchangeRateField *arg1 = (CThostFtdcExchangeRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSettlementRefField; SWIGINTERN VALUE _wrap_CThostFtdcSettlementRefField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementRefField *arg1 = (CThostFtdcSettlementRefField *) 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_CThostFtdcSettlementRefField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementRefField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementRefField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementRefField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementRefField *arg1 = (CThostFtdcSettlementRefField *) 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_CThostFtdcSettlementRefField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementRefField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementRefField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementRefField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementRefField *arg1 = (CThostFtdcSettlementRefField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcSettlementRefField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementRefField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementRefField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementRefField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementRefField *arg1 = (CThostFtdcSettlementRefField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcSettlementRefField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementRefField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementRefField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSettlementRefField_allocate(VALUE self) #else _wrap_CThostFtdcSettlementRefField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSettlementRefField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSettlementRefField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSettlementRefField"; CThostFtdcSettlementRefField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSettlementRefField *)new CThostFtdcSettlementRefField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSettlementRefField(void *self) { CThostFtdcSettlementRefField *arg1 = (CThostFtdcSettlementRefField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCurrentTimeField; SWIGINTERN VALUE _wrap_CThostFtdcCurrentTimeField_CurrDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCurrentTimeField *arg1 = (CThostFtdcCurrentTimeField *) 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_CThostFtdcCurrentTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrentTimeField *","CurrDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCurrentTimeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CurrDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrDate,arg2,9*sizeof(char)); else memset(arg1->CurrDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCurrentTimeField_CurrDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCurrentTimeField *arg1 = (CThostFtdcCurrentTimeField *) 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_CThostFtdcCurrentTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrentTimeField *","CurrDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCurrentTimeField * >(argp1); result = (char *) ((arg1)->CurrDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCurrentTimeField_CurrTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCurrentTimeField *arg1 = (CThostFtdcCurrentTimeField *) 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_CThostFtdcCurrentTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrentTimeField *","CurrTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCurrentTimeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CurrTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrTime,arg2,9*sizeof(char)); else memset(arg1->CurrTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCurrentTimeField_CurrTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCurrentTimeField *arg1 = (CThostFtdcCurrentTimeField *) 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_CThostFtdcCurrentTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrentTimeField *","CurrTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCurrentTimeField * >(argp1); result = (char *) ((arg1)->CurrTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCurrentTimeField_CurrMillisec_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCurrentTimeField *arg1 = (CThostFtdcCurrentTimeField *) 0 ; TThostFtdcMillisecType 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_CThostFtdcCurrentTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrentTimeField *","CurrMillisec", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCurrentTimeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMillisecType","CurrMillisec", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMillisecType >(val2); if (arg1) (arg1)->CurrMillisec = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCurrentTimeField_CurrMillisec_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCurrentTimeField *arg1 = (CThostFtdcCurrentTimeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMillisecType 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_CThostFtdcCurrentTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrentTimeField *","CurrMillisec", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCurrentTimeField * >(argp1); result = (TThostFtdcMillisecType) ((arg1)->CurrMillisec); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCurrentTimeField_ActionDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCurrentTimeField *arg1 = (CThostFtdcCurrentTimeField *) 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_CThostFtdcCurrentTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrentTimeField *","ActionDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCurrentTimeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDay,arg2,9*sizeof(char)); else memset(arg1->ActionDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCurrentTimeField_ActionDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCurrentTimeField *arg1 = (CThostFtdcCurrentTimeField *) 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_CThostFtdcCurrentTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrentTimeField *","ActionDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCurrentTimeField * >(argp1); result = (char *) ((arg1)->ActionDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCurrentTimeField_allocate(VALUE self) #else _wrap_CThostFtdcCurrentTimeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCurrentTimeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCurrentTimeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCurrentTimeField"; CThostFtdcCurrentTimeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCurrentTimeField *)new CThostFtdcCurrentTimeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCurrentTimeField(void *self) { CThostFtdcCurrentTimeField *arg1 = (CThostFtdcCurrentTimeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCommPhaseField; SWIGINTERN VALUE _wrap_CThostFtdcCommPhaseField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 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_CThostFtdcCommPhaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCommPhaseField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 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_CThostFtdcCommPhaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCommPhaseField_CommPhaseNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 0 ; TThostFtdcCommPhaseNoType arg2 ; void *argp1 = 0 ; int res1 = 0 ; short 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_CThostFtdcCommPhaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","CommPhaseNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(argp1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCommPhaseNoType","CommPhaseNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCommPhaseNoType >(val2); if (arg1) (arg1)->CommPhaseNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCommPhaseField_CommPhaseNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCommPhaseNoType 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_CThostFtdcCommPhaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","CommPhaseNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(argp1); result = (TThostFtdcCommPhaseNoType) ((arg1)->CommPhaseNo); vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCommPhaseField_SystemID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 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_CThostFtdcCommPhaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","SystemID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","SystemID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SystemID,arg2,21*sizeof(char)); else memset(arg1->SystemID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCommPhaseField_SystemID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 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_CThostFtdcCommPhaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","SystemID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(argp1); result = (char *) ((arg1)->SystemID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCommPhaseField_allocate(VALUE self) #else _wrap_CThostFtdcCommPhaseField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCommPhaseField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCommPhaseField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCommPhaseField"; CThostFtdcCommPhaseField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCommPhaseField *)new CThostFtdcCommPhaseField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCommPhaseField(void *self) { CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *)self; delete arg1; } static swig_class SwigClassCThostFtdcLoginInfoField; SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_LoginDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","LoginDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LoginDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LoginDate,arg2,9*sizeof(char)); else memset(arg1->LoginDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_LoginDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","LoginDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->LoginDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_LoginTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","LoginTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LoginTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LoginTime,arg2,9*sizeof(char)); else memset(arg1->LoginTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_LoginTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","LoginTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->LoginTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_IPAddress_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","IPAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","IPAddress", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IPAddress,arg2,16*sizeof(char)); else memset(arg1->IPAddress,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_IPAddress_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","IPAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->IPAddress); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_InterfaceProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","InterfaceProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","InterfaceProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InterfaceProductInfo,arg2,11*sizeof(char)); else memset(arg1->InterfaceProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_InterfaceProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","InterfaceProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->InterfaceProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_ProtocolInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","ProtocolInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ProtocolInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProtocolInfo,arg2,11*sizeof(char)); else memset(arg1->ProtocolInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_ProtocolInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","ProtocolInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->ProtocolInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_SystemName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","SystemName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","SystemName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SystemName,arg2,41*sizeof(char)); else memset(arg1->SystemName,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_SystemName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","SystemName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->SystemName); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_MaxOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","MaxOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","MaxOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MaxOrderRef,arg2,13*sizeof(char)); else memset(arg1->MaxOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_MaxOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","MaxOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->MaxOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_SHFETime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","SHFETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SHFETime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SHFETime,arg2,9*sizeof(char)); else memset(arg1->SHFETime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_SHFETime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","SHFETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->SHFETime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_DCETime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","DCETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","DCETime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DCETime,arg2,9*sizeof(char)); else memset(arg1->DCETime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_DCETime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","DCETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->DCETime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_CZCETime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","CZCETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CZCETime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CZCETime,arg2,9*sizeof(char)); else memset(arg1->CZCETime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_CZCETime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","CZCETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->CZCETime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_FFEXTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","FFEXTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","FFEXTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FFEXTime,arg2,9*sizeof(char)); else memset(arg1->FFEXTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_FFEXTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","FFEXTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->FFEXTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_MacAddress_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","MacAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MacAddress", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MacAddress,arg2,21*sizeof(char)); else memset(arg1->MacAddress,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_MacAddress_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","MacAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->MacAddress); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_OneTimePassword_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","OneTimePassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","OneTimePassword", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OneTimePassword,arg2,41*sizeof(char)); else memset(arg1->OneTimePassword,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_OneTimePassword_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","OneTimePassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->OneTimePassword); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_INETime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","INETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","INETime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->INETime,arg2,9*sizeof(char)); else memset(arg1->INETime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginInfoField_INETime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *) 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_CThostFtdcLoginInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginInfoField *","INETime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginInfoField * >(argp1); result = (char *) ((arg1)->INETime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcLoginInfoField_allocate(VALUE self) #else _wrap_CThostFtdcLoginInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcLoginInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcLoginInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcLoginInfoField"; CThostFtdcLoginInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcLoginInfoField *)new CThostFtdcLoginInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcLoginInfoField(void *self) { CThostFtdcLoginInfoField *arg1 = (CThostFtdcLoginInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcLogoutAllField; SWIGINTERN VALUE _wrap_CThostFtdcLogoutAllField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLogoutAllField *arg1 = (CThostFtdcLogoutAllField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcLogoutAllField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLogoutAllField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLogoutAllField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLogoutAllField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLogoutAllField *arg1 = (CThostFtdcLogoutAllField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcLogoutAllField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLogoutAllField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLogoutAllField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLogoutAllField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLogoutAllField *arg1 = (CThostFtdcLogoutAllField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcLogoutAllField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLogoutAllField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLogoutAllField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLogoutAllField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLogoutAllField *arg1 = (CThostFtdcLogoutAllField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcLogoutAllField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLogoutAllField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLogoutAllField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLogoutAllField_SystemName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLogoutAllField *arg1 = (CThostFtdcLogoutAllField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcLogoutAllField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLogoutAllField *","SystemName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLogoutAllField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","SystemName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SystemName,arg2,41*sizeof(char)); else memset(arg1->SystemName,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLogoutAllField_SystemName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLogoutAllField *arg1 = (CThostFtdcLogoutAllField *) 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_CThostFtdcLogoutAllField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLogoutAllField *","SystemName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLogoutAllField * >(argp1); result = (char *) ((arg1)->SystemName); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcLogoutAllField_allocate(VALUE self) #else _wrap_CThostFtdcLogoutAllField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcLogoutAllField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcLogoutAllField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcLogoutAllField"; CThostFtdcLogoutAllField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcLogoutAllField *)new CThostFtdcLogoutAllField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcLogoutAllField(void *self) { CThostFtdcLogoutAllField *arg1 = (CThostFtdcLogoutAllField *)self; delete arg1; } static swig_class SwigClassCThostFtdcFrontStatusField; SWIGINTERN VALUE _wrap_CThostFtdcFrontStatusField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcFrontStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFrontStatusField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcFrontStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFrontStatusField_LastReportDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 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_CThostFtdcFrontStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","LastReportDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LastReportDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LastReportDate,arg2,9*sizeof(char)); else memset(arg1->LastReportDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFrontStatusField_LastReportDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 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_CThostFtdcFrontStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","LastReportDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1); result = (char *) ((arg1)->LastReportDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFrontStatusField_LastReportTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 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_CThostFtdcFrontStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","LastReportTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LastReportTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LastReportTime,arg2,9*sizeof(char)); else memset(arg1->LastReportTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFrontStatusField_LastReportTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 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_CThostFtdcFrontStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","LastReportTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1); result = (char *) ((arg1)->LastReportTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFrontStatusField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 0 ; TThostFtdcBoolType 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_CThostFtdcFrontStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFrontStatusField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcFrontStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcFrontStatusField_allocate(VALUE self) #else _wrap_CThostFtdcFrontStatusField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcFrontStatusField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcFrontStatusField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcFrontStatusField"; CThostFtdcFrontStatusField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcFrontStatusField *)new CThostFtdcFrontStatusField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcFrontStatusField(void *self) { CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *)self; delete arg1; } static swig_class SwigClassCThostFtdcUserPasswordUpdateField; SWIGINTERN VALUE _wrap_CThostFtdcUserPasswordUpdateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcUserPasswordUpdateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserPasswordUpdateField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcUserPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserPasswordUpdateField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserPasswordUpdateField_OldPassword_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcUserPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","OldPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","OldPassword", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OldPassword,arg2,41*sizeof(char)); else memset(arg1->OldPassword,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserPasswordUpdateField_OldPassword_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","OldPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1); result = (char *) ((arg1)->OldPassword); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserPasswordUpdateField_NewPassword_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcUserPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","NewPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","NewPassword", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->NewPassword,arg2,41*sizeof(char)); else memset(arg1->NewPassword,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserPasswordUpdateField_NewPassword_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","NewPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1); result = (char *) ((arg1)->NewPassword); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcUserPasswordUpdateField_allocate(VALUE self) #else _wrap_CThostFtdcUserPasswordUpdateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcUserPasswordUpdateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcUserPasswordUpdateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcUserPasswordUpdateField"; CThostFtdcUserPasswordUpdateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcUserPasswordUpdateField *)new CThostFtdcUserPasswordUpdateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcUserPasswordUpdateField(void *self) { CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInputOrderField; SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_OrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char)); else memset(arg1->OrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_OrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (char *) ((arg1)->OrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_OrderPriceType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcOrderPriceTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderPriceTypeType","OrderPriceType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderPriceTypeType >(val2); if (arg1) (arg1)->OrderPriceType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_OrderPriceType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderPriceTypeType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcOrderPriceTypeType) ((arg1)->OrderPriceType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_CombOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombOffsetFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombOffsetFlag,arg2,5*sizeof(char)); else memset(arg1->CombOffsetFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_CombOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (char *) ((arg1)->CombOffsetFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_CombHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombHedgeFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombHedgeFlag,arg2,5*sizeof(char)); else memset(arg1->CombHedgeFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_CombHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (char *) ((arg1)->CombHedgeFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_VolumeTotalOriginal_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotalOriginal", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTotalOriginal = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_VolumeTotalOriginal_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTotalOriginal); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_TimeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcTimeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTimeConditionType","TimeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTimeConditionType >(val2); if (arg1) (arg1)->TimeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_TimeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTimeConditionType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcTimeConditionType) ((arg1)->TimeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_GTDDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","GTDDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->GTDDate,arg2,9*sizeof(char)); else memset(arg1->GTDDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_GTDDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (char *) ((arg1)->GTDDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_VolumeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcVolumeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeConditionType","VolumeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeConditionType >(val2); if (arg1) (arg1)->VolumeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_VolumeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeConditionType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcVolumeConditionType) ((arg1)->VolumeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_MinVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MinVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_MinVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MinVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_ContingentCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcContingentConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcContingentConditionType","ContingentCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcContingentConditionType >(val2); if (arg1) (arg1)->ContingentCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_ContingentCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcContingentConditionType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcContingentConditionType) ((arg1)->ContingentCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_StopPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","StopPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->StopPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_StopPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->StopPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_ForceCloseReason_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcForceCloseReasonType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcForceCloseReasonType","ForceCloseReason", 2, argv[0] )); } arg2 = static_cast< TThostFtdcForceCloseReasonType >(val2); if (arg1) (arg1)->ForceCloseReason = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_ForceCloseReason_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcForceCloseReasonType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcForceCloseReasonType) ((arg1)->ForceCloseReason); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_IsAutoSuspend_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsAutoSuspend", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsAutoSuspend = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_IsAutoSuspend_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsAutoSuspend); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_UserForceClose_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","UserForceClose", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","UserForceClose", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->UserForceClose = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_UserForceClose_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","UserForceClose", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->UserForceClose); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_IsSwapOrder_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","IsSwapOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsSwapOrder", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsSwapOrder = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderField_IsSwapOrder_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","IsSwapOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsSwapOrder); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInputOrderField_allocate(VALUE self) #else _wrap_CThostFtdcInputOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInputOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInputOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputOrderField"; CThostFtdcInputOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInputOrderField *)new CThostFtdcInputOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInputOrderField(void *self) { CThostFtdcInputOrderField *arg1 = (CThostFtdcInputOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcOrderField; SWIGINTERN VALUE _wrap_CThostFtdcOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char)); else memset(arg1->OrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->OrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderPriceType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcOrderPriceTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderPriceTypeType","OrderPriceType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderPriceTypeType >(val2); if (arg1) (arg1)->OrderPriceType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderPriceType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderPriceTypeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcOrderPriceTypeType) ((arg1)->OrderPriceType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_CombOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombOffsetFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombOffsetFlag,arg2,5*sizeof(char)); else memset(arg1->CombOffsetFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_CombOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->CombOffsetFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_CombHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombHedgeFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombHedgeFlag,arg2,5*sizeof(char)); else memset(arg1->CombHedgeFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_CombHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->CombHedgeFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_VolumeTotalOriginal_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotalOriginal", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTotalOriginal = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_VolumeTotalOriginal_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTotalOriginal); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_TimeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcTimeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTimeConditionType","TimeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTimeConditionType >(val2); if (arg1) (arg1)->TimeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_TimeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTimeConditionType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcTimeConditionType) ((arg1)->TimeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_GTDDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","GTDDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->GTDDate,arg2,9*sizeof(char)); else memset(arg1->GTDDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_GTDDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->GTDDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_VolumeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcVolumeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeConditionType","VolumeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeConditionType >(val2); if (arg1) (arg1)->VolumeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_VolumeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeConditionType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcVolumeConditionType) ((arg1)->VolumeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_MinVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MinVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_MinVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MinVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ContingentCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcContingentConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcContingentConditionType","ContingentCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcContingentConditionType >(val2); if (arg1) (arg1)->ContingentCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ContingentCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcContingentConditionType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcContingentConditionType) ((arg1)->ContingentCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_StopPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","StopPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->StopPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_StopPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->StopPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ForceCloseReason_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcForceCloseReasonType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcForceCloseReasonType","ForceCloseReason", 2, argv[0] )); } arg2 = static_cast< TThostFtdcForceCloseReasonType >(val2); if (arg1) (arg1)->ForceCloseReason = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ForceCloseReason_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcForceCloseReasonType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcForceCloseReasonType) ((arg1)->ForceCloseReason); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_IsAutoSuspend_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsAutoSuspend", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsAutoSuspend = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_IsAutoSuspend_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsAutoSuspend); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderSubmitStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcOrderSubmitStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSubmitStatusType","OrderSubmitStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSubmitStatusType >(val2); if (arg1) (arg1)->OrderSubmitStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderSubmitStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSubmitStatusType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcOrderSubmitStatusType) ((arg1)->OrderSubmitStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_NotifySequence_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->NotifySequence = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_NotifySequence_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderSource_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcOrderSourceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSourceType","OrderSource", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSourceType >(val2); if (arg1) (arg1)->OrderSource = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderSource_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSourceType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcOrderSourceType) ((arg1)->OrderSource); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcOrderStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderStatusType","OrderStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderStatusType >(val2); if (arg1) (arg1)->OrderStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderStatusType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcOrderStatusType) ((arg1)->OrderStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcOrderTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderTypeType","OrderType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderTypeType >(val2); if (arg1) (arg1)->OrderType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_OrderType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderTypeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OrderType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcOrderTypeType) ((arg1)->OrderType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_VolumeTraded_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","VolumeTraded", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTraded", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTraded = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_VolumeTraded_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","VolumeTraded", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTraded); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_VolumeTotal_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","VolumeTotal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotal", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTotal = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_VolumeTotal_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","VolumeTotal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTotal); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_InsertDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char)); else memset(arg1->InsertDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_InsertDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->InsertDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_InsertTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char)); else memset(arg1->InsertTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_InsertTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->InsertTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ActiveTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ActiveTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActiveTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveTime,arg2,9*sizeof(char)); else memset(arg1->ActiveTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ActiveTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ActiveTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->ActiveTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_SuspendTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","SuspendTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SuspendTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SuspendTime,arg2,9*sizeof(char)); else memset(arg1->SuspendTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_SuspendTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","SuspendTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->SuspendTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_UpdateTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","UpdateTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UpdateTime,arg2,9*sizeof(char)); else memset(arg1->UpdateTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_UpdateTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->UpdateTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_CancelTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CancelTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CancelTime,arg2,9*sizeof(char)); else memset(arg1->CancelTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_CancelTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->CancelTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ActiveTraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ActiveTraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ActiveTraderID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveTraderID,arg2,21*sizeof(char)); else memset(arg1->ActiveTraderID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ActiveTraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ActiveTraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->ActiveTraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char)); else memset(arg1->ClearingPartID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->ClearingPartID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_UserForceClose_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","UserForceClose", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","UserForceClose", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->UserForceClose = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_UserForceClose_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","UserForceClose", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->UserForceClose); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ActiveUserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","ActiveUserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveUserID,arg2,16*sizeof(char)); else memset(arg1->ActiveUserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ActiveUserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->ActiveUserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_BrokerOrderSeq_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","BrokerOrderSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","BrokerOrderSeq", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->BrokerOrderSeq = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_BrokerOrderSeq_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","BrokerOrderSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->BrokerOrderSeq); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_RelativeOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","RelativeOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","RelativeOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RelativeOrderSysID,arg2,21*sizeof(char)); else memset(arg1->RelativeOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_RelativeOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","RelativeOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (char *) ((arg1)->RelativeOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ZCETotalTradedVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ZCETotalTradedVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","ZCETotalTradedVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->ZCETotalTradedVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_ZCETotalTradedVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","ZCETotalTradedVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->ZCETotalTradedVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_IsSwapOrder_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","IsSwapOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsSwapOrder", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsSwapOrder = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderField_IsSwapOrder_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","IsSwapOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsSwapOrder); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcOrderField_allocate(VALUE self) #else _wrap_CThostFtdcOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcOrderField"; CThostFtdcOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcOrderField *)new CThostFtdcOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcOrderField(void *self) { CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeOrderField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderPriceType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcOrderPriceTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderPriceTypeType","OrderPriceType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderPriceTypeType >(val2); if (arg1) (arg1)->OrderPriceType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderPriceType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderPriceTypeType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcOrderPriceTypeType) ((arg1)->OrderPriceType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_CombOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombOffsetFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombOffsetFlag,arg2,5*sizeof(char)); else memset(arg1->CombOffsetFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_CombOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->CombOffsetFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_CombHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombHedgeFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombHedgeFlag,arg2,5*sizeof(char)); else memset(arg1->CombHedgeFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_CombHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->CombHedgeFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_VolumeTotalOriginal_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotalOriginal", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTotalOriginal = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_VolumeTotalOriginal_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTotalOriginal); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_TimeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcTimeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTimeConditionType","TimeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTimeConditionType >(val2); if (arg1) (arg1)->TimeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_TimeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTimeConditionType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcTimeConditionType) ((arg1)->TimeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_GTDDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","GTDDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->GTDDate,arg2,9*sizeof(char)); else memset(arg1->GTDDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_GTDDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->GTDDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_VolumeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcVolumeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeConditionType","VolumeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeConditionType >(val2); if (arg1) (arg1)->VolumeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_VolumeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeConditionType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcVolumeConditionType) ((arg1)->VolumeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_MinVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MinVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_MinVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MinVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ContingentCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcContingentConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcContingentConditionType","ContingentCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcContingentConditionType >(val2); if (arg1) (arg1)->ContingentCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ContingentCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcContingentConditionType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcContingentConditionType) ((arg1)->ContingentCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_StopPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","StopPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->StopPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_StopPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->StopPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ForceCloseReason_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcForceCloseReasonType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcForceCloseReasonType","ForceCloseReason", 2, argv[0] )); } arg2 = static_cast< TThostFtdcForceCloseReasonType >(val2); if (arg1) (arg1)->ForceCloseReason = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ForceCloseReason_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcForceCloseReasonType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcForceCloseReasonType) ((arg1)->ForceCloseReason); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_IsAutoSuspend_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsAutoSuspend", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsAutoSuspend = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_IsAutoSuspend_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsAutoSuspend); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderSubmitStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcOrderSubmitStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSubmitStatusType","OrderSubmitStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSubmitStatusType >(val2); if (arg1) (arg1)->OrderSubmitStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderSubmitStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSubmitStatusType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcOrderSubmitStatusType) ((arg1)->OrderSubmitStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_NotifySequence_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->NotifySequence = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_NotifySequence_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderSource_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcOrderSourceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSourceType","OrderSource", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSourceType >(val2); if (arg1) (arg1)->OrderSource = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderSource_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSourceType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcOrderSourceType) ((arg1)->OrderSource); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcOrderStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderStatusType","OrderStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderStatusType >(val2); if (arg1) (arg1)->OrderStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderStatusType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcOrderStatusType) ((arg1)->OrderStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcOrderTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderTypeType","OrderType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderTypeType >(val2); if (arg1) (arg1)->OrderType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_OrderType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderTypeType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcOrderTypeType) ((arg1)->OrderType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_VolumeTraded_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTraded", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTraded", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTraded = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_VolumeTraded_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTraded", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTraded); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_VolumeTotal_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTotal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotal", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTotal = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_VolumeTotal_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTotal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTotal); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_InsertDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char)); else memset(arg1->InsertDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_InsertDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->InsertDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_InsertTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char)); else memset(arg1->InsertTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_InsertTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->InsertTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ActiveTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ActiveTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActiveTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveTime,arg2,9*sizeof(char)); else memset(arg1->ActiveTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ActiveTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ActiveTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->ActiveTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_SuspendTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SuspendTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SuspendTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SuspendTime,arg2,9*sizeof(char)); else memset(arg1->SuspendTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_SuspendTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SuspendTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->SuspendTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_UpdateTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","UpdateTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UpdateTime,arg2,9*sizeof(char)); else memset(arg1->UpdateTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_UpdateTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->UpdateTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_CancelTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CancelTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CancelTime,arg2,9*sizeof(char)); else memset(arg1->CancelTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_CancelTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->CancelTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ActiveTraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ActiveTraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ActiveTraderID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveTraderID,arg2,21*sizeof(char)); else memset(arg1->ActiveTraderID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ActiveTraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ActiveTraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->ActiveTraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char)); else memset(arg1->ClearingPartID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (char *) ((arg1)->ClearingPartID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeOrderField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeOrderField"; CThostFtdcExchangeOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeOrderField *)new CThostFtdcExchangeOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeOrderField(void *self) { CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeOrderInsertErrorField; 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; } 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; } 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; } 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; } 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; } 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; } 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; } 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; } 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; } 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; } 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; } 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; } 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; } 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; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeOrderInsertErrorField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeOrderInsertErrorField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeOrderInsertErrorField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } 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; } SWIGINTERN void free_CThostFtdcExchangeOrderInsertErrorField(void *self) { CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInputOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_OrderActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","OrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionRefType","OrderActionRef", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionRefType >(val2); if (arg1) (arg1)->OrderActionRef = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_OrderActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","OrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (TThostFtdcOrderActionRefType) ((arg1)->OrderActionRef); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_OrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char)); else memset(arg1->OrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_OrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (char *) ((arg1)->OrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_VolumeChange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","VolumeChange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeChange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeChange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_VolumeChange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","VolumeChange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeChange); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputOrderActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *) 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_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInputOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcInputOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInputOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInputOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputOrderActionField"; CThostFtdcInputOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInputOrderActionField *)new CThostFtdcInputOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInputOrderActionField(void *self) { CThostFtdcInputOrderActionField *arg1 = (CThostFtdcInputOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_OrderActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionRefType","OrderActionRef", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionRefType >(val2); if (arg1) (arg1)->OrderActionRef = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_OrderActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (TThostFtdcOrderActionRefType) ((arg1)->OrderActionRef); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_OrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char)); else memset(arg1->OrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_OrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->OrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_VolumeChange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","VolumeChange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeChange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeChange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_VolumeChange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","VolumeChange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeChange); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ActionDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDate,arg2,9*sizeof(char)); else memset(arg1->ActionDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ActionDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->ActionDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ActionTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionTime,arg2,9*sizeof(char)); else memset(arg1->ActionTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ActionTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->ActionTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ActionLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ActionLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionLocalID,arg2,13*sizeof(char)); else memset(arg1->ActionLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ActionLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->ActionLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_OrderActionStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; TThostFtdcOrderActionStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionStatusType","OrderActionStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionStatusType >(val2); if (arg1) (arg1)->OrderActionStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_OrderActionStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionStatusType 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (TThostFtdcOrderActionStatusType) ((arg1)->OrderActionStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOrderActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *) 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_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOrderActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcOrderActionField"; CThostFtdcOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcOrderActionField *)new CThostFtdcOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcOrderActionField(void *self) { CThostFtdcOrderActionField *arg1 = (CThostFtdcOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_VolumeChange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","VolumeChange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeChange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeChange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_VolumeChange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","VolumeChange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeChange); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ActionDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDate,arg2,9*sizeof(char)); else memset(arg1->ActionDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ActionDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->ActionDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ActionTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionTime,arg2,9*sizeof(char)); else memset(arg1->ActionTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ActionTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->ActionTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ActionLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ActionLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionLocalID,arg2,13*sizeof(char)); else memset(arg1->ActionLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ActionLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->ActionLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_OrderActionStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 0 ; TThostFtdcOrderActionStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionStatusType","OrderActionStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionStatusType >(val2); if (arg1) (arg1)->OrderActionStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_OrderActionStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionStatusType 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (TThostFtdcOrderActionStatusType) ((arg1)->OrderActionStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *) 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_CThostFtdcExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeOrderActionField"; CThostFtdcExchangeOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeOrderActionField *)new CThostFtdcExchangeOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeOrderActionField(void *self) { CThostFtdcExchangeOrderActionField *arg1 = (CThostFtdcExchangeOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeOrderActionErrorField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_ActionLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ActionLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionLocalID,arg2,13*sizeof(char)); else memset(arg1->ActionLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_ActionLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(argp1); result = (char *) ((arg1)->ActionLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeOrderActionErrorField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *) 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_CThostFtdcExchangeOrderActionErrorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderActionErrorField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeOrderActionErrorField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeOrderActionErrorField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeOrderActionErrorField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeOrderActionErrorField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeOrderActionErrorField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeOrderActionErrorField"; CThostFtdcExchangeOrderActionErrorField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeOrderActionErrorField *)new CThostFtdcExchangeOrderActionErrorField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeOrderActionErrorField(void *self) { CThostFtdcExchangeOrderActionErrorField *arg1 = (CThostFtdcExchangeOrderActionErrorField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeTradeField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TradeID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeID,arg2,21*sizeof(char)); else memset(arg1->TradeID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->TradeID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradingRole_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; TThostFtdcTradingRoleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradingRole", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradingRoleType","TradingRole", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradingRoleType >(val2); if (arg1) (arg1)->TradingRole = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradingRole_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradingRoleType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradingRole", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (TThostFtdcTradingRoleType) ((arg1)->TradingRole); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->OffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_Price_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","Price", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","Price", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->Price = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_Price_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","Price", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->Price); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradeType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; TThostFtdcTradeTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradeType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeTypeType","TradeType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeTypeType >(val2); if (arg1) (arg1)->TradeType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradeType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeTypeType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradeType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (TThostFtdcTradeTypeType) ((arg1)->TradeType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_PriceSource_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; TThostFtdcPriceSourceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","PriceSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceSourceType","PriceSource", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceSourceType >(val2); if (arg1) (arg1)->PriceSource = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_PriceSource_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceSourceType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","PriceSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (TThostFtdcPriceSourceType) ((arg1)->PriceSource); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char)); else memset(arg1->ClearingPartID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->ClearingPartID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradeSource_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; TThostFtdcTradeSourceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradeSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeSourceType","TradeSource", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeSourceType >(val2); if (arg1) (arg1)->TradeSource = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeTradeField_TradeSource_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeSourceType 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_CThostFtdcExchangeTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeTradeField *","TradeSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeTradeField * >(argp1); result = (TThostFtdcTradeSourceType) ((arg1)->TradeSource); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeTradeField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeTradeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeTradeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeTradeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeTradeField"; CThostFtdcExchangeTradeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeTradeField *)new CThostFtdcExchangeTradeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeTradeField(void *self) { CThostFtdcExchangeTradeField *arg1 = (CThostFtdcExchangeTradeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTradeField; SWIGINTERN VALUE _wrap_CThostFtdcTradeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_OrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char)); else memset(arg1->OrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_OrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->OrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TradeID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeID,arg2,21*sizeof(char)); else memset(arg1->TradeID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->TradeID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradingRole_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcTradingRoleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradingRole", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradingRoleType","TradingRole", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradingRoleType >(val2); if (arg1) (arg1)->TradingRole = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradingRole_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradingRoleType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradingRole", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcTradingRoleType) ((arg1)->TradingRole); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->OffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_Price_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Price", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","Price", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->Price = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_Price_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Price", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->Price); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradeType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcTradeTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeTypeType","TradeType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeTypeType >(val2); if (arg1) (arg1)->TradeType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradeType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeTypeType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcTradeTypeType) ((arg1)->TradeType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_PriceSource_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcPriceSourceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","PriceSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceSourceType","PriceSource", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceSourceType >(val2); if (arg1) (arg1)->PriceSource = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_PriceSource_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceSourceType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","PriceSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcPriceSourceType) ((arg1)->PriceSource); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char)); else memset(arg1->ClearingPartID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->ClearingPartID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_BrokerOrderSeq_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BrokerOrderSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","BrokerOrderSeq", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->BrokerOrderSeq = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_BrokerOrderSeq_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BrokerOrderSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->BrokerOrderSeq); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradeSource_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; TThostFtdcTradeSourceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeSourceType","TradeSource", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeSourceType >(val2); if (arg1) (arg1)->TradeSource = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradeField_TradeSource_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeSourceType 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_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1); result = (TThostFtdcTradeSourceType) ((arg1)->TradeSource); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTradeField_allocate(VALUE self) #else _wrap_CThostFtdcTradeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTradeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTradeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradeField"; CThostFtdcTradeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTradeField *)new CThostFtdcTradeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTradeField(void *self) { CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcUserSessionField; SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_LoginDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","LoginDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LoginDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LoginDate,arg2,9*sizeof(char)); else memset(arg1->LoginDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_LoginDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","LoginDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (char *) ((arg1)->LoginDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_LoginTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","LoginTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LoginTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LoginTime,arg2,9*sizeof(char)); else memset(arg1->LoginTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_LoginTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","LoginTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (char *) ((arg1)->LoginTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_IPAddress_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","IPAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","IPAddress", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IPAddress,arg2,16*sizeof(char)); else memset(arg1->IPAddress,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_IPAddress_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","IPAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (char *) ((arg1)->IPAddress); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_InterfaceProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","InterfaceProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","InterfaceProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InterfaceProductInfo,arg2,11*sizeof(char)); else memset(arg1->InterfaceProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_InterfaceProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","InterfaceProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (char *) ((arg1)->InterfaceProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_ProtocolInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","ProtocolInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ProtocolInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProtocolInfo,arg2,11*sizeof(char)); else memset(arg1->ProtocolInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_ProtocolInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","ProtocolInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (char *) ((arg1)->ProtocolInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_MacAddress_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","MacAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MacAddress", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MacAddress,arg2,21*sizeof(char)); else memset(arg1->MacAddress,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserSessionField_MacAddress_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *) 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_CThostFtdcUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserSessionField *","MacAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserSessionField * >(argp1); result = (char *) ((arg1)->MacAddress); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcUserSessionField_allocate(VALUE self) #else _wrap_CThostFtdcUserSessionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcUserSessionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcUserSessionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcUserSessionField"; CThostFtdcUserSessionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcUserSessionField *)new CThostFtdcUserSessionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcUserSessionField(void *self) { CThostFtdcUserSessionField *arg1 = (CThostFtdcUserSessionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQueryMaxOrderVolumeField; SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->OffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_MaxVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","MaxVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MaxVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MaxVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_MaxVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","MaxVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MaxVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQueryMaxOrderVolumeField_allocate(VALUE self) #else _wrap_CThostFtdcQueryMaxOrderVolumeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQueryMaxOrderVolumeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQueryMaxOrderVolumeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQueryMaxOrderVolumeField"; CThostFtdcQueryMaxOrderVolumeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQueryMaxOrderVolumeField *)new CThostFtdcQueryMaxOrderVolumeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQueryMaxOrderVolumeField(void *self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSettlementInfoConfirmField; SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoConfirmField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoConfirmField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoConfirmField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoConfirmField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoConfirmField_ConfirmDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","ConfirmDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConfirmDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ConfirmDate,arg2,9*sizeof(char)); else memset(arg1->ConfirmDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoConfirmField_ConfirmDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","ConfirmDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1); result = (char *) ((arg1)->ConfirmDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoConfirmField_ConfirmTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","ConfirmTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConfirmTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ConfirmTime,arg2,9*sizeof(char)); else memset(arg1->ConfirmTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSettlementInfoConfirmField_ConfirmTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","ConfirmTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1); result = (char *) ((arg1)->ConfirmTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSettlementInfoConfirmField_allocate(VALUE self) #else _wrap_CThostFtdcSettlementInfoConfirmField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSettlementInfoConfirmField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSettlementInfoConfirmField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSettlementInfoConfirmField"; CThostFtdcSettlementInfoConfirmField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSettlementInfoConfirmField *)new CThostFtdcSettlementInfoConfirmField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSettlementInfoConfirmField(void *self) { CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncDepositField; SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_DepositSeqNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[15] ; 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","DepositSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 15); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [15]","DepositSeqNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DepositSeqNo,arg2,15*sizeof(char)); else memset(arg1->DepositSeqNo,0,15*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_DepositSeqNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","DepositSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); result = (char *) ((arg1)->DepositSeqNo); { size_t size = SWIG_strnlen(result, 15); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_Deposit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","Deposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Deposit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Deposit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_Deposit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","Deposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Deposit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_IsForce_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 0 ; TThostFtdcBoolType 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","IsForce", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsForce", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsForce = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_IsForce_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","IsForce", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsForce); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncDepositField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncDepositField_allocate(VALUE self) #else _wrap_CThostFtdcSyncDepositField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncDepositField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncDepositField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncDepositField"; CThostFtdcSyncDepositField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncDepositField *)new CThostFtdcSyncDepositField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncDepositField(void *self) { CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncFundMortgageField; SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_MortgageSeqNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[15] ; 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","MortgageSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 15); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [15]","MortgageSeqNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MortgageSeqNo,arg2,15*sizeof(char)); else memset(arg1->MortgageSeqNo,0,15*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_MortgageSeqNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","MortgageSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); result = (char *) ((arg1)->MortgageSeqNo); { size_t size = SWIG_strnlen(result, 15); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_FromCurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","FromCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","FromCurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FromCurrencyID,arg2,4*sizeof(char)); else memset(arg1->FromCurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_FromCurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","FromCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); result = (char *) ((arg1)->FromCurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_MortgageAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","MortgageAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","MortgageAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->MortgageAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_MortgageAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","MortgageAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->MortgageAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_ToCurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","ToCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","ToCurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ToCurrencyID,arg2,4*sizeof(char)); else memset(arg1->ToCurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_ToCurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","ToCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); result = (char *) ((arg1)->ToCurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncFundMortgageField_allocate(VALUE self) #else _wrap_CThostFtdcSyncFundMortgageField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncFundMortgageField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncFundMortgageField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncFundMortgageField"; CThostFtdcSyncFundMortgageField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncFundMortgageField *)new CThostFtdcSyncFundMortgageField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncFundMortgageField(void *self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerSyncField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerSyncField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerSyncField *arg1 = (CThostFtdcBrokerSyncField *) 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_CThostFtdcBrokerSyncField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerSyncField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerSyncField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerSyncField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerSyncField *arg1 = (CThostFtdcBrokerSyncField *) 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_CThostFtdcBrokerSyncField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerSyncField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerSyncField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerSyncField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerSyncField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerSyncField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerSyncField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerSyncField"; CThostFtdcBrokerSyncField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerSyncField *)new CThostFtdcBrokerSyncField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerSyncField(void *self) { CThostFtdcBrokerSyncField *arg1 = (CThostFtdcBrokerSyncField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncingInvestorField; SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_InvestorGroupID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","InvestorGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorGroupID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorGroupID,arg2,13*sizeof(char)); else memset(arg1->InvestorGroupID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_InvestorGroupID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","InvestorGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->InvestorGroupID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_InvestorName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","InvestorName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","InvestorName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorName,arg2,81*sizeof(char)); else memset(arg1->InvestorName,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_InvestorName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","InvestorName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->InvestorName); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_IdentifiedCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","IdentifiedCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdentifiedCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdentifiedCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_IdentifiedCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","IdentifiedCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdentifiedCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 0 ; TThostFtdcBoolType 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_Telephone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Telephone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Telephone,arg2,41*sizeof(char)); else memset(arg1->Telephone,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_Telephone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->Telephone); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_Address_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","Address", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Address,arg2,101*sizeof(char)); else memset(arg1->Address,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_Address_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->Address); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_OpenDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","OpenDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","OpenDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OpenDate,arg2,9*sizeof(char)); else memset(arg1->OpenDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_OpenDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","OpenDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->OpenDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_Mobile_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","Mobile", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Mobile", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Mobile,arg2,41*sizeof(char)); else memset(arg1->Mobile,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_Mobile_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","Mobile", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->Mobile); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_CommModelID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","CommModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","CommModelID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CommModelID,arg2,13*sizeof(char)); else memset(arg1->CommModelID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_CommModelID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","CommModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->CommModelID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_MarginModelID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","MarginModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","MarginModelID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MarginModelID,arg2,13*sizeof(char)); else memset(arg1->MarginModelID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorField_MarginModelID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *) 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_CThostFtdcSyncingInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorField *","MarginModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorField * >(argp1); result = (char *) ((arg1)->MarginModelID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncingInvestorField_allocate(VALUE self) #else _wrap_CThostFtdcSyncingInvestorField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncingInvestorField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncingInvestorField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingInvestorField"; CThostFtdcSyncingInvestorField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncingInvestorField *)new CThostFtdcSyncingInvestorField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncingInvestorField(void *self) { CThostFtdcSyncingInvestorField *arg1 = (CThostFtdcSyncingInvestorField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncingTradingCodeField; SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 0 ; TThostFtdcBoolType 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_ClientIDType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 0 ; TThostFtdcClientIDTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ClientIDType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcClientIDTypeType","ClientIDType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcClientIDTypeType >(val2); if (arg1) (arg1)->ClientIDType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingCodeField_ClientIDType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcClientIDTypeType 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_CThostFtdcSyncingTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ClientIDType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1); result = (TThostFtdcClientIDTypeType) ((arg1)->ClientIDType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncingTradingCodeField_allocate(VALUE self) #else _wrap_CThostFtdcSyncingTradingCodeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncingTradingCodeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncingTradingCodeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingTradingCodeField"; CThostFtdcSyncingTradingCodeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncingTradingCodeField *)new CThostFtdcSyncingTradingCodeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncingTradingCodeField(void *self) { CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncingInvestorGroupField; SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorGroupField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorGroupField *arg1 = (CThostFtdcSyncingInvestorGroupField *) 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_CThostFtdcSyncingInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorGroupField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorGroupField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorGroupField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorGroupField *arg1 = (CThostFtdcSyncingInvestorGroupField *) 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_CThostFtdcSyncingInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorGroupField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorGroupField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorGroupField_InvestorGroupID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorGroupField *arg1 = (CThostFtdcSyncingInvestorGroupField *) 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_CThostFtdcSyncingInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorGroupField *","InvestorGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorGroupField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorGroupID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorGroupID,arg2,13*sizeof(char)); else memset(arg1->InvestorGroupID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorGroupField_InvestorGroupID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorGroupField *arg1 = (CThostFtdcSyncingInvestorGroupField *) 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_CThostFtdcSyncingInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorGroupField *","InvestorGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorGroupField * >(argp1); result = (char *) ((arg1)->InvestorGroupID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorGroupField_InvestorGroupName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorGroupField *arg1 = (CThostFtdcSyncingInvestorGroupField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcSyncingInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorGroupField *","InvestorGroupName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorGroupField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","InvestorGroupName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorGroupName,arg2,41*sizeof(char)); else memset(arg1->InvestorGroupName,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorGroupField_InvestorGroupName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorGroupField *arg1 = (CThostFtdcSyncingInvestorGroupField *) 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_CThostFtdcSyncingInvestorGroupField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorGroupField *","InvestorGroupName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorGroupField * >(argp1); result = (char *) ((arg1)->InvestorGroupName); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncingInvestorGroupField_allocate(VALUE self) #else _wrap_CThostFtdcSyncingInvestorGroupField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncingInvestorGroupField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncingInvestorGroupField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingInvestorGroupField"; CThostFtdcSyncingInvestorGroupField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncingInvestorGroupField *)new CThostFtdcSyncingInvestorGroupField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncingInvestorGroupField(void *self) { CThostFtdcSyncingInvestorGroupField *arg1 = (CThostFtdcSyncingInvestorGroupField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncingTradingAccountField; SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreMortgage_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreMortgage", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreMortgage", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreMortgage = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreMortgage_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreMortgage", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreMortgage); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreCredit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreCredit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreCredit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreCredit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreCredit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreCredit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreCredit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreDeposit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreDeposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreDeposit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreDeposit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreDeposit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreDeposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreDeposit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreBalance_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreBalance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreBalance", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreBalance = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreBalance_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreBalance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreBalance); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_InterestBase_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","InterestBase", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","InterestBase", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->InterestBase = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_InterestBase_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","InterestBase", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->InterestBase); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Interest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Interest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Interest", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Interest = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Interest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Interest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Interest); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Deposit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Deposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Deposit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Deposit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Deposit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Deposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Deposit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Withdraw_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Withdraw", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Withdraw", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Withdraw = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Withdraw_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Withdraw", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Withdraw); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FrozenMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FrozenMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FrozenCash_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenCash", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCash", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenCash = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FrozenCash_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenCash", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenCash); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FrozenCommission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCommission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenCommission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FrozenCommission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenCommission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_CurrMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CurrMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CurrMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CurrMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_CurrMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CurrMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CurrMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_CashIn_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CashIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CashIn", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CashIn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_CashIn_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CashIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CashIn); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Commission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Commission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Commission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Commission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Commission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Commission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Commission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_CloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_CloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PositionProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PositionProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PositionProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PositionProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PositionProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Balance_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Balance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Balance", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Balance = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Balance_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Balance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Balance); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Available_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Available", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Available", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Available = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Available_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Available", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Available); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_WithdrawQuota_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","WithdrawQuota", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","WithdrawQuota", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->WithdrawQuota = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_WithdrawQuota_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","WithdrawQuota", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->WithdrawQuota); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Reserve_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Reserve", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Reserve", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Reserve = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Reserve_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Reserve", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Reserve); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Credit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Credit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Credit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Credit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Credit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Credit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Credit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Mortgage_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Mortgage", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Mortgage", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Mortgage = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_Mortgage_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Mortgage", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Mortgage); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_ExchangeMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchangeMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchangeMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_ExchangeMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchangeMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_DeliveryMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","DeliveryMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","DeliveryMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->DeliveryMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_DeliveryMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","DeliveryMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->DeliveryMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_ExchangeDeliveryMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ExchangeDeliveryMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchangeDeliveryMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchangeDeliveryMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_ExchangeDeliveryMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ExchangeDeliveryMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchangeDeliveryMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_ReserveBalance_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ReserveBalance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ReserveBalance", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ReserveBalance = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_ReserveBalance_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ReserveBalance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ReserveBalance); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageIn_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreFundMortgageIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreFundMortgageIn", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreFundMortgageIn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageIn_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreFundMortgageIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreFundMortgageIn); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageOut_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreFundMortgageOut", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreFundMortgageOut", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreFundMortgageOut = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageOut_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreFundMortgageOut", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreFundMortgageOut); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FundMortgageIn_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FundMortgageIn", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FundMortgageIn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FundMortgageIn_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FundMortgageIn); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FundMortgageOut_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageOut", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FundMortgageOut", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FundMortgageOut = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FundMortgageOut_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageOut", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FundMortgageOut); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FundMortgageAvailable_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageAvailable", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FundMortgageAvailable", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FundMortgageAvailable = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_FundMortgageAvailable_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageAvailable", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FundMortgageAvailable); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_MortgageableFund_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","MortgageableFund", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","MortgageableFund", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->MortgageableFund = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_MortgageableFund_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","MortgageableFund", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->MortgageableFund); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductFrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductFrozenMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductFrozenMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductFrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductFrozenMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductCommission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductCommission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductCommission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductCommission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductCommission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenCommission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductFrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductFrozenCommission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductFrozenCommission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenCommission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductFrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductFrozenCommission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductPositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductPositionProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductPositionProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductPositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductPositionProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductCloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductCloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductCloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductCloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductCloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductCloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductCloseProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfitByAlg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductPositionProfitByAlg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductPositionProfitByAlg", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductPositionProfitByAlg = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfitByAlg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductPositionProfitByAlg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductPositionProfitByAlg); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductExchangeMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductExchangeMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SpecProductExchangeMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingTradingAccountField_SpecProductExchangeMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SpecProductExchangeMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncingTradingAccountField_allocate(VALUE self) #else _wrap_CThostFtdcSyncingTradingAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncingTradingAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncingTradingAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingTradingAccountField"; CThostFtdcSyncingTradingAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncingTradingAccountField *)new CThostFtdcSyncingTradingAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncingTradingAccountField(void *self) { CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncingInvestorPositionField; SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PosiDirection_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcPosiDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPosiDirectionType","PosiDirection", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPosiDirectionType >(val2); if (arg1) (arg1)->PosiDirection = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PosiDirection_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPosiDirectionType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcPosiDirectionType) ((arg1)->PosiDirection); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PositionDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcPositionDateType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PositionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPositionDateType","PositionDate", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPositionDateType >(val2); if (arg1) (arg1)->PositionDate = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PositionDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPositionDateType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PositionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcPositionDateType) ((arg1)->PositionDate); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_YdPosition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","YdPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","YdPosition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->YdPosition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_YdPosition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","YdPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->YdPosition); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_Position_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","Position", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Position", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Position = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_Position_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","Position", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Position); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_LongFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","LongFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","LongFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->LongFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_LongFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","LongFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->LongFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_ShortFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","ShortFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","ShortFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->ShortFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_ShortFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","ShortFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->ShortFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_LongFrozenAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","LongFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongFrozenAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongFrozenAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_LongFrozenAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","LongFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongFrozenAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_ShortFrozenAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","ShortFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortFrozenAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortFrozenAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_ShortFrozenAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","ShortFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortFrozenAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_OpenVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","OpenVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","OpenVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->OpenVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_OpenVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","OpenVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->OpenVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CloseVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CloseVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","CloseVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->CloseVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CloseVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CloseVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->CloseVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_OpenAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","OpenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","OpenAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->OpenAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_OpenAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","OpenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->OpenAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CloseAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CloseAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CloseAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CloseAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PositionCost_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PositionCost", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PositionCost", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PositionCost = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PositionCost_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PositionCost", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PositionCost); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PreMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PreMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PreMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PreMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_UseMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","UseMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","UseMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->UseMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_UseMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","UseMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->UseMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_FrozenMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_FrozenMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_FrozenCash_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","FrozenCash", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCash", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenCash = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_FrozenCash_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","FrozenCash", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenCash); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_FrozenCommission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","FrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCommission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenCommission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_FrozenCommission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","FrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenCommission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CashIn_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CashIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CashIn", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CashIn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CashIn_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CashIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CashIn); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_Commission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","Commission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Commission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Commission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_Commission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","Commission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Commission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PositionProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PositionProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PositionProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PositionProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PositionProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PreSettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PreSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreSettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->PreSettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_PreSettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","PreSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->PreSettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_SettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","SettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->SettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_SettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->SettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_OpenCost_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","OpenCost", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","OpenCost", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->OpenCost = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_OpenCost_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","OpenCost", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->OpenCost); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_ExchangeMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","ExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchangeMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchangeMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_ExchangeMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","ExchangeMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchangeMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CombPosition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CombPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","CombPosition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->CombPosition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CombPosition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CombPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->CombPosition); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CombLongFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CombLongFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","CombLongFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->CombLongFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CombLongFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CombLongFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->CombLongFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CombShortFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CombShortFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","CombShortFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->CombShortFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CombShortFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CombShortFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->CombShortFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CloseProfitByDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CloseProfitByDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfitByDate", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfitByDate = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CloseProfitByDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CloseProfitByDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfitByDate); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CloseProfitByTrade_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CloseProfitByTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfitByTrade", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfitByTrade = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_CloseProfitByTrade_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","CloseProfitByTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfitByTrade); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_TodayPosition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","TodayPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","TodayPosition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->TodayPosition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_TodayPosition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","TodayPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->TodayPosition); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_MarginRateByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","MarginRateByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","MarginRateByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->MarginRateByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_MarginRateByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","MarginRateByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->MarginRateByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_MarginRateByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","MarginRateByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","MarginRateByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->MarginRateByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_MarginRateByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","MarginRateByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->MarginRateByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_StrikeFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","StrikeFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","StrikeFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->StrikeFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_StrikeFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","StrikeFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->StrikeFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_StrikeFrozenAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","StrikeFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","StrikeFrozenAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->StrikeFrozenAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_StrikeFrozenAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","StrikeFrozenAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->StrikeFrozenAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_AbandonFrozen_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","AbandonFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AbandonFrozen", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AbandonFrozen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInvestorPositionField_AbandonFrozen_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcSyncingInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInvestorPositionField *","AbandonFrozen", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInvestorPositionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AbandonFrozen); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncingInvestorPositionField_allocate(VALUE self) #else _wrap_CThostFtdcSyncingInvestorPositionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncingInvestorPositionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncingInvestorPositionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingInvestorPositionField"; CThostFtdcSyncingInvestorPositionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncingInvestorPositionField *)new CThostFtdcSyncingInvestorPositionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncingInvestorPositionField(void *self) { CThostFtdcSyncingInvestorPositionField *arg1 = (CThostFtdcSyncingInvestorPositionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncingInstrumentMarginRateField; SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","LongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","LongMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->LongMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","LongMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->LongMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","LongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","LongMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","ShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","ShortMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->ShortMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","ShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->ShortMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","ShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","ShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_IsRelative_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; TThostFtdcBoolType 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","IsRelative", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsRelative", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsRelative = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentMarginRateField_IsRelative_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","IsRelative", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsRelative); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncingInstrumentMarginRateField_allocate(VALUE self) #else _wrap_CThostFtdcSyncingInstrumentMarginRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncingInstrumentMarginRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncingInstrumentMarginRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingInstrumentMarginRateField"; CThostFtdcSyncingInstrumentMarginRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncingInstrumentMarginRateField *)new CThostFtdcSyncingInstrumentMarginRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncingInstrumentMarginRateField(void *self) { CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncingInstrumentCommissionRateField; SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","OpenRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","OpenRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->OpenRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","OpenRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->OpenRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","OpenRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","OpenRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->OpenRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","OpenRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->OpenRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseTodayRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseTodayRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseTodayRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseTodayRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseTodayRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseTodayRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseTodayRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseTodayRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseTodayRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseTodayRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncingInstrumentCommissionRateField_allocate(VALUE self) #else _wrap_CThostFtdcSyncingInstrumentCommissionRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncingInstrumentCommissionRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncingInstrumentCommissionRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingInstrumentCommissionRateField"; CThostFtdcSyncingInstrumentCommissionRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncingInstrumentCommissionRateField *)new CThostFtdcSyncingInstrumentCommissionRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncingInstrumentCommissionRateField(void *self) { CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncingInstrumentTradingRightField; SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentTradingRightField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *) 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_CThostFtdcSyncingInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentTradingRightField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentTradingRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentTradingRightField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *) 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_CThostFtdcSyncingInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentTradingRightField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentTradingRightField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentTradingRightField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncingInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentTradingRightField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentTradingRightField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentTradingRightField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcSyncingInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentTradingRightField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentTradingRightField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentTradingRightField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *) 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_CThostFtdcSyncingInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentTradingRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentTradingRightField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentTradingRightField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *) 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_CThostFtdcSyncingInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentTradingRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentTradingRightField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentTradingRightField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *) 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_CThostFtdcSyncingInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentTradingRightField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentTradingRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentTradingRightField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *) 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_CThostFtdcSyncingInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentTradingRightField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentTradingRightField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentTradingRightField_TradingRight_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *) 0 ; TThostFtdcTradingRightType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncingInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentTradingRightField *","TradingRight", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentTradingRightField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradingRightType","TradingRight", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradingRightType >(val2); if (arg1) (arg1)->TradingRight = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncingInstrumentTradingRightField_TradingRight_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradingRightType 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_CThostFtdcSyncingInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentTradingRightField *","TradingRight", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentTradingRightField * >(argp1); result = (TThostFtdcTradingRightType) ((arg1)->TradingRight); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncingInstrumentTradingRightField_allocate(VALUE self) #else _wrap_CThostFtdcSyncingInstrumentTradingRightField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncingInstrumentTradingRightField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncingInstrumentTradingRightField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingInstrumentTradingRightField"; CThostFtdcSyncingInstrumentTradingRightField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncingInstrumentTradingRightField *)new CThostFtdcSyncingInstrumentTradingRightField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncingInstrumentTradingRightField(void *self) { CThostFtdcSyncingInstrumentTradingRightField *arg1 = (CThostFtdcSyncingInstrumentTradingRightField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryOrderField; SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_InsertTimeStart_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","InsertTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTimeStart", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTimeStart,arg2,9*sizeof(char)); else memset(arg1->InsertTimeStart,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_InsertTimeStart_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","InsertTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); result = (char *) ((arg1)->InsertTimeStart); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_InsertTimeEnd_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","InsertTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTimeEnd", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTimeEnd,arg2,9*sizeof(char)); else memset(arg1->InsertTimeEnd,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderField_InsertTimeEnd_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *) 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_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","InsertTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderField * >(argp1); result = (char *) ((arg1)->InsertTimeEnd); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryOrderField_allocate(VALUE self) #else _wrap_CThostFtdcQryOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryOrderField"; CThostFtdcQryOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryOrderField *)new CThostFtdcQryOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryOrderField(void *self) { CThostFtdcQryOrderField *arg1 = (CThostFtdcQryOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryTradeField; SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_TradeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","TradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TradeID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeID,arg2,21*sizeof(char)); else memset(arg1->TradeID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_TradeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","TradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); result = (char *) ((arg1)->TradeID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_TradeTimeStart_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","TradeTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTimeStart", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTimeStart,arg2,9*sizeof(char)); else memset(arg1->TradeTimeStart,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_TradeTimeStart_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","TradeTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); result = (char *) ((arg1)->TradeTimeStart); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_TradeTimeEnd_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","TradeTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTimeEnd", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTimeEnd,arg2,9*sizeof(char)); else memset(arg1->TradeTimeEnd,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradeField_TradeTimeEnd_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *) 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_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","TradeTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradeField * >(argp1); result = (char *) ((arg1)->TradeTimeEnd); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryTradeField_allocate(VALUE self) #else _wrap_CThostFtdcQryTradeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryTradeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryTradeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTradeField"; CThostFtdcQryTradeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryTradeField *)new CThostFtdcQryTradeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryTradeField(void *self) { CThostFtdcQryTradeField *arg1 = (CThostFtdcQryTradeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInvestorPositionField; SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionField *arg1 = (CThostFtdcQryInvestorPositionField *) 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_CThostFtdcQryInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionField *arg1 = (CThostFtdcQryInvestorPositionField *) 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_CThostFtdcQryInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionField *arg1 = (CThostFtdcQryInvestorPositionField *) 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_CThostFtdcQryInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionField *arg1 = (CThostFtdcQryInvestorPositionField *) 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_CThostFtdcQryInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionField *arg1 = (CThostFtdcQryInvestorPositionField *) 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_CThostFtdcQryInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionField *arg1 = (CThostFtdcQryInvestorPositionField *) 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_CThostFtdcQryInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInvestorPositionField_allocate(VALUE self) #else _wrap_CThostFtdcQryInvestorPositionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInvestorPositionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryInvestorPositionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInvestorPositionField"; CThostFtdcQryInvestorPositionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInvestorPositionField *)new CThostFtdcQryInvestorPositionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryInvestorPositionField(void *self) { CThostFtdcQryInvestorPositionField *arg1 = (CThostFtdcQryInvestorPositionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryTradingAccountField; SWIGINTERN VALUE _wrap_CThostFtdcQryTradingAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingAccountField *arg1 = (CThostFtdcQryTradingAccountField *) 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_CThostFtdcQryTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingAccountField *arg1 = (CThostFtdcQryTradingAccountField *) 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_CThostFtdcQryTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingAccountField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingAccountField *arg1 = (CThostFtdcQryTradingAccountField *) 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_CThostFtdcQryTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingAccountField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingAccountField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingAccountField *arg1 = (CThostFtdcQryTradingAccountField *) 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_CThostFtdcQryTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingAccountField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingAccountField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingAccountField *arg1 = (CThostFtdcQryTradingAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQryTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingAccountField *arg1 = (CThostFtdcQryTradingAccountField *) 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_CThostFtdcQryTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryTradingAccountField_allocate(VALUE self) #else _wrap_CThostFtdcQryTradingAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryTradingAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryTradingAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTradingAccountField"; CThostFtdcQryTradingAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryTradingAccountField *)new CThostFtdcQryTradingAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryTradingAccountField(void *self) { CThostFtdcQryTradingAccountField *arg1 = (CThostFtdcQryTradingAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInvestorField; SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorField *arg1 = (CThostFtdcQryInvestorField *) 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_CThostFtdcQryInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorField *arg1 = (CThostFtdcQryInvestorField *) 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_CThostFtdcQryInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorField *arg1 = (CThostFtdcQryInvestorField *) 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_CThostFtdcQryInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorField *arg1 = (CThostFtdcQryInvestorField *) 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_CThostFtdcQryInvestorField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInvestorField_allocate(VALUE self) #else _wrap_CThostFtdcQryInvestorField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInvestorField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryInvestorField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInvestorField"; CThostFtdcQryInvestorField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInvestorField *)new CThostFtdcQryInvestorField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryInvestorField(void *self) { CThostFtdcQryInvestorField *arg1 = (CThostFtdcQryInvestorField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryTradingCodeField; SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ClientIDType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 0 ; TThostFtdcClientIDTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ClientIDType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcClientIDTypeType","ClientIDType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcClientIDTypeType >(val2); if (arg1) (arg1)->ClientIDType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ClientIDType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcClientIDTypeType 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ClientIDType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); result = (TThostFtdcClientIDTypeType) ((arg1)->ClientIDType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryTradingCodeField_allocate(VALUE self) #else _wrap_CThostFtdcQryTradingCodeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryTradingCodeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryTradingCodeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTradingCodeField"; CThostFtdcQryTradingCodeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryTradingCodeField *)new CThostFtdcQryTradingCodeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryTradingCodeField(void *self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInvestorGroupField; 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; } 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; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInvestorGroupField_allocate(VALUE self) #else _wrap_CThostFtdcQryInvestorGroupField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInvestorGroupField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } 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; } SWIGINTERN void free_CThostFtdcQryInvestorGroupField(void *self) { CThostFtdcQryInvestorGroupField *arg1 = (CThostFtdcQryInvestorGroupField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInstrumentMarginRateField; SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentMarginRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentMarginRateField *arg1 = (CThostFtdcQryInstrumentMarginRateField *) 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_CThostFtdcQryInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentMarginRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentMarginRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentMarginRateField *arg1 = (CThostFtdcQryInstrumentMarginRateField *) 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_CThostFtdcQryInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentMarginRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentMarginRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentMarginRateField *arg1 = (CThostFtdcQryInstrumentMarginRateField *) 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_CThostFtdcQryInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentMarginRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentMarginRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentMarginRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentMarginRateField *arg1 = (CThostFtdcQryInstrumentMarginRateField *) 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_CThostFtdcQryInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentMarginRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentMarginRateField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentMarginRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentMarginRateField *arg1 = (CThostFtdcQryInstrumentMarginRateField *) 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_CThostFtdcQryInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentMarginRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentMarginRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentMarginRateField *arg1 = (CThostFtdcQryInstrumentMarginRateField *) 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_CThostFtdcQryInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentMarginRateField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentMarginRateField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentMarginRateField *arg1 = (CThostFtdcQryInstrumentMarginRateField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentMarginRateField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentMarginRateField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentMarginRateField *arg1 = (CThostFtdcQryInstrumentMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQryInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentMarginRateField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInstrumentMarginRateField_allocate(VALUE self) #else _wrap_CThostFtdcQryInstrumentMarginRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInstrumentMarginRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryInstrumentMarginRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInstrumentMarginRateField"; CThostFtdcQryInstrumentMarginRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInstrumentMarginRateField *)new CThostFtdcQryInstrumentMarginRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryInstrumentMarginRateField(void *self) { CThostFtdcQryInstrumentMarginRateField *arg1 = (CThostFtdcQryInstrumentMarginRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInstrumentCommissionRateField; SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentCommissionRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentCommissionRateField *arg1 = (CThostFtdcQryInstrumentCommissionRateField *) 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_CThostFtdcQryInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentCommissionRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentCommissionRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentCommissionRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentCommissionRateField *arg1 = (CThostFtdcQryInstrumentCommissionRateField *) 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_CThostFtdcQryInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentCommissionRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentCommissionRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentCommissionRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentCommissionRateField *arg1 = (CThostFtdcQryInstrumentCommissionRateField *) 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_CThostFtdcQryInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentCommissionRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentCommissionRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentCommissionRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentCommissionRateField *arg1 = (CThostFtdcQryInstrumentCommissionRateField *) 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_CThostFtdcQryInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentCommissionRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentCommissionRateField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentCommissionRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentCommissionRateField *arg1 = (CThostFtdcQryInstrumentCommissionRateField *) 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_CThostFtdcQryInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentCommissionRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentCommissionRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentCommissionRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentCommissionRateField *arg1 = (CThostFtdcQryInstrumentCommissionRateField *) 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_CThostFtdcQryInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentCommissionRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentCommissionRateField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInstrumentCommissionRateField_allocate(VALUE self) #else _wrap_CThostFtdcQryInstrumentCommissionRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInstrumentCommissionRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryInstrumentCommissionRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInstrumentCommissionRateField"; CThostFtdcQryInstrumentCommissionRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInstrumentCommissionRateField *)new CThostFtdcQryInstrumentCommissionRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryInstrumentCommissionRateField(void *self) { CThostFtdcQryInstrumentCommissionRateField *arg1 = (CThostFtdcQryInstrumentCommissionRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInstrumentTradingRightField; SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentTradingRightField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentTradingRightField *arg1 = (CThostFtdcQryInstrumentTradingRightField *) 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_CThostFtdcQryInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentTradingRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentTradingRightField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentTradingRightField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentTradingRightField *arg1 = (CThostFtdcQryInstrumentTradingRightField *) 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_CThostFtdcQryInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentTradingRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentTradingRightField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentTradingRightField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentTradingRightField *arg1 = (CThostFtdcQryInstrumentTradingRightField *) 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_CThostFtdcQryInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentTradingRightField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentTradingRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentTradingRightField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentTradingRightField *arg1 = (CThostFtdcQryInstrumentTradingRightField *) 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_CThostFtdcQryInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentTradingRightField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentTradingRightField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentTradingRightField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentTradingRightField *arg1 = (CThostFtdcQryInstrumentTradingRightField *) 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_CThostFtdcQryInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentTradingRightField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentTradingRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentTradingRightField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentTradingRightField *arg1 = (CThostFtdcQryInstrumentTradingRightField *) 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_CThostFtdcQryInstrumentTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentTradingRightField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentTradingRightField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInstrumentTradingRightField_allocate(VALUE self) #else _wrap_CThostFtdcQryInstrumentTradingRightField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInstrumentTradingRightField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryInstrumentTradingRightField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInstrumentTradingRightField"; CThostFtdcQryInstrumentTradingRightField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInstrumentTradingRightField *)new CThostFtdcQryInstrumentTradingRightField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryInstrumentTradingRightField(void *self) { CThostFtdcQryInstrumentTradingRightField *arg1 = (CThostFtdcQryInstrumentTradingRightField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryBrokerField; SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerField *arg1 = (CThostFtdcQryBrokerField *) 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_CThostFtdcQryBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerField *arg1 = (CThostFtdcQryBrokerField *) 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_CThostFtdcQryBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryBrokerField_allocate(VALUE self) #else _wrap_CThostFtdcQryBrokerField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryBrokerField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryBrokerField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryBrokerField"; CThostFtdcQryBrokerField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryBrokerField *)new CThostFtdcQryBrokerField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryBrokerField(void *self) { CThostFtdcQryBrokerField *arg1 = (CThostFtdcQryBrokerField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryTraderField; SWIGINTERN VALUE _wrap_CThostFtdcQryTraderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTraderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTraderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTraderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTraderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTraderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryTraderField_allocate(VALUE self) #else _wrap_CThostFtdcQryTraderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryTraderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryTraderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTraderField"; CThostFtdcQryTraderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryTraderField *)new CThostFtdcQryTraderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryTraderField(void *self) { CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQrySuperUserFunctionField; SWIGINTERN VALUE _wrap_CThostFtdcQrySuperUserFunctionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySuperUserFunctionField *arg1 = (CThostFtdcQrySuperUserFunctionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQrySuperUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySuperUserFunctionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySuperUserFunctionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySuperUserFunctionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySuperUserFunctionField *arg1 = (CThostFtdcQrySuperUserFunctionField *) 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_CThostFtdcQrySuperUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySuperUserFunctionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySuperUserFunctionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQrySuperUserFunctionField_allocate(VALUE self) #else _wrap_CThostFtdcQrySuperUserFunctionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQrySuperUserFunctionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQrySuperUserFunctionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySuperUserFunctionField"; CThostFtdcQrySuperUserFunctionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQrySuperUserFunctionField *)new CThostFtdcQrySuperUserFunctionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQrySuperUserFunctionField(void *self) { CThostFtdcQrySuperUserFunctionField *arg1 = (CThostFtdcQrySuperUserFunctionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryUserSessionField; SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryUserSessionField_allocate(VALUE self) #else _wrap_CThostFtdcQryUserSessionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryUserSessionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryUserSessionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryUserSessionField"; CThostFtdcQryUserSessionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryUserSessionField *)new CThostFtdcQryUserSessionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryUserSessionField(void *self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryPartBrokerField; SWIGINTERN VALUE _wrap_CThostFtdcQryPartBrokerField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryPartBrokerField *arg1 = (CThostFtdcQryPartBrokerField *) 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_CThostFtdcQryPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryPartBrokerField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryPartBrokerField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryPartBrokerField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryPartBrokerField *arg1 = (CThostFtdcQryPartBrokerField *) 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_CThostFtdcQryPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryPartBrokerField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryPartBrokerField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryPartBrokerField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryPartBrokerField *arg1 = (CThostFtdcQryPartBrokerField *) 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_CThostFtdcQryPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryPartBrokerField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryPartBrokerField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryPartBrokerField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryPartBrokerField *arg1 = (CThostFtdcQryPartBrokerField *) 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_CThostFtdcQryPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryPartBrokerField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryPartBrokerField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryPartBrokerField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryPartBrokerField *arg1 = (CThostFtdcQryPartBrokerField *) 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_CThostFtdcQryPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryPartBrokerField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryPartBrokerField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryPartBrokerField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryPartBrokerField *arg1 = (CThostFtdcQryPartBrokerField *) 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_CThostFtdcQryPartBrokerField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryPartBrokerField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryPartBrokerField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryPartBrokerField_allocate(VALUE self) #else _wrap_CThostFtdcQryPartBrokerField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryPartBrokerField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryPartBrokerField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryPartBrokerField"; CThostFtdcQryPartBrokerField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryPartBrokerField *)new CThostFtdcQryPartBrokerField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryPartBrokerField(void *self) { CThostFtdcQryPartBrokerField *arg1 = (CThostFtdcQryPartBrokerField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryFrontStatusField; SWIGINTERN VALUE _wrap_CThostFtdcQryFrontStatusField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryFrontStatusField *arg1 = (CThostFtdcQryFrontStatusField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcQryFrontStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryFrontStatusField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryFrontStatusField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryFrontStatusField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryFrontStatusField *arg1 = (CThostFtdcQryFrontStatusField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcQryFrontStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryFrontStatusField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryFrontStatusField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryFrontStatusField_allocate(VALUE self) #else _wrap_CThostFtdcQryFrontStatusField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryFrontStatusField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryFrontStatusField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryFrontStatusField"; CThostFtdcQryFrontStatusField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryFrontStatusField *)new CThostFtdcQryFrontStatusField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryFrontStatusField(void *self) { CThostFtdcQryFrontStatusField *arg1 = (CThostFtdcQryFrontStatusField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeOrderField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *) 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_CThostFtdcQryExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *) 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_CThostFtdcQryExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *) 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_CThostFtdcQryExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *) 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_CThostFtdcQryExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *) 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_CThostFtdcQryExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *) 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_CThostFtdcQryExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *) 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_CThostFtdcQryExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *) 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_CThostFtdcQryExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *) 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_CThostFtdcQryExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *) 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_CThostFtdcQryExchangeOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeOrderField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeOrderField"; CThostFtdcQryExchangeOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeOrderField *)new CThostFtdcQryExchangeOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeOrderField(void *self) { CThostFtdcQryExchangeOrderField *arg1 = (CThostFtdcQryExchangeOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcQryOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderActionField *arg1 = (CThostFtdcQryOrderActionField *) 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_CThostFtdcQryOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderActionField *arg1 = (CThostFtdcQryOrderActionField *) 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_CThostFtdcQryOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderActionField *arg1 = (CThostFtdcQryOrderActionField *) 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_CThostFtdcQryOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderActionField *arg1 = (CThostFtdcQryOrderActionField *) 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_CThostFtdcQryOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderActionField *arg1 = (CThostFtdcQryOrderActionField *) 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_CThostFtdcQryOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOrderActionField *arg1 = (CThostFtdcQryOrderActionField *) 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_CThostFtdcQryOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryOrderActionField"; CThostFtdcQryOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryOrderActionField *)new CThostFtdcQryOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryOrderActionField(void *self) { CThostFtdcQryOrderActionField *arg1 = (CThostFtdcQryOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderActionField *arg1 = (CThostFtdcQryExchangeOrderActionField *) 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_CThostFtdcQryExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderActionField *arg1 = (CThostFtdcQryExchangeOrderActionField *) 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_CThostFtdcQryExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderActionField *arg1 = (CThostFtdcQryExchangeOrderActionField *) 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_CThostFtdcQryExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderActionField *arg1 = (CThostFtdcQryExchangeOrderActionField *) 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_CThostFtdcQryExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderActionField *arg1 = (CThostFtdcQryExchangeOrderActionField *) 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_CThostFtdcQryExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderActionField *arg1 = (CThostFtdcQryExchangeOrderActionField *) 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_CThostFtdcQryExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderActionField *arg1 = (CThostFtdcQryExchangeOrderActionField *) 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_CThostFtdcQryExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeOrderActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeOrderActionField *arg1 = (CThostFtdcQryExchangeOrderActionField *) 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_CThostFtdcQryExchangeOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeOrderActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeOrderActionField"; CThostFtdcQryExchangeOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeOrderActionField *)new CThostFtdcQryExchangeOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeOrderActionField(void *self) { CThostFtdcQryExchangeOrderActionField *arg1 = (CThostFtdcQryExchangeOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQrySuperUserField; SWIGINTERN VALUE _wrap_CThostFtdcQrySuperUserField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySuperUserField *arg1 = (CThostFtdcQrySuperUserField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQrySuperUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySuperUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySuperUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySuperUserField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySuperUserField *arg1 = (CThostFtdcQrySuperUserField *) 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_CThostFtdcQrySuperUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySuperUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySuperUserField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQrySuperUserField_allocate(VALUE self) #else _wrap_CThostFtdcQrySuperUserField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQrySuperUserField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQrySuperUserField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySuperUserField"; CThostFtdcQrySuperUserField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQrySuperUserField *)new CThostFtdcQrySuperUserField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQrySuperUserField(void *self) { CThostFtdcQrySuperUserField *arg1 = (CThostFtdcQrySuperUserField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeField *arg1 = (CThostFtdcQryExchangeField *) 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_CThostFtdcQryExchangeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeField *arg1 = (CThostFtdcQryExchangeField *) 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_CThostFtdcQryExchangeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeField"; CThostFtdcQryExchangeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeField *)new CThostFtdcQryExchangeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeField(void *self) { CThostFtdcQryExchangeField *arg1 = (CThostFtdcQryExchangeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryProductField; SWIGINTERN VALUE _wrap_CThostFtdcQryProductField_ProductID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryProductField *arg1 = (CThostFtdcQryProductField *) 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_CThostFtdcQryProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryProductField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProductID,arg2,31*sizeof(char)); else memset(arg1->ProductID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryProductField_ProductID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryProductField *arg1 = (CThostFtdcQryProductField *) 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_CThostFtdcQryProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryProductField * >(argp1); result = (char *) ((arg1)->ProductID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryProductField_ProductClass_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryProductField *arg1 = (CThostFtdcQryProductField *) 0 ; TThostFtdcProductClassType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductField *","ProductClass", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryProductField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcProductClassType","ProductClass", 2, argv[0] )); } arg2 = static_cast< TThostFtdcProductClassType >(val2); if (arg1) (arg1)->ProductClass = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryProductField_ProductClass_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryProductField *arg1 = (CThostFtdcQryProductField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcProductClassType 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_CThostFtdcQryProductField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductField *","ProductClass", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryProductField * >(argp1); result = (TThostFtdcProductClassType) ((arg1)->ProductClass); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryProductField_allocate(VALUE self) #else _wrap_CThostFtdcQryProductField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryProductField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryProductField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryProductField"; CThostFtdcQryProductField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryProductField *)new CThostFtdcQryProductField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryProductField(void *self) { CThostFtdcQryProductField *arg1 = (CThostFtdcQryProductField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInstrumentField; SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentField_ProductID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProductID,arg2,31*sizeof(char)); else memset(arg1->ProductID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentField_ProductID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp1); result = (char *) ((arg1)->ProductID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInstrumentField_allocate(VALUE self) #else _wrap_CThostFtdcQryInstrumentField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInstrumentField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryInstrumentField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInstrumentField"; CThostFtdcQryInstrumentField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInstrumentField *)new CThostFtdcQryInstrumentField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryInstrumentField(void *self) { CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryDepthMarketDataField; SWIGINTERN VALUE _wrap_CThostFtdcQryDepthMarketDataField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryDepthMarketDataField *arg1 = (CThostFtdcQryDepthMarketDataField *) 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_CThostFtdcQryDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryDepthMarketDataField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryDepthMarketDataField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryDepthMarketDataField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryDepthMarketDataField *arg1 = (CThostFtdcQryDepthMarketDataField *) 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_CThostFtdcQryDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryDepthMarketDataField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryDepthMarketDataField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryDepthMarketDataField_allocate(VALUE self) #else _wrap_CThostFtdcQryDepthMarketDataField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryDepthMarketDataField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryDepthMarketDataField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryDepthMarketDataField"; CThostFtdcQryDepthMarketDataField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryDepthMarketDataField *)new CThostFtdcQryDepthMarketDataField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryDepthMarketDataField(void *self) { CThostFtdcQryDepthMarketDataField *arg1 = (CThostFtdcQryDepthMarketDataField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryBrokerUserField; SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserField *arg1 = (CThostFtdcQryBrokerUserField *) 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_CThostFtdcQryBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserField *arg1 = (CThostFtdcQryBrokerUserField *) 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_CThostFtdcQryBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserField *arg1 = (CThostFtdcQryBrokerUserField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQryBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserField *arg1 = (CThostFtdcQryBrokerUserField *) 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_CThostFtdcQryBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryBrokerUserField_allocate(VALUE self) #else _wrap_CThostFtdcQryBrokerUserField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryBrokerUserField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryBrokerUserField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryBrokerUserField"; CThostFtdcQryBrokerUserField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryBrokerUserField *)new CThostFtdcQryBrokerUserField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryBrokerUserField(void *self) { CThostFtdcQryBrokerUserField *arg1 = (CThostFtdcQryBrokerUserField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryBrokerUserFunctionField; SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserFunctionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserFunctionField *arg1 = (CThostFtdcQryBrokerUserFunctionField *) 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_CThostFtdcQryBrokerUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserFunctionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserFunctionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserFunctionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserFunctionField *arg1 = (CThostFtdcQryBrokerUserFunctionField *) 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_CThostFtdcQryBrokerUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserFunctionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserFunctionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserFunctionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserFunctionField *arg1 = (CThostFtdcQryBrokerUserFunctionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQryBrokerUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserFunctionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserFunctionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserFunctionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserFunctionField *arg1 = (CThostFtdcQryBrokerUserFunctionField *) 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_CThostFtdcQryBrokerUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserFunctionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserFunctionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryBrokerUserFunctionField_allocate(VALUE self) #else _wrap_CThostFtdcQryBrokerUserFunctionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryBrokerUserFunctionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryBrokerUserFunctionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryBrokerUserFunctionField"; CThostFtdcQryBrokerUserFunctionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryBrokerUserFunctionField *)new CThostFtdcQryBrokerUserFunctionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryBrokerUserFunctionField(void *self) { CThostFtdcQryBrokerUserFunctionField *arg1 = (CThostFtdcQryBrokerUserFunctionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryTraderOfferField; SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryTraderOfferField_allocate(VALUE self) #else _wrap_CThostFtdcQryTraderOfferField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryTraderOfferField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryTraderOfferField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTraderOfferField"; CThostFtdcQryTraderOfferField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryTraderOfferField *)new CThostFtdcQryTraderOfferField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryTraderOfferField(void *self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQrySyncDepositField; SWIGINTERN VALUE _wrap_CThostFtdcQrySyncDepositField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncDepositField *arg1 = (CThostFtdcQrySyncDepositField *) 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_CThostFtdcQrySyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncDepositField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncDepositField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQrySyncDepositField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncDepositField *arg1 = (CThostFtdcQrySyncDepositField *) 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_CThostFtdcQrySyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncDepositField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncDepositField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySyncDepositField_DepositSeqNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncDepositField *arg1 = (CThostFtdcQrySyncDepositField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[15] ; 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_CThostFtdcQrySyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncDepositField *","DepositSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncDepositField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 15); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [15]","DepositSeqNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DepositSeqNo,arg2,15*sizeof(char)); else memset(arg1->DepositSeqNo,0,15*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySyncDepositField_DepositSeqNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncDepositField *arg1 = (CThostFtdcQrySyncDepositField *) 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_CThostFtdcQrySyncDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncDepositField *","DepositSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncDepositField * >(argp1); result = (char *) ((arg1)->DepositSeqNo); { size_t size = SWIG_strnlen(result, 15); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQrySyncDepositField_allocate(VALUE self) #else _wrap_CThostFtdcQrySyncDepositField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQrySyncDepositField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQrySyncDepositField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySyncDepositField"; CThostFtdcQrySyncDepositField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQrySyncDepositField *)new CThostFtdcQrySyncDepositField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQrySyncDepositField(void *self) { CThostFtdcQrySyncDepositField *arg1 = (CThostFtdcQrySyncDepositField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQrySettlementInfoField; SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoField *arg1 = (CThostFtdcQrySettlementInfoField *) 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_CThostFtdcQrySettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoField *arg1 = (CThostFtdcQrySettlementInfoField *) 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_CThostFtdcQrySettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoField *arg1 = (CThostFtdcQrySettlementInfoField *) 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_CThostFtdcQrySettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoField *arg1 = (CThostFtdcQrySettlementInfoField *) 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_CThostFtdcQrySettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoField *arg1 = (CThostFtdcQrySettlementInfoField *) 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_CThostFtdcQrySettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoField *arg1 = (CThostFtdcQrySettlementInfoField *) 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_CThostFtdcQrySettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQrySettlementInfoField_allocate(VALUE self) #else _wrap_CThostFtdcQrySettlementInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQrySettlementInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQrySettlementInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySettlementInfoField"; CThostFtdcQrySettlementInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQrySettlementInfoField *)new CThostFtdcQrySettlementInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQrySettlementInfoField(void *self) { CThostFtdcQrySettlementInfoField *arg1 = (CThostFtdcQrySettlementInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeMarginRateField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeMarginRateField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeMarginRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeMarginRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeMarginRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeMarginRateField"; CThostFtdcQryExchangeMarginRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeMarginRateField *)new CThostFtdcQryExchangeMarginRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeMarginRateField(void *self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeMarginRateAdjustField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateAdjustField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateAdjustField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateAdjustField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateAdjustField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateAdjustField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateAdjustField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeMarginRateAdjustField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeMarginRateAdjustField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeMarginRateAdjustField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeMarginRateAdjustField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeMarginRateAdjustField"; CThostFtdcQryExchangeMarginRateAdjustField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeMarginRateAdjustField *)new CThostFtdcQryExchangeMarginRateAdjustField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeMarginRateAdjustField(void *self) { CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeRateField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 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_CThostFtdcQryExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 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_CThostFtdcQryExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeRateField_FromCurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQryExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","FromCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","FromCurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FromCurrencyID,arg2,4*sizeof(char)); else memset(arg1->FromCurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeRateField_FromCurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 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_CThostFtdcQryExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","FromCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp1); result = (char *) ((arg1)->FromCurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeRateField_ToCurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQryExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","ToCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","ToCurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ToCurrencyID,arg2,4*sizeof(char)); else memset(arg1->ToCurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeRateField_ToCurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 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_CThostFtdcQryExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","ToCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp1); result = (char *) ((arg1)->ToCurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeRateField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeRateField"; CThostFtdcQryExchangeRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeRateField *)new CThostFtdcQryExchangeRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeRateField(void *self) { CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQrySyncFundMortgageField; SWIGINTERN VALUE _wrap_CThostFtdcQrySyncFundMortgageField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncFundMortgageField *arg1 = (CThostFtdcQrySyncFundMortgageField *) 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_CThostFtdcQrySyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncFundMortgageField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncFundMortgageField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQrySyncFundMortgageField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncFundMortgageField *arg1 = (CThostFtdcQrySyncFundMortgageField *) 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_CThostFtdcQrySyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncFundMortgageField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncFundMortgageField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySyncFundMortgageField_MortgageSeqNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncFundMortgageField *arg1 = (CThostFtdcQrySyncFundMortgageField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[15] ; 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_CThostFtdcQrySyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncFundMortgageField *","MortgageSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncFundMortgageField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 15); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [15]","MortgageSeqNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MortgageSeqNo,arg2,15*sizeof(char)); else memset(arg1->MortgageSeqNo,0,15*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySyncFundMortgageField_MortgageSeqNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncFundMortgageField *arg1 = (CThostFtdcQrySyncFundMortgageField *) 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_CThostFtdcQrySyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncFundMortgageField *","MortgageSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncFundMortgageField * >(argp1); result = (char *) ((arg1)->MortgageSeqNo); { size_t size = SWIG_strnlen(result, 15); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQrySyncFundMortgageField_allocate(VALUE self) #else _wrap_CThostFtdcQrySyncFundMortgageField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQrySyncFundMortgageField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQrySyncFundMortgageField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySyncFundMortgageField"; CThostFtdcQrySyncFundMortgageField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQrySyncFundMortgageField *)new CThostFtdcQrySyncFundMortgageField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQrySyncFundMortgageField(void *self) { CThostFtdcQrySyncFundMortgageField *arg1 = (CThostFtdcQrySyncFundMortgageField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryHisOrderField; SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_InsertTimeStart_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","InsertTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTimeStart", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTimeStart,arg2,9*sizeof(char)); else memset(arg1->InsertTimeStart,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_InsertTimeStart_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","InsertTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); result = (char *) ((arg1)->InsertTimeStart); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_InsertTimeEnd_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","InsertTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTimeEnd", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTimeEnd,arg2,9*sizeof(char)); else memset(arg1->InsertTimeEnd,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_InsertTimeEnd_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","InsertTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); result = (char *) ((arg1)->InsertTimeEnd); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryHisOrderField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcQryHisOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryHisOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryHisOrderField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryHisOrderField_allocate(VALUE self) #else _wrap_CThostFtdcQryHisOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryHisOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryHisOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryHisOrderField"; CThostFtdcQryHisOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryHisOrderField *)new CThostFtdcQryHisOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryHisOrderField(void *self) { CThostFtdcQryHisOrderField *arg1 = (CThostFtdcQryHisOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcOptionInstrMiniMarginField; SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_MinMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","MinMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","MinMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->MinMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_MinMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","MinMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->MinMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_ValueMethod_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 0 ; TThostFtdcValueMethodType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","ValueMethod", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcValueMethodType","ValueMethod", 2, argv[0] )); } arg2 = static_cast< TThostFtdcValueMethodType >(val2); if (arg1) (arg1)->ValueMethod = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_ValueMethod_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcValueMethodType 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","ValueMethod", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); result = (TThostFtdcValueMethodType) ((arg1)->ValueMethod); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_IsRelative_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 0 ; TThostFtdcBoolType 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","IsRelative", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsRelative", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsRelative = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMiniMarginField_IsRelative_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcOptionInstrMiniMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMiniMarginField *","IsRelative", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMiniMarginField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsRelative); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcOptionInstrMiniMarginField_allocate(VALUE self) #else _wrap_CThostFtdcOptionInstrMiniMarginField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcOptionInstrMiniMarginField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcOptionInstrMiniMarginField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcOptionInstrMiniMarginField"; CThostFtdcOptionInstrMiniMarginField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcOptionInstrMiniMarginField *)new CThostFtdcOptionInstrMiniMarginField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcOptionInstrMiniMarginField(void *self) { CThostFtdcOptionInstrMiniMarginField *arg1 = (CThostFtdcOptionInstrMiniMarginField *)self; delete arg1; } static swig_class SwigClassCThostFtdcOptionInstrMarginAdjustField; SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_SShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","SShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","SShortMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->SShortMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_SShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","SShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->SShortMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_SShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","SShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SShortMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->SShortMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_SShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","SShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->SShortMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_HShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","HShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","HShortMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->HShortMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_HShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","HShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->HShortMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_HShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","HShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","HShortMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->HShortMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_HShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","HShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->HShortMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_AShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","AShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","AShortMarginRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->AShortMarginRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_AShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","AShortMarginRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->AShortMarginRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_AShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","AShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","AShortMarginRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->AShortMarginRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_AShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","AShortMarginRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->AShortMarginRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_IsRelative_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; TThostFtdcBoolType 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","IsRelative", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsRelative", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsRelative = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrMarginAdjustField_IsRelative_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcOptionInstrMarginAdjustField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","IsRelative", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsRelative); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcOptionInstrMarginAdjustField_allocate(VALUE self) #else _wrap_CThostFtdcOptionInstrMarginAdjustField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcOptionInstrMarginAdjustField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcOptionInstrMarginAdjustField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcOptionInstrMarginAdjustField"; CThostFtdcOptionInstrMarginAdjustField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcOptionInstrMarginAdjustField *)new CThostFtdcOptionInstrMarginAdjustField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcOptionInstrMarginAdjustField(void *self) { CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *)self; delete arg1; } static swig_class SwigClassCThostFtdcOptionInstrCommRateField; SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_OpenRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","OpenRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","OpenRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->OpenRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_OpenRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","OpenRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->OpenRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_OpenRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","OpenRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","OpenRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->OpenRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_OpenRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","OpenRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->OpenRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_CloseRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","CloseRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_CloseRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","CloseRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_CloseRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","CloseRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_CloseRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","CloseRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_CloseTodayRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","CloseTodayRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseTodayRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseTodayRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_CloseTodayRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","CloseTodayRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseTodayRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_CloseTodayRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","CloseTodayRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseTodayRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CloseTodayRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_CloseTodayRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","CloseTodayRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CloseTodayRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_StrikeRatioByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","StrikeRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","StrikeRatioByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->StrikeRatioByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_StrikeRatioByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","StrikeRatioByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->StrikeRatioByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_StrikeRatioByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","StrikeRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","StrikeRatioByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->StrikeRatioByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrCommRateField_StrikeRatioByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","StrikeRatioByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->StrikeRatioByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcOptionInstrCommRateField_allocate(VALUE self) #else _wrap_CThostFtdcOptionInstrCommRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcOptionInstrCommRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcOptionInstrCommRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcOptionInstrCommRateField"; CThostFtdcOptionInstrCommRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcOptionInstrCommRateField *)new CThostFtdcOptionInstrCommRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcOptionInstrCommRateField(void *self) { CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcOptionInstrTradeCostField; SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_FixedMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","FixedMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FixedMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FixedMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_FixedMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","FixedMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FixedMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_MiniMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","MiniMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","MiniMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->MiniMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_MiniMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","MiniMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->MiniMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_Royalty_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","Royalty", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Royalty", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Royalty = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_Royalty_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","Royalty", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Royalty); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_ExchFixedMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","ExchFixedMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchFixedMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchFixedMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_ExchFixedMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","ExchFixedMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchFixedMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_ExchMiniMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","ExchMiniMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchMiniMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchMiniMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradeCostField_ExchMiniMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","ExchMiniMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchMiniMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcOptionInstrTradeCostField_allocate(VALUE self) #else _wrap_CThostFtdcOptionInstrTradeCostField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcOptionInstrTradeCostField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcOptionInstrTradeCostField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcOptionInstrTradeCostField"; CThostFtdcOptionInstrTradeCostField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcOptionInstrTradeCostField *)new CThostFtdcOptionInstrTradeCostField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcOptionInstrTradeCostField(void *self) { CThostFtdcOptionInstrTradeCostField *arg1 = (CThostFtdcOptionInstrTradeCostField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryOptionInstrTradeCostField; SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InputPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InputPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","InputPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->InputPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InputPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InputPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->InputPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_UnderlyingPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","UnderlyingPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","UnderlyingPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->UnderlyingPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_UnderlyingPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","UnderlyingPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->UnderlyingPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryOptionInstrTradeCostField_allocate(VALUE self) #else _wrap_CThostFtdcQryOptionInstrTradeCostField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryOptionInstrTradeCostField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryOptionInstrTradeCostField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryOptionInstrTradeCostField"; CThostFtdcQryOptionInstrTradeCostField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryOptionInstrTradeCostField *)new CThostFtdcQryOptionInstrTradeCostField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryOptionInstrTradeCostField(void *self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryOptionInstrCommRateField; SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrCommRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrCommRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrCommRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrCommRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrCommRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrCommRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryOptionInstrCommRateField_allocate(VALUE self) #else _wrap_CThostFtdcQryOptionInstrCommRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryOptionInstrCommRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryOptionInstrCommRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryOptionInstrCommRateField"; CThostFtdcQryOptionInstrCommRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryOptionInstrCommRateField *)new CThostFtdcQryOptionInstrCommRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryOptionInstrCommRateField(void *self) { CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcIndexPriceField; SWIGINTERN VALUE _wrap_CThostFtdcIndexPriceField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcIndexPriceField *arg1 = (CThostFtdcIndexPriceField *) 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_CThostFtdcIndexPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcIndexPriceField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcIndexPriceField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcIndexPriceField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcIndexPriceField *arg1 = (CThostFtdcIndexPriceField *) 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_CThostFtdcIndexPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcIndexPriceField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcIndexPriceField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcIndexPriceField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcIndexPriceField *arg1 = (CThostFtdcIndexPriceField *) 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_CThostFtdcIndexPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcIndexPriceField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcIndexPriceField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcIndexPriceField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcIndexPriceField *arg1 = (CThostFtdcIndexPriceField *) 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_CThostFtdcIndexPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcIndexPriceField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcIndexPriceField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcIndexPriceField_ClosePrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcIndexPriceField *arg1 = (CThostFtdcIndexPriceField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcIndexPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcIndexPriceField *","ClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcIndexPriceField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","ClosePrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->ClosePrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcIndexPriceField_ClosePrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcIndexPriceField *arg1 = (CThostFtdcIndexPriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcIndexPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcIndexPriceField *","ClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcIndexPriceField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->ClosePrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcIndexPriceField_allocate(VALUE self) #else _wrap_CThostFtdcIndexPriceField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcIndexPriceField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcIndexPriceField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcIndexPriceField"; CThostFtdcIndexPriceField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcIndexPriceField *)new CThostFtdcIndexPriceField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcIndexPriceField(void *self) { CThostFtdcIndexPriceField *arg1 = (CThostFtdcIndexPriceField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInputExecOrderField; SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_ExecOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderRef,arg2,13*sizeof(char)); else memset(arg1->ExecOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_ExecOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->OffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_ActionType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; TThostFtdcActionTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionTypeType","ActionType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionTypeType >(val2); if (arg1) (arg1)->ActionType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_ActionType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionTypeType 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (TThostFtdcActionTypeType) ((arg1)->ActionType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_PosiDirection_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; TThostFtdcPosiDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPosiDirectionType","PosiDirection", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPosiDirectionType >(val2); if (arg1) (arg1)->PosiDirection = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_PosiDirection_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPosiDirectionType 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (TThostFtdcPosiDirectionType) ((arg1)->PosiDirection); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_ReservePositionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; TThostFtdcExecOrderPositionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ReservePositionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderPositionFlagType","ReservePositionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecOrderPositionFlagType >(val2); if (arg1) (arg1)->ReservePositionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_ReservePositionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecOrderPositionFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ReservePositionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (TThostFtdcExecOrderPositionFlagType) ((arg1)->ReservePositionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_CloseFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; TThostFtdcExecOrderCloseFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","CloseFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderCloseFlagType","CloseFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecOrderCloseFlagType >(val2); if (arg1) (arg1)->CloseFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderField_CloseFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecOrderCloseFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","CloseFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1); result = (TThostFtdcExecOrderCloseFlagType) ((arg1)->CloseFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInputExecOrderField_allocate(VALUE self) #else _wrap_CThostFtdcInputExecOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInputExecOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInputExecOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputExecOrderField"; CThostFtdcInputExecOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInputExecOrderField *)new CThostFtdcInputExecOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInputExecOrderField(void *self) { CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInputExecOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_ExecOrderActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ExecOrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionRefType","ExecOrderActionRef", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionRefType >(val2); if (arg1) (arg1)->ExecOrderActionRef = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_ExecOrderActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ExecOrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (TThostFtdcOrderActionRefType) ((arg1)->ExecOrderActionRef); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_ExecOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderRef,arg2,13*sizeof(char)); else memset(arg1->ExecOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_ExecOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExecOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_ExecOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ExecOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderSysID,arg2,21*sizeof(char)); else memset(arg1->ExecOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_ExecOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExecOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputExecOrderActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *) 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_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInputExecOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcInputExecOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInputExecOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInputExecOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputExecOrderActionField"; CThostFtdcInputExecOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInputExecOrderActionField *)new CThostFtdcInputExecOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInputExecOrderActionField(void *self) { CThostFtdcInputExecOrderActionField *arg1 = (CThostFtdcInputExecOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExecOrderField; SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderRef,arg2,13*sizeof(char)); else memset(arg1->ExecOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->OffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ActionType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcActionTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionTypeType","ActionType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionTypeType >(val2); if (arg1) (arg1)->ActionType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ActionType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionTypeType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcActionTypeType) ((arg1)->ActionType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_PosiDirection_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcPosiDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPosiDirectionType","PosiDirection", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPosiDirectionType >(val2); if (arg1) (arg1)->PosiDirection = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_PosiDirection_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPosiDirectionType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcPosiDirectionType) ((arg1)->PosiDirection); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ReservePositionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcExecOrderPositionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ReservePositionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderPositionFlagType","ReservePositionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecOrderPositionFlagType >(val2); if (arg1) (arg1)->ReservePositionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ReservePositionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecOrderPositionFlagType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ReservePositionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcExecOrderPositionFlagType) ((arg1)->ReservePositionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_CloseFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcExecOrderCloseFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","CloseFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderCloseFlagType","CloseFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecOrderCloseFlagType >(val2); if (arg1) (arg1)->CloseFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_CloseFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecOrderCloseFlagType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","CloseFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcExecOrderCloseFlagType) ((arg1)->CloseFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderLocalID,arg2,13*sizeof(char)); else memset(arg1->ExecOrderLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_OrderSubmitStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcOrderSubmitStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSubmitStatusType","OrderSubmitStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSubmitStatusType >(val2); if (arg1) (arg1)->OrderSubmitStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_OrderSubmitStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSubmitStatusType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcOrderSubmitStatusType) ((arg1)->OrderSubmitStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_NotifySequence_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->NotifySequence = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_NotifySequence_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ExecOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderSysID,arg2,21*sizeof(char)); else memset(arg1->ExecOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InsertDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char)); else memset(arg1->InsertDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InsertDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->InsertDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InsertTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char)); else memset(arg1->InsertTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InsertTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->InsertTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_CancelTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CancelTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CancelTime,arg2,9*sizeof(char)); else memset(arg1->CancelTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_CancelTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->CancelTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecResult_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcExecResultType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecResult", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecResultType","ExecResult", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecResultType >(val2); if (arg1) (arg1)->ExecResult = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecResult_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecResultType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecResult", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcExecResultType) ((arg1)->ExecResult); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char)); else memset(arg1->ClearingPartID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ClearingPartID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ActiveUserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","ActiveUserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveUserID,arg2,16*sizeof(char)); else memset(arg1->ActiveUserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ActiveUserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ActiveUserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BrokerExecOrderSeq_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BrokerExecOrderSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","BrokerExecOrderSeq", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->BrokerExecOrderSeq = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BrokerExecOrderSeq_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BrokerExecOrderSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->BrokerExecOrderSeq); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExecOrderField_allocate(VALUE self) #else _wrap_CThostFtdcExecOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExecOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExecOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExecOrderField"; CThostFtdcExecOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExecOrderField *)new CThostFtdcExecOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExecOrderField(void *self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExecOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ExecOrderActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ExecOrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionRefType","ExecOrderActionRef", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionRefType >(val2); if (arg1) (arg1)->ExecOrderActionRef = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ExecOrderActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ExecOrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (TThostFtdcOrderActionRefType) ((arg1)->ExecOrderActionRef); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ExecOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderRef,arg2,13*sizeof(char)); else memset(arg1->ExecOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ExecOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExecOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ExecOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ExecOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderSysID,arg2,21*sizeof(char)); else memset(arg1->ExecOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ExecOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExecOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ActionDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDate,arg2,9*sizeof(char)); else memset(arg1->ActionDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ActionDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->ActionDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ActionTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionTime,arg2,9*sizeof(char)); else memset(arg1->ActionTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ActionTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->ActionTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ExecOrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ExecOrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderLocalID,arg2,13*sizeof(char)); else memset(arg1->ExecOrderLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ExecOrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ExecOrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExecOrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ActionLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ActionLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionLocalID,arg2,13*sizeof(char)); else memset(arg1->ActionLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ActionLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->ActionLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_OrderActionStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; TThostFtdcOrderActionStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionStatusType","OrderActionStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionStatusType >(val2); if (arg1) (arg1)->OrderActionStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_OrderActionStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionStatusType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (TThostFtdcOrderActionStatusType) ((arg1)->OrderActionStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ActionType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; TThostFtdcActionTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionTypeType","ActionType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionTypeType >(val2); if (arg1) (arg1)->ActionType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_ActionType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionTypeType 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (TThostFtdcActionTypeType) ((arg1)->ActionType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExecOrderActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *) 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_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExecOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcExecOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExecOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExecOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExecOrderActionField"; CThostFtdcExecOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExecOrderActionField *)new CThostFtdcExecOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExecOrderActionField(void *self) { CThostFtdcExecOrderActionField *arg1 = (CThostFtdcExecOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExecOrderField; SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_ExecOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ExecOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderSysID,arg2,21*sizeof(char)); else memset(arg1->ExecOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_ExecOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_InsertTimeStart_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","InsertTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTimeStart", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTimeStart,arg2,9*sizeof(char)); else memset(arg1->InsertTimeStart,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_InsertTimeStart_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","InsertTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); result = (char *) ((arg1)->InsertTimeStart); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_InsertTimeEnd_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","InsertTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTimeEnd", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTimeEnd,arg2,9*sizeof(char)); else memset(arg1->InsertTimeEnd,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderField_InsertTimeEnd_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *) 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_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","InsertTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp1); result = (char *) ((arg1)->InsertTimeEnd); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExecOrderField_allocate(VALUE self) #else _wrap_CThostFtdcQryExecOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExecOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExecOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExecOrderField"; CThostFtdcQryExecOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExecOrderField *)new CThostFtdcQryExecOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExecOrderField(void *self) { CThostFtdcQryExecOrderField *arg1 = (CThostFtdcQryExecOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeExecOrderField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->OffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ActionType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcActionTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionTypeType","ActionType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionTypeType >(val2); if (arg1) (arg1)->ActionType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ActionType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionTypeType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcActionTypeType) ((arg1)->ActionType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_PosiDirection_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcPosiDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPosiDirectionType","PosiDirection", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPosiDirectionType >(val2); if (arg1) (arg1)->PosiDirection = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_PosiDirection_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPosiDirectionType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcPosiDirectionType) ((arg1)->PosiDirection); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ReservePositionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcExecOrderPositionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ReservePositionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderPositionFlagType","ReservePositionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecOrderPositionFlagType >(val2); if (arg1) (arg1)->ReservePositionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ReservePositionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecOrderPositionFlagType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ReservePositionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcExecOrderPositionFlagType) ((arg1)->ReservePositionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_CloseFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcExecOrderCloseFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","CloseFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderCloseFlagType","CloseFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecOrderCloseFlagType >(val2); if (arg1) (arg1)->CloseFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_CloseFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecOrderCloseFlagType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","CloseFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcExecOrderCloseFlagType) ((arg1)->CloseFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ExecOrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ExecOrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderLocalID,arg2,13*sizeof(char)); else memset(arg1->ExecOrderLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ExecOrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ExecOrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_OrderSubmitStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcOrderSubmitStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSubmitStatusType","OrderSubmitStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSubmitStatusType >(val2); if (arg1) (arg1)->OrderSubmitStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_OrderSubmitStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSubmitStatusType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcOrderSubmitStatusType) ((arg1)->OrderSubmitStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_NotifySequence_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->NotifySequence = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_NotifySequence_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ExecOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ExecOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderSysID,arg2,21*sizeof(char)); else memset(arg1->ExecOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ExecOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_InsertDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char)); else memset(arg1->InsertDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_InsertDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->InsertDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_InsertTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char)); else memset(arg1->InsertTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_InsertTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->InsertTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_CancelTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CancelTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CancelTime,arg2,9*sizeof(char)); else memset(arg1->CancelTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_CancelTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->CancelTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ExecResult_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcExecResultType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ExecResult", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecResultType","ExecResult", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecResultType >(val2); if (arg1) (arg1)->ExecResult = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ExecResult_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecResultType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ExecResult", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcExecResultType) ((arg1)->ExecResult); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char)); else memset(arg1->ClearingPartID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ClearingPartID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeExecOrderField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeExecOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeExecOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeExecOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeExecOrderField"; CThostFtdcExchangeExecOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeExecOrderField *)new CThostFtdcExchangeExecOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeExecOrderField(void *self) { CThostFtdcExchangeExecOrderField *arg1 = (CThostFtdcExchangeExecOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeExecOrderField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *) 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_CThostFtdcQryExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *) 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_CThostFtdcQryExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *) 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_CThostFtdcQryExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *) 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_CThostFtdcQryExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *) 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_CThostFtdcQryExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *) 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_CThostFtdcQryExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *) 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_CThostFtdcQryExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *) 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_CThostFtdcQryExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *) 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_CThostFtdcQryExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *) 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_CThostFtdcQryExchangeExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeExecOrderField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeExecOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeExecOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeExecOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeExecOrderField"; CThostFtdcQryExchangeExecOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeExecOrderField *)new CThostFtdcQryExchangeExecOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeExecOrderField(void *self) { CThostFtdcQryExchangeExecOrderField *arg1 = (CThostFtdcQryExchangeExecOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExecOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderActionField *arg1 = (CThostFtdcQryExecOrderActionField *) 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_CThostFtdcQryExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderActionField *arg1 = (CThostFtdcQryExecOrderActionField *) 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_CThostFtdcQryExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderActionField *arg1 = (CThostFtdcQryExecOrderActionField *) 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_CThostFtdcQryExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderActionField *arg1 = (CThostFtdcQryExecOrderActionField *) 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_CThostFtdcQryExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderActionField *arg1 = (CThostFtdcQryExecOrderActionField *) 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_CThostFtdcQryExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExecOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExecOrderActionField *arg1 = (CThostFtdcQryExecOrderActionField *) 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_CThostFtdcQryExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExecOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryExecOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExecOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExecOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExecOrderActionField"; CThostFtdcQryExecOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExecOrderActionField *)new CThostFtdcQryExecOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExecOrderActionField(void *self) { CThostFtdcQryExecOrderActionField *arg1 = (CThostFtdcQryExecOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeExecOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ExecOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ExecOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderSysID,arg2,21*sizeof(char)); else memset(arg1->ExecOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ExecOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExecOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ActionDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDate,arg2,9*sizeof(char)); else memset(arg1->ActionDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ActionDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ActionDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ActionTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionTime,arg2,9*sizeof(char)); else memset(arg1->ActionTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ActionTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ActionTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ExecOrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ExecOrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderLocalID,arg2,13*sizeof(char)); else memset(arg1->ExecOrderLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ExecOrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ExecOrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExecOrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ActionLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ActionLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionLocalID,arg2,13*sizeof(char)); else memset(arg1->ActionLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ActionLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ActionLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_OrderActionStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 0 ; TThostFtdcOrderActionStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionStatusType","OrderActionStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionStatusType >(val2); if (arg1) (arg1)->OrderActionStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_OrderActionStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionStatusType 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (TThostFtdcOrderActionStatusType) ((arg1)->OrderActionStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ActionType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 0 ; TThostFtdcActionTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionTypeType","ActionType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionTypeType >(val2); if (arg1) (arg1)->ActionType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeExecOrderActionField_ActionType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionTypeType 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_CThostFtdcExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeExecOrderActionField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeExecOrderActionField * >(argp1); result = (TThostFtdcActionTypeType) ((arg1)->ActionType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeExecOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeExecOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeExecOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeExecOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeExecOrderActionField"; CThostFtdcExchangeExecOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeExecOrderActionField *)new CThostFtdcExchangeExecOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeExecOrderActionField(void *self) { CThostFtdcExchangeExecOrderActionField *arg1 = (CThostFtdcExchangeExecOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeExecOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderActionField *arg1 = (CThostFtdcQryExchangeExecOrderActionField *) 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_CThostFtdcQryExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderActionField *arg1 = (CThostFtdcQryExchangeExecOrderActionField *) 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_CThostFtdcQryExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderActionField *arg1 = (CThostFtdcQryExchangeExecOrderActionField *) 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_CThostFtdcQryExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderActionField *arg1 = (CThostFtdcQryExchangeExecOrderActionField *) 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_CThostFtdcQryExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderActionField *arg1 = (CThostFtdcQryExchangeExecOrderActionField *) 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_CThostFtdcQryExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderActionField *arg1 = (CThostFtdcQryExchangeExecOrderActionField *) 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_CThostFtdcQryExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderActionField *arg1 = (CThostFtdcQryExchangeExecOrderActionField *) 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_CThostFtdcQryExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeExecOrderActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeExecOrderActionField *arg1 = (CThostFtdcQryExchangeExecOrderActionField *) 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_CThostFtdcQryExchangeExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeExecOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeExecOrderActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeExecOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeExecOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeExecOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeExecOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeExecOrderActionField"; CThostFtdcQryExchangeExecOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeExecOrderActionField *)new CThostFtdcQryExchangeExecOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeExecOrderActionField(void *self) { CThostFtdcQryExchangeExecOrderActionField *arg1 = (CThostFtdcQryExchangeExecOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcErrExecOrderField; SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_ExecOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderRef,arg2,13*sizeof(char)); else memset(arg1->ExecOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_ExecOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->OffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_ActionType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; TThostFtdcActionTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionTypeType","ActionType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionTypeType >(val2); if (arg1) (arg1)->ActionType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_ActionType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionTypeType 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (TThostFtdcActionTypeType) ((arg1)->ActionType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_PosiDirection_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; TThostFtdcPosiDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPosiDirectionType","PosiDirection", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPosiDirectionType >(val2); if (arg1) (arg1)->PosiDirection = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_PosiDirection_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPosiDirectionType 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (TThostFtdcPosiDirectionType) ((arg1)->PosiDirection); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_ReservePositionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; TThostFtdcExecOrderPositionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","ReservePositionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderPositionFlagType","ReservePositionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecOrderPositionFlagType >(val2); if (arg1) (arg1)->ReservePositionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_ReservePositionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecOrderPositionFlagType 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","ReservePositionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (TThostFtdcExecOrderPositionFlagType) ((arg1)->ReservePositionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_CloseFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; TThostFtdcExecOrderCloseFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","CloseFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderCloseFlagType","CloseFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecOrderCloseFlagType >(val2); if (arg1) (arg1)->CloseFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_CloseFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecOrderCloseFlagType 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","CloseFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (TThostFtdcExecOrderCloseFlagType) ((arg1)->CloseFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *) 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_CThostFtdcErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcErrExecOrderField_allocate(VALUE self) #else _wrap_CThostFtdcErrExecOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcErrExecOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcErrExecOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcErrExecOrderField"; CThostFtdcErrExecOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcErrExecOrderField *)new CThostFtdcErrExecOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcErrExecOrderField(void *self) { CThostFtdcErrExecOrderField *arg1 = (CThostFtdcErrExecOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryErrExecOrderField; SWIGINTERN VALUE _wrap_CThostFtdcQryErrExecOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrExecOrderField *arg1 = (CThostFtdcQryErrExecOrderField *) 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_CThostFtdcQryErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrExecOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrExecOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrExecOrderField *arg1 = (CThostFtdcQryErrExecOrderField *) 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_CThostFtdcQryErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrExecOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrExecOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrExecOrderField *arg1 = (CThostFtdcQryErrExecOrderField *) 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_CThostFtdcQryErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrExecOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrExecOrderField *arg1 = (CThostFtdcQryErrExecOrderField *) 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_CThostFtdcQryErrExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrExecOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryErrExecOrderField_allocate(VALUE self) #else _wrap_CThostFtdcQryErrExecOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryErrExecOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryErrExecOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryErrExecOrderField"; CThostFtdcQryErrExecOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryErrExecOrderField *)new CThostFtdcQryErrExecOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryErrExecOrderField(void *self) { CThostFtdcQryErrExecOrderField *arg1 = (CThostFtdcQryErrExecOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcErrExecOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ExecOrderActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ExecOrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionRefType","ExecOrderActionRef", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionRefType >(val2); if (arg1) (arg1)->ExecOrderActionRef = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ExecOrderActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ExecOrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (TThostFtdcOrderActionRefType) ((arg1)->ExecOrderActionRef); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ExecOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderRef,arg2,13*sizeof(char)); else memset(arg1->ExecOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ExecOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExecOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ExecOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ExecOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderSysID,arg2,21*sizeof(char)); else memset(arg1->ExecOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ExecOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (char *) ((arg1)->ExecOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrExecOrderActionField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *) 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_CThostFtdcErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrExecOrderActionField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrExecOrderActionField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcErrExecOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcErrExecOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcErrExecOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcErrExecOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcErrExecOrderActionField"; CThostFtdcErrExecOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcErrExecOrderActionField *)new CThostFtdcErrExecOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcErrExecOrderActionField(void *self) { CThostFtdcErrExecOrderActionField *arg1 = (CThostFtdcErrExecOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryErrExecOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcQryErrExecOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrExecOrderActionField *arg1 = (CThostFtdcQryErrExecOrderActionField *) 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_CThostFtdcQryErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrExecOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrExecOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrExecOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrExecOrderActionField *arg1 = (CThostFtdcQryErrExecOrderActionField *) 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_CThostFtdcQryErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrExecOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrExecOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrExecOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrExecOrderActionField *arg1 = (CThostFtdcQryErrExecOrderActionField *) 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_CThostFtdcQryErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrExecOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrExecOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrExecOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrExecOrderActionField *arg1 = (CThostFtdcQryErrExecOrderActionField *) 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_CThostFtdcQryErrExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrExecOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrExecOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryErrExecOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryErrExecOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryErrExecOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryErrExecOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryErrExecOrderActionField"; CThostFtdcQryErrExecOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryErrExecOrderActionField *)new CThostFtdcQryErrExecOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryErrExecOrderActionField(void *self) { CThostFtdcQryErrExecOrderActionField *arg1 = (CThostFtdcQryErrExecOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcOptionInstrTradingRightField; SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_TradingRight_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 0 ; TThostFtdcTradingRightType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","TradingRight", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradingRightType","TradingRight", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradingRightType >(val2); if (arg1) (arg1)->TradingRight = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrTradingRightField_TradingRight_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradingRightType 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","TradingRight", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1); result = (TThostFtdcTradingRightType) ((arg1)->TradingRight); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcOptionInstrTradingRightField_allocate(VALUE self) #else _wrap_CThostFtdcOptionInstrTradingRightField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcOptionInstrTradingRightField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcOptionInstrTradingRightField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcOptionInstrTradingRightField"; CThostFtdcOptionInstrTradingRightField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcOptionInstrTradingRightField *)new CThostFtdcOptionInstrTradingRightField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcOptionInstrTradingRightField(void *self) { CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryOptionInstrTradingRightField; SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradingRightField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradingRightField *arg1 = (CThostFtdcQryOptionInstrTradingRightField *) 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_CThostFtdcQryOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradingRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradingRightField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradingRightField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradingRightField *arg1 = (CThostFtdcQryOptionInstrTradingRightField *) 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_CThostFtdcQryOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradingRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradingRightField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradingRightField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradingRightField *arg1 = (CThostFtdcQryOptionInstrTradingRightField *) 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_CThostFtdcQryOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradingRightField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradingRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradingRightField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradingRightField *arg1 = (CThostFtdcQryOptionInstrTradingRightField *) 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_CThostFtdcQryOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradingRightField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradingRightField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradingRightField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradingRightField *arg1 = (CThostFtdcQryOptionInstrTradingRightField *) 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_CThostFtdcQryOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradingRightField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradingRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradingRightField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradingRightField *arg1 = (CThostFtdcQryOptionInstrTradingRightField *) 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_CThostFtdcQryOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradingRightField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradingRightField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradingRightField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradingRightField *arg1 = (CThostFtdcQryOptionInstrTradingRightField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradingRightField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradingRightField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradingRightField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradingRightField *arg1 = (CThostFtdcQryOptionInstrTradingRightField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcQryOptionInstrTradingRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradingRightField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradingRightField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryOptionInstrTradingRightField_allocate(VALUE self) #else _wrap_CThostFtdcQryOptionInstrTradingRightField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryOptionInstrTradingRightField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryOptionInstrTradingRightField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryOptionInstrTradingRightField"; CThostFtdcQryOptionInstrTradingRightField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryOptionInstrTradingRightField *)new CThostFtdcQryOptionInstrTradingRightField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryOptionInstrTradingRightField(void *self) { CThostFtdcQryOptionInstrTradingRightField *arg1 = (CThostFtdcQryOptionInstrTradingRightField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInputForQuoteField; SWIGINTERN VALUE _wrap_CThostFtdcInputForQuoteField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputForQuoteField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputForQuoteField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputForQuoteField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputForQuoteField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputForQuoteField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputForQuoteField_ForQuoteRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","ForQuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ForQuoteRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ForQuoteRef,arg2,13*sizeof(char)); else memset(arg1->ForQuoteRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputForQuoteField_ForQuoteRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","ForQuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1); result = (char *) ((arg1)->ForQuoteRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputForQuoteField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputForQuoteField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInputForQuoteField_allocate(VALUE self) #else _wrap_CThostFtdcInputForQuoteField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInputForQuoteField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInputForQuoteField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputForQuoteField"; CThostFtdcInputForQuoteField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInputForQuoteField *)new CThostFtdcInputForQuoteField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInputForQuoteField(void *self) { CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *)self; delete arg1; } static swig_class SwigClassCThostFtdcForQuoteField; SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ForQuoteRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ForQuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ForQuoteRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ForQuoteRef,arg2,13*sizeof(char)); else memset(arg1->ForQuoteRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ForQuoteRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ForQuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->ForQuoteRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ForQuoteLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ForQuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ForQuoteLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ForQuoteLocalID,arg2,13*sizeof(char)); else memset(arg1->ForQuoteLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ForQuoteLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ForQuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->ForQuoteLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_InsertDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char)); else memset(arg1->InsertDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_InsertDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->InsertDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_InsertTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char)); else memset(arg1->InsertTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_InsertTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->InsertTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ForQuoteStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 0 ; TThostFtdcForQuoteStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ForQuoteStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcForQuoteStatusType","ForQuoteStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcForQuoteStatusType >(val2); if (arg1) (arg1)->ForQuoteStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ForQuoteStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcForQuoteStatusType 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ForQuoteStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (TThostFtdcForQuoteStatusType) ((arg1)->ForQuoteStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ActiveUserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","ActiveUserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveUserID,arg2,16*sizeof(char)); else memset(arg1->ActiveUserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_ActiveUserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (char *) ((arg1)->ActiveUserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_BrokerForQutoSeq_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","BrokerForQutoSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","BrokerForQutoSeq", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->BrokerForQutoSeq = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteField_BrokerForQutoSeq_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","BrokerForQutoSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->BrokerForQutoSeq); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcForQuoteField_allocate(VALUE self) #else _wrap_CThostFtdcForQuoteField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcForQuoteField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcForQuoteField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcForQuoteField"; CThostFtdcForQuoteField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcForQuoteField *)new CThostFtdcForQuoteField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcForQuoteField(void *self) { CThostFtdcForQuoteField *arg1 = (CThostFtdcForQuoteField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryForQuoteField; SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_InsertTimeStart_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","InsertTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTimeStart", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTimeStart,arg2,9*sizeof(char)); else memset(arg1->InsertTimeStart,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_InsertTimeStart_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","InsertTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp1); result = (char *) ((arg1)->InsertTimeStart); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_InsertTimeEnd_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","InsertTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTimeEnd", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTimeEnd,arg2,9*sizeof(char)); else memset(arg1->InsertTimeEnd,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryForQuoteField_InsertTimeEnd_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *) 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_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","InsertTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp1); result = (char *) ((arg1)->InsertTimeEnd); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryForQuoteField_allocate(VALUE self) #else _wrap_CThostFtdcQryForQuoteField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryForQuoteField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryForQuoteField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryForQuoteField"; CThostFtdcQryForQuoteField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryForQuoteField *)new CThostFtdcQryForQuoteField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryForQuoteField(void *self) { CThostFtdcQryForQuoteField *arg1 = (CThostFtdcQryForQuoteField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeForQuoteField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ForQuoteLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ForQuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ForQuoteLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ForQuoteLocalID,arg2,13*sizeof(char)); else memset(arg1->ForQuoteLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ForQuoteLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ForQuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->ForQuoteLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_InsertDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char)); else memset(arg1->InsertDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_InsertDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->InsertDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_InsertTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char)); else memset(arg1->InsertTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_InsertTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->InsertTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ForQuoteStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 0 ; TThostFtdcForQuoteStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ForQuoteStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcForQuoteStatusType","ForQuoteStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcForQuoteStatusType >(val2); if (arg1) (arg1)->ForQuoteStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeForQuoteField_ForQuoteStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcForQuoteStatusType 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_CThostFtdcExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeForQuoteField *","ForQuoteStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeForQuoteField * >(argp1); result = (TThostFtdcForQuoteStatusType) ((arg1)->ForQuoteStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeForQuoteField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeForQuoteField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeForQuoteField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeForQuoteField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeForQuoteField"; CThostFtdcExchangeForQuoteField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeForQuoteField *)new CThostFtdcExchangeForQuoteField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeForQuoteField(void *self) { CThostFtdcExchangeForQuoteField *arg1 = (CThostFtdcExchangeForQuoteField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeForQuoteField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeForQuoteField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *) 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_CThostFtdcQryExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeForQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeForQuoteField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *) 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_CThostFtdcQryExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeForQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeForQuoteField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *) 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_CThostFtdcQryExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeForQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeForQuoteField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *) 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_CThostFtdcQryExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeForQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeForQuoteField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *) 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_CThostFtdcQryExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeForQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeForQuoteField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *) 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_CThostFtdcQryExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeForQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeForQuoteField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *) 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_CThostFtdcQryExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeForQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeForQuoteField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *) 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_CThostFtdcQryExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeForQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeForQuoteField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *) 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_CThostFtdcQryExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeForQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeForQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeForQuoteField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *) 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_CThostFtdcQryExchangeForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeForQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeForQuoteField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeForQuoteField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeForQuoteField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeForQuoteField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeForQuoteField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeForQuoteField"; CThostFtdcQryExchangeForQuoteField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeForQuoteField *)new CThostFtdcQryExchangeForQuoteField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeForQuoteField(void *self) { CThostFtdcQryExchangeForQuoteField *arg1 = (CThostFtdcQryExchangeForQuoteField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInputQuoteField; SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_QuoteRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","QuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","QuoteRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteRef,arg2,13*sizeof(char)); else memset(arg1->QuoteRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_QuoteRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","QuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (char *) ((arg1)->QuoteRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_AskPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","AskPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_AskPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","AskPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BidPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BidPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BidPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BidPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_AskVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","AskVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_AskVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","AskVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BidVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BidVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BidVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BidVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_AskOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","AskOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","AskOffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->AskOffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_AskOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","AskOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->AskOffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BidOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BidOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","BidOffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->BidOffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BidOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BidOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->BidOffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_AskHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","AskHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","AskHedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->AskHedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_AskHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","AskHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->AskHedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BidHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BidHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","BidHedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->BidHedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BidHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BidHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->BidHedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_AskOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","AskOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AskOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AskOrderRef,arg2,13*sizeof(char)); else memset(arg1->AskOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_AskOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","AskOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (char *) ((arg1)->AskOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BidOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BidOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BidOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BidOrderRef,arg2,13*sizeof(char)); else memset(arg1->BidOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_BidOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","BidOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (char *) ((arg1)->BidOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_ForQuoteSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","ForQuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ForQuoteSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ForQuoteSysID,arg2,21*sizeof(char)); else memset(arg1->ForQuoteSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteField_ForQuoteSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *) 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_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","ForQuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp1); result = (char *) ((arg1)->ForQuoteSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInputQuoteField_allocate(VALUE self) #else _wrap_CThostFtdcInputQuoteField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInputQuoteField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInputQuoteField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputQuoteField"; CThostFtdcInputQuoteField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInputQuoteField *)new CThostFtdcInputQuoteField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInputQuoteField(void *self) { CThostFtdcInputQuoteField *arg1 = (CThostFtdcInputQuoteField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInputQuoteActionField; SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_QuoteActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionRefType","QuoteActionRef", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionRefType >(val2); if (arg1) (arg1)->QuoteActionRef = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_QuoteActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (TThostFtdcOrderActionRefType) ((arg1)->QuoteActionRef); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_QuoteRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","QuoteRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteRef,arg2,13*sizeof(char)); else memset(arg1->QuoteRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_QuoteRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (char *) ((arg1)->QuoteRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_QuoteSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","QuoteSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteSysID,arg2,21*sizeof(char)); else memset(arg1->QuoteSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_QuoteSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (char *) ((arg1)->QuoteSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputQuoteActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInputQuoteActionField_allocate(VALUE self) #else _wrap_CThostFtdcInputQuoteActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInputQuoteActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInputQuoteActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputQuoteActionField"; CThostFtdcInputQuoteActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInputQuoteActionField *)new CThostFtdcInputQuoteActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInputQuoteActionField(void *self) { CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQuoteField; SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_QuoteRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","QuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","QuoteRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteRef,arg2,13*sizeof(char)); else memset(arg1->QuoteRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_QuoteRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","QuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->QuoteRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","AskOffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->AskOffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->AskOffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","BidOffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->BidOffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->BidOffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","AskHedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->AskHedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->AskHedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","BidHedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->BidHedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->BidHedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_QuoteLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","QuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","QuoteLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteLocalID,arg2,13*sizeof(char)); else memset(arg1->QuoteLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_QuoteLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","QuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->QuoteLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_NotifySequence_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->NotifySequence = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_NotifySequence_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_OrderSubmitStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcOrderSubmitStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSubmitStatusType","OrderSubmitStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSubmitStatusType >(val2); if (arg1) (arg1)->OrderSubmitStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_OrderSubmitStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSubmitStatusType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcOrderSubmitStatusType) ((arg1)->OrderSubmitStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_QuoteSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","QuoteSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteSysID,arg2,21*sizeof(char)); else memset(arg1->QuoteSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_QuoteSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->QuoteSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_InsertDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char)); else memset(arg1->InsertDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_InsertDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->InsertDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_InsertTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char)); else memset(arg1->InsertTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_InsertTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->InsertTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_CancelTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CancelTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CancelTime,arg2,9*sizeof(char)); else memset(arg1->CancelTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_CancelTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->CancelTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_QuoteStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcOrderStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","QuoteStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderStatusType","QuoteStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderStatusType >(val2); if (arg1) (arg1)->QuoteStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_QuoteStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderStatusType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","QuoteStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcOrderStatusType) ((arg1)->QuoteStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char)); else memset(arg1->ClearingPartID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->ClearingPartID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","AskOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AskOrderSysID,arg2,21*sizeof(char)); else memset(arg1->AskOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->AskOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BidOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BidOrderSysID,arg2,21*sizeof(char)); else memset(arg1->BidOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->BidOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ActiveUserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","ActiveUserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveUserID,arg2,16*sizeof(char)); else memset(arg1->ActiveUserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ActiveUserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->ActiveUserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BrokerQuoteSeq_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BrokerQuoteSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","BrokerQuoteSeq", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->BrokerQuoteSeq = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BrokerQuoteSeq_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BrokerQuoteSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->BrokerQuoteSeq); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AskOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AskOrderRef,arg2,13*sizeof(char)); else memset(arg1->AskOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_AskOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","AskOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->AskOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BidOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BidOrderRef,arg2,13*sizeof(char)); else memset(arg1->BidOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_BidOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","BidOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->BidOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ForQuoteSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ForQuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ForQuoteSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ForQuoteSysID,arg2,21*sizeof(char)); else memset(arg1->ForQuoteSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteField_ForQuoteSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *) 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_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","ForQuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteField * >(argp1); result = (char *) ((arg1)->ForQuoteSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQuoteField_allocate(VALUE self) #else _wrap_CThostFtdcQuoteField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQuoteField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQuoteField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQuoteField"; CThostFtdcQuoteField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQuoteField *)new CThostFtdcQuoteField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQuoteField(void *self) { CThostFtdcQuoteField *arg1 = (CThostFtdcQuoteField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQuoteActionField; SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_QuoteActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","QuoteActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionRefType","QuoteActionRef", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionRefType >(val2); if (arg1) (arg1)->QuoteActionRef = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_QuoteActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","QuoteActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (TThostFtdcOrderActionRefType) ((arg1)->QuoteActionRef); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_QuoteRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","QuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","QuoteRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteRef,arg2,13*sizeof(char)); else memset(arg1->QuoteRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_QuoteRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","QuoteRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->QuoteRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_QuoteSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","QuoteSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteSysID,arg2,21*sizeof(char)); else memset(arg1->QuoteSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_QuoteSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->QuoteSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ActionDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDate,arg2,9*sizeof(char)); else memset(arg1->ActionDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ActionDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->ActionDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ActionTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionTime,arg2,9*sizeof(char)); else memset(arg1->ActionTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ActionTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->ActionTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_QuoteLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","QuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","QuoteLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteLocalID,arg2,13*sizeof(char)); else memset(arg1->QuoteLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_QuoteLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","QuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->QuoteLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ActionLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ActionLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionLocalID,arg2,13*sizeof(char)); else memset(arg1->ActionLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ActionLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->ActionLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_OrderActionStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; TThostFtdcOrderActionStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionStatusType","OrderActionStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionStatusType >(val2); if (arg1) (arg1)->OrderActionStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_OrderActionStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionStatusType 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (TThostFtdcOrderActionStatusType) ((arg1)->OrderActionStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQuoteActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *) 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_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQuoteActionField_allocate(VALUE self) #else _wrap_CThostFtdcQuoteActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQuoteActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQuoteActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQuoteActionField"; CThostFtdcQuoteActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQuoteActionField *)new CThostFtdcQuoteActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQuoteActionField(void *self) { CThostFtdcQuoteActionField *arg1 = (CThostFtdcQuoteActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryQuoteField; SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_QuoteSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","QuoteSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteSysID,arg2,21*sizeof(char)); else memset(arg1->QuoteSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_QuoteSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); result = (char *) ((arg1)->QuoteSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_InsertTimeStart_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","InsertTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTimeStart", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTimeStart,arg2,9*sizeof(char)); else memset(arg1->InsertTimeStart,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_InsertTimeStart_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","InsertTimeStart", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); result = (char *) ((arg1)->InsertTimeStart); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_InsertTimeEnd_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","InsertTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTimeEnd", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTimeEnd,arg2,9*sizeof(char)); else memset(arg1->InsertTimeEnd,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteField_InsertTimeEnd_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *) 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_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","InsertTimeEnd", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp1); result = (char *) ((arg1)->InsertTimeEnd); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryQuoteField_allocate(VALUE self) #else _wrap_CThostFtdcQryQuoteField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryQuoteField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryQuoteField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryQuoteField"; CThostFtdcQryQuoteField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryQuoteField *)new CThostFtdcQryQuoteField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryQuoteField(void *self) { CThostFtdcQryQuoteField *arg1 = (CThostFtdcQryQuoteField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeQuoteField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_AskPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","AskPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_AskPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","AskPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BidPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BidPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BidPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BidPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_AskVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","AskVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_AskVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","AskVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BidVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BidVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BidVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BidVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_AskOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","AskOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","AskOffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->AskOffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_AskOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","AskOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->AskOffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BidOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BidOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","BidOffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->BidOffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BidOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BidOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->BidOffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_AskHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","AskHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","AskHedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->AskHedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_AskHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","AskHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->AskHedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BidHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BidHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","BidHedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->BidHedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BidHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BidHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->BidHedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_QuoteLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","QuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","QuoteLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteLocalID,arg2,13*sizeof(char)); else memset(arg1->QuoteLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_QuoteLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","QuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->QuoteLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_NotifySequence_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->NotifySequence = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_NotifySequence_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_OrderSubmitStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcOrderSubmitStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSubmitStatusType","OrderSubmitStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSubmitStatusType >(val2); if (arg1) (arg1)->OrderSubmitStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_OrderSubmitStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSubmitStatusType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcOrderSubmitStatusType) ((arg1)->OrderSubmitStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_QuoteSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","QuoteSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteSysID,arg2,21*sizeof(char)); else memset(arg1->QuoteSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_QuoteSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->QuoteSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_InsertDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char)); else memset(arg1->InsertDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_InsertDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->InsertDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_InsertTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char)); else memset(arg1->InsertTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_InsertTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->InsertTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_CancelTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CancelTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CancelTime,arg2,9*sizeof(char)); else memset(arg1->CancelTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_CancelTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->CancelTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_QuoteStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcOrderStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","QuoteStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderStatusType","QuoteStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderStatusType >(val2); if (arg1) (arg1)->QuoteStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_QuoteStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderStatusType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","QuoteStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcOrderStatusType) ((arg1)->QuoteStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char)); else memset(arg1->ClearingPartID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->ClearingPartID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_AskOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","AskOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","AskOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AskOrderSysID,arg2,21*sizeof(char)); else memset(arg1->AskOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_AskOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","AskOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->AskOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BidOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BidOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BidOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BidOrderSysID,arg2,21*sizeof(char)); else memset(arg1->BidOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_BidOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","BidOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->BidOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ForQuoteSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ForQuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ForQuoteSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ForQuoteSysID,arg2,21*sizeof(char)); else memset(arg1->ForQuoteSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteField_ForQuoteSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *) 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_CThostFtdcExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteField *","ForQuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteField * >(argp1); result = (char *) ((arg1)->ForQuoteSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeQuoteField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeQuoteField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeQuoteField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeQuoteField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeQuoteField"; CThostFtdcExchangeQuoteField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeQuoteField *)new CThostFtdcExchangeQuoteField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeQuoteField(void *self) { CThostFtdcExchangeQuoteField *arg1 = (CThostFtdcExchangeQuoteField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeQuoteField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *) 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_CThostFtdcQryExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *) 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_CThostFtdcQryExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *) 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_CThostFtdcQryExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *) 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_CThostFtdcQryExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *) 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_CThostFtdcQryExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *) 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_CThostFtdcQryExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *) 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_CThostFtdcQryExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *) 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_CThostFtdcQryExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *) 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_CThostFtdcQryExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *) 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_CThostFtdcQryExchangeQuoteField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeQuoteField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeQuoteField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeQuoteField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeQuoteField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeQuoteField"; CThostFtdcQryExchangeQuoteField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeQuoteField *)new CThostFtdcQryExchangeQuoteField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeQuoteField(void *self) { CThostFtdcQryExchangeQuoteField *arg1 = (CThostFtdcQryExchangeQuoteField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryQuoteActionField; SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteActionField *arg1 = (CThostFtdcQryQuoteActionField *) 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_CThostFtdcQryQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteActionField *arg1 = (CThostFtdcQryQuoteActionField *) 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_CThostFtdcQryQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteActionField *arg1 = (CThostFtdcQryQuoteActionField *) 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_CThostFtdcQryQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteActionField *arg1 = (CThostFtdcQryQuoteActionField *) 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_CThostFtdcQryQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteActionField *arg1 = (CThostFtdcQryQuoteActionField *) 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_CThostFtdcQryQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryQuoteActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryQuoteActionField *arg1 = (CThostFtdcQryQuoteActionField *) 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_CThostFtdcQryQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryQuoteActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryQuoteActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryQuoteActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryQuoteActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryQuoteActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryQuoteActionField"; CThostFtdcQryQuoteActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryQuoteActionField *)new CThostFtdcQryQuoteActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryQuoteActionField(void *self) { CThostFtdcQryQuoteActionField *arg1 = (CThostFtdcQryQuoteActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeQuoteActionField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_QuoteSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","QuoteSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteSysID,arg2,21*sizeof(char)); else memset(arg1->QuoteSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_QuoteSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","QuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->QuoteSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ActionDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDate,arg2,9*sizeof(char)); else memset(arg1->ActionDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ActionDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->ActionDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ActionTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionTime,arg2,9*sizeof(char)); else memset(arg1->ActionTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ActionTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->ActionTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_QuoteLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","QuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","QuoteLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteLocalID,arg2,13*sizeof(char)); else memset(arg1->QuoteLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_QuoteLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","QuoteLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->QuoteLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ActionLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ActionLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionLocalID,arg2,13*sizeof(char)); else memset(arg1->ActionLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ActionLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->ActionLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_OrderActionStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 0 ; TThostFtdcOrderActionStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionStatusType","OrderActionStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionStatusType >(val2); if (arg1) (arg1)->OrderActionStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_OrderActionStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionStatusType 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (TThostFtdcOrderActionStatusType) ((arg1)->OrderActionStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeQuoteActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *) 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_CThostFtdcExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeQuoteActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeQuoteActionField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeQuoteActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeQuoteActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeQuoteActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeQuoteActionField"; CThostFtdcExchangeQuoteActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeQuoteActionField *)new CThostFtdcExchangeQuoteActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeQuoteActionField(void *self) { CThostFtdcExchangeQuoteActionField *arg1 = (CThostFtdcExchangeQuoteActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeQuoteActionField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteActionField *arg1 = (CThostFtdcQryExchangeQuoteActionField *) 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_CThostFtdcQryExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteActionField *arg1 = (CThostFtdcQryExchangeQuoteActionField *) 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_CThostFtdcQryExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteActionField *arg1 = (CThostFtdcQryExchangeQuoteActionField *) 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_CThostFtdcQryExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteActionField *arg1 = (CThostFtdcQryExchangeQuoteActionField *) 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_CThostFtdcQryExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteActionField *arg1 = (CThostFtdcQryExchangeQuoteActionField *) 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_CThostFtdcQryExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteActionField *arg1 = (CThostFtdcQryExchangeQuoteActionField *) 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_CThostFtdcQryExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteActionField *arg1 = (CThostFtdcQryExchangeQuoteActionField *) 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_CThostFtdcQryExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeQuoteActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeQuoteActionField *arg1 = (CThostFtdcQryExchangeQuoteActionField *) 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_CThostFtdcQryExchangeQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeQuoteActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeQuoteActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeQuoteActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeQuoteActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeQuoteActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeQuoteActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeQuoteActionField"; CThostFtdcQryExchangeQuoteActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeQuoteActionField *)new CThostFtdcQryExchangeQuoteActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeQuoteActionField(void *self) { CThostFtdcQryExchangeQuoteActionField *arg1 = (CThostFtdcQryExchangeQuoteActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcOptionInstrDeltaField; SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrDeltaField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *) 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_CThostFtdcOptionInstrDeltaField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrDeltaField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrDeltaField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrDeltaField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *) 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_CThostFtdcOptionInstrDeltaField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrDeltaField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrDeltaField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrDeltaField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOptionInstrDeltaField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrDeltaField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrDeltaField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrDeltaField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcOptionInstrDeltaField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrDeltaField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrDeltaField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrDeltaField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *) 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_CThostFtdcOptionInstrDeltaField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrDeltaField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrDeltaField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrDeltaField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *) 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_CThostFtdcOptionInstrDeltaField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrDeltaField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrDeltaField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrDeltaField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *) 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_CThostFtdcOptionInstrDeltaField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrDeltaField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrDeltaField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrDeltaField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *) 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_CThostFtdcOptionInstrDeltaField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrDeltaField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrDeltaField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrDeltaField_Delta_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcOptionInstrDeltaField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrDeltaField *","Delta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrDeltaField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","Delta", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->Delta = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOptionInstrDeltaField_Delta_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcOptionInstrDeltaField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrDeltaField *","Delta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOptionInstrDeltaField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->Delta); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcOptionInstrDeltaField_allocate(VALUE self) #else _wrap_CThostFtdcOptionInstrDeltaField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcOptionInstrDeltaField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcOptionInstrDeltaField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcOptionInstrDeltaField"; CThostFtdcOptionInstrDeltaField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcOptionInstrDeltaField *)new CThostFtdcOptionInstrDeltaField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcOptionInstrDeltaField(void *self) { CThostFtdcOptionInstrDeltaField *arg1 = (CThostFtdcOptionInstrDeltaField *)self; delete arg1; } static swig_class SwigClassCThostFtdcForQuoteRspField; SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_ForQuoteSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ForQuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ForQuoteSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ForQuoteSysID,arg2,21*sizeof(char)); else memset(arg1->ForQuoteSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_ForQuoteSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ForQuoteSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); result = (char *) ((arg1)->ForQuoteSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_ForQuoteTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ForQuoteTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ForQuoteTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ForQuoteTime,arg2,9*sizeof(char)); else memset(arg1->ForQuoteTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_ForQuoteTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ForQuoteTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); result = (char *) ((arg1)->ForQuoteTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_ActionDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ActionDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDay,arg2,9*sizeof(char)); else memset(arg1->ActionDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_ActionDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ActionDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); result = (char *) ((arg1)->ActionDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcForQuoteRspField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcForQuoteRspField_allocate(VALUE self) #else _wrap_CThostFtdcForQuoteRspField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcForQuoteRspField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcForQuoteRspField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcForQuoteRspField"; CThostFtdcForQuoteRspField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcForQuoteRspField *)new CThostFtdcForQuoteRspField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcForQuoteRspField(void *self) { CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *)self; delete arg1; } static swig_class SwigClassCThostFtdcStrikeOffsetField; SWIGINTERN VALUE _wrap_CThostFtdcStrikeOffsetField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *) 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_CThostFtdcStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcStrikeOffsetField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcStrikeOffsetField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcStrikeOffsetField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *) 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_CThostFtdcStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcStrikeOffsetField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcStrikeOffsetField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcStrikeOffsetField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcStrikeOffsetField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcStrikeOffsetField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcStrikeOffsetField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcStrikeOffsetField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcStrikeOffsetField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcStrikeOffsetField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *) 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_CThostFtdcStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcStrikeOffsetField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcStrikeOffsetField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcStrikeOffsetField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *) 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_CThostFtdcStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcStrikeOffsetField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcStrikeOffsetField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcStrikeOffsetField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *) 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_CThostFtdcStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcStrikeOffsetField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcStrikeOffsetField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcStrikeOffsetField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *) 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_CThostFtdcStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcStrikeOffsetField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcStrikeOffsetField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcStrikeOffsetField_Offset_set(int argc, VALUE *argv, VALUE self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcStrikeOffsetField *","Offset", 1, self )); } arg1 = reinterpret_cast< CThostFtdcStrikeOffsetField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Offset", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Offset = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcStrikeOffsetField_Offset_get(int argc, VALUE *argv, VALUE self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcStrikeOffsetField *","Offset", 1, self )); } arg1 = reinterpret_cast< CThostFtdcStrikeOffsetField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Offset); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcStrikeOffsetField_allocate(VALUE self) #else _wrap_CThostFtdcStrikeOffsetField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcStrikeOffsetField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcStrikeOffsetField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcStrikeOffsetField"; CThostFtdcStrikeOffsetField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcStrikeOffsetField *)new CThostFtdcStrikeOffsetField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcStrikeOffsetField(void *self) { CThostFtdcStrikeOffsetField *arg1 = (CThostFtdcStrikeOffsetField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryStrikeOffsetField; SWIGINTERN VALUE _wrap_CThostFtdcQryStrikeOffsetField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryStrikeOffsetField *arg1 = (CThostFtdcQryStrikeOffsetField *) 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_CThostFtdcQryStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryStrikeOffsetField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryStrikeOffsetField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryStrikeOffsetField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryStrikeOffsetField *arg1 = (CThostFtdcQryStrikeOffsetField *) 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_CThostFtdcQryStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryStrikeOffsetField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryStrikeOffsetField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryStrikeOffsetField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryStrikeOffsetField *arg1 = (CThostFtdcQryStrikeOffsetField *) 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_CThostFtdcQryStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryStrikeOffsetField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryStrikeOffsetField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryStrikeOffsetField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryStrikeOffsetField *arg1 = (CThostFtdcQryStrikeOffsetField *) 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_CThostFtdcQryStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryStrikeOffsetField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryStrikeOffsetField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryStrikeOffsetField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryStrikeOffsetField *arg1 = (CThostFtdcQryStrikeOffsetField *) 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_CThostFtdcQryStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryStrikeOffsetField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryStrikeOffsetField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryStrikeOffsetField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryStrikeOffsetField *arg1 = (CThostFtdcQryStrikeOffsetField *) 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_CThostFtdcQryStrikeOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryStrikeOffsetField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryStrikeOffsetField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryStrikeOffsetField_allocate(VALUE self) #else _wrap_CThostFtdcQryStrikeOffsetField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryStrikeOffsetField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryStrikeOffsetField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryStrikeOffsetField"; CThostFtdcQryStrikeOffsetField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryStrikeOffsetField *)new CThostFtdcQryStrikeOffsetField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryStrikeOffsetField(void *self) { CThostFtdcQryStrikeOffsetField *arg1 = (CThostFtdcQryStrikeOffsetField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCombInstrumentGuardField; SWIGINTERN VALUE _wrap_CThostFtdcCombInstrumentGuardField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 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_CThostFtdcCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCombInstrumentGuardField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 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_CThostFtdcCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombInstrumentGuardField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 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_CThostFtdcCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombInstrumentGuardField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 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_CThostFtdcCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombInstrumentGuardField_GuarantRatio_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","GuarantRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","GuarantRatio", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->GuarantRatio = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombInstrumentGuardField_GuarantRatio_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","GuarantRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->GuarantRatio); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCombInstrumentGuardField_allocate(VALUE self) #else _wrap_CThostFtdcCombInstrumentGuardField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCombInstrumentGuardField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCombInstrumentGuardField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCombInstrumentGuardField"; CThostFtdcCombInstrumentGuardField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCombInstrumentGuardField *)new CThostFtdcCombInstrumentGuardField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCombInstrumentGuardField(void *self) { CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryCombInstrumentGuardField; SWIGINTERN VALUE _wrap_CThostFtdcQryCombInstrumentGuardField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombInstrumentGuardField *arg1 = (CThostFtdcQryCombInstrumentGuardField *) 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_CThostFtdcQryCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombInstrumentGuardField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombInstrumentGuardField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombInstrumentGuardField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombInstrumentGuardField *arg1 = (CThostFtdcQryCombInstrumentGuardField *) 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_CThostFtdcQryCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombInstrumentGuardField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombInstrumentGuardField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombInstrumentGuardField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombInstrumentGuardField *arg1 = (CThostFtdcQryCombInstrumentGuardField *) 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_CThostFtdcQryCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombInstrumentGuardField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombInstrumentGuardField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombInstrumentGuardField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombInstrumentGuardField *arg1 = (CThostFtdcQryCombInstrumentGuardField *) 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_CThostFtdcQryCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombInstrumentGuardField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombInstrumentGuardField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryCombInstrumentGuardField_allocate(VALUE self) #else _wrap_CThostFtdcQryCombInstrumentGuardField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryCombInstrumentGuardField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryCombInstrumentGuardField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryCombInstrumentGuardField"; CThostFtdcQryCombInstrumentGuardField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryCombInstrumentGuardField *)new CThostFtdcQryCombInstrumentGuardField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryCombInstrumentGuardField(void *self) { CThostFtdcQryCombInstrumentGuardField *arg1 = (CThostFtdcQryCombInstrumentGuardField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInputCombActionField; SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_CombActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","CombActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","CombActionRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombActionRef,arg2,13*sizeof(char)); else memset(arg1->CombActionRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_CombActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","CombActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); result = (char *) ((arg1)->CombActionRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_CombDirection_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 0 ; TThostFtdcCombDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","CombDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCombDirectionType","CombDirection", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCombDirectionType >(val2); if (arg1) (arg1)->CombDirection = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_CombDirection_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCombDirectionType 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","CombDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); result = (TThostFtdcCombDirectionType) ((arg1)->CombDirection); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInputCombActionField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInputCombActionField_allocate(VALUE self) #else _wrap_CThostFtdcInputCombActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInputCombActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInputCombActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputCombActionField"; CThostFtdcInputCombActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInputCombActionField *)new CThostFtdcInputCombActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInputCombActionField(void *self) { CThostFtdcInputCombActionField *arg1 = (CThostFtdcInputCombActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCombActionField; SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_CombActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","CombActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","CombActionRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombActionRef,arg2,13*sizeof(char)); else memset(arg1->CombActionRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_CombActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","CombActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->CombActionRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_CombDirection_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; TThostFtdcCombDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","CombDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCombDirectionType","CombDirection", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCombDirectionType >(val2); if (arg1) (arg1)->CombDirection = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_CombDirection_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCombDirectionType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","CombDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcCombDirectionType) ((arg1)->CombDirection); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ActionLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ActionLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionLocalID,arg2,13*sizeof(char)); else memset(arg1->ActionLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ActionLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->ActionLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ActionStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; TThostFtdcOrderActionStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionStatusType","ActionStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionStatusType >(val2); if (arg1) (arg1)->ActionStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_ActionStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionStatusType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","ActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcOrderActionStatusType) ((arg1)->ActionStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_NotifySequence_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->NotifySequence = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_NotifySequence_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombActionField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *) 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_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombActionField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCombActionField_allocate(VALUE self) #else _wrap_CThostFtdcCombActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCombActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCombActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCombActionField"; CThostFtdcCombActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCombActionField *)new CThostFtdcCombActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCombActionField(void *self) { CThostFtdcCombActionField *arg1 = (CThostFtdcCombActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryCombActionField; SWIGINTERN VALUE _wrap_CThostFtdcQryCombActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombActionField *arg1 = (CThostFtdcQryCombActionField *) 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_CThostFtdcQryCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombActionField *arg1 = (CThostFtdcQryCombActionField *) 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_CThostFtdcQryCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombActionField *arg1 = (CThostFtdcQryCombActionField *) 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_CThostFtdcQryCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombActionField *arg1 = (CThostFtdcQryCombActionField *) 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_CThostFtdcQryCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombActionField *arg1 = (CThostFtdcQryCombActionField *) 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_CThostFtdcQryCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombActionField *arg1 = (CThostFtdcQryCombActionField *) 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_CThostFtdcQryCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombActionField *arg1 = (CThostFtdcQryCombActionField *) 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_CThostFtdcQryCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombActionField *arg1 = (CThostFtdcQryCombActionField *) 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_CThostFtdcQryCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryCombActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryCombActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryCombActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryCombActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryCombActionField"; CThostFtdcQryCombActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryCombActionField *)new CThostFtdcQryCombActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryCombActionField(void *self) { CThostFtdcQryCombActionField *arg1 = (CThostFtdcQryCombActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeCombActionField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_CombDirection_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; TThostFtdcCombDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","CombDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCombDirectionType","CombDirection", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCombDirectionType >(val2); if (arg1) (arg1)->CombDirection = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_CombDirection_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCombDirectionType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","CombDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (TThostFtdcCombDirectionType) ((arg1)->CombDirection); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ActionLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ActionLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionLocalID,arg2,13*sizeof(char)); else memset(arg1->ActionLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ActionLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (char *) ((arg1)->ActionLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ActionStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; TThostFtdcOrderActionStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionStatusType","ActionStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionStatusType >(val2); if (arg1) (arg1)->ActionStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_ActionStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionStatusType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","ActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (TThostFtdcOrderActionStatusType) ((arg1)->ActionStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_NotifySequence_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->NotifySequence = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_NotifySequence_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeCombActionField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeCombActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeCombActionField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeCombActionField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeCombActionField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeCombActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeCombActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeCombActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeCombActionField"; CThostFtdcExchangeCombActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeCombActionField *)new CThostFtdcExchangeCombActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeCombActionField(void *self) { CThostFtdcExchangeCombActionField *arg1 = (CThostFtdcExchangeCombActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeCombActionField; 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; } 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; } 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; } 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; } 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; } 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; } 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; } 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; } 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; } 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; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeCombActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeCombActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeCombActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } 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; } SWIGINTERN void free_CThostFtdcQryExchangeCombActionField(void *self) { CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcProductExchRateField; SWIGINTERN VALUE _wrap_CThostFtdcProductExchRateField_ProductID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductExchRateField *arg1 = (CThostFtdcProductExchRateField *) 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_CThostFtdcProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductExchRateField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductExchRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProductID,arg2,31*sizeof(char)); else memset(arg1->ProductID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductExchRateField_ProductID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductExchRateField *arg1 = (CThostFtdcProductExchRateField *) 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_CThostFtdcProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductExchRateField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductExchRateField * >(argp1); result = (char *) ((arg1)->ProductID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductExchRateField_QuoteCurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductExchRateField *arg1 = (CThostFtdcProductExchRateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductExchRateField *","QuoteCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductExchRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","QuoteCurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->QuoteCurrencyID,arg2,4*sizeof(char)); else memset(arg1->QuoteCurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductExchRateField_QuoteCurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductExchRateField *arg1 = (CThostFtdcProductExchRateField *) 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_CThostFtdcProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductExchRateField *","QuoteCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductExchRateField * >(argp1); result = (char *) ((arg1)->QuoteCurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductExchRateField_ExchangeRate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcProductExchRateField *arg1 = (CThostFtdcProductExchRateField *) 0 ; TThostFtdcExchangeRateType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductExchRateField *","ExchangeRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductExchRateField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExchangeRateType","ExchangeRate", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExchangeRateType >(val2); if (arg1) (arg1)->ExchangeRate = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcProductExchRateField_ExchangeRate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcProductExchRateField *arg1 = (CThostFtdcProductExchRateField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExchangeRateType 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_CThostFtdcProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcProductExchRateField *","ExchangeRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcProductExchRateField * >(argp1); result = (TThostFtdcExchangeRateType) ((arg1)->ExchangeRate); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcProductExchRateField_allocate(VALUE self) #else _wrap_CThostFtdcProductExchRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcProductExchRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcProductExchRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcProductExchRateField"; CThostFtdcProductExchRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcProductExchRateField *)new CThostFtdcProductExchRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcProductExchRateField(void *self) { CThostFtdcProductExchRateField *arg1 = (CThostFtdcProductExchRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryProductExchRateField; SWIGINTERN VALUE _wrap_CThostFtdcQryProductExchRateField_ProductID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryProductExchRateField *arg1 = (CThostFtdcQryProductExchRateField *) 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_CThostFtdcQryProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductExchRateField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryProductExchRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProductID,arg2,31*sizeof(char)); else memset(arg1->ProductID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryProductExchRateField_ProductID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryProductExchRateField *arg1 = (CThostFtdcQryProductExchRateField *) 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_CThostFtdcQryProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductExchRateField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryProductExchRateField * >(argp1); result = (char *) ((arg1)->ProductID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryProductExchRateField_allocate(VALUE self) #else _wrap_CThostFtdcQryProductExchRateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryProductExchRateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryProductExchRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryProductExchRateField"; CThostFtdcQryProductExchRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryProductExchRateField *)new CThostFtdcQryProductExchRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryProductExchRateField(void *self) { CThostFtdcQryProductExchRateField *arg1 = (CThostFtdcQryProductExchRateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataField; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_LastPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LastPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LastPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LastPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_LastPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LastPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LastPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_PreSettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreSettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->PreSettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_PreSettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->PreSettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_PreClosePrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreClosePrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->PreClosePrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_PreClosePrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->PreClosePrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_PreOpenInterest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcLargeVolumeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreOpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLargeVolumeType","PreOpenInterest", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLargeVolumeType >(val2); if (arg1) (arg1)->PreOpenInterest = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_PreOpenInterest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLargeVolumeType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreOpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcLargeVolumeType) ((arg1)->PreOpenInterest); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_OpenPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","OpenPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","OpenPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->OpenPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_OpenPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","OpenPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->OpenPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_HighestPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","HighestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","HighestPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->HighestPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_HighestPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","HighestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->HighestPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_LowestPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LowestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LowestPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LowestPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_LowestPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LowestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LowestPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_Turnover_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","Turnover", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Turnover", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Turnover = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_Turnover_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","Turnover", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Turnover); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_OpenInterest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcLargeVolumeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","OpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLargeVolumeType","OpenInterest", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLargeVolumeType >(val2); if (arg1) (arg1)->OpenInterest = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_OpenInterest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLargeVolumeType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","OpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcLargeVolumeType) ((arg1)->OpenInterest); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_ClosePrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","ClosePrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->ClosePrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_ClosePrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->ClosePrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_SettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","SettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->SettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_SettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->SettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_UpperLimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpperLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","UpperLimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->UpperLimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_UpperLimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpperLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->UpperLimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_LowerLimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LowerLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LowerLimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LowerLimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_LowerLimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LowerLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LowerLimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_PreDelta_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","PreDelta", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->PreDelta = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_PreDelta_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->PreDelta); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_CurrDelta_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","CurrDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CurrDelta", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CurrDelta = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_CurrDelta_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","CurrDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CurrDelta); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_UpdateTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","UpdateTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UpdateTime,arg2,9*sizeof(char)); else memset(arg1->UpdateTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_UpdateTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (char *) ((arg1)->UpdateTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_UpdateMillisec_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; TThostFtdcMillisecType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpdateMillisec", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMillisecType","UpdateMillisec", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMillisecType >(val2); if (arg1) (arg1)->UpdateMillisec = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_UpdateMillisec_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMillisecType 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpdateMillisec", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (TThostFtdcMillisecType) ((arg1)->UpdateMillisec); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_ActionDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ActionDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDay,arg2,9*sizeof(char)); else memset(arg1->ActionDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataField_ActionDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 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_CThostFtdcMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ActionDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1); result = (char *) ((arg1)->ActionDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataField_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataField"; CThostFtdcMarketDataField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataField *)new CThostFtdcMarketDataField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataField(void *self) { CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataBaseField; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBaseField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 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_CThostFtdcMarketDataBaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBaseField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 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_CThostFtdcMarketDataBaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBaseField_PreSettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataBaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreSettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->PreSettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBaseField_PreSettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataBaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->PreSettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBaseField_PreClosePrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataBaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreClosePrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->PreClosePrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBaseField_PreClosePrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataBaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->PreClosePrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBaseField_PreOpenInterest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ; TThostFtdcLargeVolumeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataBaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreOpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLargeVolumeType","PreOpenInterest", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLargeVolumeType >(val2); if (arg1) (arg1)->PreOpenInterest = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBaseField_PreOpenInterest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLargeVolumeType 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_CThostFtdcMarketDataBaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreOpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1); result = (TThostFtdcLargeVolumeType) ((arg1)->PreOpenInterest); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBaseField_PreDelta_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataBaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","PreDelta", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->PreDelta = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBaseField_PreDelta_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcMarketDataBaseField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->PreDelta); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataBaseField_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataBaseField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataBaseField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataBaseField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataBaseField"; CThostFtdcMarketDataBaseField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataBaseField *)new CThostFtdcMarketDataBaseField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataBaseField(void *self) { CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataStaticField; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_OpenPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","OpenPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","OpenPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->OpenPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_OpenPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","OpenPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->OpenPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_HighestPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","HighestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","HighestPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->HighestPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_HighestPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","HighestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->HighestPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_LowestPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","LowestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LowestPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LowestPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_LowestPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","LowestPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LowestPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_ClosePrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","ClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","ClosePrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->ClosePrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_ClosePrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","ClosePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->ClosePrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_UpperLimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","UpperLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","UpperLimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->UpperLimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_UpperLimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","UpperLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->UpperLimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_LowerLimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","LowerLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LowerLimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LowerLimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_LowerLimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","LowerLimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LowerLimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_SettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","SettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->SettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_SettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->SettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_CurrDelta_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","CurrDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CurrDelta", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->CurrDelta = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataStaticField_CurrDelta_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcMarketDataStaticField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","CurrDelta", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->CurrDelta); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataStaticField_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataStaticField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataStaticField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataStaticField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataStaticField"; CThostFtdcMarketDataStaticField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataStaticField *)new CThostFtdcMarketDataStaticField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataStaticField(void *self) { CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataLastMatchField; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_LastPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","LastPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LastPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LastPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_LastPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","LastPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LastPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_Turnover_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","Turnover", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Turnover", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Turnover = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_Turnover_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","Turnover", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Turnover); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_OpenInterest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; TThostFtdcLargeVolumeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","OpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLargeVolumeType","OpenInterest", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLargeVolumeType >(val2); if (arg1) (arg1)->OpenInterest = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_OpenInterest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLargeVolumeType 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","OpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); result = (TThostFtdcLargeVolumeType) ((arg1)->OpenInterest); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataLastMatchField_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataLastMatchField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataLastMatchField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataLastMatchField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataLastMatchField"; CThostFtdcMarketDataLastMatchField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataLastMatchField *)new CThostFtdcMarketDataLastMatchField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataLastMatchField(void *self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataBestPriceField; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBestPriceField_BidPrice1_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataBestPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","BidPrice1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice1", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBestPriceField_BidPrice1_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataBestPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","BidPrice1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice1); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBestPriceField_BidVolume1_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBestPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","BidVolume1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume1", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBestPriceField_BidVolume1_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBestPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","BidVolume1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume1); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBestPriceField_AskPrice1_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataBestPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","AskPrice1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice1", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBestPriceField_AskPrice1_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataBestPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","AskPrice1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice1); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBestPriceField_AskVolume1_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBestPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","AskVolume1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume1", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBestPriceField_AskVolume1_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBestPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","AskVolume1", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume1); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataBestPriceField_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataBestPriceField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataBestPriceField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataBestPriceField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataBestPriceField"; CThostFtdcMarketDataBestPriceField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataBestPriceField *)new CThostFtdcMarketDataBestPriceField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataBestPriceField(void *self) { CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataBid23Field; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid23Field_BidPrice2_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid23Field *arg1 = (CThostFtdcMarketDataBid23Field *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataBid23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid23Field *","BidPrice2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid23Field * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice2", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid23Field_BidPrice2_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid23Field *arg1 = (CThostFtdcMarketDataBid23Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataBid23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid23Field *","BidPrice2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid23Field * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid23Field_BidVolume2_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid23Field *arg1 = (CThostFtdcMarketDataBid23Field *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBid23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid23Field *","BidVolume2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid23Field * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume2", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid23Field_BidVolume2_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid23Field *arg1 = (CThostFtdcMarketDataBid23Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBid23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid23Field *","BidVolume2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid23Field * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume2); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid23Field_BidPrice3_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid23Field *arg1 = (CThostFtdcMarketDataBid23Field *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataBid23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid23Field *","BidPrice3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid23Field * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice3", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice3 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid23Field_BidPrice3_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid23Field *arg1 = (CThostFtdcMarketDataBid23Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataBid23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid23Field *","BidPrice3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid23Field * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice3); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid23Field_BidVolume3_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid23Field *arg1 = (CThostFtdcMarketDataBid23Field *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBid23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid23Field *","BidVolume3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid23Field * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume3", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume3 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid23Field_BidVolume3_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid23Field *arg1 = (CThostFtdcMarketDataBid23Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBid23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid23Field *","BidVolume3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid23Field * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataBid23Field_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataBid23Field_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataBid23Field); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataBid23Field(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataBid23Field"; CThostFtdcMarketDataBid23Field *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataBid23Field *)new CThostFtdcMarketDataBid23Field(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataBid23Field(void *self) { CThostFtdcMarketDataBid23Field *arg1 = (CThostFtdcMarketDataBid23Field *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataAsk23Field; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk23Field_AskPrice2_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataAsk23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskPrice2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice2", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk23Field_AskPrice2_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataAsk23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskPrice2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk23Field_AskVolume2_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskVolume2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume2", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk23Field_AskVolume2_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskVolume2", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume2); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk23Field_AskPrice3_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataAsk23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskPrice3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice3", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice3 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk23Field_AskPrice3_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataAsk23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskPrice3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice3); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk23Field_AskVolume3_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskVolume3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume3", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume3 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk23Field_AskVolume3_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk23Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskVolume3", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataAsk23Field_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataAsk23Field_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataAsk23Field); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataAsk23Field(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataAsk23Field"; CThostFtdcMarketDataAsk23Field *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataAsk23Field *)new CThostFtdcMarketDataAsk23Field(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataAsk23Field(void *self) { CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataBid45Field; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid45Field_BidPrice4_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataBid45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid45Field *","BidPrice4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid45Field * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice4", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice4 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid45Field_BidPrice4_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataBid45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid45Field *","BidPrice4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid45Field * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice4); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid45Field_BidVolume4_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBid45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid45Field *","BidVolume4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid45Field * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume4", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume4 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid45Field_BidVolume4_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBid45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid45Field *","BidVolume4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid45Field * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume4); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid45Field_BidPrice5_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataBid45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid45Field *","BidPrice5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid45Field * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice5", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->BidPrice5 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid45Field_BidPrice5_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataBid45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid45Field *","BidPrice5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid45Field * >(argp1); result = (TThostFtdcPriceType) ((arg1)->BidPrice5); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid45Field_BidVolume5_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBid45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid45Field *","BidVolume5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid45Field * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume5", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->BidVolume5 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataBid45Field_BidVolume5_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataBid45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid45Field *","BidVolume5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataBid45Field * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->BidVolume5); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataBid45Field_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataBid45Field_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataBid45Field); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataBid45Field(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataBid45Field"; CThostFtdcMarketDataBid45Field *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataBid45Field *)new CThostFtdcMarketDataBid45Field(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataBid45Field(void *self) { CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataAsk45Field; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk45Field_AskPrice4_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk45Field *arg1 = (CThostFtdcMarketDataAsk45Field *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataAsk45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk45Field *","AskPrice4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk45Field * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice4", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice4 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk45Field_AskPrice4_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk45Field *arg1 = (CThostFtdcMarketDataAsk45Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataAsk45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk45Field *","AskPrice4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk45Field * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice4); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk45Field_AskVolume4_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk45Field *arg1 = (CThostFtdcMarketDataAsk45Field *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk45Field *","AskVolume4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk45Field * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume4", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume4 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk45Field_AskVolume4_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk45Field *arg1 = (CThostFtdcMarketDataAsk45Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk45Field *","AskVolume4", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk45Field * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume4); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk45Field_AskPrice5_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk45Field *arg1 = (CThostFtdcMarketDataAsk45Field *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataAsk45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk45Field *","AskPrice5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk45Field * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice5", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AskPrice5 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk45Field_AskPrice5_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk45Field *arg1 = (CThostFtdcMarketDataAsk45Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataAsk45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk45Field *","AskPrice5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk45Field * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AskPrice5); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk45Field_AskVolume5_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk45Field *arg1 = (CThostFtdcMarketDataAsk45Field *) 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk45Field *","AskVolume5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk45Field * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume5", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->AskVolume5 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAsk45Field_AskVolume5_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAsk45Field *arg1 = (CThostFtdcMarketDataAsk45Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk45Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk45Field *","AskVolume5", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAsk45Field * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->AskVolume5); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataAsk45Field_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataAsk45Field_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataAsk45Field); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataAsk45Field(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataAsk45Field"; CThostFtdcMarketDataAsk45Field *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataAsk45Field *)new CThostFtdcMarketDataAsk45Field(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataAsk45Field(void *self) { CThostFtdcMarketDataAsk45Field *arg1 = (CThostFtdcMarketDataAsk45Field *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataUpdateTimeField; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataUpdateTimeField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataUpdateTimeField *arg1 = (CThostFtdcMarketDataUpdateTimeField *) 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_CThostFtdcMarketDataUpdateTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataUpdateTimeField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataUpdateTimeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataUpdateTimeField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataUpdateTimeField *arg1 = (CThostFtdcMarketDataUpdateTimeField *) 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_CThostFtdcMarketDataUpdateTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataUpdateTimeField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataUpdateTimeField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataUpdateTimeField_UpdateTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataUpdateTimeField *arg1 = (CThostFtdcMarketDataUpdateTimeField *) 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_CThostFtdcMarketDataUpdateTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataUpdateTimeField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataUpdateTimeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","UpdateTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UpdateTime,arg2,9*sizeof(char)); else memset(arg1->UpdateTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataUpdateTimeField_UpdateTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataUpdateTimeField *arg1 = (CThostFtdcMarketDataUpdateTimeField *) 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_CThostFtdcMarketDataUpdateTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataUpdateTimeField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataUpdateTimeField * >(argp1); result = (char *) ((arg1)->UpdateTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataUpdateTimeField_UpdateMillisec_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataUpdateTimeField *arg1 = (CThostFtdcMarketDataUpdateTimeField *) 0 ; TThostFtdcMillisecType 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_CThostFtdcMarketDataUpdateTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataUpdateTimeField *","UpdateMillisec", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataUpdateTimeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMillisecType","UpdateMillisec", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMillisecType >(val2); if (arg1) (arg1)->UpdateMillisec = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataUpdateTimeField_UpdateMillisec_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataUpdateTimeField *arg1 = (CThostFtdcMarketDataUpdateTimeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMillisecType 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_CThostFtdcMarketDataUpdateTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataUpdateTimeField *","UpdateMillisec", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataUpdateTimeField * >(argp1); result = (TThostFtdcMillisecType) ((arg1)->UpdateMillisec); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataUpdateTimeField_ActionDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataUpdateTimeField *arg1 = (CThostFtdcMarketDataUpdateTimeField *) 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_CThostFtdcMarketDataUpdateTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataUpdateTimeField *","ActionDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataUpdateTimeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDay,arg2,9*sizeof(char)); else memset(arg1->ActionDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataUpdateTimeField_ActionDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataUpdateTimeField *arg1 = (CThostFtdcMarketDataUpdateTimeField *) 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_CThostFtdcMarketDataUpdateTimeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataUpdateTimeField *","ActionDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataUpdateTimeField * >(argp1); result = (char *) ((arg1)->ActionDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataUpdateTimeField_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataUpdateTimeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataUpdateTimeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataUpdateTimeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataUpdateTimeField"; CThostFtdcMarketDataUpdateTimeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataUpdateTimeField *)new CThostFtdcMarketDataUpdateTimeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataUpdateTimeField(void *self) { CThostFtdcMarketDataUpdateTimeField *arg1 = (CThostFtdcMarketDataUpdateTimeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataExchangeField; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataExchangeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataExchangeField *arg1 = (CThostFtdcMarketDataExchangeField *) 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_CThostFtdcMarketDataExchangeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataExchangeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataExchangeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataExchangeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataExchangeField *arg1 = (CThostFtdcMarketDataExchangeField *) 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_CThostFtdcMarketDataExchangeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataExchangeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataExchangeField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataExchangeField_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataExchangeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataExchangeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataExchangeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataExchangeField"; CThostFtdcMarketDataExchangeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataExchangeField *)new CThostFtdcMarketDataExchangeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataExchangeField(void *self) { CThostFtdcMarketDataExchangeField *arg1 = (CThostFtdcMarketDataExchangeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSpecificInstrumentField; SWIGINTERN VALUE _wrap_CThostFtdcSpecificInstrumentField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSpecificInstrumentField *arg1 = (CThostFtdcSpecificInstrumentField *) 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_CThostFtdcSpecificInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSpecificInstrumentField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSpecificInstrumentField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSpecificInstrumentField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSpecificInstrumentField *arg1 = (CThostFtdcSpecificInstrumentField *) 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_CThostFtdcSpecificInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSpecificInstrumentField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSpecificInstrumentField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSpecificInstrumentField_allocate(VALUE self) #else _wrap_CThostFtdcSpecificInstrumentField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSpecificInstrumentField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSpecificInstrumentField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSpecificInstrumentField"; CThostFtdcSpecificInstrumentField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSpecificInstrumentField *)new CThostFtdcSpecificInstrumentField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSpecificInstrumentField(void *self) { CThostFtdcSpecificInstrumentField *arg1 = (CThostFtdcSpecificInstrumentField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInstrumentStatusField; SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_SettlementGroupID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","SettlementGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SettlementGroupID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SettlementGroupID,arg2,9*sizeof(char)); else memset(arg1->SettlementGroupID,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_SettlementGroupID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","SettlementGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); result = (char *) ((arg1)->SettlementGroupID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_InstrumentStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ; TThostFtdcInstrumentStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","InstrumentStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstrumentStatusType","InstrumentStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInstrumentStatusType >(val2); if (arg1) (arg1)->InstrumentStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_InstrumentStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInstrumentStatusType 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","InstrumentStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); result = (TThostFtdcInstrumentStatusType) ((arg1)->InstrumentStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_TradingSegmentSN_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ; TThostFtdcTradingSegmentSNType 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","TradingSegmentSN", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradingSegmentSNType","TradingSegmentSN", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradingSegmentSNType >(val2); if (arg1) (arg1)->TradingSegmentSN = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_TradingSegmentSN_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradingSegmentSNType 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","TradingSegmentSN", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); result = (TThostFtdcTradingSegmentSNType) ((arg1)->TradingSegmentSN); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_EnterTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","EnterTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","EnterTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EnterTime,arg2,9*sizeof(char)); else memset(arg1->EnterTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_EnterTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","EnterTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); result = (char *) ((arg1)->EnterTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_EnterReason_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ; TThostFtdcInstStatusEnterReasonType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","EnterReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstStatusEnterReasonType","EnterReason", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInstStatusEnterReasonType >(val2); if (arg1) (arg1)->EnterReason = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInstrumentStatusField_EnterReason_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInstStatusEnterReasonType 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_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","EnterReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1); result = (TThostFtdcInstStatusEnterReasonType) ((arg1)->EnterReason); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInstrumentStatusField_allocate(VALUE self) #else _wrap_CThostFtdcInstrumentStatusField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInstrumentStatusField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInstrumentStatusField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInstrumentStatusField"; CThostFtdcInstrumentStatusField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInstrumentStatusField *)new CThostFtdcInstrumentStatusField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInstrumentStatusField(void *self) { CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInstrumentStatusField; SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentStatusField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentStatusField *arg1 = (CThostFtdcQryInstrumentStatusField *) 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_CThostFtdcQryInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentStatusField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentStatusField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentStatusField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentStatusField *arg1 = (CThostFtdcQryInstrumentStatusField *) 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_CThostFtdcQryInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentStatusField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentStatusField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentStatusField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentStatusField *arg1 = (CThostFtdcQryInstrumentStatusField *) 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_CThostFtdcQryInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentStatusField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentStatusField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentStatusField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentStatusField *arg1 = (CThostFtdcQryInstrumentStatusField *) 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_CThostFtdcQryInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentStatusField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentStatusField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInstrumentStatusField_allocate(VALUE self) #else _wrap_CThostFtdcQryInstrumentStatusField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInstrumentStatusField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryInstrumentStatusField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInstrumentStatusField"; CThostFtdcQryInstrumentStatusField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInstrumentStatusField *)new CThostFtdcQryInstrumentStatusField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryInstrumentStatusField(void *self) { CThostFtdcQryInstrumentStatusField *arg1 = (CThostFtdcQryInstrumentStatusField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInvestorAccountField; SWIGINTERN VALUE _wrap_CThostFtdcInvestorAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorAccountField *arg1 = (CThostFtdcInvestorAccountField *) 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_CThostFtdcInvestorAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorAccountField *arg1 = (CThostFtdcInvestorAccountField *) 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_CThostFtdcInvestorAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorAccountField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorAccountField *arg1 = (CThostFtdcInvestorAccountField *) 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_CThostFtdcInvestorAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorAccountField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorAccountField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorAccountField *arg1 = (CThostFtdcInvestorAccountField *) 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_CThostFtdcInvestorAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorAccountField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorAccountField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorAccountField *arg1 = (CThostFtdcInvestorAccountField *) 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_CThostFtdcInvestorAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorAccountField *arg1 = (CThostFtdcInvestorAccountField *) 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_CThostFtdcInvestorAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorAccountField *arg1 = (CThostFtdcInvestorAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcInvestorAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorAccountField *arg1 = (CThostFtdcInvestorAccountField *) 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_CThostFtdcInvestorAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInvestorAccountField_allocate(VALUE self) #else _wrap_CThostFtdcInvestorAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInvestorAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInvestorAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInvestorAccountField"; CThostFtdcInvestorAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInvestorAccountField *)new CThostFtdcInvestorAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInvestorAccountField(void *self) { CThostFtdcInvestorAccountField *arg1 = (CThostFtdcInvestorAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcPositionProfitAlgorithmField; SWIGINTERN VALUE _wrap_CThostFtdcPositionProfitAlgorithmField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *) 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_CThostFtdcPositionProfitAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPositionProfitAlgorithmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPositionProfitAlgorithmField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcPositionProfitAlgorithmField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *) 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_CThostFtdcPositionProfitAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPositionProfitAlgorithmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPositionProfitAlgorithmField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPositionProfitAlgorithmField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *) 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_CThostFtdcPositionProfitAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPositionProfitAlgorithmField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPositionProfitAlgorithmField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPositionProfitAlgorithmField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *) 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_CThostFtdcPositionProfitAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPositionProfitAlgorithmField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPositionProfitAlgorithmField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPositionProfitAlgorithmField_Algorithm_set(int argc, VALUE *argv, VALUE self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *) 0 ; TThostFtdcAlgorithmType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcPositionProfitAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPositionProfitAlgorithmField *","Algorithm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPositionProfitAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcAlgorithmType","Algorithm", 2, argv[0] )); } arg2 = static_cast< TThostFtdcAlgorithmType >(val2); if (arg1) (arg1)->Algorithm = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPositionProfitAlgorithmField_Algorithm_get(int argc, VALUE *argv, VALUE self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcAlgorithmType 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_CThostFtdcPositionProfitAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPositionProfitAlgorithmField *","Algorithm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPositionProfitAlgorithmField * >(argp1); result = (TThostFtdcAlgorithmType) ((arg1)->Algorithm); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPositionProfitAlgorithmField_Memo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[161] ; 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_CThostFtdcPositionProfitAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPositionProfitAlgorithmField *","Memo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPositionProfitAlgorithmField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 161); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [161]","Memo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Memo,arg2,161*sizeof(char)); else memset(arg1->Memo,0,161*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPositionProfitAlgorithmField_Memo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *) 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_CThostFtdcPositionProfitAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPositionProfitAlgorithmField *","Memo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPositionProfitAlgorithmField * >(argp1); result = (char *) ((arg1)->Memo); { size_t size = SWIG_strnlen(result, 161); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPositionProfitAlgorithmField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcPositionProfitAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPositionProfitAlgorithmField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPositionProfitAlgorithmField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcPositionProfitAlgorithmField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *) 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_CThostFtdcPositionProfitAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPositionProfitAlgorithmField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcPositionProfitAlgorithmField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcPositionProfitAlgorithmField_allocate(VALUE self) #else _wrap_CThostFtdcPositionProfitAlgorithmField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcPositionProfitAlgorithmField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcPositionProfitAlgorithmField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcPositionProfitAlgorithmField"; CThostFtdcPositionProfitAlgorithmField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcPositionProfitAlgorithmField *)new CThostFtdcPositionProfitAlgorithmField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcPositionProfitAlgorithmField(void *self) { CThostFtdcPositionProfitAlgorithmField *arg1 = (CThostFtdcPositionProfitAlgorithmField *)self; delete arg1; } static swig_class SwigClassCThostFtdcDiscountField; SWIGINTERN VALUE _wrap_CThostFtdcDiscountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDiscountField *arg1 = (CThostFtdcDiscountField *) 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_CThostFtdcDiscountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDiscountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDiscountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcDiscountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDiscountField *arg1 = (CThostFtdcDiscountField *) 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_CThostFtdcDiscountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDiscountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDiscountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDiscountField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDiscountField *arg1 = (CThostFtdcDiscountField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcDiscountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDiscountField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDiscountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDiscountField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDiscountField *arg1 = (CThostFtdcDiscountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcDiscountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDiscountField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDiscountField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDiscountField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDiscountField *arg1 = (CThostFtdcDiscountField *) 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_CThostFtdcDiscountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDiscountField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDiscountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDiscountField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDiscountField *arg1 = (CThostFtdcDiscountField *) 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_CThostFtdcDiscountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDiscountField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDiscountField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDiscountField_Discount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDiscountField *arg1 = (CThostFtdcDiscountField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDiscountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDiscountField *","Discount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDiscountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","Discount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->Discount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDiscountField_Discount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDiscountField *arg1 = (CThostFtdcDiscountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcDiscountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDiscountField *","Discount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDiscountField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->Discount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcDiscountField_allocate(VALUE self) #else _wrap_CThostFtdcDiscountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcDiscountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcDiscountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcDiscountField"; CThostFtdcDiscountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcDiscountField *)new CThostFtdcDiscountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcDiscountField(void *self) { CThostFtdcDiscountField *arg1 = (CThostFtdcDiscountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryTransferBankField; SWIGINTERN VALUE _wrap_CThostFtdcQryTransferBankField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferBankField *arg1 = (CThostFtdcQryTransferBankField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQryTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferBankField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferBankField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTransferBankField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferBankField *arg1 = (CThostFtdcQryTransferBankField *) 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_CThostFtdcQryTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferBankField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferBankField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTransferBankField_BankBrchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferBankField *arg1 = (CThostFtdcQryTransferBankField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcQryTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferBankField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferBankField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBrchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBrchID,arg2,5*sizeof(char)); else memset(arg1->BankBrchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTransferBankField_BankBrchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferBankField *arg1 = (CThostFtdcQryTransferBankField *) 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_CThostFtdcQryTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferBankField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferBankField * >(argp1); result = (char *) ((arg1)->BankBrchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryTransferBankField_allocate(VALUE self) #else _wrap_CThostFtdcQryTransferBankField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryTransferBankField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryTransferBankField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTransferBankField"; CThostFtdcQryTransferBankField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryTransferBankField *)new CThostFtdcQryTransferBankField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryTransferBankField(void *self) { CThostFtdcQryTransferBankField *arg1 = (CThostFtdcQryTransferBankField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferBankField; SWIGINTERN VALUE _wrap_CThostFtdcTransferBankField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 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_CThostFtdcTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankField_BankBrchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBrchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBrchID,arg2,5*sizeof(char)); else memset(arg1->BankBrchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankField_BankBrchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 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_CThostFtdcTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1); result = (char *) ((arg1)->BankBrchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankField_BankName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","BankName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankName,arg2,101*sizeof(char)); else memset(arg1->BankName,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankField_BankName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 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_CThostFtdcTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1); result = (char *) ((arg1)->BankName); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 0 ; TThostFtdcBoolType 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_CThostFtdcTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferBankField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferBankField_allocate(VALUE self) #else _wrap_CThostFtdcTransferBankField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferBankField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferBankField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferBankField"; CThostFtdcTransferBankField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferBankField *)new CThostFtdcTransferBankField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferBankField(void *self) { CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInvestorPositionDetailField; SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionDetailField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionDetailField *arg1 = (CThostFtdcQryInvestorPositionDetailField *) 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_CThostFtdcQryInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionDetailField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionDetailField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionDetailField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionDetailField *arg1 = (CThostFtdcQryInvestorPositionDetailField *) 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_CThostFtdcQryInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionDetailField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionDetailField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionDetailField *arg1 = (CThostFtdcQryInvestorPositionDetailField *) 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_CThostFtdcQryInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionDetailField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionDetailField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionDetailField *arg1 = (CThostFtdcQryInvestorPositionDetailField *) 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_CThostFtdcQryInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionDetailField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionDetailField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionDetailField *arg1 = (CThostFtdcQryInvestorPositionDetailField *) 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_CThostFtdcQryInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionDetailField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionDetailField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionDetailField *arg1 = (CThostFtdcQryInvestorPositionDetailField *) 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_CThostFtdcQryInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionDetailField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInvestorPositionDetailField_allocate(VALUE self) #else _wrap_CThostFtdcQryInvestorPositionDetailField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInvestorPositionDetailField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryInvestorPositionDetailField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInvestorPositionDetailField"; CThostFtdcQryInvestorPositionDetailField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInvestorPositionDetailField *)new CThostFtdcQryInvestorPositionDetailField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryInvestorPositionDetailField(void *self) { CThostFtdcQryInvestorPositionDetailField *arg1 = (CThostFtdcQryInvestorPositionDetailField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInvestorPositionDetailField; SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_OpenDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","OpenDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","OpenDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OpenDate,arg2,9*sizeof(char)); else memset(arg1->OpenDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_OpenDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","OpenDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->OpenDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_TradeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","TradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TradeID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeID,arg2,21*sizeof(char)); else memset(arg1->TradeID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_TradeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","TradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->TradeID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_OpenPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","OpenPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","OpenPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->OpenPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_OpenPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","OpenPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->OpenPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_TradeType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcTradeTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","TradeType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeTypeType","TradeType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeTypeType >(val2); if (arg1) (arg1)->TradeType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_TradeType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeTypeType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","TradeType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcTradeTypeType) ((arg1)->TradeType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_CombInstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","CombInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","CombInstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombInstrumentID,arg2,31*sizeof(char)); else memset(arg1->CombInstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_CombInstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","CombInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->CombInstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_CloseProfitByDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","CloseProfitByDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfitByDate", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfitByDate = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_CloseProfitByDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","CloseProfitByDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfitByDate); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_CloseProfitByTrade_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","CloseProfitByTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfitByTrade", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfitByTrade = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_CloseProfitByTrade_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","CloseProfitByTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfitByTrade); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_PositionProfitByDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","PositionProfitByDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PositionProfitByDate", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PositionProfitByDate = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_PositionProfitByDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","PositionProfitByDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PositionProfitByDate); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_PositionProfitByTrade_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","PositionProfitByTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PositionProfitByTrade", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PositionProfitByTrade = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_PositionProfitByTrade_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","PositionProfitByTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PositionProfitByTrade); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_Margin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","Margin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Margin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Margin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_Margin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","Margin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Margin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_ExchMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","ExchMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_ExchMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","ExchMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_MarginRateByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","MarginRateByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","MarginRateByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->MarginRateByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_MarginRateByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","MarginRateByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->MarginRateByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_MarginRateByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","MarginRateByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","MarginRateByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->MarginRateByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_MarginRateByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","MarginRateByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->MarginRateByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_LastSettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","LastSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LastSettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LastSettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_LastSettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","LastSettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LastSettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_SettlementPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","SettlementPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->SettlementPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_SettlementPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","SettlementPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->SettlementPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_CloseVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","CloseVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","CloseVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->CloseVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_CloseVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","CloseVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->CloseVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_CloseAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","CloseAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionDetailField_CloseAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","CloseAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInvestorPositionDetailField_allocate(VALUE self) #else _wrap_CThostFtdcInvestorPositionDetailField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInvestorPositionDetailField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInvestorPositionDetailField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInvestorPositionDetailField"; CThostFtdcInvestorPositionDetailField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInvestorPositionDetailField *)new CThostFtdcInvestorPositionDetailField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInvestorPositionDetailField(void *self) { CThostFtdcInvestorPositionDetailField *arg1 = (CThostFtdcInvestorPositionDetailField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTradingAccountPasswordField; SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordField *arg1 = (CThostFtdcTradingAccountPasswordField *) 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_CThostFtdcTradingAccountPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordField *arg1 = (CThostFtdcTradingAccountPasswordField *) 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_CThostFtdcTradingAccountPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordField *arg1 = (CThostFtdcTradingAccountPasswordField *) 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_CThostFtdcTradingAccountPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordField *arg1 = (CThostFtdcTradingAccountPasswordField *) 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_CThostFtdcTradingAccountPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordField *arg1 = (CThostFtdcTradingAccountPasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTradingAccountPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordField *arg1 = (CThostFtdcTradingAccountPasswordField *) 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_CThostFtdcTradingAccountPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordField *arg1 = (CThostFtdcTradingAccountPasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTradingAccountPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordField *arg1 = (CThostFtdcTradingAccountPasswordField *) 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_CThostFtdcTradingAccountPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTradingAccountPasswordField_allocate(VALUE self) #else _wrap_CThostFtdcTradingAccountPasswordField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTradingAccountPasswordField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTradingAccountPasswordField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingAccountPasswordField"; CThostFtdcTradingAccountPasswordField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTradingAccountPasswordField *)new CThostFtdcTradingAccountPasswordField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTradingAccountPasswordField(void *self) { CThostFtdcTradingAccountPasswordField *arg1 = (CThostFtdcTradingAccountPasswordField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMDTraderOfferField; SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_TraderConnectStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 0 ; TThostFtdcTraderConnectStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","TraderConnectStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTraderConnectStatusType","TraderConnectStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTraderConnectStatusType >(val2); if (arg1) (arg1)->TraderConnectStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_TraderConnectStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTraderConnectStatusType 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","TraderConnectStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (TThostFtdcTraderConnectStatusType) ((arg1)->TraderConnectStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ConnectRequestDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ConnectRequestDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConnectRequestDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ConnectRequestDate,arg2,9*sizeof(char)); else memset(arg1->ConnectRequestDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ConnectRequestDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ConnectRequestDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->ConnectRequestDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ConnectRequestTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ConnectRequestTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConnectRequestTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ConnectRequestTime,arg2,9*sizeof(char)); else memset(arg1->ConnectRequestTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ConnectRequestTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ConnectRequestTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->ConnectRequestTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_LastReportDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","LastReportDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LastReportDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LastReportDate,arg2,9*sizeof(char)); else memset(arg1->LastReportDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_LastReportDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","LastReportDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->LastReportDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_LastReportTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","LastReportTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LastReportTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LastReportTime,arg2,9*sizeof(char)); else memset(arg1->LastReportTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_LastReportTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","LastReportTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->LastReportTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ConnectDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ConnectDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConnectDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ConnectDate,arg2,9*sizeof(char)); else memset(arg1->ConnectDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ConnectDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ConnectDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->ConnectDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ConnectTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ConnectTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConnectTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ConnectTime,arg2,9*sizeof(char)); else memset(arg1->ConnectTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_ConnectTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ConnectTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->ConnectTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_StartDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","StartDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","StartDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StartDate,arg2,9*sizeof(char)); else memset(arg1->StartDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_StartDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","StartDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->StartDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_StartTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","StartTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","StartTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StartTime,arg2,9*sizeof(char)); else memset(arg1->StartTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_StartTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","StartTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->StartTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_MaxTradeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","MaxTradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MaxTradeID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MaxTradeID,arg2,21*sizeof(char)); else memset(arg1->MaxTradeID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_MaxTradeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","MaxTradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->MaxTradeID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_MaxOrderMessageReference_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","MaxOrderMessageReference", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","MaxOrderMessageReference", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MaxOrderMessageReference,arg2,7*sizeof(char)); else memset(arg1->MaxOrderMessageReference,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMDTraderOfferField_MaxOrderMessageReference_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 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_CThostFtdcMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","MaxOrderMessageReference", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1); result = (char *) ((arg1)->MaxOrderMessageReference); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMDTraderOfferField_allocate(VALUE self) #else _wrap_CThostFtdcMDTraderOfferField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMDTraderOfferField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMDTraderOfferField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMDTraderOfferField"; CThostFtdcMDTraderOfferField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMDTraderOfferField *)new CThostFtdcMDTraderOfferField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMDTraderOfferField(void *self) { CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryMDTraderOfferField; SWIGINTERN VALUE _wrap_CThostFtdcQryMDTraderOfferField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryMDTraderOfferField *arg1 = (CThostFtdcQryMDTraderOfferField *) 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_CThostFtdcQryMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryMDTraderOfferField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryMDTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryMDTraderOfferField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryMDTraderOfferField *arg1 = (CThostFtdcQryMDTraderOfferField *) 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_CThostFtdcQryMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryMDTraderOfferField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryMDTraderOfferField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryMDTraderOfferField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryMDTraderOfferField *arg1 = (CThostFtdcQryMDTraderOfferField *) 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_CThostFtdcQryMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryMDTraderOfferField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryMDTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryMDTraderOfferField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryMDTraderOfferField *arg1 = (CThostFtdcQryMDTraderOfferField *) 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_CThostFtdcQryMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryMDTraderOfferField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryMDTraderOfferField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryMDTraderOfferField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryMDTraderOfferField *arg1 = (CThostFtdcQryMDTraderOfferField *) 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_CThostFtdcQryMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryMDTraderOfferField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryMDTraderOfferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryMDTraderOfferField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryMDTraderOfferField *arg1 = (CThostFtdcQryMDTraderOfferField *) 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_CThostFtdcQryMDTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryMDTraderOfferField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryMDTraderOfferField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryMDTraderOfferField_allocate(VALUE self) #else _wrap_CThostFtdcQryMDTraderOfferField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryMDTraderOfferField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryMDTraderOfferField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryMDTraderOfferField"; CThostFtdcQryMDTraderOfferField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryMDTraderOfferField *)new CThostFtdcQryMDTraderOfferField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryMDTraderOfferField(void *self) { CThostFtdcQryMDTraderOfferField *arg1 = (CThostFtdcQryMDTraderOfferField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryNoticeField; SWIGINTERN VALUE _wrap_CThostFtdcQryNoticeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryNoticeField *arg1 = (CThostFtdcQryNoticeField *) 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_CThostFtdcQryNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryNoticeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryNoticeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryNoticeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryNoticeField *arg1 = (CThostFtdcQryNoticeField *) 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_CThostFtdcQryNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryNoticeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryNoticeField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryNoticeField_allocate(VALUE self) #else _wrap_CThostFtdcQryNoticeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryNoticeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryNoticeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryNoticeField"; CThostFtdcQryNoticeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryNoticeField *)new CThostFtdcQryNoticeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryNoticeField(void *self) { CThostFtdcQryNoticeField *arg1 = (CThostFtdcQryNoticeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcNoticeField; SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_Content_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[501] ; 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","Content", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 501); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [501]","Content", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Content,arg2,501*sizeof(char)); else memset(arg1->Content,0,501*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_Content_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","Content", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(argp1); result = (char *) ((arg1)->Content); { size_t size = SWIG_strnlen(result, 501); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_SequenceLabel_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[2] ; 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","SequenceLabel", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [2]","SequenceLabel", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SequenceLabel,arg2,2*sizeof(char)); else memset(arg1->SequenceLabel,0,2*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_SequenceLabel_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","SequenceLabel", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(argp1); result = (char *) ((arg1)->SequenceLabel); { size_t size = SWIG_strnlen(result, 2); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcNoticeField_allocate(VALUE self) #else _wrap_CThostFtdcNoticeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcNoticeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcNoticeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcNoticeField"; CThostFtdcNoticeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcNoticeField *)new CThostFtdcNoticeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcNoticeField(void *self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcUserRightField; SWIGINTERN VALUE _wrap_CThostFtdcUserRightField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightField *arg1 = (CThostFtdcUserRightField *) 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_CThostFtdcUserRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightField *arg1 = (CThostFtdcUserRightField *) 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_CThostFtdcUserRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightField *arg1 = (CThostFtdcUserRightField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcUserRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightField *arg1 = (CThostFtdcUserRightField *) 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_CThostFtdcUserRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightField_UserRightType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightField *arg1 = (CThostFtdcUserRightField *) 0 ; TThostFtdcUserRightTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcUserRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightField *","UserRightType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcUserRightTypeType","UserRightType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcUserRightTypeType >(val2); if (arg1) (arg1)->UserRightType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightField_UserRightType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightField *arg1 = (CThostFtdcUserRightField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcUserRightTypeType 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_CThostFtdcUserRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightField *","UserRightType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightField * >(argp1); result = (TThostFtdcUserRightTypeType) ((arg1)->UserRightType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightField_IsForbidden_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightField *arg1 = (CThostFtdcUserRightField *) 0 ; TThostFtdcBoolType 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_CThostFtdcUserRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightField *","IsForbidden", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsForbidden", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsForbidden = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightField_IsForbidden_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightField *arg1 = (CThostFtdcUserRightField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcUserRightField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightField *","IsForbidden", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsForbidden); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcUserRightField_allocate(VALUE self) #else _wrap_CThostFtdcUserRightField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcUserRightField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcUserRightField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcUserRightField"; CThostFtdcUserRightField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcUserRightField *)new CThostFtdcUserRightField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcUserRightField(void *self) { CThostFtdcUserRightField *arg1 = (CThostFtdcUserRightField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQrySettlementInfoConfirmField; SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoConfirmField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoConfirmField *arg1 = (CThostFtdcQrySettlementInfoConfirmField *) 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_CThostFtdcQrySettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoConfirmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoConfirmField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoConfirmField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoConfirmField *arg1 = (CThostFtdcQrySettlementInfoConfirmField *) 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_CThostFtdcQrySettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoConfirmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoConfirmField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoConfirmField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoConfirmField *arg1 = (CThostFtdcQrySettlementInfoConfirmField *) 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_CThostFtdcQrySettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoConfirmField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoConfirmField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoConfirmField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoConfirmField *arg1 = (CThostFtdcQrySettlementInfoConfirmField *) 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_CThostFtdcQrySettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoConfirmField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoConfirmField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQrySettlementInfoConfirmField_allocate(VALUE self) #else _wrap_CThostFtdcQrySettlementInfoConfirmField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQrySettlementInfoConfirmField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQrySettlementInfoConfirmField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySettlementInfoConfirmField"; CThostFtdcQrySettlementInfoConfirmField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQrySettlementInfoConfirmField *)new CThostFtdcQrySettlementInfoConfirmField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQrySettlementInfoConfirmField(void *self) { CThostFtdcQrySettlementInfoConfirmField *arg1 = (CThostFtdcQrySettlementInfoConfirmField *)self; delete arg1; } static swig_class SwigClassCThostFtdcLoadSettlementInfoField; SWIGINTERN VALUE _wrap_CThostFtdcLoadSettlementInfoField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoadSettlementInfoField *arg1 = (CThostFtdcLoadSettlementInfoField *) 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_CThostFtdcLoadSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoadSettlementInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoadSettlementInfoField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcLoadSettlementInfoField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoadSettlementInfoField *arg1 = (CThostFtdcLoadSettlementInfoField *) 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_CThostFtdcLoadSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoadSettlementInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoadSettlementInfoField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcLoadSettlementInfoField_allocate(VALUE self) #else _wrap_CThostFtdcLoadSettlementInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcLoadSettlementInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcLoadSettlementInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcLoadSettlementInfoField"; CThostFtdcLoadSettlementInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcLoadSettlementInfoField *)new CThostFtdcLoadSettlementInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcLoadSettlementInfoField(void *self) { CThostFtdcLoadSettlementInfoField *arg1 = (CThostFtdcLoadSettlementInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerWithdrawAlgorithmField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_WithdrawAlgorithm_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; TThostFtdcAlgorithmType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","WithdrawAlgorithm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcAlgorithmType","WithdrawAlgorithm", 2, argv[0] )); } arg2 = static_cast< TThostFtdcAlgorithmType >(val2); if (arg1) (arg1)->WithdrawAlgorithm = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_WithdrawAlgorithm_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcAlgorithmType 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","WithdrawAlgorithm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); result = (TThostFtdcAlgorithmType) ((arg1)->WithdrawAlgorithm); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_UsingRatio_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","UsingRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","UsingRatio", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->UsingRatio = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_UsingRatio_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","UsingRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->UsingRatio); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_IncludeCloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; TThostFtdcIncludeCloseProfitType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","IncludeCloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIncludeCloseProfitType","IncludeCloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIncludeCloseProfitType >(val2); if (arg1) (arg1)->IncludeCloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_IncludeCloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIncludeCloseProfitType 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","IncludeCloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); result = (TThostFtdcIncludeCloseProfitType) ((arg1)->IncludeCloseProfit); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_AllWithoutTrade_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; TThostFtdcAllWithoutTradeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","AllWithoutTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcAllWithoutTradeType","AllWithoutTrade", 2, argv[0] )); } arg2 = static_cast< TThostFtdcAllWithoutTradeType >(val2); if (arg1) (arg1)->AllWithoutTrade = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_AllWithoutTrade_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcAllWithoutTradeType 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","AllWithoutTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); result = (TThostFtdcAllWithoutTradeType) ((arg1)->AllWithoutTrade); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_AvailIncludeCloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; TThostFtdcIncludeCloseProfitType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","AvailIncludeCloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIncludeCloseProfitType","AvailIncludeCloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIncludeCloseProfitType >(val2); if (arg1) (arg1)->AvailIncludeCloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_AvailIncludeCloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIncludeCloseProfitType 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","AvailIncludeCloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); result = (TThostFtdcIncludeCloseProfitType) ((arg1)->AvailIncludeCloseProfit); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_IsBrokerUserEvent_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","IsBrokerUserEvent", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsBrokerUserEvent", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsBrokerUserEvent = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_IsBrokerUserEvent_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","IsBrokerUserEvent", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsBrokerUserEvent); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_FundMortgageRatio_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","FundMortgageRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","FundMortgageRatio", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->FundMortgageRatio = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_FundMortgageRatio_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","FundMortgageRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->FundMortgageRatio); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_BalanceAlgorithm_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; TThostFtdcBalanceAlgorithmType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","BalanceAlgorithm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBalanceAlgorithmType","BalanceAlgorithm", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBalanceAlgorithmType >(val2); if (arg1) (arg1)->BalanceAlgorithm = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerWithdrawAlgorithmField_BalanceAlgorithm_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBalanceAlgorithmType 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_CThostFtdcBrokerWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerWithdrawAlgorithmField *","BalanceAlgorithm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerWithdrawAlgorithmField * >(argp1); result = (TThostFtdcBalanceAlgorithmType) ((arg1)->BalanceAlgorithm); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerWithdrawAlgorithmField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerWithdrawAlgorithmField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerWithdrawAlgorithmField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerWithdrawAlgorithmField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerWithdrawAlgorithmField"; CThostFtdcBrokerWithdrawAlgorithmField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerWithdrawAlgorithmField *)new CThostFtdcBrokerWithdrawAlgorithmField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerWithdrawAlgorithmField(void *self) { CThostFtdcBrokerWithdrawAlgorithmField *arg1 = (CThostFtdcBrokerWithdrawAlgorithmField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field; SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateV1Field *arg1 = (CThostFtdcTradingAccountPasswordUpdateV1Field *) 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_CThostFtdcTradingAccountPasswordUpdateV1Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateV1Field *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateV1Field * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateV1Field *arg1 = (CThostFtdcTradingAccountPasswordUpdateV1Field *) 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_CThostFtdcTradingAccountPasswordUpdateV1Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateV1Field *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateV1Field * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateV1Field *arg1 = (CThostFtdcTradingAccountPasswordUpdateV1Field *) 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_CThostFtdcTradingAccountPasswordUpdateV1Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateV1Field *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateV1Field * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateV1Field *arg1 = (CThostFtdcTradingAccountPasswordUpdateV1Field *) 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_CThostFtdcTradingAccountPasswordUpdateV1Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateV1Field *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateV1Field * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_OldPassword_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateV1Field *arg1 = (CThostFtdcTradingAccountPasswordUpdateV1Field *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTradingAccountPasswordUpdateV1Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateV1Field *","OldPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateV1Field * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","OldPassword", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OldPassword,arg2,41*sizeof(char)); else memset(arg1->OldPassword,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_OldPassword_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateV1Field *arg1 = (CThostFtdcTradingAccountPasswordUpdateV1Field *) 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_CThostFtdcTradingAccountPasswordUpdateV1Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateV1Field *","OldPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateV1Field * >(argp1); result = (char *) ((arg1)->OldPassword); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_NewPassword_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateV1Field *arg1 = (CThostFtdcTradingAccountPasswordUpdateV1Field *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTradingAccountPasswordUpdateV1Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateV1Field *","NewPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateV1Field * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","NewPassword", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->NewPassword,arg2,41*sizeof(char)); else memset(arg1->NewPassword,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_NewPassword_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateV1Field *arg1 = (CThostFtdcTradingAccountPasswordUpdateV1Field *) 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_CThostFtdcTradingAccountPasswordUpdateV1Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateV1Field *","NewPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateV1Field * >(argp1); result = (char *) ((arg1)->NewPassword); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_allocate(VALUE self) #else _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTradingAccountPasswordUpdateV1Field); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTradingAccountPasswordUpdateV1Field(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingAccountPasswordUpdateV1Field"; CThostFtdcTradingAccountPasswordUpdateV1Field *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTradingAccountPasswordUpdateV1Field *)new CThostFtdcTradingAccountPasswordUpdateV1Field(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTradingAccountPasswordUpdateV1Field(void *self) { CThostFtdcTradingAccountPasswordUpdateV1Field *arg1 = (CThostFtdcTradingAccountPasswordUpdateV1Field *)self; delete arg1; } static swig_class SwigClassCThostFtdcTradingAccountPasswordUpdateField; SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *) 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_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *) 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_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *) 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_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *) 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_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateField_OldPassword_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","OldPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","OldPassword", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OldPassword,arg2,41*sizeof(char)); else memset(arg1->OldPassword,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateField_OldPassword_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *) 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_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","OldPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp1); result = (char *) ((arg1)->OldPassword); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateField_NewPassword_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","NewPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","NewPassword", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->NewPassword,arg2,41*sizeof(char)); else memset(arg1->NewPassword,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateField_NewPassword_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *) 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_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","NewPassword", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp1); result = (char *) ((arg1)->NewPassword); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountPasswordUpdateField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *) 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_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTradingAccountPasswordUpdateField_allocate(VALUE self) #else _wrap_CThostFtdcTradingAccountPasswordUpdateField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTradingAccountPasswordUpdateField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTradingAccountPasswordUpdateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingAccountPasswordUpdateField"; CThostFtdcTradingAccountPasswordUpdateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTradingAccountPasswordUpdateField *)new CThostFtdcTradingAccountPasswordUpdateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTradingAccountPasswordUpdateField(void *self) { CThostFtdcTradingAccountPasswordUpdateField *arg1 = (CThostFtdcTradingAccountPasswordUpdateField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryCombinationLegField; SWIGINTERN VALUE _wrap_CThostFtdcQryCombinationLegField_CombInstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombinationLegField *arg1 = (CThostFtdcQryCombinationLegField *) 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_CThostFtdcQryCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombinationLegField *","CombInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombinationLegField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","CombInstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombInstrumentID,arg2,31*sizeof(char)); else memset(arg1->CombInstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombinationLegField_CombInstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombinationLegField *arg1 = (CThostFtdcQryCombinationLegField *) 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_CThostFtdcQryCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombinationLegField *","CombInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombinationLegField * >(argp1); result = (char *) ((arg1)->CombInstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombinationLegField_LegID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombinationLegField *arg1 = (CThostFtdcQryCombinationLegField *) 0 ; TThostFtdcLegIDType 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_CThostFtdcQryCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombinationLegField *","LegID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombinationLegField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLegIDType","LegID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLegIDType >(val2); if (arg1) (arg1)->LegID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombinationLegField_LegID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombinationLegField *arg1 = (CThostFtdcQryCombinationLegField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLegIDType 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_CThostFtdcQryCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombinationLegField *","LegID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombinationLegField * >(argp1); result = (TThostFtdcLegIDType) ((arg1)->LegID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombinationLegField_LegInstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombinationLegField *arg1 = (CThostFtdcQryCombinationLegField *) 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_CThostFtdcQryCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombinationLegField *","LegInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombinationLegField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","LegInstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LegInstrumentID,arg2,31*sizeof(char)); else memset(arg1->LegInstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCombinationLegField_LegInstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCombinationLegField *arg1 = (CThostFtdcQryCombinationLegField *) 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_CThostFtdcQryCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCombinationLegField *","LegInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCombinationLegField * >(argp1); result = (char *) ((arg1)->LegInstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryCombinationLegField_allocate(VALUE self) #else _wrap_CThostFtdcQryCombinationLegField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryCombinationLegField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryCombinationLegField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryCombinationLegField"; CThostFtdcQryCombinationLegField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryCombinationLegField *)new CThostFtdcQryCombinationLegField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryCombinationLegField(void *self) { CThostFtdcQryCombinationLegField *arg1 = (CThostFtdcQryCombinationLegField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQrySyncStatusField; SWIGINTERN VALUE _wrap_CThostFtdcQrySyncStatusField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncStatusField *arg1 = (CThostFtdcQrySyncStatusField *) 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_CThostFtdcQrySyncStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncStatusField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncStatusField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySyncStatusField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncStatusField *arg1 = (CThostFtdcQrySyncStatusField *) 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_CThostFtdcQrySyncStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncStatusField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncStatusField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQrySyncStatusField_allocate(VALUE self) #else _wrap_CThostFtdcQrySyncStatusField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQrySyncStatusField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQrySyncStatusField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySyncStatusField"; CThostFtdcQrySyncStatusField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQrySyncStatusField *)new CThostFtdcQrySyncStatusField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQrySyncStatusField(void *self) { CThostFtdcQrySyncStatusField *arg1 = (CThostFtdcQrySyncStatusField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCombinationLegField; SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_CombInstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","CombInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","CombInstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombInstrumentID,arg2,31*sizeof(char)); else memset(arg1->CombInstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_CombInstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","CombInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); result = (char *) ((arg1)->CombInstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_LegID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 0 ; TThostFtdcLegIDType 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","LegID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLegIDType","LegID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLegIDType >(val2); if (arg1) (arg1)->LegID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_LegID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLegIDType 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","LegID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); result = (TThostFtdcLegIDType) ((arg1)->LegID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_LegInstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","LegInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","LegInstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->LegInstrumentID,arg2,31*sizeof(char)); else memset(arg1->LegInstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_LegInstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","LegInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); result = (char *) ((arg1)->LegInstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_LegMultiple_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 0 ; TThostFtdcLegMultipleType 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","LegMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLegMultipleType","LegMultiple", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLegMultipleType >(val2); if (arg1) (arg1)->LegMultiple = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_LegMultiple_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLegMultipleType 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","LegMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); result = (TThostFtdcLegMultipleType) ((arg1)->LegMultiple); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_ImplyLevel_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 0 ; TThostFtdcImplyLevelType 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","ImplyLevel", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcImplyLevelType","ImplyLevel", 2, argv[0] )); } arg2 = static_cast< TThostFtdcImplyLevelType >(val2); if (arg1) (arg1)->ImplyLevel = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCombinationLegField_ImplyLevel_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcImplyLevelType 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_CThostFtdcCombinationLegField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombinationLegField *","ImplyLevel", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCombinationLegField * >(argp1); result = (TThostFtdcImplyLevelType) ((arg1)->ImplyLevel); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCombinationLegField_allocate(VALUE self) #else _wrap_CThostFtdcCombinationLegField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCombinationLegField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCombinationLegField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCombinationLegField"; CThostFtdcCombinationLegField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCombinationLegField *)new CThostFtdcCombinationLegField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCombinationLegField(void *self) { CThostFtdcCombinationLegField *arg1 = (CThostFtdcCombinationLegField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSyncStatusField; SWIGINTERN VALUE _wrap_CThostFtdcSyncStatusField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncStatusField *arg1 = (CThostFtdcSyncStatusField *) 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_CThostFtdcSyncStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncStatusField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncStatusField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncStatusField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncStatusField *arg1 = (CThostFtdcSyncStatusField *) 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_CThostFtdcSyncStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncStatusField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncStatusField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncStatusField_DataSyncStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncStatusField *arg1 = (CThostFtdcSyncStatusField *) 0 ; TThostFtdcDataSyncStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcSyncStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncStatusField *","DataSyncStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncStatusField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDataSyncStatusType","DataSyncStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDataSyncStatusType >(val2); if (arg1) (arg1)->DataSyncStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSyncStatusField_DataSyncStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncStatusField *arg1 = (CThostFtdcSyncStatusField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDataSyncStatusType 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_CThostFtdcSyncStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncStatusField *","DataSyncStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncStatusField * >(argp1); result = (TThostFtdcDataSyncStatusType) ((arg1)->DataSyncStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSyncStatusField_allocate(VALUE self) #else _wrap_CThostFtdcSyncStatusField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSyncStatusField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSyncStatusField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncStatusField"; CThostFtdcSyncStatusField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncStatusField *)new CThostFtdcSyncStatusField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSyncStatusField(void *self) { CThostFtdcSyncStatusField *arg1 = (CThostFtdcSyncStatusField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryLinkManField; SWIGINTERN VALUE _wrap_CThostFtdcQryLinkManField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryLinkManField *arg1 = (CThostFtdcQryLinkManField *) 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_CThostFtdcQryLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryLinkManField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryLinkManField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryLinkManField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryLinkManField *arg1 = (CThostFtdcQryLinkManField *) 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_CThostFtdcQryLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryLinkManField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryLinkManField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryLinkManField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryLinkManField *arg1 = (CThostFtdcQryLinkManField *) 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_CThostFtdcQryLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryLinkManField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryLinkManField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryLinkManField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryLinkManField *arg1 = (CThostFtdcQryLinkManField *) 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_CThostFtdcQryLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryLinkManField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryLinkManField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryLinkManField_allocate(VALUE self) #else _wrap_CThostFtdcQryLinkManField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryLinkManField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryLinkManField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryLinkManField"; CThostFtdcQryLinkManField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryLinkManField *)new CThostFtdcQryLinkManField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryLinkManField(void *self) { CThostFtdcQryLinkManField *arg1 = (CThostFtdcQryLinkManField *)self; delete arg1; } static swig_class SwigClassCThostFtdcLinkManField; SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_PersonType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; TThostFtdcPersonTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","PersonType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPersonTypeType","PersonType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPersonTypeType >(val2); if (arg1) (arg1)->PersonType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_PersonType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPersonTypeType 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","PersonType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (TThostFtdcPersonTypeType) ((arg1)->PersonType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_IdentifiedCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","IdentifiedCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdentifiedCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdentifiedCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_IdentifiedCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","IdentifiedCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdentifiedCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_PersonName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","PersonName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","PersonName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->PersonName,arg2,81*sizeof(char)); else memset(arg1->PersonName,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_PersonName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","PersonName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (char *) ((arg1)->PersonName); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_Telephone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Telephone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Telephone,arg2,41*sizeof(char)); else memset(arg1->Telephone,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_Telephone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (char *) ((arg1)->Telephone); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_Address_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","Address", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Address,arg2,101*sizeof(char)); else memset(arg1->Address,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_Address_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (char *) ((arg1)->Address); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_ZipCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","ZipCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ZipCode,arg2,7*sizeof(char)); else memset(arg1->ZipCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_ZipCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (char *) ((arg1)->ZipCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_Priority_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; TThostFtdcPriorityType 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","Priority", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriorityType","Priority", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriorityType >(val2); if (arg1) (arg1)->Priority = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_Priority_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriorityType 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","Priority", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (TThostFtdcPriorityType) ((arg1)->Priority); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_UOAZipCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","UOAZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UOAZipCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UOAZipCode,arg2,11*sizeof(char)); else memset(arg1->UOAZipCode,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_UOAZipCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","UOAZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (char *) ((arg1)->UOAZipCode); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_PersonFullName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","PersonFullName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","PersonFullName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->PersonFullName,arg2,101*sizeof(char)); else memset(arg1->PersonFullName,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLinkManField_PersonFullName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *) 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_CThostFtdcLinkManField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLinkManField *","PersonFullName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLinkManField * >(argp1); result = (char *) ((arg1)->PersonFullName); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcLinkManField_allocate(VALUE self) #else _wrap_CThostFtdcLinkManField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcLinkManField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcLinkManField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcLinkManField"; CThostFtdcLinkManField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcLinkManField *)new CThostFtdcLinkManField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcLinkManField(void *self) { CThostFtdcLinkManField *arg1 = (CThostFtdcLinkManField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryBrokerUserEventField; SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserEventField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserEventField *arg1 = (CThostFtdcQryBrokerUserEventField *) 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_CThostFtdcQryBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserEventField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserEventField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserEventField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserEventField *arg1 = (CThostFtdcQryBrokerUserEventField *) 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_CThostFtdcQryBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserEventField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserEventField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserEventField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserEventField *arg1 = (CThostFtdcQryBrokerUserEventField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQryBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserEventField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserEventField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserEventField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserEventField *arg1 = (CThostFtdcQryBrokerUserEventField *) 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_CThostFtdcQryBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserEventField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserEventField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserEventField_UserEventType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserEventField *arg1 = (CThostFtdcQryBrokerUserEventField *) 0 ; TThostFtdcUserEventTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserEventField *","UserEventType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserEventField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcUserEventTypeType","UserEventType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcUserEventTypeType >(val2); if (arg1) (arg1)->UserEventType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerUserEventField_UserEventType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerUserEventField *arg1 = (CThostFtdcQryBrokerUserEventField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcUserEventTypeType 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_CThostFtdcQryBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerUserEventField *","UserEventType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerUserEventField * >(argp1); result = (TThostFtdcUserEventTypeType) ((arg1)->UserEventType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryBrokerUserEventField_allocate(VALUE self) #else _wrap_CThostFtdcQryBrokerUserEventField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryBrokerUserEventField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryBrokerUserEventField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryBrokerUserEventField"; CThostFtdcQryBrokerUserEventField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryBrokerUserEventField *)new CThostFtdcQryBrokerUserEventField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryBrokerUserEventField(void *self) { CThostFtdcQryBrokerUserEventField *arg1 = (CThostFtdcQryBrokerUserEventField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerUserEventField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserEventType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; TThostFtdcUserEventTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserEventType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcUserEventTypeType","UserEventType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcUserEventTypeType >(val2); if (arg1) (arg1)->UserEventType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserEventType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcUserEventTypeType 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserEventType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (TThostFtdcUserEventTypeType) ((arg1)->UserEventType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventSequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventSequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","EventSequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->EventSequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventSequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventSequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->EventSequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","EventDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EventDate,arg2,9*sizeof(char)); else memset(arg1->EventDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (char *) ((arg1)->EventDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","EventTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EventTime,arg2,9*sizeof(char)); else memset(arg1->EventTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (char *) ((arg1)->EventTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserEventInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[1025] ; 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserEventInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 1025); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [1025]","UserEventInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserEventInfo,arg2,1025*sizeof(char)); else memset(arg1->UserEventInfo,0,1025*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserEventInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserEventInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (char *) ((arg1)->UserEventInfo); { size_t size = SWIG_strnlen(result, 1025); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerUserEventField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerUserEventField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerUserEventField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerUserEventField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerUserEventField"; CThostFtdcBrokerUserEventField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerUserEventField *)new CThostFtdcBrokerUserEventField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerUserEventField(void *self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryContractBankField; SWIGINTERN VALUE _wrap_CThostFtdcQryContractBankField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryContractBankField *arg1 = (CThostFtdcQryContractBankField *) 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_CThostFtdcQryContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryContractBankField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryContractBankField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryContractBankField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryContractBankField *arg1 = (CThostFtdcQryContractBankField *) 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_CThostFtdcQryContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryContractBankField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryContractBankField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryContractBankField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryContractBankField *arg1 = (CThostFtdcQryContractBankField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQryContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryContractBankField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryContractBankField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryContractBankField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryContractBankField *arg1 = (CThostFtdcQryContractBankField *) 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_CThostFtdcQryContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryContractBankField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryContractBankField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryContractBankField_BankBrchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryContractBankField *arg1 = (CThostFtdcQryContractBankField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcQryContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryContractBankField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryContractBankField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBrchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBrchID,arg2,5*sizeof(char)); else memset(arg1->BankBrchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryContractBankField_BankBrchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryContractBankField *arg1 = (CThostFtdcQryContractBankField *) 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_CThostFtdcQryContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryContractBankField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryContractBankField * >(argp1); result = (char *) ((arg1)->BankBrchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryContractBankField_allocate(VALUE self) #else _wrap_CThostFtdcQryContractBankField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryContractBankField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryContractBankField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryContractBankField"; CThostFtdcQryContractBankField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryContractBankField *)new CThostFtdcQryContractBankField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryContractBankField(void *self) { CThostFtdcQryContractBankField *arg1 = (CThostFtdcQryContractBankField *)self; delete arg1; } static swig_class SwigClassCThostFtdcContractBankField; SWIGINTERN VALUE _wrap_CThostFtdcContractBankField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcContractBankField *arg1 = (CThostFtdcContractBankField *) 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_CThostFtdcContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcContractBankField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcContractBankField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcContractBankField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcContractBankField *arg1 = (CThostFtdcContractBankField *) 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_CThostFtdcContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcContractBankField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcContractBankField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcContractBankField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcContractBankField *arg1 = (CThostFtdcContractBankField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcContractBankField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcContractBankField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcContractBankField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcContractBankField *arg1 = (CThostFtdcContractBankField *) 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_CThostFtdcContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcContractBankField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcContractBankField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcContractBankField_BankBrchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcContractBankField *arg1 = (CThostFtdcContractBankField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcContractBankField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcContractBankField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBrchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBrchID,arg2,5*sizeof(char)); else memset(arg1->BankBrchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcContractBankField_BankBrchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcContractBankField *arg1 = (CThostFtdcContractBankField *) 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_CThostFtdcContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcContractBankField *","BankBrchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcContractBankField * >(argp1); result = (char *) ((arg1)->BankBrchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcContractBankField_BankName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcContractBankField *arg1 = (CThostFtdcContractBankField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcContractBankField *","BankName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcContractBankField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","BankName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankName,arg2,101*sizeof(char)); else memset(arg1->BankName,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcContractBankField_BankName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcContractBankField *arg1 = (CThostFtdcContractBankField *) 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_CThostFtdcContractBankField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcContractBankField *","BankName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcContractBankField * >(argp1); result = (char *) ((arg1)->BankName); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcContractBankField_allocate(VALUE self) #else _wrap_CThostFtdcContractBankField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcContractBankField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcContractBankField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcContractBankField"; CThostFtdcContractBankField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcContractBankField *)new CThostFtdcContractBankField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcContractBankField(void *self) { CThostFtdcContractBankField *arg1 = (CThostFtdcContractBankField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInvestorPositionCombineDetailField; SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_OpenDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","OpenDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","OpenDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OpenDate,arg2,9*sizeof(char)); else memset(arg1->OpenDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_OpenDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","OpenDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->OpenDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_ComTradeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","ComTradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ComTradeID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ComTradeID,arg2,21*sizeof(char)); else memset(arg1->ComTradeID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_ComTradeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","ComTradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->ComTradeID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_TradeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","TradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TradeID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeID,arg2,21*sizeof(char)); else memset(arg1->TradeID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_TradeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","TradeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->TradeID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_TotalAmt_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","TotalAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","TotalAmt", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->TotalAmt = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_TotalAmt_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","TotalAmt", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->TotalAmt); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_Margin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","Margin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Margin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Margin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_Margin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","Margin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Margin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_ExchMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","ExchMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_ExchMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","ExchMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_MarginRateByMoney_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","MarginRateByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","MarginRateByMoney", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->MarginRateByMoney = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_MarginRateByMoney_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","MarginRateByMoney", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->MarginRateByMoney); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_MarginRateByVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","MarginRateByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","MarginRateByVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->MarginRateByVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_MarginRateByVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","MarginRateByVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->MarginRateByVolume); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_LegID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcLegIDType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","LegID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLegIDType","LegID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLegIDType >(val2); if (arg1) (arg1)->LegID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_LegID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLegIDType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","LegID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcLegIDType) ((arg1)->LegID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_LegMultiple_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcLegMultipleType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","LegMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLegMultipleType","LegMultiple", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLegMultipleType >(val2); if (arg1) (arg1)->LegMultiple = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_LegMultiple_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLegMultipleType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","LegMultiple", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcLegMultipleType) ((arg1)->LegMultiple); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_CombInstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","CombInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","CombInstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombInstrumentID,arg2,31*sizeof(char)); else memset(arg1->CombInstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_CombInstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","CombInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->CombInstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_TradeGroupID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; TThostFtdcTradeGroupIDType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","TradeGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeGroupIDType","TradeGroupID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeGroupIDType >(val2); if (arg1) (arg1)->TradeGroupID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorPositionCombineDetailField_TradeGroupID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeGroupIDType 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_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","TradeGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp1); result = (TThostFtdcTradeGroupIDType) ((arg1)->TradeGroupID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInvestorPositionCombineDetailField_allocate(VALUE self) #else _wrap_CThostFtdcInvestorPositionCombineDetailField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInvestorPositionCombineDetailField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInvestorPositionCombineDetailField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInvestorPositionCombineDetailField"; CThostFtdcInvestorPositionCombineDetailField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInvestorPositionCombineDetailField *)new CThostFtdcInvestorPositionCombineDetailField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInvestorPositionCombineDetailField(void *self) { CThostFtdcInvestorPositionCombineDetailField *arg1 = (CThostFtdcInvestorPositionCombineDetailField *)self; delete arg1; } static swig_class SwigClassCThostFtdcParkedOrderField; SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_OrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char)); else memset(arg1->OrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_OrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->OrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_OrderPriceType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcOrderPriceTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderPriceTypeType","OrderPriceType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderPriceTypeType >(val2); if (arg1) (arg1)->OrderPriceType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_OrderPriceType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderPriceTypeType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcOrderPriceTypeType) ((arg1)->OrderPriceType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_CombOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombOffsetFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombOffsetFlag,arg2,5*sizeof(char)); else memset(arg1->CombOffsetFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_CombOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->CombOffsetFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_CombHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombHedgeFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombHedgeFlag,arg2,5*sizeof(char)); else memset(arg1->CombHedgeFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_CombHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->CombHedgeFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_VolumeTotalOriginal_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotalOriginal", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTotalOriginal = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_VolumeTotalOriginal_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTotalOriginal); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_TimeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcTimeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTimeConditionType","TimeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTimeConditionType >(val2); if (arg1) (arg1)->TimeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_TimeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTimeConditionType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcTimeConditionType) ((arg1)->TimeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_GTDDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","GTDDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->GTDDate,arg2,9*sizeof(char)); else memset(arg1->GTDDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_GTDDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->GTDDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_VolumeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcVolumeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeConditionType","VolumeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeConditionType >(val2); if (arg1) (arg1)->VolumeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_VolumeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeConditionType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcVolumeConditionType) ((arg1)->VolumeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_MinVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MinVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_MinVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MinVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ContingentCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcContingentConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcContingentConditionType","ContingentCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcContingentConditionType >(val2); if (arg1) (arg1)->ContingentCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ContingentCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcContingentConditionType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcContingentConditionType) ((arg1)->ContingentCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_StopPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","StopPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->StopPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_StopPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->StopPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ForceCloseReason_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcForceCloseReasonType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcForceCloseReasonType","ForceCloseReason", 2, argv[0] )); } arg2 = static_cast< TThostFtdcForceCloseReasonType >(val2); if (arg1) (arg1)->ForceCloseReason = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ForceCloseReason_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcForceCloseReasonType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcForceCloseReasonType) ((arg1)->ForceCloseReason); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_IsAutoSuspend_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsAutoSuspend", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsAutoSuspend = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_IsAutoSuspend_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsAutoSuspend); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_UserForceClose_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","UserForceClose", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","UserForceClose", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->UserForceClose = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_UserForceClose_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","UserForceClose", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->UserForceClose); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ParkedOrderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ParkedOrderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ParkedOrderID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ParkedOrderID,arg2,13*sizeof(char)); else memset(arg1->ParkedOrderID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ParkedOrderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ParkedOrderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->ParkedOrderID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_UserType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcUserTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","UserType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcUserTypeType","UserType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcUserTypeType >(val2); if (arg1) (arg1)->UserType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_UserType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcUserTypeType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","UserType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcUserTypeType) ((arg1)->UserType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_Status_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcParkedOrderStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","Status", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcParkedOrderStatusType","Status", 2, argv[0] )); } arg2 = static_cast< TThostFtdcParkedOrderStatusType >(val2); if (arg1) (arg1)->Status = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_Status_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcParkedOrderStatusType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","Status", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcParkedOrderStatusType) ((arg1)->Status); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_IsSwapOrder_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","IsSwapOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsSwapOrder", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsSwapOrder = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderField_IsSwapOrder_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","IsSwapOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsSwapOrder); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcParkedOrderField_allocate(VALUE self) #else _wrap_CThostFtdcParkedOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcParkedOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcParkedOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcParkedOrderField"; CThostFtdcParkedOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcParkedOrderField *)new CThostFtdcParkedOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcParkedOrderField(void *self) { CThostFtdcParkedOrderField *arg1 = (CThostFtdcParkedOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcParkedOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_OrderActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","OrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionRefType","OrderActionRef", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionRefType >(val2); if (arg1) (arg1)->OrderActionRef = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_OrderActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","OrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (TThostFtdcOrderActionRefType) ((arg1)->OrderActionRef); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_OrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char)); else memset(arg1->OrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_OrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (char *) ((arg1)->OrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_VolumeChange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","VolumeChange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeChange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeChange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_VolumeChange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","VolumeChange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeChange); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_ParkedOrderActionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ParkedOrderActionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ParkedOrderActionID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ParkedOrderActionID,arg2,13*sizeof(char)); else memset(arg1->ParkedOrderActionID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_ParkedOrderActionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ParkedOrderActionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (char *) ((arg1)->ParkedOrderActionID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_UserType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; TThostFtdcUserTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","UserType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcUserTypeType","UserType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcUserTypeType >(val2); if (arg1) (arg1)->UserType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_UserType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcUserTypeType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","UserType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (TThostFtdcUserTypeType) ((arg1)->UserType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_Status_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; TThostFtdcParkedOrderStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","Status", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcParkedOrderStatusType","Status", 2, argv[0] )); } arg2 = static_cast< TThostFtdcParkedOrderStatusType >(val2); if (arg1) (arg1)->Status = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_Status_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcParkedOrderStatusType 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","Status", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (TThostFtdcParkedOrderStatusType) ((arg1)->Status); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcParkedOrderActionField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *) 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_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcParkedOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcParkedOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcParkedOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcParkedOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcParkedOrderActionField"; CThostFtdcParkedOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcParkedOrderActionField *)new CThostFtdcParkedOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcParkedOrderActionField(void *self) { CThostFtdcParkedOrderActionField *arg1 = (CThostFtdcParkedOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryParkedOrderField; SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderField *arg1 = (CThostFtdcQryParkedOrderField *) 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_CThostFtdcQryParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderField *arg1 = (CThostFtdcQryParkedOrderField *) 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_CThostFtdcQryParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderField *arg1 = (CThostFtdcQryParkedOrderField *) 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_CThostFtdcQryParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderField *arg1 = (CThostFtdcQryParkedOrderField *) 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_CThostFtdcQryParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderField *arg1 = (CThostFtdcQryParkedOrderField *) 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_CThostFtdcQryParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderField *arg1 = (CThostFtdcQryParkedOrderField *) 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_CThostFtdcQryParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderField *arg1 = (CThostFtdcQryParkedOrderField *) 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_CThostFtdcQryParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderField *arg1 = (CThostFtdcQryParkedOrderField *) 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_CThostFtdcQryParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryParkedOrderField_allocate(VALUE self) #else _wrap_CThostFtdcQryParkedOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryParkedOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryParkedOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryParkedOrderField"; CThostFtdcQryParkedOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryParkedOrderField *)new CThostFtdcQryParkedOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryParkedOrderField(void *self) { CThostFtdcQryParkedOrderField *arg1 = (CThostFtdcQryParkedOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryParkedOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderActionField *arg1 = (CThostFtdcQryParkedOrderActionField *) 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_CThostFtdcQryParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderActionField *arg1 = (CThostFtdcQryParkedOrderActionField *) 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_CThostFtdcQryParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderActionField *arg1 = (CThostFtdcQryParkedOrderActionField *) 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_CThostFtdcQryParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderActionField *arg1 = (CThostFtdcQryParkedOrderActionField *) 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_CThostFtdcQryParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderActionField *arg1 = (CThostFtdcQryParkedOrderActionField *) 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_CThostFtdcQryParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderActionField *arg1 = (CThostFtdcQryParkedOrderActionField *) 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_CThostFtdcQryParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderActionField *arg1 = (CThostFtdcQryParkedOrderActionField *) 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_CThostFtdcQryParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryParkedOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryParkedOrderActionField *arg1 = (CThostFtdcQryParkedOrderActionField *) 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_CThostFtdcQryParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryParkedOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryParkedOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryParkedOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryParkedOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryParkedOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryParkedOrderActionField"; CThostFtdcQryParkedOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryParkedOrderActionField *)new CThostFtdcQryParkedOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryParkedOrderActionField(void *self) { CThostFtdcQryParkedOrderActionField *arg1 = (CThostFtdcQryParkedOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRemoveParkedOrderField; SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderField *arg1 = (CThostFtdcRemoveParkedOrderField *) 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_CThostFtdcRemoveParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderField *arg1 = (CThostFtdcRemoveParkedOrderField *) 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_CThostFtdcRemoveParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderField *arg1 = (CThostFtdcRemoveParkedOrderField *) 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_CThostFtdcRemoveParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderField *arg1 = (CThostFtdcRemoveParkedOrderField *) 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_CThostFtdcRemoveParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderField_ParkedOrderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderField *arg1 = (CThostFtdcRemoveParkedOrderField *) 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_CThostFtdcRemoveParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderField *","ParkedOrderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ParkedOrderID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ParkedOrderID,arg2,13*sizeof(char)); else memset(arg1->ParkedOrderID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderField_ParkedOrderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderField *arg1 = (CThostFtdcRemoveParkedOrderField *) 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_CThostFtdcRemoveParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderField *","ParkedOrderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderField * >(argp1); result = (char *) ((arg1)->ParkedOrderID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRemoveParkedOrderField_allocate(VALUE self) #else _wrap_CThostFtdcRemoveParkedOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRemoveParkedOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRemoveParkedOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRemoveParkedOrderField"; CThostFtdcRemoveParkedOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRemoveParkedOrderField *)new CThostFtdcRemoveParkedOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRemoveParkedOrderField(void *self) { CThostFtdcRemoveParkedOrderField *arg1 = (CThostFtdcRemoveParkedOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRemoveParkedOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderActionField *arg1 = (CThostFtdcRemoveParkedOrderActionField *) 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_CThostFtdcRemoveParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderActionField *arg1 = (CThostFtdcRemoveParkedOrderActionField *) 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_CThostFtdcRemoveParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderActionField *arg1 = (CThostFtdcRemoveParkedOrderActionField *) 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_CThostFtdcRemoveParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderActionField *arg1 = (CThostFtdcRemoveParkedOrderActionField *) 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_CThostFtdcRemoveParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderActionField_ParkedOrderActionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderActionField *arg1 = (CThostFtdcRemoveParkedOrderActionField *) 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_CThostFtdcRemoveParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderActionField *","ParkedOrderActionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ParkedOrderActionID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ParkedOrderActionID,arg2,13*sizeof(char)); else memset(arg1->ParkedOrderActionID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRemoveParkedOrderActionField_ParkedOrderActionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRemoveParkedOrderActionField *arg1 = (CThostFtdcRemoveParkedOrderActionField *) 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_CThostFtdcRemoveParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderActionField *","ParkedOrderActionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRemoveParkedOrderActionField * >(argp1); result = (char *) ((arg1)->ParkedOrderActionID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRemoveParkedOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcRemoveParkedOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRemoveParkedOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRemoveParkedOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRemoveParkedOrderActionField"; CThostFtdcRemoveParkedOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRemoveParkedOrderActionField *)new CThostFtdcRemoveParkedOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRemoveParkedOrderActionField(void *self) { CThostFtdcRemoveParkedOrderActionField *arg1 = (CThostFtdcRemoveParkedOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInvestorWithdrawAlgorithmField; SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_UsingRatio_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","UsingRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","UsingRatio", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->UsingRatio = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_UsingRatio_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","UsingRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->UsingRatio); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_FundMortgageRatio_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ; TThostFtdcRatioType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","FundMortgageRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","FundMortgageRatio", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRatioType >(val2); if (arg1) (arg1)->FundMortgageRatio = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorWithdrawAlgorithmField_FundMortgageRatio_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRatioType 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","FundMortgageRatio", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1); result = (TThostFtdcRatioType) ((arg1)->FundMortgageRatio); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInvestorWithdrawAlgorithmField_allocate(VALUE self) #else _wrap_CThostFtdcInvestorWithdrawAlgorithmField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInvestorWithdrawAlgorithmField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInvestorWithdrawAlgorithmField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInvestorWithdrawAlgorithmField"; CThostFtdcInvestorWithdrawAlgorithmField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInvestorWithdrawAlgorithmField *)new CThostFtdcInvestorWithdrawAlgorithmField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInvestorWithdrawAlgorithmField(void *self) { CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInvestorPositionCombineDetailField; SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionCombineDetailField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionCombineDetailField *arg1 = (CThostFtdcQryInvestorPositionCombineDetailField *) 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_CThostFtdcQryInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionCombineDetailField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionCombineDetailField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionCombineDetailField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionCombineDetailField *arg1 = (CThostFtdcQryInvestorPositionCombineDetailField *) 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_CThostFtdcQryInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionCombineDetailField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionCombineDetailField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionCombineDetailField *arg1 = (CThostFtdcQryInvestorPositionCombineDetailField *) 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_CThostFtdcQryInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionCombineDetailField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionCombineDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionCombineDetailField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionCombineDetailField *arg1 = (CThostFtdcQryInvestorPositionCombineDetailField *) 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_CThostFtdcQryInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionCombineDetailField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionCombineDetailField_CombInstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionCombineDetailField *arg1 = (CThostFtdcQryInvestorPositionCombineDetailField *) 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_CThostFtdcQryInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionCombineDetailField *","CombInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionCombineDetailField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","CombInstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombInstrumentID,arg2,31*sizeof(char)); else memset(arg1->CombInstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorPositionCombineDetailField_CombInstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorPositionCombineDetailField *arg1 = (CThostFtdcQryInvestorPositionCombineDetailField *) 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_CThostFtdcQryInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionCombineDetailField *","CombInstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorPositionCombineDetailField * >(argp1); result = (char *) ((arg1)->CombInstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInvestorPositionCombineDetailField_allocate(VALUE self) #else _wrap_CThostFtdcQryInvestorPositionCombineDetailField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInvestorPositionCombineDetailField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryInvestorPositionCombineDetailField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInvestorPositionCombineDetailField"; CThostFtdcQryInvestorPositionCombineDetailField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInvestorPositionCombineDetailField *)new CThostFtdcQryInvestorPositionCombineDetailField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryInvestorPositionCombineDetailField(void *self) { CThostFtdcQryInvestorPositionCombineDetailField *arg1 = (CThostFtdcQryInvestorPositionCombineDetailField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarketDataAveragePriceField; SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAveragePriceField_AveragePrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAveragePriceField *arg1 = (CThostFtdcMarketDataAveragePriceField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcMarketDataAveragePriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAveragePriceField *","AveragePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAveragePriceField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AveragePrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->AveragePrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarketDataAveragePriceField_AveragePrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataAveragePriceField *arg1 = (CThostFtdcMarketDataAveragePriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcMarketDataAveragePriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAveragePriceField *","AveragePrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataAveragePriceField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->AveragePrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarketDataAveragePriceField_allocate(VALUE self) #else _wrap_CThostFtdcMarketDataAveragePriceField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarketDataAveragePriceField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataAveragePriceField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataAveragePriceField"; CThostFtdcMarketDataAveragePriceField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataAveragePriceField *)new CThostFtdcMarketDataAveragePriceField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarketDataAveragePriceField(void *self) { CThostFtdcMarketDataAveragePriceField *arg1 = (CThostFtdcMarketDataAveragePriceField *)self; delete arg1; } static swig_class SwigClassCThostFtdcVerifyInvestorPasswordField; SWIGINTERN VALUE _wrap_CThostFtdcVerifyInvestorPasswordField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyInvestorPasswordField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyInvestorPasswordField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyInvestorPasswordField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyInvestorPasswordField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyInvestorPasswordField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcVerifyInvestorPasswordField_allocate(VALUE self) #else _wrap_CThostFtdcVerifyInvestorPasswordField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcVerifyInvestorPasswordField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcVerifyInvestorPasswordField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcVerifyInvestorPasswordField"; CThostFtdcVerifyInvestorPasswordField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcVerifyInvestorPasswordField *)new CThostFtdcVerifyInvestorPasswordField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcVerifyInvestorPasswordField(void *self) { CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *)self; delete arg1; } static swig_class SwigClassCThostFtdcUserIPField; SWIGINTERN VALUE _wrap_CThostFtdcUserIPField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserIPField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcUserIPField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserIPField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcUserIPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserIPField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserIPField_IPAddress_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcUserIPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","IPAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","IPAddress", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IPAddress,arg2,16*sizeof(char)); else memset(arg1->IPAddress,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserIPField_IPAddress_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","IPAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1); result = (char *) ((arg1)->IPAddress); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserIPField_IPMask_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcUserIPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","IPMask", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","IPMask", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IPMask,arg2,16*sizeof(char)); else memset(arg1->IPMask,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserIPField_IPMask_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","IPMask", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1); result = (char *) ((arg1)->IPMask); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserIPField_MacAddress_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","MacAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MacAddress", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MacAddress,arg2,21*sizeof(char)); else memset(arg1->MacAddress,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserIPField_MacAddress_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","MacAddress", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1); result = (char *) ((arg1)->MacAddress); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcUserIPField_allocate(VALUE self) #else _wrap_CThostFtdcUserIPField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcUserIPField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcUserIPField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcUserIPField"; CThostFtdcUserIPField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcUserIPField *)new CThostFtdcUserIPField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcUserIPField(void *self) { CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTradingNoticeInfoField; SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_SendTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SendTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SendTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SendTime,arg2,9*sizeof(char)); else memset(arg1->SendTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_SendTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SendTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); result = (char *) ((arg1)->SendTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_FieldContent_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[501] ; 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","FieldContent", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 501); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [501]","FieldContent", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FieldContent,arg2,501*sizeof(char)); else memset(arg1->FieldContent,0,501*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_FieldContent_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","FieldContent", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); result = (char *) ((arg1)->FieldContent); { size_t size = SWIG_strnlen(result, 501); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_SequenceSeries_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 0 ; TThostFtdcSequenceSeriesType arg2 ; void *argp1 = 0 ; int res1 = 0 ; short 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SequenceSeries", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceSeriesType","SequenceSeries", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceSeriesType >(val2); if (arg1) (arg1)->SequenceSeries = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_SequenceSeries_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceSeriesType 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SequenceSeries", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); result = (TThostFtdcSequenceSeriesType) ((arg1)->SequenceSeries); vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeInfoField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTradingNoticeInfoField_allocate(VALUE self) #else _wrap_CThostFtdcTradingNoticeInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTradingNoticeInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTradingNoticeInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingNoticeInfoField"; CThostFtdcTradingNoticeInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTradingNoticeInfoField *)new CThostFtdcTradingNoticeInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTradingNoticeInfoField(void *self) { CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTradingNoticeField; SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_InvestorRange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ; TThostFtdcInvestorRangeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInvestorRangeType >(val2); if (arg1) (arg1)->InvestorRange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_InvestorRange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInvestorRangeType 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","InvestorRange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_SequenceSeries_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ; TThostFtdcSequenceSeriesType arg2 ; void *argp1 = 0 ; int res1 = 0 ; short 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","SequenceSeries", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceSeriesType","SequenceSeries", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceSeriesType >(val2); if (arg1) (arg1)->SequenceSeries = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_SequenceSeries_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceSeriesType 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","SequenceSeries", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); result = (TThostFtdcSequenceSeriesType) ((arg1)->SequenceSeries); vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_SendTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","SendTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SendTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SendTime,arg2,9*sizeof(char)); else memset(arg1->SendTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_SendTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","SendTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); result = (char *) ((arg1)->SendTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_FieldContent_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[501] ; 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","FieldContent", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 501); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [501]","FieldContent", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FieldContent,arg2,501*sizeof(char)); else memset(arg1->FieldContent,0,501*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingNoticeField_FieldContent_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 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_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","FieldContent", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1); result = (char *) ((arg1)->FieldContent); { size_t size = SWIG_strnlen(result, 501); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTradingNoticeField_allocate(VALUE self) #else _wrap_CThostFtdcTradingNoticeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTradingNoticeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTradingNoticeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingNoticeField"; CThostFtdcTradingNoticeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTradingNoticeField *)new CThostFtdcTradingNoticeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTradingNoticeField(void *self) { CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryTradingNoticeField; SWIGINTERN VALUE _wrap_CThostFtdcQryTradingNoticeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingNoticeField *arg1 = (CThostFtdcQryTradingNoticeField *) 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_CThostFtdcQryTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingNoticeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingNoticeField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingNoticeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingNoticeField *arg1 = (CThostFtdcQryTradingNoticeField *) 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_CThostFtdcQryTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingNoticeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingNoticeField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingNoticeField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingNoticeField *arg1 = (CThostFtdcQryTradingNoticeField *) 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_CThostFtdcQryTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingNoticeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingNoticeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTradingNoticeField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingNoticeField *arg1 = (CThostFtdcQryTradingNoticeField *) 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_CThostFtdcQryTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingNoticeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingNoticeField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryTradingNoticeField_allocate(VALUE self) #else _wrap_CThostFtdcQryTradingNoticeField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryTradingNoticeField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryTradingNoticeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTradingNoticeField"; CThostFtdcQryTradingNoticeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryTradingNoticeField *)new CThostFtdcQryTradingNoticeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryTradingNoticeField(void *self) { CThostFtdcQryTradingNoticeField *arg1 = (CThostFtdcQryTradingNoticeField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryErrOrderField; SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderField *arg1 = (CThostFtdcQryErrOrderField *) 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_CThostFtdcQryErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderField *arg1 = (CThostFtdcQryErrOrderField *) 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_CThostFtdcQryErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderField *arg1 = (CThostFtdcQryErrOrderField *) 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_CThostFtdcQryErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderField *arg1 = (CThostFtdcQryErrOrderField *) 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_CThostFtdcQryErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryErrOrderField_allocate(VALUE self) #else _wrap_CThostFtdcQryErrOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryErrOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryErrOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryErrOrderField"; CThostFtdcQryErrOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryErrOrderField *)new CThostFtdcQryErrOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryErrOrderField(void *self) { CThostFtdcQryErrOrderField *arg1 = (CThostFtdcQryErrOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcErrOrderField; SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_OrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char)); else memset(arg1->OrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_OrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (char *) ((arg1)->OrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_OrderPriceType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcOrderPriceTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderPriceTypeType","OrderPriceType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderPriceTypeType >(val2); if (arg1) (arg1)->OrderPriceType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_OrderPriceType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderPriceTypeType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcOrderPriceTypeType) ((arg1)->OrderPriceType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_CombOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombOffsetFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombOffsetFlag,arg2,5*sizeof(char)); else memset(arg1->CombOffsetFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_CombOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (char *) ((arg1)->CombOffsetFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_CombHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombHedgeFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombHedgeFlag,arg2,5*sizeof(char)); else memset(arg1->CombHedgeFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_CombHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (char *) ((arg1)->CombHedgeFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_VolumeTotalOriginal_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotalOriginal", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTotalOriginal = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_VolumeTotalOriginal_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTotalOriginal); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_TimeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcTimeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTimeConditionType","TimeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTimeConditionType >(val2); if (arg1) (arg1)->TimeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_TimeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTimeConditionType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcTimeConditionType) ((arg1)->TimeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_GTDDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","GTDDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->GTDDate,arg2,9*sizeof(char)); else memset(arg1->GTDDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_GTDDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (char *) ((arg1)->GTDDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_VolumeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcVolumeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeConditionType","VolumeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeConditionType >(val2); if (arg1) (arg1)->VolumeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_VolumeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeConditionType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcVolumeConditionType) ((arg1)->VolumeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_MinVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MinVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_MinVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MinVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_ContingentCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcContingentConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcContingentConditionType","ContingentCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcContingentConditionType >(val2); if (arg1) (arg1)->ContingentCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_ContingentCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcContingentConditionType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcContingentConditionType) ((arg1)->ContingentCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_StopPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","StopPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->StopPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_StopPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->StopPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_ForceCloseReason_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcForceCloseReasonType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcForceCloseReasonType","ForceCloseReason", 2, argv[0] )); } arg2 = static_cast< TThostFtdcForceCloseReasonType >(val2); if (arg1) (arg1)->ForceCloseReason = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_ForceCloseReason_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcForceCloseReasonType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcForceCloseReasonType) ((arg1)->ForceCloseReason); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_IsAutoSuspend_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsAutoSuspend", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsAutoSuspend = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_IsAutoSuspend_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsAutoSuspend); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_UserForceClose_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","UserForceClose", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","UserForceClose", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->UserForceClose = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_UserForceClose_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","UserForceClose", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->UserForceClose); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_IsSwapOrder_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","IsSwapOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsSwapOrder", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsSwapOrder = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderField_IsSwapOrder_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcErrOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","IsSwapOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsSwapOrder); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcErrOrderField_allocate(VALUE self) #else _wrap_CThostFtdcErrOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcErrOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcErrOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcErrOrderField"; CThostFtdcErrOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcErrOrderField *)new CThostFtdcErrOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcErrOrderField(void *self) { CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcErrorConditionalOrderField; SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char)); else memset(arg1->OrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->OrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderPriceType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcOrderPriceTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderPriceTypeType","OrderPriceType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderPriceTypeType >(val2); if (arg1) (arg1)->OrderPriceType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderPriceType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderPriceTypeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcOrderPriceTypeType) ((arg1)->OrderPriceType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_CombOffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombOffsetFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombOffsetFlag,arg2,5*sizeof(char)); else memset(arg1->CombOffsetFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_CombOffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","CombOffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->CombOffsetFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_CombHedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombHedgeFlag", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CombHedgeFlag,arg2,5*sizeof(char)); else memset(arg1->CombHedgeFlag,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_CombHedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","CombHedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->CombHedgeFlag); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_VolumeTotalOriginal_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotalOriginal", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTotalOriginal = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_VolumeTotalOriginal_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","VolumeTotalOriginal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTotalOriginal); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_TimeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcTimeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTimeConditionType","TimeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTimeConditionType >(val2); if (arg1) (arg1)->TimeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_TimeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTimeConditionType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","TimeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcTimeConditionType) ((arg1)->TimeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_GTDDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","GTDDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->GTDDate,arg2,9*sizeof(char)); else memset(arg1->GTDDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_GTDDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","GTDDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->GTDDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_VolumeCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcVolumeConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeConditionType","VolumeCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeConditionType >(val2); if (arg1) (arg1)->VolumeCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_VolumeCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeConditionType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","VolumeCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcVolumeConditionType) ((arg1)->VolumeCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_MinVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MinVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_MinVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","MinVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MinVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ContingentCondition_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcContingentConditionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcContingentConditionType","ContingentCondition", 2, argv[0] )); } arg2 = static_cast< TThostFtdcContingentConditionType >(val2); if (arg1) (arg1)->ContingentCondition = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ContingentCondition_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcContingentConditionType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ContingentCondition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcContingentConditionType) ((arg1)->ContingentCondition); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_StopPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","StopPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->StopPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_StopPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","StopPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->StopPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ForceCloseReason_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcForceCloseReasonType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcForceCloseReasonType","ForceCloseReason", 2, argv[0] )); } arg2 = static_cast< TThostFtdcForceCloseReasonType >(val2); if (arg1) (arg1)->ForceCloseReason = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ForceCloseReason_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcForceCloseReasonType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ForceCloseReason", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcForceCloseReasonType) ((arg1)->ForceCloseReason); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_IsAutoSuspend_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsAutoSuspend", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsAutoSuspend = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_IsAutoSuspend_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","IsAutoSuspend", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsAutoSuspend); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderSubmitStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcOrderSubmitStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSubmitStatusType","OrderSubmitStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSubmitStatusType >(val2); if (arg1) (arg1)->OrderSubmitStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderSubmitStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSubmitStatusType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcOrderSubmitStatusType) ((arg1)->OrderSubmitStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_NotifySequence_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->NotifySequence = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_NotifySequence_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderSource_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcOrderSourceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSourceType","OrderSource", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSourceType >(val2); if (arg1) (arg1)->OrderSource = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderSource_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSourceType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderSource", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcOrderSourceType) ((arg1)->OrderSource); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcOrderStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderStatusType","OrderStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderStatusType >(val2); if (arg1) (arg1)->OrderStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderStatusType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcOrderStatusType) ((arg1)->OrderStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcOrderTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderTypeType","OrderType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderTypeType >(val2); if (arg1) (arg1)->OrderType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_OrderType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderTypeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OrderType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcOrderTypeType) ((arg1)->OrderType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_VolumeTraded_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","VolumeTraded", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTraded", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTraded = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_VolumeTraded_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","VolumeTraded", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTraded); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_VolumeTotal_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","VolumeTotal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotal", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeTotal = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_VolumeTotal_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","VolumeTotal", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeTotal); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_InsertDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char)); else memset(arg1->InsertDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_InsertDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->InsertDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_InsertTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char)); else memset(arg1->InsertTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_InsertTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->InsertTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ActiveTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ActiveTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActiveTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveTime,arg2,9*sizeof(char)); else memset(arg1->ActiveTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ActiveTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ActiveTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->ActiveTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_SuspendTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","SuspendTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SuspendTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SuspendTime,arg2,9*sizeof(char)); else memset(arg1->SuspendTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_SuspendTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","SuspendTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->SuspendTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_UpdateTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","UpdateTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UpdateTime,arg2,9*sizeof(char)); else memset(arg1->UpdateTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_UpdateTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","UpdateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->UpdateTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_CancelTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CancelTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CancelTime,arg2,9*sizeof(char)); else memset(arg1->CancelTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_CancelTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->CancelTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ActiveTraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ActiveTraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ActiveTraderID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveTraderID,arg2,21*sizeof(char)); else memset(arg1->ActiveTraderID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ActiveTraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ActiveTraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->ActiveTraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char)); else memset(arg1->ClearingPartID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->ClearingPartID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_UserForceClose_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","UserForceClose", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","UserForceClose", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->UserForceClose = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_UserForceClose_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","UserForceClose", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->UserForceClose); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ActiveUserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","ActiveUserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveUserID,arg2,16*sizeof(char)); else memset(arg1->ActiveUserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ActiveUserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->ActiveUserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_BrokerOrderSeq_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","BrokerOrderSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","BrokerOrderSeq", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->BrokerOrderSeq = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_BrokerOrderSeq_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","BrokerOrderSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->BrokerOrderSeq); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_RelativeOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","RelativeOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","RelativeOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RelativeOrderSysID,arg2,21*sizeof(char)); else memset(arg1->RelativeOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_RelativeOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","RelativeOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->RelativeOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ZCETotalTradedVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ZCETotalTradedVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","ZCETotalTradedVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->ZCETotalTradedVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ZCETotalTradedVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ZCETotalTradedVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->ZCETotalTradedVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_IsSwapOrder_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; TThostFtdcBoolType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","IsSwapOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsSwapOrder", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsSwapOrder = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrorConditionalOrderField_IsSwapOrder_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","IsSwapOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsSwapOrder); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcErrorConditionalOrderField_allocate(VALUE self) #else _wrap_CThostFtdcErrorConditionalOrderField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcErrorConditionalOrderField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcErrorConditionalOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcErrorConditionalOrderField"; CThostFtdcErrorConditionalOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcErrorConditionalOrderField *)new CThostFtdcErrorConditionalOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcErrorConditionalOrderField(void *self) { CThostFtdcErrorConditionalOrderField *arg1 = (CThostFtdcErrorConditionalOrderField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryErrOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderActionField *arg1 = (CThostFtdcQryErrOrderActionField *) 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_CThostFtdcQryErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderActionField *arg1 = (CThostFtdcQryErrOrderActionField *) 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_CThostFtdcQryErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderActionField *arg1 = (CThostFtdcQryErrOrderActionField *) 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_CThostFtdcQryErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderActionField *arg1 = (CThostFtdcQryErrOrderActionField *) 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_CThostFtdcQryErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryErrOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcQryErrOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryErrOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryErrOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryErrOrderActionField"; CThostFtdcQryErrOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryErrOrderActionField *)new CThostFtdcQryErrOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryErrOrderActionField(void *self) { CThostFtdcQryErrOrderActionField *arg1 = (CThostFtdcQryErrOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcErrOrderActionField; SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_OrderActionRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","OrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionRefType","OrderActionRef", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionRefType >(val2); if (arg1) (arg1)->OrderActionRef = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_OrderActionRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionRefType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","OrderActionRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (TThostFtdcOrderActionRefType) ((arg1)->OrderActionRef); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_OrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char)); else memset(arg1->OrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_OrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","OrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->OrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_OrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char)); else memset(arg1->OrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_OrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","OrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->OrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; TThostFtdcActionFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionFlagType >(val2); if (arg1) (arg1)->ActionFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionFlagType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ActionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_LimitPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LimitPrice = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_LimitPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","LimitPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LimitPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_VolumeChange_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","VolumeChange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeChange", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->VolumeChange = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_VolumeChange_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","VolumeChange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->VolumeChange); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ActionDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionDate,arg2,9*sizeof(char)); else memset(arg1->ActionDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ActionDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ActionDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->ActionDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ActionTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionTime,arg2,9*sizeof(char)); else memset(arg1->ActionTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ActionTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ActionTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->ActionTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","OrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->OrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ActionLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ActionLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActionLocalID,arg2,13*sizeof(char)); else memset(arg1->ActionLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ActionLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ActionLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->ActionLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_OrderActionStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; TThostFtdcOrderActionStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionStatusType","OrderActionStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderActionStatusType >(val2); if (arg1) (arg1)->OrderActionStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_OrderActionStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderActionStatusType 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","OrderActionStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (TThostFtdcOrderActionStatusType) ((arg1)->OrderActionStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcErrOrderActionField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *) 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_CThostFtdcErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderActionField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcErrOrderActionField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcErrOrderActionField_allocate(VALUE self) #else _wrap_CThostFtdcErrOrderActionField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcErrOrderActionField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcErrOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcErrOrderActionField"; CThostFtdcErrOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcErrOrderActionField *)new CThostFtdcErrOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcErrOrderActionField(void *self) { CThostFtdcErrOrderActionField *arg1 = (CThostFtdcErrOrderActionField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryExchangeSequenceField; SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeSequenceField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeSequenceField *arg1 = (CThostFtdcQryExchangeSequenceField *) 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_CThostFtdcQryExchangeSequenceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeSequenceField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeSequenceField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeSequenceField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeSequenceField *arg1 = (CThostFtdcQryExchangeSequenceField *) 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_CThostFtdcQryExchangeSequenceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeSequenceField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeSequenceField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryExchangeSequenceField_allocate(VALUE self) #else _wrap_CThostFtdcQryExchangeSequenceField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryExchangeSequenceField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeSequenceField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeSequenceField"; CThostFtdcQryExchangeSequenceField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeSequenceField *)new CThostFtdcQryExchangeSequenceField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryExchangeSequenceField(void *self) { CThostFtdcQryExchangeSequenceField *arg1 = (CThostFtdcQryExchangeSequenceField *)self; delete arg1; } static swig_class SwigClassCThostFtdcExchangeSequenceField; SWIGINTERN VALUE _wrap_CThostFtdcExchangeSequenceField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeSequenceField *arg1 = (CThostFtdcExchangeSequenceField *) 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_CThostFtdcExchangeSequenceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeSequenceField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeSequenceField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeSequenceField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeSequenceField *arg1 = (CThostFtdcExchangeSequenceField *) 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_CThostFtdcExchangeSequenceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeSequenceField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeSequenceField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeSequenceField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeSequenceField *arg1 = (CThostFtdcExchangeSequenceField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeSequenceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeSequenceField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeSequenceField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeSequenceField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeSequenceField *arg1 = (CThostFtdcExchangeSequenceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExchangeSequenceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeSequenceField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeSequenceField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeSequenceField_MarketStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeSequenceField *arg1 = (CThostFtdcExchangeSequenceField *) 0 ; TThostFtdcInstrumentStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcExchangeSequenceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeSequenceField *","MarketStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeSequenceField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstrumentStatusType","MarketStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInstrumentStatusType >(val2); if (arg1) (arg1)->MarketStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcExchangeSequenceField_MarketStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExchangeSequenceField *arg1 = (CThostFtdcExchangeSequenceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInstrumentStatusType 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_CThostFtdcExchangeSequenceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeSequenceField *","MarketStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExchangeSequenceField * >(argp1); result = (TThostFtdcInstrumentStatusType) ((arg1)->MarketStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcExchangeSequenceField_allocate(VALUE self) #else _wrap_CThostFtdcExchangeSequenceField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcExchangeSequenceField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcExchangeSequenceField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeSequenceField"; CThostFtdcExchangeSequenceField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExchangeSequenceField *)new CThostFtdcExchangeSequenceField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcExchangeSequenceField(void *self) { CThostFtdcExchangeSequenceField *arg1 = (CThostFtdcExchangeSequenceField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField; SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 0 ; TThostFtdcOffsetFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->OffsetFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_MaxVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","MaxVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MaxVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MaxVolume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_MaxVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","MaxVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MaxVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_Price_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","Price", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","Price", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->Price = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_Price_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeWithPriceField *","Price", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeWithPriceField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->Price); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_allocate(VALUE self) #else _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQueryMaxOrderVolumeWithPriceField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQueryMaxOrderVolumeWithPriceField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQueryMaxOrderVolumeWithPriceField"; CThostFtdcQueryMaxOrderVolumeWithPriceField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQueryMaxOrderVolumeWithPriceField *)new CThostFtdcQueryMaxOrderVolumeWithPriceField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQueryMaxOrderVolumeWithPriceField(void *self) { CThostFtdcQueryMaxOrderVolumeWithPriceField *arg1 = (CThostFtdcQueryMaxOrderVolumeWithPriceField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryBrokerTradingParamsField; SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingParamsField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingParamsField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingParamsField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingParamsField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingParamsField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingParamsField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryBrokerTradingParamsField_allocate(VALUE self) #else _wrap_CThostFtdcQryBrokerTradingParamsField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryBrokerTradingParamsField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryBrokerTradingParamsField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryBrokerTradingParamsField"; CThostFtdcQryBrokerTradingParamsField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryBrokerTradingParamsField *)new CThostFtdcQryBrokerTradingParamsField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryBrokerTradingParamsField(void *self) { CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerTradingParamsField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_MarginPriceType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ; TThostFtdcMarginPriceTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","MarginPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMarginPriceTypeType","MarginPriceType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMarginPriceTypeType >(val2); if (arg1) (arg1)->MarginPriceType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_MarginPriceType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMarginPriceTypeType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","MarginPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); result = (TThostFtdcMarginPriceTypeType) ((arg1)->MarginPriceType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_Algorithm_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ; TThostFtdcAlgorithmType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","Algorithm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcAlgorithmType","Algorithm", 2, argv[0] )); } arg2 = static_cast< TThostFtdcAlgorithmType >(val2); if (arg1) (arg1)->Algorithm = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_Algorithm_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcAlgorithmType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","Algorithm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); result = (TThostFtdcAlgorithmType) ((arg1)->Algorithm); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_AvailIncludeCloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ; TThostFtdcIncludeCloseProfitType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","AvailIncludeCloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIncludeCloseProfitType","AvailIncludeCloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIncludeCloseProfitType >(val2); if (arg1) (arg1)->AvailIncludeCloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_AvailIncludeCloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIncludeCloseProfitType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","AvailIncludeCloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); result = (TThostFtdcIncludeCloseProfitType) ((arg1)->AvailIncludeCloseProfit); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_OptionRoyaltyPriceType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ; TThostFtdcOptionRoyaltyPriceTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","OptionRoyaltyPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOptionRoyaltyPriceTypeType","OptionRoyaltyPriceType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOptionRoyaltyPriceTypeType >(val2); if (arg1) (arg1)->OptionRoyaltyPriceType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingParamsField_OptionRoyaltyPriceType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOptionRoyaltyPriceTypeType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","OptionRoyaltyPriceType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1); result = (TThostFtdcOptionRoyaltyPriceTypeType) ((arg1)->OptionRoyaltyPriceType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerTradingParamsField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerTradingParamsField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerTradingParamsField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerTradingParamsField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerTradingParamsField"; CThostFtdcBrokerTradingParamsField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerTradingParamsField *)new CThostFtdcBrokerTradingParamsField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerTradingParamsField(void *self) { CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryBrokerTradingAlgosField; SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingAlgosField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingAlgosField *arg1 = (CThostFtdcQryBrokerTradingAlgosField *) 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_CThostFtdcQryBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingAlgosField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingAlgosField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingAlgosField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingAlgosField *arg1 = (CThostFtdcQryBrokerTradingAlgosField *) 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_CThostFtdcQryBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingAlgosField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingAlgosField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingAlgosField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingAlgosField *arg1 = (CThostFtdcQryBrokerTradingAlgosField *) 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_CThostFtdcQryBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingAlgosField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingAlgosField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingAlgosField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingAlgosField *arg1 = (CThostFtdcQryBrokerTradingAlgosField *) 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_CThostFtdcQryBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingAlgosField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingAlgosField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingAlgosField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingAlgosField *arg1 = (CThostFtdcQryBrokerTradingAlgosField *) 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_CThostFtdcQryBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingAlgosField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingAlgosField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryBrokerTradingAlgosField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryBrokerTradingAlgosField *arg1 = (CThostFtdcQryBrokerTradingAlgosField *) 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_CThostFtdcQryBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingAlgosField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingAlgosField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryBrokerTradingAlgosField_allocate(VALUE self) #else _wrap_CThostFtdcQryBrokerTradingAlgosField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryBrokerTradingAlgosField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryBrokerTradingAlgosField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryBrokerTradingAlgosField"; CThostFtdcQryBrokerTradingAlgosField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryBrokerTradingAlgosField *)new CThostFtdcQryBrokerTradingAlgosField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryBrokerTradingAlgosField(void *self) { CThostFtdcQryBrokerTradingAlgosField *arg1 = (CThostFtdcQryBrokerTradingAlgosField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerTradingAlgosField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_HandlePositionAlgoID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 0 ; TThostFtdcHandlePositionAlgoIDType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","HandlePositionAlgoID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHandlePositionAlgoIDType","HandlePositionAlgoID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHandlePositionAlgoIDType >(val2); if (arg1) (arg1)->HandlePositionAlgoID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_HandlePositionAlgoID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHandlePositionAlgoIDType 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","HandlePositionAlgoID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp1); result = (TThostFtdcHandlePositionAlgoIDType) ((arg1)->HandlePositionAlgoID); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_FindMarginRateAlgoID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 0 ; TThostFtdcFindMarginRateAlgoIDType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","FindMarginRateAlgoID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFindMarginRateAlgoIDType","FindMarginRateAlgoID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFindMarginRateAlgoIDType >(val2); if (arg1) (arg1)->FindMarginRateAlgoID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_FindMarginRateAlgoID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFindMarginRateAlgoIDType 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","FindMarginRateAlgoID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp1); result = (TThostFtdcFindMarginRateAlgoIDType) ((arg1)->FindMarginRateAlgoID); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_HandleTradingAccountAlgoID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 0 ; TThostFtdcHandleTradingAccountAlgoIDType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","HandleTradingAccountAlgoID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHandleTradingAccountAlgoIDType","HandleTradingAccountAlgoID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHandleTradingAccountAlgoIDType >(val2); if (arg1) (arg1)->HandleTradingAccountAlgoID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerTradingAlgosField_HandleTradingAccountAlgoID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHandleTradingAccountAlgoIDType 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_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","HandleTradingAccountAlgoID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp1); result = (TThostFtdcHandleTradingAccountAlgoIDType) ((arg1)->HandleTradingAccountAlgoID); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerTradingAlgosField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerTradingAlgosField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerTradingAlgosField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerTradingAlgosField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerTradingAlgosField"; CThostFtdcBrokerTradingAlgosField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerTradingAlgosField *)new CThostFtdcBrokerTradingAlgosField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerTradingAlgosField(void *self) { CThostFtdcBrokerTradingAlgosField *arg1 = (CThostFtdcBrokerTradingAlgosField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQueryBrokerDepositField; 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; } 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; } 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; } 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; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQueryBrokerDepositField_allocate(VALUE self) #else _wrap_CThostFtdcQueryBrokerDepositField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQueryBrokerDepositField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } 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; } SWIGINTERN void free_CThostFtdcQueryBrokerDepositField(void *self) { CThostFtdcQueryBrokerDepositField *arg1 = (CThostFtdcQueryBrokerDepositField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerDepositField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_PreBalance_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","PreBalance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreBalance", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PreBalance = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_PreBalance_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","PreBalance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PreBalance); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_CurrMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","CurrMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CurrMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CurrMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_CurrMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","CurrMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CurrMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_CloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_CloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_Balance_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","Balance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Balance", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Balance = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_Balance_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","Balance", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Balance); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_Deposit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","Deposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Deposit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Deposit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_Deposit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","Deposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Deposit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_Withdraw_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","Withdraw", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Withdraw", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Withdraw = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_Withdraw_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","Withdraw", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Withdraw); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_Available_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","Available", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Available", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Available = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_Available_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","Available", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Available); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_Reserve_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","Reserve", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Reserve", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Reserve = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_Reserve_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","Reserve", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Reserve); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_FrozenMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerDepositField_FrozenMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerDepositField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerDepositField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerDepositField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerDepositField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerDepositField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerDepositField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerDepositField"; CThostFtdcBrokerDepositField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerDepositField *)new CThostFtdcBrokerDepositField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerDepositField(void *self) { CThostFtdcBrokerDepositField *arg1 = (CThostFtdcBrokerDepositField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryCFMMCBrokerKeyField; 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; } 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; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryCFMMCBrokerKeyField_allocate(VALUE self) #else _wrap_CThostFtdcQryCFMMCBrokerKeyField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryCFMMCBrokerKeyField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } 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; } SWIGINTERN void free_CThostFtdcQryCFMMCBrokerKeyField(void *self) { CThostFtdcQryCFMMCBrokerKeyField *arg1 = (CThostFtdcQryCFMMCBrokerKeyField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCFMMCBrokerKeyField; SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_CreateDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CreateDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CreateDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CreateDate,arg2,9*sizeof(char)); else memset(arg1->CreateDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_CreateDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CreateDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); result = (char *) ((arg1)->CreateDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_CreateTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CreateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CreateTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CreateTime,arg2,9*sizeof(char)); else memset(arg1->CreateTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_CreateTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CreateTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); result = (char *) ((arg1)->CreateTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_KeyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","KeyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","KeyID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->KeyID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_KeyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","KeyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->KeyID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_CurrentKey_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CurrentKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CurrentKey", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrentKey,arg2,21*sizeof(char)); else memset(arg1->CurrentKey,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_CurrentKey_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CurrentKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); result = (char *) ((arg1)->CurrentKey); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_KeyKind_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 0 ; TThostFtdcCFMMCKeyKindType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","KeyKind", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCFMMCKeyKindType","KeyKind", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCFMMCKeyKindType >(val2); if (arg1) (arg1)->KeyKind = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCBrokerKeyField_KeyKind_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCFMMCKeyKindType 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","KeyKind", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1); result = (TThostFtdcCFMMCKeyKindType) ((arg1)->KeyKind); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCFMMCBrokerKeyField_allocate(VALUE self) #else _wrap_CThostFtdcCFMMCBrokerKeyField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCFMMCBrokerKeyField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCFMMCBrokerKeyField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCFMMCBrokerKeyField"; CThostFtdcCFMMCBrokerKeyField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCFMMCBrokerKeyField *)new CThostFtdcCFMMCBrokerKeyField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCFMMCBrokerKeyField(void *self) { CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCFMMCTradingAccountKeyField; SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_KeyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","KeyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","KeyID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->KeyID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_KeyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","KeyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->KeyID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_CurrentKey_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","CurrentKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CurrentKey", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrentKey,arg2,21*sizeof(char)); else memset(arg1->CurrentKey,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_CurrentKey_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","CurrentKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); result = (char *) ((arg1)->CurrentKey); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCFMMCTradingAccountKeyField_allocate(VALUE self) #else _wrap_CThostFtdcCFMMCTradingAccountKeyField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCFMMCTradingAccountKeyField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCFMMCTradingAccountKeyField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCFMMCTradingAccountKeyField"; CThostFtdcCFMMCTradingAccountKeyField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCFMMCTradingAccountKeyField *)new CThostFtdcCFMMCTradingAccountKeyField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCFMMCTradingAccountKeyField(void *self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryCFMMCTradingAccountKeyField; SWIGINTERN VALUE _wrap_CThostFtdcQryCFMMCTradingAccountKeyField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCFMMCTradingAccountKeyField *arg1 = (CThostFtdcQryCFMMCTradingAccountKeyField *) 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_CThostFtdcQryCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCFMMCTradingAccountKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCFMMCTradingAccountKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryCFMMCTradingAccountKeyField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCFMMCTradingAccountKeyField *arg1 = (CThostFtdcQryCFMMCTradingAccountKeyField *) 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_CThostFtdcQryCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCFMMCTradingAccountKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCFMMCTradingAccountKeyField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCFMMCTradingAccountKeyField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCFMMCTradingAccountKeyField *arg1 = (CThostFtdcQryCFMMCTradingAccountKeyField *) 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_CThostFtdcQryCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCFMMCTradingAccountKeyField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCFMMCTradingAccountKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCFMMCTradingAccountKeyField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCFMMCTradingAccountKeyField *arg1 = (CThostFtdcQryCFMMCTradingAccountKeyField *) 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_CThostFtdcQryCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCFMMCTradingAccountKeyField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCFMMCTradingAccountKeyField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryCFMMCTradingAccountKeyField_allocate(VALUE self) #else _wrap_CThostFtdcQryCFMMCTradingAccountKeyField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryCFMMCTradingAccountKeyField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryCFMMCTradingAccountKeyField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryCFMMCTradingAccountKeyField"; CThostFtdcQryCFMMCTradingAccountKeyField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryCFMMCTradingAccountKeyField *)new CThostFtdcQryCFMMCTradingAccountKeyField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryCFMMCTradingAccountKeyField(void *self) { CThostFtdcQryCFMMCTradingAccountKeyField *arg1 = (CThostFtdcQryCFMMCTradingAccountKeyField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerUserOTPParamField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_OTPVendorsID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[2] ; 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","OTPVendorsID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [2]","OTPVendorsID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OTPVendorsID,arg2,2*sizeof(char)); else memset(arg1->OTPVendorsID,0,2*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_OTPVendorsID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","OTPVendorsID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); result = (char *) ((arg1)->OTPVendorsID); { size_t size = SWIG_strnlen(result, 2); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_SerialNumber_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","SerialNumber", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","SerialNumber", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SerialNumber,arg2,17*sizeof(char)); else memset(arg1->SerialNumber,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_SerialNumber_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","SerialNumber", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); result = (char *) ((arg1)->SerialNumber); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_AuthKey_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","AuthKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","AuthKey", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AuthKey,arg2,41*sizeof(char)); else memset(arg1->AuthKey,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_AuthKey_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","AuthKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); result = (char *) ((arg1)->AuthKey); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_LastDrift_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ; TThostFtdcLastDriftType 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","LastDrift", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastDriftType","LastDrift", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastDriftType >(val2); if (arg1) (arg1)->LastDrift = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_LastDrift_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastDriftType 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","LastDrift", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); result = (TThostFtdcLastDriftType) ((arg1)->LastDrift); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_LastSuccess_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ; TThostFtdcLastSuccessType 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","LastSuccess", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastSuccessType","LastSuccess", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastSuccessType >(val2); if (arg1) (arg1)->LastSuccess = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_LastSuccess_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastSuccessType 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","LastSuccess", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); result = (TThostFtdcLastSuccessType) ((arg1)->LastSuccess); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_OTPType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ; TThostFtdcOTPTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","OTPType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOTPTypeType","OTPType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOTPTypeType >(val2); if (arg1) (arg1)->OTPType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserOTPParamField_OTPType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOTPTypeType 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_CThostFtdcBrokerUserOTPParamField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","OTPType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1); result = (TThostFtdcOTPTypeType) ((arg1)->OTPType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerUserOTPParamField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerUserOTPParamField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerUserOTPParamField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerUserOTPParamField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerUserOTPParamField"; CThostFtdcBrokerUserOTPParamField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerUserOTPParamField *)new CThostFtdcBrokerUserOTPParamField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerUserOTPParamField(void *self) { CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *)self; delete arg1; } static swig_class SwigClassCThostFtdcManualSyncBrokerUserOTPField; SWIGINTERN VALUE _wrap_CThostFtdcManualSyncBrokerUserOTPField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcManualSyncBrokerUserOTPField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcManualSyncBrokerUserOTPField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcManualSyncBrokerUserOTPField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcManualSyncBrokerUserOTPField_OTPType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 0 ; TThostFtdcOTPTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","OTPType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOTPTypeType","OTPType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOTPTypeType >(val2); if (arg1) (arg1)->OTPType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcManualSyncBrokerUserOTPField_OTPType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOTPTypeType 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","OTPType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1); result = (TThostFtdcOTPTypeType) ((arg1)->OTPType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcManualSyncBrokerUserOTPField_FirstOTP_set(int argc, VALUE *argv, VALUE self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","FirstOTP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","FirstOTP", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FirstOTP,arg2,41*sizeof(char)); else memset(arg1->FirstOTP,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcManualSyncBrokerUserOTPField_FirstOTP_get(int argc, VALUE *argv, VALUE self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","FirstOTP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1); result = (char *) ((arg1)->FirstOTP); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcManualSyncBrokerUserOTPField_SecondOTP_set(int argc, VALUE *argv, VALUE self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","SecondOTP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","SecondOTP", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SecondOTP,arg2,41*sizeof(char)); else memset(arg1->SecondOTP,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcManualSyncBrokerUserOTPField_SecondOTP_get(int argc, VALUE *argv, VALUE self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","SecondOTP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1); result = (char *) ((arg1)->SecondOTP); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcManualSyncBrokerUserOTPField_allocate(VALUE self) #else _wrap_CThostFtdcManualSyncBrokerUserOTPField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcManualSyncBrokerUserOTPField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcManualSyncBrokerUserOTPField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcManualSyncBrokerUserOTPField"; CThostFtdcManualSyncBrokerUserOTPField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcManualSyncBrokerUserOTPField *)new CThostFtdcManualSyncBrokerUserOTPField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcManualSyncBrokerUserOTPField(void *self) { CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCommRateModelField; SWIGINTERN VALUE _wrap_CThostFtdcCommRateModelField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCommRateModelField *arg1 = (CThostFtdcCommRateModelField *) 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_CThostFtdcCommRateModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommRateModelField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommRateModelField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCommRateModelField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCommRateModelField *arg1 = (CThostFtdcCommRateModelField *) 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_CThostFtdcCommRateModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommRateModelField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommRateModelField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCommRateModelField_CommModelID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCommRateModelField *arg1 = (CThostFtdcCommRateModelField *) 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_CThostFtdcCommRateModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommRateModelField *","CommModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommRateModelField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","CommModelID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CommModelID,arg2,13*sizeof(char)); else memset(arg1->CommModelID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCommRateModelField_CommModelID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCommRateModelField *arg1 = (CThostFtdcCommRateModelField *) 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_CThostFtdcCommRateModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommRateModelField *","CommModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommRateModelField * >(argp1); result = (char *) ((arg1)->CommModelID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCommRateModelField_CommModelName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCommRateModelField *arg1 = (CThostFtdcCommRateModelField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[161] ; 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_CThostFtdcCommRateModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommRateModelField *","CommModelName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommRateModelField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 161); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [161]","CommModelName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CommModelName,arg2,161*sizeof(char)); else memset(arg1->CommModelName,0,161*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCommRateModelField_CommModelName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCommRateModelField *arg1 = (CThostFtdcCommRateModelField *) 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_CThostFtdcCommRateModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommRateModelField *","CommModelName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCommRateModelField * >(argp1); result = (char *) ((arg1)->CommModelName); { size_t size = SWIG_strnlen(result, 161); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCommRateModelField_allocate(VALUE self) #else _wrap_CThostFtdcCommRateModelField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCommRateModelField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCommRateModelField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCommRateModelField"; CThostFtdcCommRateModelField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCommRateModelField *)new CThostFtdcCommRateModelField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCommRateModelField(void *self) { CThostFtdcCommRateModelField *arg1 = (CThostFtdcCommRateModelField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryCommRateModelField; SWIGINTERN VALUE _wrap_CThostFtdcQryCommRateModelField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCommRateModelField *arg1 = (CThostFtdcQryCommRateModelField *) 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_CThostFtdcQryCommRateModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCommRateModelField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCommRateModelField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryCommRateModelField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCommRateModelField *arg1 = (CThostFtdcQryCommRateModelField *) 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_CThostFtdcQryCommRateModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCommRateModelField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCommRateModelField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCommRateModelField_CommModelID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCommRateModelField *arg1 = (CThostFtdcQryCommRateModelField *) 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_CThostFtdcQryCommRateModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCommRateModelField *","CommModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCommRateModelField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","CommModelID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CommModelID,arg2,13*sizeof(char)); else memset(arg1->CommModelID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryCommRateModelField_CommModelID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryCommRateModelField *arg1 = (CThostFtdcQryCommRateModelField *) 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_CThostFtdcQryCommRateModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCommRateModelField *","CommModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryCommRateModelField * >(argp1); result = (char *) ((arg1)->CommModelID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryCommRateModelField_allocate(VALUE self) #else _wrap_CThostFtdcQryCommRateModelField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryCommRateModelField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryCommRateModelField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryCommRateModelField"; CThostFtdcQryCommRateModelField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryCommRateModelField *)new CThostFtdcQryCommRateModelField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryCommRateModelField(void *self) { CThostFtdcQryCommRateModelField *arg1 = (CThostFtdcQryCommRateModelField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMarginModelField; SWIGINTERN VALUE _wrap_CThostFtdcMarginModelField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarginModelField *arg1 = (CThostFtdcMarginModelField *) 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_CThostFtdcMarginModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarginModelField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarginModelField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcMarginModelField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarginModelField *arg1 = (CThostFtdcMarginModelField *) 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_CThostFtdcMarginModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarginModelField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarginModelField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarginModelField_MarginModelID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarginModelField *arg1 = (CThostFtdcMarginModelField *) 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_CThostFtdcMarginModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarginModelField *","MarginModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarginModelField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","MarginModelID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MarginModelID,arg2,13*sizeof(char)); else memset(arg1->MarginModelID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarginModelField_MarginModelID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarginModelField *arg1 = (CThostFtdcMarginModelField *) 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_CThostFtdcMarginModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarginModelField *","MarginModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarginModelField * >(argp1); result = (char *) ((arg1)->MarginModelID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarginModelField_MarginModelName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarginModelField *arg1 = (CThostFtdcMarginModelField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[161] ; 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_CThostFtdcMarginModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarginModelField *","MarginModelName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarginModelField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 161); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [161]","MarginModelName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MarginModelName,arg2,161*sizeof(char)); else memset(arg1->MarginModelName,0,161*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMarginModelField_MarginModelName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarginModelField *arg1 = (CThostFtdcMarginModelField *) 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_CThostFtdcMarginModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarginModelField *","MarginModelName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarginModelField * >(argp1); result = (char *) ((arg1)->MarginModelName); { size_t size = SWIG_strnlen(result, 161); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMarginModelField_allocate(VALUE self) #else _wrap_CThostFtdcMarginModelField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMarginModelField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMarginModelField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarginModelField"; CThostFtdcMarginModelField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarginModelField *)new CThostFtdcMarginModelField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMarginModelField(void *self) { CThostFtdcMarginModelField *arg1 = (CThostFtdcMarginModelField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryMarginModelField; SWIGINTERN VALUE _wrap_CThostFtdcQryMarginModelField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryMarginModelField *arg1 = (CThostFtdcQryMarginModelField *) 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_CThostFtdcQryMarginModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryMarginModelField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryMarginModelField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryMarginModelField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryMarginModelField *arg1 = (CThostFtdcQryMarginModelField *) 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_CThostFtdcQryMarginModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryMarginModelField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryMarginModelField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryMarginModelField_MarginModelID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryMarginModelField *arg1 = (CThostFtdcQryMarginModelField *) 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_CThostFtdcQryMarginModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryMarginModelField *","MarginModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryMarginModelField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","MarginModelID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MarginModelID,arg2,13*sizeof(char)); else memset(arg1->MarginModelID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryMarginModelField_MarginModelID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryMarginModelField *arg1 = (CThostFtdcQryMarginModelField *) 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_CThostFtdcQryMarginModelField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryMarginModelField *","MarginModelID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryMarginModelField * >(argp1); result = (char *) ((arg1)->MarginModelID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryMarginModelField_allocate(VALUE self) #else _wrap_CThostFtdcQryMarginModelField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryMarginModelField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryMarginModelField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryMarginModelField"; CThostFtdcQryMarginModelField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryMarginModelField *)new CThostFtdcQryMarginModelField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryMarginModelField(void *self) { CThostFtdcQryMarginModelField *arg1 = (CThostFtdcQryMarginModelField *)self; delete arg1; } static swig_class SwigClassCThostFtdcEWarrantOffsetField; SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 0 ; TThostFtdcDirectionType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcEWarrantOffsetField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcEWarrantOffsetField_allocate(VALUE self) #else _wrap_CThostFtdcEWarrantOffsetField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcEWarrantOffsetField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcEWarrantOffsetField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcEWarrantOffsetField"; CThostFtdcEWarrantOffsetField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcEWarrantOffsetField *)new CThostFtdcEWarrantOffsetField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcEWarrantOffsetField(void *self) { CThostFtdcEWarrantOffsetField *arg1 = (CThostFtdcEWarrantOffsetField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryEWarrantOffsetField; SWIGINTERN VALUE _wrap_CThostFtdcQryEWarrantOffsetField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryEWarrantOffsetField *arg1 = (CThostFtdcQryEWarrantOffsetField *) 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_CThostFtdcQryEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryEWarrantOffsetField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryEWarrantOffsetField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryEWarrantOffsetField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryEWarrantOffsetField *arg1 = (CThostFtdcQryEWarrantOffsetField *) 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_CThostFtdcQryEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryEWarrantOffsetField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryEWarrantOffsetField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryEWarrantOffsetField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryEWarrantOffsetField *arg1 = (CThostFtdcQryEWarrantOffsetField *) 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_CThostFtdcQryEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryEWarrantOffsetField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryEWarrantOffsetField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryEWarrantOffsetField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryEWarrantOffsetField *arg1 = (CThostFtdcQryEWarrantOffsetField *) 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_CThostFtdcQryEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryEWarrantOffsetField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryEWarrantOffsetField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryEWarrantOffsetField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryEWarrantOffsetField *arg1 = (CThostFtdcQryEWarrantOffsetField *) 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_CThostFtdcQryEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryEWarrantOffsetField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryEWarrantOffsetField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryEWarrantOffsetField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryEWarrantOffsetField *arg1 = (CThostFtdcQryEWarrantOffsetField *) 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_CThostFtdcQryEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryEWarrantOffsetField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryEWarrantOffsetField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryEWarrantOffsetField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryEWarrantOffsetField *arg1 = (CThostFtdcQryEWarrantOffsetField *) 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_CThostFtdcQryEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryEWarrantOffsetField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryEWarrantOffsetField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryEWarrantOffsetField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryEWarrantOffsetField *arg1 = (CThostFtdcQryEWarrantOffsetField *) 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_CThostFtdcQryEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryEWarrantOffsetField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryEWarrantOffsetField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryEWarrantOffsetField_allocate(VALUE self) #else _wrap_CThostFtdcQryEWarrantOffsetField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryEWarrantOffsetField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryEWarrantOffsetField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryEWarrantOffsetField"; CThostFtdcQryEWarrantOffsetField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryEWarrantOffsetField *)new CThostFtdcQryEWarrantOffsetField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryEWarrantOffsetField(void *self) { CThostFtdcQryEWarrantOffsetField *arg1 = (CThostFtdcQryEWarrantOffsetField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryInvestorProductGroupMarginField; SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorProductGroupMarginField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorProductGroupMarginField *arg1 = (CThostFtdcQryInvestorProductGroupMarginField *) 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_CThostFtdcQryInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorProductGroupMarginField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorProductGroupMarginField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorProductGroupMarginField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorProductGroupMarginField *arg1 = (CThostFtdcQryInvestorProductGroupMarginField *) 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_CThostFtdcQryInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorProductGroupMarginField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorProductGroupMarginField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorProductGroupMarginField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorProductGroupMarginField *arg1 = (CThostFtdcQryInvestorProductGroupMarginField *) 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_CThostFtdcQryInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorProductGroupMarginField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorProductGroupMarginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorProductGroupMarginField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorProductGroupMarginField *arg1 = (CThostFtdcQryInvestorProductGroupMarginField *) 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_CThostFtdcQryInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorProductGroupMarginField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorProductGroupMarginField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorProductGroupMarginField_ProductGroupID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorProductGroupMarginField *arg1 = (CThostFtdcQryInvestorProductGroupMarginField *) 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_CThostFtdcQryInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorProductGroupMarginField *","ProductGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorProductGroupMarginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductGroupID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProductGroupID,arg2,31*sizeof(char)); else memset(arg1->ProductGroupID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorProductGroupMarginField_ProductGroupID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorProductGroupMarginField *arg1 = (CThostFtdcQryInvestorProductGroupMarginField *) 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_CThostFtdcQryInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorProductGroupMarginField *","ProductGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorProductGroupMarginField * >(argp1); result = (char *) ((arg1)->ProductGroupID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorProductGroupMarginField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorProductGroupMarginField *arg1 = (CThostFtdcQryInvestorProductGroupMarginField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorProductGroupMarginField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryInvestorProductGroupMarginField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInvestorProductGroupMarginField *arg1 = (CThostFtdcQryInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQryInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorProductGroupMarginField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryInvestorProductGroupMarginField_allocate(VALUE self) #else _wrap_CThostFtdcQryInvestorProductGroupMarginField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryInvestorProductGroupMarginField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryInvestorProductGroupMarginField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInvestorProductGroupMarginField"; CThostFtdcQryInvestorProductGroupMarginField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInvestorProductGroupMarginField *)new CThostFtdcQryInvestorProductGroupMarginField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryInvestorProductGroupMarginField(void *self) { CThostFtdcQryInvestorProductGroupMarginField *arg1 = (CThostFtdcQryInvestorProductGroupMarginField *)self; delete arg1; } static swig_class SwigClassCThostFtdcInvestorProductGroupMarginField; SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ProductGroupID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ProductGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductGroupID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProductGroupID,arg2,31*sizeof(char)); else memset(arg1->ProductGroupID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ProductGroupID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ProductGroupID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (char *) ((arg1)->ProductGroupID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcSettlementIDType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_FrozenMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_FrozenMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","FrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_LongFrozenMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","LongFrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongFrozenMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongFrozenMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_LongFrozenMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","LongFrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongFrozenMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ShortFrozenMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ShortFrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortFrozenMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortFrozenMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ShortFrozenMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ShortFrozenMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortFrozenMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_UseMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","UseMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","UseMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->UseMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_UseMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","UseMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->UseMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_LongUseMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","LongUseMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongUseMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongUseMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_LongUseMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","LongUseMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongUseMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ShortUseMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ShortUseMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortUseMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortUseMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ShortUseMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ShortUseMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortUseMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ExchMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ExchMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ExchMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ExchMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_LongExchMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","LongExchMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongExchMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongExchMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_LongExchMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","LongExchMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongExchMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ShortExchMargin_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ShortExchMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortExchMargin", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortExchMargin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ShortExchMargin_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ShortExchMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortExchMargin); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_CloseProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CloseProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_CloseProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","CloseProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CloseProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_FrozenCommission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","FrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCommission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenCommission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_FrozenCommission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","FrozenCommission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenCommission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_Commission_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","Commission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Commission", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Commission = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_Commission_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","Commission", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Commission); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_FrozenCash_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","FrozenCash", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCash", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->FrozenCash = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_FrozenCash_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","FrozenCash", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->FrozenCash); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_CashIn_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","CashIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CashIn", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->CashIn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_CashIn_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","CashIn", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->CashIn); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_PositionProfit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","PositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PositionProfit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->PositionProfit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_PositionProfit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","PositionProfit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->PositionProfit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_OffsetAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","OffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","OffsetAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->OffsetAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_OffsetAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","OffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->OffsetAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_LongOffsetAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","LongOffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongOffsetAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongOffsetAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_LongOffsetAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","LongOffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongOffsetAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ShortOffsetAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ShortOffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortOffsetAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortOffsetAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ShortOffsetAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ShortOffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortOffsetAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ExchOffsetAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ExchOffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchOffsetAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ExchOffsetAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ExchOffsetAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ExchOffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ExchOffsetAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_LongExchOffsetAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","LongExchOffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongExchOffsetAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->LongExchOffsetAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_LongExchOffsetAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","LongExchOffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->LongExchOffsetAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ShortExchOffsetAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ShortExchOffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortExchOffsetAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->ShortExchOffsetAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_ShortExchOffsetAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","ShortExchOffsetAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->ShortExchOffsetAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcInvestorProductGroupMarginField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcInvestorProductGroupMarginField_allocate(VALUE self) #else _wrap_CThostFtdcInvestorProductGroupMarginField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcInvestorProductGroupMarginField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcInvestorProductGroupMarginField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcInvestorProductGroupMarginField"; CThostFtdcInvestorProductGroupMarginField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcInvestorProductGroupMarginField *)new CThostFtdcInvestorProductGroupMarginField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcInvestorProductGroupMarginField(void *self) { CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField; SWIGINTERN VALUE _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryCFMMCTradingAccountTokenField *arg1 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 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_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryCFMMCTradingAccountTokenField *arg1 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 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_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryCFMMCTradingAccountTokenField *arg1 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 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_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryCFMMCTradingAccountTokenField *arg1 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 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_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_allocate(VALUE self) #else _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQueryCFMMCTradingAccountTokenField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQueryCFMMCTradingAccountTokenField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQueryCFMMCTradingAccountTokenField"; CThostFtdcQueryCFMMCTradingAccountTokenField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQueryCFMMCTradingAccountTokenField *)new CThostFtdcQueryCFMMCTradingAccountTokenField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQueryCFMMCTradingAccountTokenField(void *self) { CThostFtdcQueryCFMMCTradingAccountTokenField *arg1 = (CThostFtdcQueryCFMMCTradingAccountTokenField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCFMMCTradingAccountTokenField; SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountTokenField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *) 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_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountTokenField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *) 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_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountTokenField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *) 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_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountTokenField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *) 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_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountTokenField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *) 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_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountTokenField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *) 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_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountTokenField_KeyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","KeyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","KeyID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->KeyID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountTokenField_KeyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","KeyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->KeyID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountTokenField_Token_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *) 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_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","Token", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","Token", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Token,arg2,21*sizeof(char)); else memset(arg1->Token,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountTokenField_Token_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *) 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_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","Token", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(argp1); result = (char *) ((arg1)->Token); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCFMMCTradingAccountTokenField_allocate(VALUE self) #else _wrap_CThostFtdcCFMMCTradingAccountTokenField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCFMMCTradingAccountTokenField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCFMMCTradingAccountTokenField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCFMMCTradingAccountTokenField"; CThostFtdcCFMMCTradingAccountTokenField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCFMMCTradingAccountTokenField *)new CThostFtdcCFMMCTradingAccountTokenField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCFMMCTradingAccountTokenField(void *self) { CThostFtdcCFMMCTradingAccountTokenField *arg1 = (CThostFtdcCFMMCTradingAccountTokenField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqOpenAccountField; SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Gender_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcGenderType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcGenderType","Gender", 2, argv[0] )); } arg2 = static_cast< TThostFtdcGenderType >(val2); if (arg1) (arg1)->Gender = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Gender_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcGenderType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcGenderType) ((arg1)->Gender); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_CountryCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CountryCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CountryCode,arg2,21*sizeof(char)); else memset(arg1->CountryCode,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_CountryCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->CountryCode); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Address_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","Address", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Address,arg2,101*sizeof(char)); else memset(arg1->Address,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Address_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->Address); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_ZipCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","ZipCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ZipCode,arg2,7*sizeof(char)); else memset(arg1->ZipCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_ZipCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->ZipCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Telephone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Telephone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Telephone,arg2,41*sizeof(char)); else memset(arg1->Telephone,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Telephone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->Telephone); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_MobilePhone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MobilePhone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MobilePhone,arg2,21*sizeof(char)); else memset(arg1->MobilePhone,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_MobilePhone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->MobilePhone); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Fax_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Fax", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Fax,arg2,41*sizeof(char)); else memset(arg1->Fax,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Fax_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->Fax); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_EMail_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","EMail", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EMail,arg2,41*sizeof(char)); else memset(arg1->EMail,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_EMail_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->EMail); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_MoneyAccountStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcMoneyAccountStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyAccountStatusType","MoneyAccountStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyAccountStatusType >(val2); if (arg1) (arg1)->MoneyAccountStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_MoneyAccountStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyAccountStatusType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcMoneyAccountStatusType) ((arg1)->MoneyAccountStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_CashExchangeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcCashExchangeCodeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","CashExchangeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCashExchangeCodeType","CashExchangeCode", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCashExchangeCodeType >(val2); if (arg1) (arg1)->CashExchangeCode = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_CashExchangeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCashExchangeCodeType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","CashExchangeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcCashExchangeCodeType) ((arg1)->CashExchangeCode); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; TThostFtdcTIDType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqOpenAccountField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *) 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_CThostFtdcReqOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqOpenAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqOpenAccountField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqOpenAccountField_allocate(VALUE self) #else _wrap_CThostFtdcReqOpenAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqOpenAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqOpenAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqOpenAccountField"; CThostFtdcReqOpenAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqOpenAccountField *)new CThostFtdcReqOpenAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqOpenAccountField(void *self) { CThostFtdcReqOpenAccountField *arg1 = (CThostFtdcReqOpenAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqCancelAccountField; SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Gender_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcGenderType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcGenderType","Gender", 2, argv[0] )); } arg2 = static_cast< TThostFtdcGenderType >(val2); if (arg1) (arg1)->Gender = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Gender_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcGenderType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcGenderType) ((arg1)->Gender); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_CountryCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CountryCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CountryCode,arg2,21*sizeof(char)); else memset(arg1->CountryCode,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_CountryCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->CountryCode); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Address_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","Address", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Address,arg2,101*sizeof(char)); else memset(arg1->Address,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Address_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->Address); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_ZipCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","ZipCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ZipCode,arg2,7*sizeof(char)); else memset(arg1->ZipCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_ZipCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->ZipCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Telephone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Telephone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Telephone,arg2,41*sizeof(char)); else memset(arg1->Telephone,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Telephone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->Telephone); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_MobilePhone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MobilePhone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MobilePhone,arg2,21*sizeof(char)); else memset(arg1->MobilePhone,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_MobilePhone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->MobilePhone); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Fax_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Fax", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Fax,arg2,41*sizeof(char)); else memset(arg1->Fax,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Fax_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->Fax); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_EMail_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","EMail", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EMail,arg2,41*sizeof(char)); else memset(arg1->EMail,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_EMail_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->EMail); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_MoneyAccountStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcMoneyAccountStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyAccountStatusType","MoneyAccountStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyAccountStatusType >(val2); if (arg1) (arg1)->MoneyAccountStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_MoneyAccountStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyAccountStatusType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcMoneyAccountStatusType) ((arg1)->MoneyAccountStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_CashExchangeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcCashExchangeCodeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","CashExchangeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCashExchangeCodeType","CashExchangeCode", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCashExchangeCodeType >(val2); if (arg1) (arg1)->CashExchangeCode = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_CashExchangeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCashExchangeCodeType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","CashExchangeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcCashExchangeCodeType) ((arg1)->CashExchangeCode); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; TThostFtdcTIDType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqCancelAccountField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *) 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_CThostFtdcReqCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqCancelAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqCancelAccountField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqCancelAccountField_allocate(VALUE self) #else _wrap_CThostFtdcReqCancelAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqCancelAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqCancelAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqCancelAccountField"; CThostFtdcReqCancelAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqCancelAccountField *)new CThostFtdcReqCancelAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqCancelAccountField(void *self) { CThostFtdcReqCancelAccountField *arg1 = (CThostFtdcReqCancelAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqChangeAccountField; SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Gender_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcGenderType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcGenderType","Gender", 2, argv[0] )); } arg2 = static_cast< TThostFtdcGenderType >(val2); if (arg1) (arg1)->Gender = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Gender_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcGenderType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcGenderType) ((arg1)->Gender); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_CountryCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CountryCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CountryCode,arg2,21*sizeof(char)); else memset(arg1->CountryCode,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_CountryCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->CountryCode); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Address_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","Address", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Address,arg2,101*sizeof(char)); else memset(arg1->Address,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Address_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->Address); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_ZipCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","ZipCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ZipCode,arg2,7*sizeof(char)); else memset(arg1->ZipCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_ZipCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->ZipCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Telephone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Telephone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Telephone,arg2,41*sizeof(char)); else memset(arg1->Telephone,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Telephone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->Telephone); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_MobilePhone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MobilePhone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MobilePhone,arg2,21*sizeof(char)); else memset(arg1->MobilePhone,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_MobilePhone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->MobilePhone); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Fax_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Fax", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Fax,arg2,41*sizeof(char)); else memset(arg1->Fax,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Fax_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->Fax); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_EMail_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","EMail", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EMail,arg2,41*sizeof(char)); else memset(arg1->EMail,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_EMail_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->EMail); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_MoneyAccountStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcMoneyAccountStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyAccountStatusType","MoneyAccountStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyAccountStatusType >(val2); if (arg1) (arg1)->MoneyAccountStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_MoneyAccountStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyAccountStatusType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcMoneyAccountStatusType) ((arg1)->MoneyAccountStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_NewBankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","NewBankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","NewBankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->NewBankAccount,arg2,41*sizeof(char)); else memset(arg1->NewBankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_NewBankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","NewBankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->NewBankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_NewBankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","NewBankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","NewBankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->NewBankPassWord,arg2,41*sizeof(char)); else memset(arg1->NewBankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_NewBankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","NewBankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->NewBankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; TThostFtdcTIDType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqChangeAccountField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *) 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_CThostFtdcReqChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqChangeAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqChangeAccountField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqChangeAccountField_allocate(VALUE self) #else _wrap_CThostFtdcReqChangeAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqChangeAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqChangeAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqChangeAccountField"; CThostFtdcReqChangeAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqChangeAccountField *)new CThostFtdcReqChangeAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqChangeAccountField(void *self) { CThostFtdcReqChangeAccountField *arg1 = (CThostFtdcReqChangeAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqTransferField; SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_FutureSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcFutureSerialType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureSerialType >(val2); if (arg1) (arg1)->FutureSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_FutureSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureSerialType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcFutureSerialType) ((arg1)->FutureSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TradeAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","TradeAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->TradeAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TradeAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->TradeAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_FutureFetchAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FutureFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","FutureFetchAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->FutureFetchAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_FutureFetchAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FutureFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->FutureFetchAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_FeePayFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcFeePayFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FeePayFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFeePayFlagType","FeePayFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFeePayFlagType >(val2); if (arg1) (arg1)->FeePayFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_FeePayFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFeePayFlagType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FeePayFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcFeePayFlagType) ((arg1)->FeePayFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_CustFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcCustFeeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustFeeType","CustFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustFeeType >(val2); if (arg1) (arg1)->CustFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_CustFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustFeeType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcCustFeeType) ((arg1)->CustFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BrokerFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcFutureFeeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureFeeType","BrokerFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureFeeType >(val2); if (arg1) (arg1)->BrokerFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BrokerFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureFeeType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcFutureFeeType) ((arg1)->BrokerFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_Message_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","Message", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Message,arg2,129*sizeof(char)); else memset(arg1->Message,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_Message_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->Message); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcTIDType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TransferStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; TThostFtdcTransferStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TransferStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTransferStatusType","TransferStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTransferStatusType >(val2); if (arg1) (arg1)->TransferStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqTransferField_TransferStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTransferStatusType 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_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TransferStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1); result = (TThostFtdcTransferStatusType) ((arg1)->TransferStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqTransferField_allocate(VALUE self) #else _wrap_CThostFtdcReqTransferField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqTransferField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqTransferField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqTransferField"; CThostFtdcReqTransferField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqTransferField *)new CThostFtdcReqTransferField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqTransferField(void *self) { CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRspTransferField; SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcSerialType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_FutureSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcFutureSerialType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureSerialType >(val2); if (arg1) (arg1)->FutureSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_FutureSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureSerialType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcFutureSerialType) ((arg1)->FutureSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TradeAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","TradeAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->TradeAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TradeAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->TradeAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_FutureFetchAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","FutureFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","FutureFetchAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->FutureFetchAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_FutureFetchAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","FutureFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->FutureFetchAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_FeePayFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcFeePayFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","FeePayFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFeePayFlagType","FeePayFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFeePayFlagType >(val2); if (arg1) (arg1)->FeePayFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_FeePayFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFeePayFlagType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","FeePayFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcFeePayFlagType) ((arg1)->FeePayFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_CustFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcCustFeeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustFeeType","CustFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustFeeType >(val2); if (arg1) (arg1)->CustFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_CustFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustFeeType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcCustFeeType) ((arg1)->CustFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BrokerFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcFutureFeeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BrokerFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureFeeType","BrokerFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureFeeType >(val2); if (arg1) (arg1)->BrokerFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BrokerFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureFeeType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BrokerFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcFutureFeeType) ((arg1)->BrokerFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_Message_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","Message", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Message,arg2,129*sizeof(char)); else memset(arg1->Message,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_Message_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->Message); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcTIDType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TransferStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; TThostFtdcTransferStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TransferStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTransferStatusType","TransferStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTransferStatusType >(val2); if (arg1) (arg1)->TransferStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_TransferStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTransferStatusType 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","TransferStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcTransferStatusType) ((arg1)->TransferStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspTransferField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *) 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_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspTransferField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRspTransferField_allocate(VALUE self) #else _wrap_CThostFtdcRspTransferField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRspTransferField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRspTransferField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspTransferField"; CThostFtdcRspTransferField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRspTransferField *)new CThostFtdcRspTransferField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRspTransferField(void *self) { CThostFtdcRspTransferField *arg1 = (CThostFtdcRspTransferField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqRepealField; SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_RepealTimeInterval_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcRepealTimeIntervalType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","RepealTimeInterval", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRepealTimeIntervalType","RepealTimeInterval", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRepealTimeIntervalType >(val2); if (arg1) (arg1)->RepealTimeInterval = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_RepealTimeInterval_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRepealTimeIntervalType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","RepealTimeInterval", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcRepealTimeIntervalType) ((arg1)->RepealTimeInterval); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_RepealedTimes_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcRepealedTimesType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","RepealedTimes", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRepealedTimesType","RepealedTimes", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRepealedTimesType >(val2); if (arg1) (arg1)->RepealedTimes = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_RepealedTimes_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRepealedTimesType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","RepealedTimes", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcRepealedTimesType) ((arg1)->RepealedTimes); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankRepealFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcBankRepealFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankRepealFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankRepealFlagType","BankRepealFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankRepealFlagType >(val2); if (arg1) (arg1)->BankRepealFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankRepealFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankRepealFlagType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankRepealFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcBankRepealFlagType) ((arg1)->BankRepealFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BrokerRepealFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcBrokerRepealFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BrokerRepealFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBrokerRepealFlagType","BrokerRepealFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBrokerRepealFlagType >(val2); if (arg1) (arg1)->BrokerRepealFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BrokerRepealFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBrokerRepealFlagType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BrokerRepealFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcBrokerRepealFlagType) ((arg1)->BrokerRepealFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_PlateRepealSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcPlateSerialType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","PlateRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPlateSerialType","PlateRepealSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPlateSerialType >(val2); if (arg1) (arg1)->PlateRepealSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_PlateRepealSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPlateSerialType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","PlateRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcPlateSerialType) ((arg1)->PlateRepealSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankRepealSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankRepealSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankRepealSerial,arg2,13*sizeof(char)); else memset(arg1->BankRepealSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankRepealSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->BankRepealSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_FutureRepealSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcFutureSerialType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","FutureRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureRepealSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureSerialType >(val2); if (arg1) (arg1)->FutureRepealSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_FutureRepealSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureSerialType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","FutureRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcFutureSerialType) ((arg1)->FutureRepealSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_FutureSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcFutureSerialType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureSerialType >(val2); if (arg1) (arg1)->FutureSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_FutureSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureSerialType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcFutureSerialType) ((arg1)->FutureSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TradeAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","TradeAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->TradeAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TradeAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->TradeAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_FutureFetchAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","FutureFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","FutureFetchAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->FutureFetchAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_FutureFetchAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","FutureFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->FutureFetchAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_FeePayFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcFeePayFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","FeePayFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFeePayFlagType","FeePayFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFeePayFlagType >(val2); if (arg1) (arg1)->FeePayFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_FeePayFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFeePayFlagType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","FeePayFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcFeePayFlagType) ((arg1)->FeePayFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_CustFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcCustFeeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustFeeType","CustFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustFeeType >(val2); if (arg1) (arg1)->CustFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_CustFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustFeeType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcCustFeeType) ((arg1)->CustFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BrokerFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcFutureFeeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BrokerFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureFeeType","BrokerFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureFeeType >(val2); if (arg1) (arg1)->BrokerFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BrokerFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureFeeType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BrokerFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcFutureFeeType) ((arg1)->BrokerFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_Message_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","Message", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Message,arg2,129*sizeof(char)); else memset(arg1->Message,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_Message_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->Message); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcTIDType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TransferStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; TThostFtdcTransferStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TransferStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTransferStatusType","TransferStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTransferStatusType >(val2); if (arg1) (arg1)->TransferStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqRepealField_TransferStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTransferStatusType 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_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","TransferStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1); result = (TThostFtdcTransferStatusType) ((arg1)->TransferStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqRepealField_allocate(VALUE self) #else _wrap_CThostFtdcReqRepealField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqRepealField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqRepealField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqRepealField"; CThostFtdcReqRepealField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqRepealField *)new CThostFtdcReqRepealField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqRepealField(void *self) { CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRspRepealField; SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_RepealTimeInterval_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcRepealTimeIntervalType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","RepealTimeInterval", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRepealTimeIntervalType","RepealTimeInterval", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRepealTimeIntervalType >(val2); if (arg1) (arg1)->RepealTimeInterval = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_RepealTimeInterval_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRepealTimeIntervalType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","RepealTimeInterval", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcRepealTimeIntervalType) ((arg1)->RepealTimeInterval); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_RepealedTimes_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcRepealedTimesType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","RepealedTimes", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRepealedTimesType","RepealedTimes", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRepealedTimesType >(val2); if (arg1) (arg1)->RepealedTimes = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_RepealedTimes_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRepealedTimesType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","RepealedTimes", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcRepealedTimesType) ((arg1)->RepealedTimes); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankRepealFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcBankRepealFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankRepealFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankRepealFlagType","BankRepealFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankRepealFlagType >(val2); if (arg1) (arg1)->BankRepealFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankRepealFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankRepealFlagType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankRepealFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcBankRepealFlagType) ((arg1)->BankRepealFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BrokerRepealFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcBrokerRepealFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BrokerRepealFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBrokerRepealFlagType","BrokerRepealFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBrokerRepealFlagType >(val2); if (arg1) (arg1)->BrokerRepealFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BrokerRepealFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBrokerRepealFlagType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BrokerRepealFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcBrokerRepealFlagType) ((arg1)->BrokerRepealFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_PlateRepealSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcPlateSerialType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","PlateRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPlateSerialType","PlateRepealSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPlateSerialType >(val2); if (arg1) (arg1)->PlateRepealSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_PlateRepealSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPlateSerialType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","PlateRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcPlateSerialType) ((arg1)->PlateRepealSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankRepealSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankRepealSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankRepealSerial,arg2,13*sizeof(char)); else memset(arg1->BankRepealSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankRepealSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->BankRepealSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_FutureRepealSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcFutureSerialType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","FutureRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureRepealSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureSerialType >(val2); if (arg1) (arg1)->FutureRepealSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_FutureRepealSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureSerialType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","FutureRepealSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcFutureSerialType) ((arg1)->FutureRepealSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcSerialType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_FutureSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcFutureSerialType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureSerialType >(val2); if (arg1) (arg1)->FutureSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_FutureSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureSerialType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcFutureSerialType) ((arg1)->FutureSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TradeAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","TradeAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->TradeAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TradeAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->TradeAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_FutureFetchAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","FutureFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","FutureFetchAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->FutureFetchAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_FutureFetchAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","FutureFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->FutureFetchAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_FeePayFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcFeePayFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","FeePayFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFeePayFlagType","FeePayFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFeePayFlagType >(val2); if (arg1) (arg1)->FeePayFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_FeePayFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFeePayFlagType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","FeePayFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcFeePayFlagType) ((arg1)->FeePayFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_CustFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcCustFeeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustFeeType","CustFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustFeeType >(val2); if (arg1) (arg1)->CustFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_CustFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustFeeType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcCustFeeType) ((arg1)->CustFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BrokerFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcFutureFeeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BrokerFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureFeeType","BrokerFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureFeeType >(val2); if (arg1) (arg1)->BrokerFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BrokerFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureFeeType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BrokerFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcFutureFeeType) ((arg1)->BrokerFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_Message_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","Message", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Message,arg2,129*sizeof(char)); else memset(arg1->Message,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_Message_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->Message); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcTIDType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TransferStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; TThostFtdcTransferStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TransferStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTransferStatusType","TransferStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTransferStatusType >(val2); if (arg1) (arg1)->TransferStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_TransferStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTransferStatusType 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","TransferStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcTransferStatusType) ((arg1)->TransferStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspRepealField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *) 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_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspRepealField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRspRepealField_allocate(VALUE self) #else _wrap_CThostFtdcRspRepealField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRspRepealField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRspRepealField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspRepealField"; CThostFtdcRspRepealField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRspRepealField *)new CThostFtdcRspRepealField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRspRepealField(void *self) { CThostFtdcRspRepealField *arg1 = (CThostFtdcRspRepealField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqQueryAccountField; SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_FutureSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcFutureSerialType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureSerialType >(val2); if (arg1) (arg1)->FutureSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_FutureSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureSerialType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcFutureSerialType) ((arg1)->FutureSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; TThostFtdcTIDType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryAccountField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqQueryAccountField_allocate(VALUE self) #else _wrap_CThostFtdcReqQueryAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqQueryAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqQueryAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqQueryAccountField"; CThostFtdcReqQueryAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqQueryAccountField *)new CThostFtdcReqQueryAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqQueryAccountField(void *self) { CThostFtdcReqQueryAccountField *arg1 = (CThostFtdcReqQueryAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRspQueryAccountField; SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcSerialType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_FutureSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcFutureSerialType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureSerialType >(val2); if (arg1) (arg1)->FutureSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_FutureSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureSerialType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcFutureSerialType) ((arg1)->FutureSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcTIDType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankUseAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankUseAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","BankUseAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->BankUseAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankUseAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankUseAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->BankUseAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankFetchAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","BankFetchAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->BankFetchAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryAccountField_BankFetchAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcRspQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryAccountField *","BankFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryAccountField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->BankFetchAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRspQueryAccountField_allocate(VALUE self) #else _wrap_CThostFtdcRspQueryAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRspQueryAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRspQueryAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspQueryAccountField"; CThostFtdcRspQueryAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRspQueryAccountField *)new CThostFtdcRspQueryAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRspQueryAccountField(void *self) { CThostFtdcRspQueryAccountField *arg1 = (CThostFtdcRspQueryAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcFutureSignIOField; SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; TThostFtdcSerialType 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; TThostFtdcTIDType 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFutureSignIOField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcFutureSignIOField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFutureSignIOField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFutureSignIOField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcFutureSignIOField_allocate(VALUE self) #else _wrap_CThostFtdcFutureSignIOField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcFutureSignIOField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcFutureSignIOField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcFutureSignIOField"; CThostFtdcFutureSignIOField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcFutureSignIOField *)new CThostFtdcFutureSignIOField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcFutureSignIOField(void *self) { CThostFtdcFutureSignIOField *arg1 = (CThostFtdcFutureSignIOField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRspFutureSignInField; SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; TThostFtdcSerialType 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; TThostFtdcTIDType 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_PinKey_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","PinKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","PinKey", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->PinKey,arg2,129*sizeof(char)); else memset(arg1->PinKey,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_PinKey_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","PinKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->PinKey); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_MacKey_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","MacKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","MacKey", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MacKey,arg2,129*sizeof(char)); else memset(arg1->MacKey,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignInField_MacKey_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *) 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_CThostFtdcRspFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignInField *","MacKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignInField * >(argp1); result = (char *) ((arg1)->MacKey); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRspFutureSignInField_allocate(VALUE self) #else _wrap_CThostFtdcRspFutureSignInField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRspFutureSignInField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRspFutureSignInField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspFutureSignInField"; CThostFtdcRspFutureSignInField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRspFutureSignInField *)new CThostFtdcRspFutureSignInField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRspFutureSignInField(void *self) { CThostFtdcRspFutureSignInField *arg1 = (CThostFtdcRspFutureSignInField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqFutureSignOutField; SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; TThostFtdcTIDType 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqFutureSignOutField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcReqFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqFutureSignOutField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqFutureSignOutField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqFutureSignOutField_allocate(VALUE self) #else _wrap_CThostFtdcReqFutureSignOutField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqFutureSignOutField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqFutureSignOutField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqFutureSignOutField"; CThostFtdcReqFutureSignOutField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqFutureSignOutField *)new CThostFtdcReqFutureSignOutField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqFutureSignOutField(void *self) { CThostFtdcReqFutureSignOutField *arg1 = (CThostFtdcReqFutureSignOutField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRspFutureSignOutField; SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; TThostFtdcSerialType 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; TThostFtdcTIDType 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspFutureSignOutField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *) 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_CThostFtdcRspFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspFutureSignOutField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspFutureSignOutField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRspFutureSignOutField_allocate(VALUE self) #else _wrap_CThostFtdcRspFutureSignOutField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRspFutureSignOutField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRspFutureSignOutField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspFutureSignOutField"; CThostFtdcRspFutureSignOutField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRspFutureSignOutField *)new CThostFtdcRspFutureSignOutField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRspFutureSignOutField(void *self) { CThostFtdcRspFutureSignOutField *arg1 = (CThostFtdcRspFutureSignOutField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqQueryTradeResultBySerialField; SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_Reference_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","Reference", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","Reference", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->Reference = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_Reference_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","Reference", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->Reference); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_RefrenceIssureType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; TThostFtdcInstitutionTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","RefrenceIssureType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstitutionTypeType","RefrenceIssureType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInstitutionTypeType >(val2); if (arg1) (arg1)->RefrenceIssureType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_RefrenceIssureType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInstitutionTypeType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","RefrenceIssureType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcInstitutionTypeType) ((arg1)->RefrenceIssureType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_RefrenceIssure_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","RefrenceIssure", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","RefrenceIssure", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RefrenceIssure,arg2,36*sizeof(char)); else memset(arg1->RefrenceIssure,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_RefrenceIssure_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","RefrenceIssure", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->RefrenceIssure); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","TradeAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->TradeAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->TradeAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqQueryTradeResultBySerialField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *) 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_CThostFtdcReqQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqQueryTradeResultBySerialField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqQueryTradeResultBySerialField_allocate(VALUE self) #else _wrap_CThostFtdcReqQueryTradeResultBySerialField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqQueryTradeResultBySerialField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqQueryTradeResultBySerialField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqQueryTradeResultBySerialField"; CThostFtdcReqQueryTradeResultBySerialField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqQueryTradeResultBySerialField *)new CThostFtdcReqQueryTradeResultBySerialField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqQueryTradeResultBySerialField(void *self) { CThostFtdcReqQueryTradeResultBySerialField *arg1 = (CThostFtdcReqQueryTradeResultBySerialField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRspQueryTradeResultBySerialField; SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; TThostFtdcSerialType 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_Reference_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; TThostFtdcSerialType 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","Reference", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","Reference", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->Reference = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_Reference_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","Reference", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->Reference); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_RefrenceIssureType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; TThostFtdcInstitutionTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","RefrenceIssureType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstitutionTypeType","RefrenceIssureType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInstitutionTypeType >(val2); if (arg1) (arg1)->RefrenceIssureType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_RefrenceIssureType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInstitutionTypeType 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","RefrenceIssureType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcInstitutionTypeType) ((arg1)->RefrenceIssureType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_RefrenceIssure_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","RefrenceIssure", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","RefrenceIssure", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RefrenceIssure,arg2,36*sizeof(char)); else memset(arg1->RefrenceIssure,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_RefrenceIssure_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","RefrenceIssure", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->RefrenceIssure); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_OriginReturnCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","OriginReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","OriginReturnCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OriginReturnCode,arg2,7*sizeof(char)); else memset(arg1->OriginReturnCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_OriginReturnCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","OriginReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->OriginReturnCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_OriginDescrInfoForReturnCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","OriginDescrInfoForReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","OriginDescrInfoForReturnCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OriginDescrInfoForReturnCode,arg2,129*sizeof(char)); else memset(arg1->OriginDescrInfoForReturnCode,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_OriginDescrInfoForReturnCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","OriginDescrInfoForReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->OriginDescrInfoForReturnCode); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","TradeAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->TradeAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->TradeAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspQueryTradeResultBySerialField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *) 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_CThostFtdcRspQueryTradeResultBySerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspQueryTradeResultBySerialField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspQueryTradeResultBySerialField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRspQueryTradeResultBySerialField_allocate(VALUE self) #else _wrap_CThostFtdcRspQueryTradeResultBySerialField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRspQueryTradeResultBySerialField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRspQueryTradeResultBySerialField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspQueryTradeResultBySerialField"; CThostFtdcRspQueryTradeResultBySerialField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRspQueryTradeResultBySerialField *)new CThostFtdcRspQueryTradeResultBySerialField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRspQueryTradeResultBySerialField(void *self) { CThostFtdcRspQueryTradeResultBySerialField *arg1 = (CThostFtdcRspQueryTradeResultBySerialField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqDayEndFileReadyField; SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_FileBusinessCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; TThostFtdcFileBusinessCodeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","FileBusinessCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFileBusinessCodeType","FileBusinessCode", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFileBusinessCodeType >(val2); if (arg1) (arg1)->FileBusinessCode = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_FileBusinessCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFileBusinessCodeType 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","FileBusinessCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (TThostFtdcFileBusinessCodeType) ((arg1)->FileBusinessCode); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqDayEndFileReadyField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *) 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_CThostFtdcReqDayEndFileReadyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqDayEndFileReadyField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqDayEndFileReadyField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqDayEndFileReadyField_allocate(VALUE self) #else _wrap_CThostFtdcReqDayEndFileReadyField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqDayEndFileReadyField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqDayEndFileReadyField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqDayEndFileReadyField"; CThostFtdcReqDayEndFileReadyField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqDayEndFileReadyField *)new CThostFtdcReqDayEndFileReadyField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqDayEndFileReadyField(void *self) { CThostFtdcReqDayEndFileReadyField *arg1 = (CThostFtdcReqDayEndFileReadyField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReturnResultField; SWIGINTERN VALUE _wrap_CThostFtdcReturnResultField_ReturnCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReturnResultField *arg1 = (CThostFtdcReturnResultField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReturnResultField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReturnResultField *","ReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReturnResultField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","ReturnCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ReturnCode,arg2,7*sizeof(char)); else memset(arg1->ReturnCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReturnResultField_ReturnCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReturnResultField *arg1 = (CThostFtdcReturnResultField *) 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_CThostFtdcReturnResultField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReturnResultField *","ReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReturnResultField * >(argp1); result = (char *) ((arg1)->ReturnCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReturnResultField_DescrInfoForReturnCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReturnResultField *arg1 = (CThostFtdcReturnResultField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcReturnResultField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReturnResultField *","DescrInfoForReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReturnResultField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","DescrInfoForReturnCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DescrInfoForReturnCode,arg2,129*sizeof(char)); else memset(arg1->DescrInfoForReturnCode,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReturnResultField_DescrInfoForReturnCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReturnResultField *arg1 = (CThostFtdcReturnResultField *) 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_CThostFtdcReturnResultField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReturnResultField *","DescrInfoForReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReturnResultField * >(argp1); result = (char *) ((arg1)->DescrInfoForReturnCode); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReturnResultField_allocate(VALUE self) #else _wrap_CThostFtdcReturnResultField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReturnResultField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReturnResultField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReturnResultField"; CThostFtdcReturnResultField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReturnResultField *)new CThostFtdcReturnResultField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReturnResultField(void *self) { CThostFtdcReturnResultField *arg1 = (CThostFtdcReturnResultField *)self; delete arg1; } static swig_class SwigClassCThostFtdcVerifyFuturePasswordField; SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; TThostFtdcSerialType 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; TThostFtdcTIDType 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *) 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_CThostFtdcVerifyFuturePasswordField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcVerifyFuturePasswordField_allocate(VALUE self) #else _wrap_CThostFtdcVerifyFuturePasswordField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcVerifyFuturePasswordField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcVerifyFuturePasswordField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcVerifyFuturePasswordField"; CThostFtdcVerifyFuturePasswordField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcVerifyFuturePasswordField *)new CThostFtdcVerifyFuturePasswordField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcVerifyFuturePasswordField(void *self) { CThostFtdcVerifyFuturePasswordField *arg1 = (CThostFtdcVerifyFuturePasswordField *)self; delete arg1; } static swig_class SwigClassCThostFtdcVerifyCustInfoField; SWIGINTERN VALUE _wrap_CThostFtdcVerifyCustInfoField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyCustInfoField *arg1 = (CThostFtdcVerifyCustInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcVerifyCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyCustInfoField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyCustInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyCustInfoField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyCustInfoField *arg1 = (CThostFtdcVerifyCustInfoField *) 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_CThostFtdcVerifyCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyCustInfoField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyCustInfoField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyCustInfoField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyCustInfoField *arg1 = (CThostFtdcVerifyCustInfoField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcVerifyCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyCustInfoField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyCustInfoField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyCustInfoField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyCustInfoField *arg1 = (CThostFtdcVerifyCustInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcVerifyCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyCustInfoField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyCustInfoField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyCustInfoField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyCustInfoField *arg1 = (CThostFtdcVerifyCustInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcVerifyCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyCustInfoField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyCustInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyCustInfoField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyCustInfoField *arg1 = (CThostFtdcVerifyCustInfoField *) 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_CThostFtdcVerifyCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyCustInfoField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyCustInfoField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyCustInfoField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyCustInfoField *arg1 = (CThostFtdcVerifyCustInfoField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcVerifyCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyCustInfoField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyCustInfoField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyCustInfoField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyCustInfoField *arg1 = (CThostFtdcVerifyCustInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcVerifyCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyCustInfoField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyCustInfoField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcVerifyCustInfoField_allocate(VALUE self) #else _wrap_CThostFtdcVerifyCustInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcVerifyCustInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcVerifyCustInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcVerifyCustInfoField"; CThostFtdcVerifyCustInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcVerifyCustInfoField *)new CThostFtdcVerifyCustInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcVerifyCustInfoField(void *self) { CThostFtdcVerifyCustInfoField *arg1 = (CThostFtdcVerifyCustInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField; SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_allocate(VALUE self) #else _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcVerifyFuturePasswordAndCustInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcVerifyFuturePasswordAndCustInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcVerifyFuturePasswordAndCustInfoField"; CThostFtdcVerifyFuturePasswordAndCustInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcVerifyFuturePasswordAndCustInfoField *)new CThostFtdcVerifyFuturePasswordAndCustInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcVerifyFuturePasswordAndCustInfoField(void *self) { CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcDepositResultInformField; SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_DepositSeqNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[15] ; 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","DepositSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 15); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [15]","DepositSeqNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DepositSeqNo,arg2,15*sizeof(char)); else memset(arg1->DepositSeqNo,0,15*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_DepositSeqNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","DepositSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); result = (char *) ((arg1)->DepositSeqNo); { size_t size = SWIG_strnlen(result, 15); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_Deposit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","Deposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Deposit", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Deposit = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_Deposit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","Deposit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Deposit); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_ReturnCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","ReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","ReturnCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ReturnCode,arg2,7*sizeof(char)); else memset(arg1->ReturnCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_ReturnCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","ReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); result = (char *) ((arg1)->ReturnCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_DescrInfoForReturnCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","DescrInfoForReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","DescrInfoForReturnCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DescrInfoForReturnCode,arg2,129*sizeof(char)); else memset(arg1->DescrInfoForReturnCode,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDepositResultInformField_DescrInfoForReturnCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *) 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_CThostFtdcDepositResultInformField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDepositResultInformField *","DescrInfoForReturnCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDepositResultInformField * >(argp1); result = (char *) ((arg1)->DescrInfoForReturnCode); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcDepositResultInformField_allocate(VALUE self) #else _wrap_CThostFtdcDepositResultInformField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcDepositResultInformField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcDepositResultInformField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcDepositResultInformField"; CThostFtdcDepositResultInformField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcDepositResultInformField *)new CThostFtdcDepositResultInformField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcDepositResultInformField(void *self) { CThostFtdcDepositResultInformField *arg1 = (CThostFtdcDepositResultInformField *)self; delete arg1; } static swig_class SwigClassCThostFtdcReqSyncKeyField; SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; TThostFtdcSerialType 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_Message_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","Message", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Message,arg2,129*sizeof(char)); else memset(arg1->Message,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_Message_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->Message); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; TThostFtdcTIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcReqSyncKeyField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcReqSyncKeyField_allocate(VALUE self) #else _wrap_CThostFtdcReqSyncKeyField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcReqSyncKeyField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcReqSyncKeyField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqSyncKeyField"; CThostFtdcReqSyncKeyField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcReqSyncKeyField *)new CThostFtdcReqSyncKeyField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcReqSyncKeyField(void *self) { CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *)self; delete arg1; } static swig_class SwigClassCThostFtdcRspSyncKeyField; SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; TThostFtdcSerialType 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_Message_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","Message", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Message,arg2,129*sizeof(char)); else memset(arg1->Message,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_Message_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->Message); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; TThostFtdcTIDType 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcRspSyncKeyField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *) 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_CThostFtdcRspSyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspSyncKeyField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcRspSyncKeyField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcRspSyncKeyField_allocate(VALUE self) #else _wrap_CThostFtdcRspSyncKeyField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcRspSyncKeyField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcRspSyncKeyField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspSyncKeyField"; CThostFtdcRspSyncKeyField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcRspSyncKeyField *)new CThostFtdcRspSyncKeyField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcRspSyncKeyField(void *self) { CThostFtdcRspSyncKeyField *arg1 = (CThostFtdcRspSyncKeyField *)self; delete arg1; } static swig_class SwigClassCThostFtdcNotifyQueryAccountField; SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcSerialType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_FutureSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcFutureSerialType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureSerialType >(val2); if (arg1) (arg1)->FutureSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_FutureSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureSerialType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcFutureSerialType) ((arg1)->FutureSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcTIDType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankUseAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankUseAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","BankUseAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->BankUseAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankUseAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankUseAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->BankUseAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankFetchAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","BankFetchAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->BankFetchAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_BankFetchAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","BankFetchAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->BankFetchAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyQueryAccountField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 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_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcNotifyQueryAccountField_allocate(VALUE self) #else _wrap_CThostFtdcNotifyQueryAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcNotifyQueryAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcNotifyQueryAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcNotifyQueryAccountField"; CThostFtdcNotifyQueryAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcNotifyQueryAccountField *)new CThostFtdcNotifyQueryAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcNotifyQueryAccountField(void *self) { CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTransferSerialField; SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; TThostFtdcPlateSerialType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPlateSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPlateSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPlateSerialType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcPlateSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_FutureAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; TThostFtdcFutureAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","FutureAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureAccTypeType","FutureAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureAccTypeType >(val2); if (arg1) (arg1)->FutureAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_FutureAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureAccTypeType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","FutureAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcFutureAccTypeType) ((arg1)->FutureAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_FutureSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; TThostFtdcFutureSerialType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureSerialType >(val2); if (arg1) (arg1)->FutureSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_FutureSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureSerialType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","FutureSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcFutureSerialType) ((arg1)->FutureSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_TradeAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; TThostFtdcTradeAmountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","TradeAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTradeAmountType >(val2); if (arg1) (arg1)->TradeAmount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_TradeAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTradeAmountType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","TradeAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcTradeAmountType) ((arg1)->TradeAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_CustFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; TThostFtdcCustFeeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustFeeType","CustFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustFeeType >(val2); if (arg1) (arg1)->CustFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_CustFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustFeeType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","CustFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcCustFeeType) ((arg1)->CustFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BrokerFee_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; TThostFtdcFutureFeeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BrokerFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureFeeType","BrokerFee", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFutureFeeType >(val2); if (arg1) (arg1)->BrokerFee = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BrokerFee_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFutureFeeType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BrokerFee", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcFutureFeeType) ((arg1)->BrokerFee); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_AvailabilityFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; TThostFtdcAvailabilityFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","AvailabilityFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcAvailabilityFlagType","AvailabilityFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcAvailabilityFlagType >(val2); if (arg1) (arg1)->AvailabilityFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_AvailabilityFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcAvailabilityFlagType 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","AvailabilityFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcAvailabilityFlagType) ((arg1)->AvailabilityFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_OperatorCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","OperatorCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperatorCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperatorCode,arg2,17*sizeof(char)); else memset(arg1->OperatorCode,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_OperatorCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","OperatorCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->OperatorCode); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankNewAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankNewAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankNewAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankNewAccount,arg2,41*sizeof(char)); else memset(arg1->BankNewAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_BankNewAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","BankNewAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->BankNewAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTransferSerialField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *) 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_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTransferSerialField_allocate(VALUE self) #else _wrap_CThostFtdcTransferSerialField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTransferSerialField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTransferSerialField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferSerialField"; CThostFtdcTransferSerialField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTransferSerialField *)new CThostFtdcTransferSerialField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTransferSerialField(void *self) { CThostFtdcTransferSerialField *arg1 = (CThostFtdcTransferSerialField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryTransferSerialField; SWIGINTERN VALUE _wrap_CThostFtdcQryTransferSerialField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferSerialField *arg1 = (CThostFtdcQryTransferSerialField *) 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_CThostFtdcQryTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferSerialField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferSerialField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryTransferSerialField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferSerialField *arg1 = (CThostFtdcQryTransferSerialField *) 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_CThostFtdcQryTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferSerialField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferSerialField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTransferSerialField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferSerialField *arg1 = (CThostFtdcQryTransferSerialField *) 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_CThostFtdcQryTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferSerialField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTransferSerialField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferSerialField *arg1 = (CThostFtdcQryTransferSerialField *) 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_CThostFtdcQryTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferSerialField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferSerialField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTransferSerialField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferSerialField *arg1 = (CThostFtdcQryTransferSerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQryTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferSerialField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTransferSerialField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferSerialField *arg1 = (CThostFtdcQryTransferSerialField *) 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_CThostFtdcQryTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferSerialField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferSerialField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTransferSerialField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferSerialField *arg1 = (CThostFtdcQryTransferSerialField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQryTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferSerialField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferSerialField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryTransferSerialField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTransferSerialField *arg1 = (CThostFtdcQryTransferSerialField *) 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_CThostFtdcQryTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferSerialField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTransferSerialField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryTransferSerialField_allocate(VALUE self) #else _wrap_CThostFtdcQryTransferSerialField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryTransferSerialField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryTransferSerialField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTransferSerialField"; CThostFtdcQryTransferSerialField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryTransferSerialField *)new CThostFtdcQryTransferSerialField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryTransferSerialField(void *self) { CThostFtdcQryTransferSerialField *arg1 = (CThostFtdcQryTransferSerialField *)self; delete arg1; } static swig_class SwigClassCThostFtdcNotifyFutureSignInField; SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; TThostFtdcSerialType 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; TThostFtdcTIDType 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_PinKey_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","PinKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","PinKey", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->PinKey,arg2,129*sizeof(char)); else memset(arg1->PinKey,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_PinKey_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","PinKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->PinKey); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_MacKey_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","MacKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","MacKey", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MacKey,arg2,129*sizeof(char)); else memset(arg1->MacKey,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignInField_MacKey_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *) 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_CThostFtdcNotifyFutureSignInField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignInField *","MacKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignInField * >(argp1); result = (char *) ((arg1)->MacKey); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcNotifyFutureSignInField_allocate(VALUE self) #else _wrap_CThostFtdcNotifyFutureSignInField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcNotifyFutureSignInField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcNotifyFutureSignInField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcNotifyFutureSignInField"; CThostFtdcNotifyFutureSignInField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcNotifyFutureSignInField *)new CThostFtdcNotifyFutureSignInField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcNotifyFutureSignInField(void *self) { CThostFtdcNotifyFutureSignInField *arg1 = (CThostFtdcNotifyFutureSignInField *)self; delete arg1; } static swig_class SwigClassCThostFtdcNotifyFutureSignOutField; SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; TThostFtdcSerialType 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; TThostFtdcTIDType 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifyFutureSignOutField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *) 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_CThostFtdcNotifyFutureSignOutField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyFutureSignOutField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifyFutureSignOutField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcNotifyFutureSignOutField_allocate(VALUE self) #else _wrap_CThostFtdcNotifyFutureSignOutField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcNotifyFutureSignOutField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcNotifyFutureSignOutField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcNotifyFutureSignOutField"; CThostFtdcNotifyFutureSignOutField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcNotifyFutureSignOutField *)new CThostFtdcNotifyFutureSignOutField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcNotifyFutureSignOutField(void *self) { CThostFtdcNotifyFutureSignOutField *arg1 = (CThostFtdcNotifyFutureSignOutField *)self; delete arg1; } static swig_class SwigClassCThostFtdcNotifySyncKeyField; SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; TThostFtdcSerialType 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_Message_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[129] ; 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 129); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","Message", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Message,arg2,129*sizeof(char)); else memset(arg1->Message,0,129*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_Message_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","Message", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->Message); { size_t size = SWIG_strnlen(result, 129); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; TThostFtdcRequestIDType 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; TThostFtdcTIDType 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcNotifySyncKeyField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *) 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_CThostFtdcNotifySyncKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifySyncKeyField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNotifySyncKeyField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcNotifySyncKeyField_allocate(VALUE self) #else _wrap_CThostFtdcNotifySyncKeyField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcNotifySyncKeyField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcNotifySyncKeyField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcNotifySyncKeyField"; CThostFtdcNotifySyncKeyField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcNotifySyncKeyField *)new CThostFtdcNotifySyncKeyField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcNotifySyncKeyField(void *self) { CThostFtdcNotifySyncKeyField *arg1 = (CThostFtdcNotifySyncKeyField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryAccountregisterField; SWIGINTERN VALUE _wrap_CThostFtdcQryAccountregisterField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *) 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_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryAccountregisterField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *) 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_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryAccountregisterField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *) 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_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryAccountregisterField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *) 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_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryAccountregisterField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryAccountregisterField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *) 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_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryAccountregisterField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryAccountregisterField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *) 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_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryAccountregisterField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryAccountregisterField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *) 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_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryAccountregisterField_allocate(VALUE self) #else _wrap_CThostFtdcQryAccountregisterField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryAccountregisterField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryAccountregisterField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryAccountregisterField"; CThostFtdcQryAccountregisterField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryAccountregisterField *)new CThostFtdcQryAccountregisterField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryAccountregisterField(void *self) { CThostFtdcQryAccountregisterField *arg1 = (CThostFtdcQryAccountregisterField *)self; delete arg1; } static swig_class SwigClassCThostFtdcAccountregisterField; SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_TradeDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","TradeDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDay,arg2,9*sizeof(char)); else memset(arg1->TradeDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_TradeDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","TradeDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->TradeDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_OpenOrDestroy_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; TThostFtdcOpenOrDestroyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","OpenOrDestroy", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOpenOrDestroyType","OpenOrDestroy", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOpenOrDestroyType >(val2); if (arg1) (arg1)->OpenOrDestroy = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_OpenOrDestroy_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOpenOrDestroyType 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","OpenOrDestroy", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (TThostFtdcOpenOrDestroyType) ((arg1)->OpenOrDestroy); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_RegDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","RegDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","RegDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->RegDate,arg2,9*sizeof(char)); else memset(arg1->RegDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_RegDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","RegDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->RegDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_OutDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","OutDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","OutDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OutDate,arg2,9*sizeof(char)); else memset(arg1->OutDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_OutDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","OutDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (char *) ((arg1)->OutDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; TThostFtdcTIDType 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcAccountregisterField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcAccountregisterField_allocate(VALUE self) #else _wrap_CThostFtdcAccountregisterField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcAccountregisterField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcAccountregisterField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcAccountregisterField"; CThostFtdcAccountregisterField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcAccountregisterField *)new CThostFtdcAccountregisterField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcAccountregisterField(void *self) { CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *)self; delete arg1; } static swig_class SwigClassCThostFtdcOpenAccountField; SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcSerialType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Gender_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcGenderType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcGenderType","Gender", 2, argv[0] )); } arg2 = static_cast< TThostFtdcGenderType >(val2); if (arg1) (arg1)->Gender = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Gender_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcGenderType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcGenderType) ((arg1)->Gender); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_CountryCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CountryCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CountryCode,arg2,21*sizeof(char)); else memset(arg1->CountryCode,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_CountryCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->CountryCode); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Address_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","Address", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Address,arg2,101*sizeof(char)); else memset(arg1->Address,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Address_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->Address); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_ZipCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","ZipCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ZipCode,arg2,7*sizeof(char)); else memset(arg1->ZipCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_ZipCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->ZipCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Telephone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Telephone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Telephone,arg2,41*sizeof(char)); else memset(arg1->Telephone,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Telephone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->Telephone); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_MobilePhone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MobilePhone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MobilePhone,arg2,21*sizeof(char)); else memset(arg1->MobilePhone,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_MobilePhone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->MobilePhone); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Fax_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Fax", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Fax,arg2,41*sizeof(char)); else memset(arg1->Fax,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Fax_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->Fax); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_EMail_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","EMail", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EMail,arg2,41*sizeof(char)); else memset(arg1->EMail,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_EMail_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->EMail); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_MoneyAccountStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcMoneyAccountStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyAccountStatusType","MoneyAccountStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyAccountStatusType >(val2); if (arg1) (arg1)->MoneyAccountStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_MoneyAccountStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyAccountStatusType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcMoneyAccountStatusType) ((arg1)->MoneyAccountStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_CashExchangeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcCashExchangeCodeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","CashExchangeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCashExchangeCodeType","CashExchangeCode", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCashExchangeCodeType >(val2); if (arg1) (arg1)->CashExchangeCode = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_CashExchangeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCashExchangeCodeType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","CashExchangeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcCashExchangeCodeType) ((arg1)->CashExchangeCode); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; TThostFtdcTIDType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcOpenAccountField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 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_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcOpenAccountField_allocate(VALUE self) #else _wrap_CThostFtdcOpenAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcOpenAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcOpenAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcOpenAccountField"; CThostFtdcOpenAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcOpenAccountField *)new CThostFtdcOpenAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcOpenAccountField(void *self) { CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCancelAccountField; SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcSerialType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Gender_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcGenderType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcGenderType","Gender", 2, argv[0] )); } arg2 = static_cast< TThostFtdcGenderType >(val2); if (arg1) (arg1)->Gender = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Gender_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcGenderType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcGenderType) ((arg1)->Gender); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_CountryCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CountryCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CountryCode,arg2,21*sizeof(char)); else memset(arg1->CountryCode,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_CountryCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->CountryCode); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Address_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","Address", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Address,arg2,101*sizeof(char)); else memset(arg1->Address,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Address_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->Address); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_ZipCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","ZipCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ZipCode,arg2,7*sizeof(char)); else memset(arg1->ZipCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_ZipCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->ZipCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Telephone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Telephone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Telephone,arg2,41*sizeof(char)); else memset(arg1->Telephone,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Telephone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->Telephone); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_MobilePhone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MobilePhone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MobilePhone,arg2,21*sizeof(char)); else memset(arg1->MobilePhone,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_MobilePhone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->MobilePhone); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Fax_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Fax", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Fax,arg2,41*sizeof(char)); else memset(arg1->Fax,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Fax_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->Fax); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_EMail_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","EMail", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EMail,arg2,41*sizeof(char)); else memset(arg1->EMail,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_EMail_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->EMail); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_MoneyAccountStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcMoneyAccountStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyAccountStatusType","MoneyAccountStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyAccountStatusType >(val2); if (arg1) (arg1)->MoneyAccountStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_MoneyAccountStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyAccountStatusType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcMoneyAccountStatusType) ((arg1)->MoneyAccountStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_CashExchangeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcCashExchangeCodeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","CashExchangeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCashExchangeCodeType","CashExchangeCode", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCashExchangeCodeType >(val2); if (arg1) (arg1)->CashExchangeCode = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_CashExchangeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCashExchangeCodeType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","CashExchangeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcCashExchangeCodeType) ((arg1)->CashExchangeCode); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_DeviceID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[3] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 3); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char)); else memset(arg1->DeviceID,0,3*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_DeviceID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","DeviceID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->DeviceID); { size_t size = SWIG_strnlen(result, 3); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankSecuAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankSecuAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char)); else memset(arg1->BankSecuAcc,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankSecuAcc", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->BankSecuAcc); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_OperNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[17] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 17); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char)); else memset(arg1->OperNo,0,17*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_OperNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","OperNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->OperNo); { size_t size = SWIG_strnlen(result, 17); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; TThostFtdcTIDType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcCancelAccountField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *) 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_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCancelAccountField_allocate(VALUE self) #else _wrap_CThostFtdcCancelAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCancelAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCancelAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCancelAccountField"; CThostFtdcCancelAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCancelAccountField *)new CThostFtdcCancelAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCancelAccountField(void *self) { CThostFtdcCancelAccountField *arg1 = (CThostFtdcCancelAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcChangeAccountField; SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_TradeCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char)); else memset(arg1->TradeCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_TradeCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","TradeCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->TradeCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char)); else memset(arg1->BankID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->BankID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[5] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 5); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char)); else memset(arg1->BankBranchID,0,5*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->BankBranchID); { size_t size = SWIG_strnlen(result, 5); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char)); else memset(arg1->BrokerBranchID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BrokerBranchID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->BrokerBranchID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_TradeDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char)); else memset(arg1->TradeDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_TradeDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","TradeDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->TradeDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_TradeTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char)); else memset(arg1->TradeTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_TradeTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","TradeTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->TradeTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char)); else memset(arg1->BankSerial,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->BankSerial); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_PlateSerial_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcSerialType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSerialType >(val2); if (arg1) (arg1)->PlateSerial = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_PlateSerial_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSerialType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","PlateSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcSerialType) ((arg1)->PlateSerial); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_LastFragment_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcLastFragmentType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLastFragmentType >(val2); if (arg1) (arg1)->LastFragment = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_LastFragment_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLastFragmentType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","LastFragment", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_CustomerName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char)); else memset(arg1->CustomerName,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_CustomerName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","CustomerName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->CustomerName); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_IdCardType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcIdCardTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIdCardTypeType >(val2); if (arg1) (arg1)->IdCardType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_IdCardType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIdCardTypeType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","IdCardType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[51] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 51); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char)); else memset(arg1->IdentifiedCardNo,0,51*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","IdentifiedCardNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->IdentifiedCardNo); { size_t size = SWIG_strnlen(result, 51); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Gender_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcGenderType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcGenderType","Gender", 2, argv[0] )); } arg2 = static_cast< TThostFtdcGenderType >(val2); if (arg1) (arg1)->Gender = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Gender_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcGenderType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Gender", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcGenderType) ((arg1)->Gender); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_CountryCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CountryCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CountryCode,arg2,21*sizeof(char)); else memset(arg1->CountryCode,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_CountryCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","CountryCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->CountryCode); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_CustType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcCustTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcCustTypeType >(val2); if (arg1) (arg1)->CustType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_CustType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcCustTypeType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","CustType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcCustTypeType) ((arg1)->CustType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Address_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[101] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 101); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","Address", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Address,arg2,101*sizeof(char)); else memset(arg1->Address,0,101*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Address_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Address", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->Address); { size_t size = SWIG_strnlen(result, 101); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_ZipCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[7] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 7); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","ZipCode", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ZipCode,arg2,7*sizeof(char)); else memset(arg1->ZipCode,0,7*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_ZipCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","ZipCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->ZipCode); { size_t size = SWIG_strnlen(result, 7); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Telephone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Telephone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Telephone,arg2,41*sizeof(char)); else memset(arg1->Telephone,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Telephone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Telephone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->Telephone); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_MobilePhone_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MobilePhone", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MobilePhone,arg2,21*sizeof(char)); else memset(arg1->MobilePhone,0,21*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_MobilePhone_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","MobilePhone", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->MobilePhone); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Fax_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Fax", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Fax,arg2,41*sizeof(char)); else memset(arg1->Fax,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Fax_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Fax", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->Fax); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_EMail_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","EMail", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EMail,arg2,41*sizeof(char)); else memset(arg1->EMail,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_EMail_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","EMail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->EMail); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_MoneyAccountStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcMoneyAccountStatusType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyAccountStatusType","MoneyAccountStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyAccountStatusType >(val2); if (arg1) (arg1)->MoneyAccountStatus = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_MoneyAccountStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyAccountStatusType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","MoneyAccountStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcMoneyAccountStatusType) ((arg1)->MoneyAccountStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char)); else memset(arg1->BankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->BankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char)); else memset(arg1->BankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->BankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_NewBankAccount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","NewBankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","NewBankAccount", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->NewBankAccount,arg2,41*sizeof(char)); else memset(arg1->NewBankAccount,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_NewBankAccount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","NewBankAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->NewBankAccount); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_NewBankPassWord_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","NewBankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","NewBankPassWord", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->NewBankPassWord,arg2,41*sizeof(char)); else memset(arg1->NewBankPassWord,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_NewBankPassWord_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","NewBankPassWord", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->NewBankPassWord); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankAccType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcBankAccTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBankAccTypeType >(val2); if (arg1) (arg1)->BankAccType = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankAccType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBankAccTypeType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankAccType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcYesNoIndicatorType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2); if (arg1) (arg1)->VerifyCertNoFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcYesNoIndicatorType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","VerifyCertNoFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[33] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 33); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char)); else memset(arg1->BrokerIDByBank,0,33*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BrokerIDByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->BrokerIDByBank); { size_t size = SWIG_strnlen(result, 33); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->BankPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","BankPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcPwdFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPwdFlagType >(val2); if (arg1) (arg1)->SecuPwdFlag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPwdFlagType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","SecuPwdFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_TID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; TThostFtdcTIDType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcTIDType >(val2); if (arg1) (arg1)->TID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_TID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcTIDType 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","TID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcTIDType) ((arg1)->TID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Digest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[36] ; 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 36); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char)); else memset(arg1->Digest,0,36*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_Digest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","Digest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->Digest); { size_t size = SWIG_strnlen(result, 36); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_ErrorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_ErrorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","ErrorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (TThostFtdcErrorIDType) ((arg1)->ErrorID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcChangeAccountField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *) 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_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","ErrorMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp1); result = (char *) ((arg1)->ErrorMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcChangeAccountField_allocate(VALUE self) #else _wrap_CThostFtdcChangeAccountField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcChangeAccountField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcChangeAccountField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcChangeAccountField"; CThostFtdcChangeAccountField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcChangeAccountField *)new CThostFtdcChangeAccountField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcChangeAccountField(void *self) { CThostFtdcChangeAccountField *arg1 = (CThostFtdcChangeAccountField *)self; delete arg1; } static swig_class SwigClassCThostFtdcSecAgentACIDMapField; SWIGINTERN VALUE _wrap_CThostFtdcSecAgentACIDMapField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcSecAgentACIDMapField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSecAgentACIDMapField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSecAgentACIDMapField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSecAgentACIDMapField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSecAgentACIDMapField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSecAgentACIDMapField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSecAgentACIDMapField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSecAgentACIDMapField_BrokerSecAgentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","BrokerSecAgentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BrokerSecAgentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BrokerSecAgentID,arg2,13*sizeof(char)); else memset(arg1->BrokerSecAgentID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcSecAgentACIDMapField_BrokerSecAgentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","BrokerSecAgentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1); result = (char *) ((arg1)->BrokerSecAgentID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcSecAgentACIDMapField_allocate(VALUE self) #else _wrap_CThostFtdcSecAgentACIDMapField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcSecAgentACIDMapField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcSecAgentACIDMapField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSecAgentACIDMapField"; CThostFtdcSecAgentACIDMapField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSecAgentACIDMapField *)new CThostFtdcSecAgentACIDMapField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcSecAgentACIDMapField(void *self) { CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQrySecAgentACIDMapField; SWIGINTERN VALUE _wrap_CThostFtdcQrySecAgentACIDMapField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySecAgentACIDMapField *arg1 = (CThostFtdcQrySecAgentACIDMapField *) 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_CThostFtdcQrySecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySecAgentACIDMapField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySecAgentACIDMapField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQrySecAgentACIDMapField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySecAgentACIDMapField *arg1 = (CThostFtdcQrySecAgentACIDMapField *) 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_CThostFtdcQrySecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySecAgentACIDMapField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySecAgentACIDMapField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySecAgentACIDMapField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySecAgentACIDMapField *arg1 = (CThostFtdcQrySecAgentACIDMapField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQrySecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySecAgentACIDMapField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySecAgentACIDMapField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySecAgentACIDMapField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySecAgentACIDMapField *arg1 = (CThostFtdcQrySecAgentACIDMapField *) 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_CThostFtdcQrySecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySecAgentACIDMapField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySecAgentACIDMapField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySecAgentACIDMapField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySecAgentACIDMapField *arg1 = (CThostFtdcQrySecAgentACIDMapField *) 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_CThostFtdcQrySecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySecAgentACIDMapField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySecAgentACIDMapField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySecAgentACIDMapField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySecAgentACIDMapField *arg1 = (CThostFtdcQrySecAgentACIDMapField *) 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_CThostFtdcQrySecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySecAgentACIDMapField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySecAgentACIDMapField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySecAgentACIDMapField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySecAgentACIDMapField *arg1 = (CThostFtdcQrySecAgentACIDMapField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcQrySecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySecAgentACIDMapField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySecAgentACIDMapField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQrySecAgentACIDMapField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySecAgentACIDMapField *arg1 = (CThostFtdcQrySecAgentACIDMapField *) 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_CThostFtdcQrySecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySecAgentACIDMapField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySecAgentACIDMapField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQrySecAgentACIDMapField_allocate(VALUE self) #else _wrap_CThostFtdcQrySecAgentACIDMapField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQrySecAgentACIDMapField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQrySecAgentACIDMapField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySecAgentACIDMapField"; CThostFtdcQrySecAgentACIDMapField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQrySecAgentACIDMapField *)new CThostFtdcQrySecAgentACIDMapField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQrySecAgentACIDMapField(void *self) { CThostFtdcQrySecAgentACIDMapField *arg1 = (CThostFtdcQrySecAgentACIDMapField *)self; delete arg1; } static swig_class SwigClassCThostFtdcUserRightsAssignField; SWIGINTERN VALUE _wrap_CThostFtdcUserRightsAssignField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 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_CThostFtdcUserRightsAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightsAssignField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 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_CThostFtdcUserRightsAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightsAssignField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcUserRightsAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightsAssignField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 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_CThostFtdcUserRightsAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightsAssignField_DRIdentityID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 0 ; TThostFtdcDRIdentityIDType 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_CThostFtdcUserRightsAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","DRIdentityID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDRIdentityIDType","DRIdentityID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDRIdentityIDType >(val2); if (arg1) (arg1)->DRIdentityID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcUserRightsAssignField_DRIdentityID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDRIdentityIDType 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_CThostFtdcUserRightsAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","DRIdentityID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(argp1); result = (TThostFtdcDRIdentityIDType) ((arg1)->DRIdentityID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcUserRightsAssignField_allocate(VALUE self) #else _wrap_CThostFtdcUserRightsAssignField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcUserRightsAssignField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcUserRightsAssignField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcUserRightsAssignField"; CThostFtdcUserRightsAssignField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcUserRightsAssignField *)new CThostFtdcUserRightsAssignField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcUserRightsAssignField(void *self) { CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *)self; delete arg1; } static swig_class SwigClassCThostFtdcBrokerUserRightAssignField; SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserRightAssignField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserRightAssignField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserRightAssignField_DRIdentityID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 0 ; TThostFtdcDRIdentityIDType 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","DRIdentityID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDRIdentityIDType","DRIdentityID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDRIdentityIDType >(val2); if (arg1) (arg1)->DRIdentityID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserRightAssignField_DRIdentityID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDRIdentityIDType 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","DRIdentityID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(argp1); result = (TThostFtdcDRIdentityIDType) ((arg1)->DRIdentityID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserRightAssignField_Tradeable_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","Tradeable", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","Tradeable", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->Tradeable = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserRightAssignField_Tradeable_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","Tradeable", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->Tradeable); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcBrokerUserRightAssignField_allocate(VALUE self) #else _wrap_CThostFtdcBrokerUserRightAssignField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcBrokerUserRightAssignField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerUserRightAssignField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerUserRightAssignField"; CThostFtdcBrokerUserRightAssignField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerUserRightAssignField *)new CThostFtdcBrokerUserRightAssignField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcBrokerUserRightAssignField(void *self) { CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *)self; delete arg1; } static swig_class SwigClassCThostFtdcDRTransferField; SWIGINTERN VALUE _wrap_CThostFtdcDRTransferField_OrigDRIdentityID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDRTransferField *arg1 = (CThostFtdcDRTransferField *) 0 ; TThostFtdcDRIdentityIDType 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_CThostFtdcDRTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDRTransferField *","OrigDRIdentityID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDRTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDRIdentityIDType","OrigDRIdentityID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDRIdentityIDType >(val2); if (arg1) (arg1)->OrigDRIdentityID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDRTransferField_OrigDRIdentityID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDRTransferField *arg1 = (CThostFtdcDRTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDRIdentityIDType 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_CThostFtdcDRTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDRTransferField *","OrigDRIdentityID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDRTransferField * >(argp1); result = (TThostFtdcDRIdentityIDType) ((arg1)->OrigDRIdentityID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDRTransferField_DestDRIdentityID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDRTransferField *arg1 = (CThostFtdcDRTransferField *) 0 ; TThostFtdcDRIdentityIDType 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_CThostFtdcDRTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDRTransferField *","DestDRIdentityID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDRTransferField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDRIdentityIDType","DestDRIdentityID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDRIdentityIDType >(val2); if (arg1) (arg1)->DestDRIdentityID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDRTransferField_DestDRIdentityID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDRTransferField *arg1 = (CThostFtdcDRTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDRIdentityIDType 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_CThostFtdcDRTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDRTransferField *","DestDRIdentityID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDRTransferField * >(argp1); result = (TThostFtdcDRIdentityIDType) ((arg1)->DestDRIdentityID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDRTransferField_OrigBrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDRTransferField *arg1 = (CThostFtdcDRTransferField *) 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_CThostFtdcDRTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDRTransferField *","OrigBrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDRTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","OrigBrokerID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->OrigBrokerID,arg2,11*sizeof(char)); else memset(arg1->OrigBrokerID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDRTransferField_OrigBrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDRTransferField *arg1 = (CThostFtdcDRTransferField *) 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_CThostFtdcDRTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDRTransferField *","OrigBrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDRTransferField * >(argp1); result = (char *) ((arg1)->OrigBrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDRTransferField_DestBrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcDRTransferField *arg1 = (CThostFtdcDRTransferField *) 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_CThostFtdcDRTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDRTransferField *","DestBrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDRTransferField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","DestBrokerID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->DestBrokerID,arg2,11*sizeof(char)); else memset(arg1->DestBrokerID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcDRTransferField_DestBrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcDRTransferField *arg1 = (CThostFtdcDRTransferField *) 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_CThostFtdcDRTransferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDRTransferField *","DestBrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcDRTransferField * >(argp1); result = (char *) ((arg1)->DestBrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcDRTransferField_allocate(VALUE self) #else _wrap_CThostFtdcDRTransferField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcDRTransferField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcDRTransferField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcDRTransferField"; CThostFtdcDRTransferField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcDRTransferField *)new CThostFtdcDRTransferField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcDRTransferField(void *self) { CThostFtdcDRTransferField *arg1 = (CThostFtdcDRTransferField *)self; delete arg1; } static swig_class SwigClassCThostFtdcFensUserInfoField; SWIGINTERN VALUE _wrap_CThostFtdcFensUserInfoField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFensUserInfoField *arg1 = (CThostFtdcFensUserInfoField *) 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_CThostFtdcFensUserInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFensUserInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFensUserInfoField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcFensUserInfoField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFensUserInfoField *arg1 = (CThostFtdcFensUserInfoField *) 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_CThostFtdcFensUserInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFensUserInfoField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFensUserInfoField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFensUserInfoField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFensUserInfoField *arg1 = (CThostFtdcFensUserInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcFensUserInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFensUserInfoField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFensUserInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFensUserInfoField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFensUserInfoField *arg1 = (CThostFtdcFensUserInfoField *) 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_CThostFtdcFensUserInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFensUserInfoField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFensUserInfoField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFensUserInfoField_LoginMode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcFensUserInfoField *arg1 = (CThostFtdcFensUserInfoField *) 0 ; TThostFtdcLoginModeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcFensUserInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFensUserInfoField *","LoginMode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFensUserInfoField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLoginModeType","LoginMode", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLoginModeType >(val2); if (arg1) (arg1)->LoginMode = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcFensUserInfoField_LoginMode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcFensUserInfoField *arg1 = (CThostFtdcFensUserInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLoginModeType 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_CThostFtdcFensUserInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFensUserInfoField *","LoginMode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcFensUserInfoField * >(argp1); result = (TThostFtdcLoginModeType) ((arg1)->LoginMode); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcFensUserInfoField_allocate(VALUE self) #else _wrap_CThostFtdcFensUserInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcFensUserInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcFensUserInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcFensUserInfoField"; CThostFtdcFensUserInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcFensUserInfoField *)new CThostFtdcFensUserInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcFensUserInfoField(void *self) { CThostFtdcFensUserInfoField *arg1 = (CThostFtdcFensUserInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcCurrTransferIdentityField; SWIGINTERN VALUE _wrap_CThostFtdcCurrTransferIdentityField_IdentityID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCurrTransferIdentityField *arg1 = (CThostFtdcCurrTransferIdentityField *) 0 ; TThostFtdcDRIdentityIDType 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_CThostFtdcCurrTransferIdentityField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrTransferIdentityField *","IdentityID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCurrTransferIdentityField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDRIdentityIDType","IdentityID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDRIdentityIDType >(val2); if (arg1) (arg1)->IdentityID = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcCurrTransferIdentityField_IdentityID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCurrTransferIdentityField *arg1 = (CThostFtdcCurrTransferIdentityField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDRIdentityIDType 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_CThostFtdcCurrTransferIdentityField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrTransferIdentityField *","IdentityID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCurrTransferIdentityField * >(argp1); result = (TThostFtdcDRIdentityIDType) ((arg1)->IdentityID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcCurrTransferIdentityField_allocate(VALUE self) #else _wrap_CThostFtdcCurrTransferIdentityField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcCurrTransferIdentityField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcCurrTransferIdentityField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCurrTransferIdentityField"; CThostFtdcCurrTransferIdentityField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCurrTransferIdentityField *)new CThostFtdcCurrTransferIdentityField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcCurrTransferIdentityField(void *self) { CThostFtdcCurrTransferIdentityField *arg1 = (CThostFtdcCurrTransferIdentityField *)self; delete arg1; } static swig_class SwigClassCThostFtdcLoginForbiddenUserField; SWIGINTERN VALUE _wrap_CThostFtdcLoginForbiddenUserField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginForbiddenUserField *arg1 = (CThostFtdcLoginForbiddenUserField *) 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_CThostFtdcLoginForbiddenUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginForbiddenUserField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginForbiddenUserField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcLoginForbiddenUserField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginForbiddenUserField *arg1 = (CThostFtdcLoginForbiddenUserField *) 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_CThostFtdcLoginForbiddenUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginForbiddenUserField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginForbiddenUserField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginForbiddenUserField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginForbiddenUserField *arg1 = (CThostFtdcLoginForbiddenUserField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcLoginForbiddenUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginForbiddenUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginForbiddenUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcLoginForbiddenUserField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcLoginForbiddenUserField *arg1 = (CThostFtdcLoginForbiddenUserField *) 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_CThostFtdcLoginForbiddenUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoginForbiddenUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcLoginForbiddenUserField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcLoginForbiddenUserField_allocate(VALUE self) #else _wrap_CThostFtdcLoginForbiddenUserField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcLoginForbiddenUserField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcLoginForbiddenUserField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcLoginForbiddenUserField"; CThostFtdcLoginForbiddenUserField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcLoginForbiddenUserField *)new CThostFtdcLoginForbiddenUserField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcLoginForbiddenUserField(void *self) { CThostFtdcLoginForbiddenUserField *arg1 = (CThostFtdcLoginForbiddenUserField *)self; delete arg1; } static swig_class SwigClassCThostFtdcQryLoginForbiddenUserField; SWIGINTERN VALUE _wrap_CThostFtdcQryLoginForbiddenUserField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryLoginForbiddenUserField *arg1 = (CThostFtdcQryLoginForbiddenUserField *) 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_CThostFtdcQryLoginForbiddenUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryLoginForbiddenUserField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryLoginForbiddenUserField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcQryLoginForbiddenUserField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryLoginForbiddenUserField *arg1 = (CThostFtdcQryLoginForbiddenUserField *) 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_CThostFtdcQryLoginForbiddenUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryLoginForbiddenUserField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryLoginForbiddenUserField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryLoginForbiddenUserField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryLoginForbiddenUserField *arg1 = (CThostFtdcQryLoginForbiddenUserField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcQryLoginForbiddenUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryLoginForbiddenUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryLoginForbiddenUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcQryLoginForbiddenUserField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryLoginForbiddenUserField *arg1 = (CThostFtdcQryLoginForbiddenUserField *) 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_CThostFtdcQryLoginForbiddenUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryLoginForbiddenUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryLoginForbiddenUserField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcQryLoginForbiddenUserField_allocate(VALUE self) #else _wrap_CThostFtdcQryLoginForbiddenUserField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcQryLoginForbiddenUserField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcQryLoginForbiddenUserField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryLoginForbiddenUserField"; CThostFtdcQryLoginForbiddenUserField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryLoginForbiddenUserField *)new CThostFtdcQryLoginForbiddenUserField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcQryLoginForbiddenUserField(void *self) { CThostFtdcQryLoginForbiddenUserField *arg1 = (CThostFtdcQryLoginForbiddenUserField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMulticastGroupInfoField; SWIGINTERN VALUE _wrap_CThostFtdcMulticastGroupInfoField_GroupIP_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcMulticastGroupInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","GroupIP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","GroupIP", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->GroupIP,arg2,16*sizeof(char)); else memset(arg1->GroupIP,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMulticastGroupInfoField_GroupIP_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 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_CThostFtdcMulticastGroupInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","GroupIP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1); result = (char *) ((arg1)->GroupIP); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMulticastGroupInfoField_GroupPort_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 0 ; TThostFtdcIPPortType 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_CThostFtdcMulticastGroupInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","GroupPort", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIPPortType","GroupPort", 2, argv[0] )); } arg2 = static_cast< TThostFtdcIPPortType >(val2); if (arg1) (arg1)->GroupPort = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMulticastGroupInfoField_GroupPort_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcIPPortType 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_CThostFtdcMulticastGroupInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","GroupPort", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1); result = (TThostFtdcIPPortType) ((arg1)->GroupPort); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMulticastGroupInfoField_SourceIP_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcMulticastGroupInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","SourceIP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","SourceIP", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SourceIP,arg2,16*sizeof(char)); else memset(arg1->SourceIP,0,16*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMulticastGroupInfoField_SourceIP_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *) 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_CThostFtdcMulticastGroupInfoField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMulticastGroupInfoField *","SourceIP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMulticastGroupInfoField * >(argp1); result = (char *) ((arg1)->SourceIP); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMulticastGroupInfoField_allocate(VALUE self) #else _wrap_CThostFtdcMulticastGroupInfoField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMulticastGroupInfoField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMulticastGroupInfoField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMulticastGroupInfoField"; CThostFtdcMulticastGroupInfoField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMulticastGroupInfoField *)new CThostFtdcMulticastGroupInfoField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMulticastGroupInfoField(void *self) { CThostFtdcMulticastGroupInfoField *arg1 = (CThostFtdcMulticastGroupInfoField *)self; delete arg1; } static swig_class SwigClassCThostFtdcTradingAccountReserveField; SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountReserveField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(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; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountReserveField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(argp1); result = (char *) ((arg1)->BrokerID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountReserveField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountReserveField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountReserveField_Reserve_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcTradingAccountReserveField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","Reserve", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Reserve", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Reserve = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountReserveField_Reserve_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcTradingAccountReserveField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","Reserve", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Reserve); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountReserveField_CurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcTradingAccountReserveField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char)); else memset(arg1->CurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTradingAccountReserveField_CurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","CurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(argp1); result = (char *) ((arg1)->CurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTradingAccountReserveField_allocate(VALUE self) #else _wrap_CThostFtdcTradingAccountReserveField_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTradingAccountReserveField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTradingAccountReserveField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingAccountReserveField"; CThostFtdcTradingAccountReserveField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTradingAccountReserveField *)new CThostFtdcTradingAccountReserveField(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTradingAccountReserveField(void *self) { CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *)self; delete arg1; } static swig_class SwigClassCThostFtdcMdSpi; SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnFrontConnected(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnFrontConnected", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnFrontConnected(); } else { (arg1)->OnFrontConnected(); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnFrontDisconnected(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnFrontDisconnected", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OnFrontDisconnected", 2, argv[0] )); } arg2 = static_cast< int >(val2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnFrontDisconnected(arg2); } else { (arg1)->OnFrontDisconnected(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnHeartBeatWarning(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnHeartBeatWarning", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OnHeartBeatWarning", 2, argv[0] )); } arg2 = static_cast< int >(val2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnHeartBeatWarning(arg2); } else { (arg1)->OnHeartBeatWarning(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnRspUserLogin(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; CThostFtdcRspUserLoginField *arg2 = (CThostFtdcRspUserLoginField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspUserLogin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","OnRspUserLogin", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUserLogin", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUserLogin", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUserLogin", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnRspUserLogin(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspUserLogin(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnRspUserLogout(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; CThostFtdcUserLogoutField *arg2 = (CThostFtdcUserLogoutField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspUserLogout", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcUserLogoutField *","OnRspUserLogout", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcUserLogoutField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUserLogout", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUserLogout", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUserLogout", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnRspUserLogout(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspUserLogout(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnRspError(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; CThostFtdcRspInfoField *arg2 = (CThostFtdcRspInfoField *) 0 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspError", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspError", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspInfoField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","OnRspError", 3, argv[1] )); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","OnRspError", 4, argv[2] )); } arg4 = static_cast< bool >(val4); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnRspError(arg2,arg3,arg4); } else { (arg1)->OnRspError(arg2,arg3,arg4); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnRspSubMarketData(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; CThostFtdcSpecificInstrumentField *arg2 = (CThostFtdcSpecificInstrumentField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspSubMarketData", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSpecificInstrumentField *","OnRspSubMarketData", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcSpecificInstrumentField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspSubMarketData", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspSubMarketData", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspSubMarketData", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnRspSubMarketData(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspSubMarketData(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnRspUnSubMarketData(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; CThostFtdcSpecificInstrumentField *arg2 = (CThostFtdcSpecificInstrumentField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspUnSubMarketData", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSpecificInstrumentField *","OnRspUnSubMarketData", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcSpecificInstrumentField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUnSubMarketData", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUnSubMarketData", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUnSubMarketData", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnRspUnSubMarketData(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspUnSubMarketData(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnRspSubForQuoteRsp(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; CThostFtdcSpecificInstrumentField *arg2 = (CThostFtdcSpecificInstrumentField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspSubForQuoteRsp", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSpecificInstrumentField *","OnRspSubForQuoteRsp", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcSpecificInstrumentField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspSubForQuoteRsp", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspSubForQuoteRsp", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspSubForQuoteRsp", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnRspSubForQuoteRsp(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspSubForQuoteRsp(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnRspUnSubForQuoteRsp(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; CThostFtdcSpecificInstrumentField *arg2 = (CThostFtdcSpecificInstrumentField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspUnSubForQuoteRsp", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSpecificInstrumentField *","OnRspUnSubForQuoteRsp", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcSpecificInstrumentField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUnSubForQuoteRsp", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUnSubForQuoteRsp", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUnSubForQuoteRsp", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnRspUnSubForQuoteRsp(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspUnSubForQuoteRsp(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnRtnDepthMarketData(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; CThostFtdcDepthMarketDataField *arg2 = (CThostFtdcDepthMarketDataField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRtnDepthMarketData", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","OnRtnDepthMarketData", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnRtnDepthMarketData(arg2); } else { (arg1)->OnRtnDepthMarketData(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdSpi_OnRtnForQuoteRsp(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; CThostFtdcForQuoteRspField *arg2 = (CThostFtdcForQuoteRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRtnForQuoteRsp", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","OnRtnForQuoteRsp", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcMdSpi::OnRtnForQuoteRsp(arg2); } else { (arg1)->OnRtnForQuoteRsp(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcMdSpi_allocate(VALUE self) #else _wrap_CThostFtdcMdSpi_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcMdSpi); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcMdSpi(int argc, VALUE *argv, VALUE self) { VALUE arg1 = (VALUE) 0 ; const char *classname SWIGUNUSED = "Ctp::CThostFtdcMdSpi"; CThostFtdcMdSpi *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } arg1 = self; if ( strcmp(rb_obj_classname(self), classname) != 0 ) { /* subclassed */ result = (CThostFtdcMdSpi *)new SwigDirector_CThostFtdcMdSpi(arg1); } else { result = (CThostFtdcMdSpi *)new CThostFtdcMdSpi(); } DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcMdSpi(void *self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *)self; delete arg1; } SWIGINTERN VALUE _wrap_disown_CThostFtdcMdSpi(int argc, VALUE *argv, VALUE self) { CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","disown_CThostFtdcMdSpi", 1, argv[0] )); } arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1); { Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); if (director) director->swig_disown(); } return Qnil; fail: return Qnil; } static swig_class SwigClassCThostFtdcMdApi; SWIGINTERN VALUE _wrap_CThostFtdcMdApi_CreateFtdcMdApi__SWIG_0(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; bool arg2 ; bool arg3 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; CThostFtdcMdApi *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CThostFtdcMdApi::CreateFtdcMdApi", 1, argv[0] )); } arg1 = reinterpret_cast< char * >(buf1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","CThostFtdcMdApi::CreateFtdcMdApi", 2, argv[1] )); } arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","CThostFtdcMdApi::CreateFtdcMdApi", 3, argv[2] )); } arg3 = static_cast< bool >(val3); result = (CThostFtdcMdApi *)CThostFtdcMdApi::CreateFtdcMdApi((char const *)arg1,arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CThostFtdcMdApi, 0 | 0 ); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_CreateFtdcMdApi__SWIG_1(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; bool arg2 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; bool val2 ; int ecode2 = 0 ; CThostFtdcMdApi *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CThostFtdcMdApi::CreateFtdcMdApi", 1, argv[0] )); } arg1 = reinterpret_cast< char * >(buf1); ecode2 = SWIG_AsVal_bool(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","CThostFtdcMdApi::CreateFtdcMdApi", 2, argv[1] )); } arg2 = static_cast< bool >(val2); result = (CThostFtdcMdApi *)CThostFtdcMdApi::CreateFtdcMdApi((char const *)arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CThostFtdcMdApi, 0 | 0 ); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_CreateFtdcMdApi__SWIG_2(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; CThostFtdcMdApi *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CThostFtdcMdApi::CreateFtdcMdApi", 1, argv[0] )); } arg1 = reinterpret_cast< char * >(buf1); result = (CThostFtdcMdApi *)CThostFtdcMdApi::CreateFtdcMdApi((char const *)arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CThostFtdcMdApi, 0 | 0 ); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_CreateFtdcMdApi__SWIG_3(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMdApi *)CThostFtdcMdApi::CreateFtdcMdApi(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CThostFtdcMdApi, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_CreateFtdcMdApi(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs; if (argc > 3) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_CThostFtdcMdApi_CreateFtdcMdApi__SWIG_3(nargs, args, self); } if (argc == 1) { int _v; int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CThostFtdcMdApi_CreateFtdcMdApi__SWIG_2(nargs, args, self); } } if (argc == 2) { int _v; int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CThostFtdcMdApi_CreateFtdcMdApi__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CThostFtdcMdApi_CreateFtdcMdApi__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 3, "CThostFtdcMdApi.CreateFtdcMdApi", " CThostFtdcMdApi CThostFtdcMdApi.CreateFtdcMdApi(char const *pszFlowPath, bool const bIsUsingUdp, bool const bIsMulticast)\n" " CThostFtdcMdApi CThostFtdcMdApi.CreateFtdcMdApi(char const *pszFlowPath, bool const bIsUsingUdp)\n" " CThostFtdcMdApi CThostFtdcMdApi.CreateFtdcMdApi(char const *pszFlowPath)\n" " CThostFtdcMdApi * CThostFtdcMdApi.CreateFtdcMdApi()\n"); return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_GetApiVersion(int argc, VALUE *argv, VALUE self) { char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (char *)CThostFtdcMdApi::GetApiVersion(); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_Release(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","Release", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); (arg1)->Release(); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_Init(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","Init", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); (arg1)->Init(); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_Join(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","Join", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); result = (int)(arg1)->Join(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_GetTradingDay(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","GetTradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); result = (char *)(arg1)->GetTradingDay(); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_RegisterFront(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","RegisterFront", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","RegisterFront", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); (arg1)->RegisterFront(arg2); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_RegisterNameServer(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","RegisterNameServer", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","RegisterNameServer", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); (arg1)->RegisterNameServer(arg2); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_RegisterFensUserInfo(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; CThostFtdcFensUserInfoField *arg2 = (CThostFtdcFensUserInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","RegisterFensUserInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcFensUserInfoField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcFensUserInfoField *","RegisterFensUserInfo", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcFensUserInfoField * >(argp2); (arg1)->RegisterFensUserInfo(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_RegisterSpi(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; CThostFtdcMdSpi *arg2 = (CThostFtdcMdSpi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","RegisterSpi", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","RegisterSpi", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcMdSpi * >(argp2); (arg1)->RegisterSpi(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_SubscribeMarketData(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; char **arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","SubscribeMarketData", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); { if (rb_obj_is_kind_of(argv[0], rb_cArray)) { int size = RARRAY_LEN(argv[0]); arg3 = (int)size; arg2 = (char **)malloc((size+1)*sizeof(char *)); VALUE *ptr = RARRAY_PTR(argv[0]); int i=0; for (; i < size; i++, ptr++) { arg2[i] = StringValuePtr(*ptr); } arg2[i] = 0; } else { arg2 = 0; arg3 = 0; SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), Ruby_Format_TypeError( "", "char **ARRAY, int SIZE","SubscribeMarketData", 2, argv[0] )); } } result = (int)(arg1)->SubscribeMarketData(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); { /* free((char *)arg2); */ } return vresult; fail: { /* free((char *)arg2); */ } return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_UnSubscribeMarketData(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; char **arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","UnSubscribeMarketData", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); { if (rb_obj_is_kind_of(argv[0], rb_cArray)) { int size = RARRAY_LEN(argv[0]); arg3 = (int)size; arg2 = (char **)malloc((size+1)*sizeof(char *)); VALUE *ptr = RARRAY_PTR(argv[0]); int i=0; for (; i < size; i++, ptr++) { arg2[i] = StringValuePtr(*ptr); } arg2[i] = 0; } else { arg2 = 0; arg3 = 0; SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), Ruby_Format_TypeError( "", "char **ARRAY, int SIZE","UnSubscribeMarketData", 2, argv[0] )); } } result = (int)(arg1)->UnSubscribeMarketData(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); { /* free((char *)arg2); */ } return vresult; fail: { /* free((char *)arg2); */ } return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_SubscribeForQuoteRsp(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; char **arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","SubscribeForQuoteRsp", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); { if (rb_obj_is_kind_of(argv[0], rb_cArray)) { int size = RARRAY_LEN(argv[0]); arg3 = (int)size; arg2 = (char **)malloc((size+1)*sizeof(char *)); VALUE *ptr = RARRAY_PTR(argv[0]); int i=0; for (; i < size; i++, ptr++) { arg2[i] = StringValuePtr(*ptr); } arg2[i] = 0; } else { arg2 = 0; arg3 = 0; SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), Ruby_Format_TypeError( "", "char **ARRAY, int SIZE","SubscribeForQuoteRsp", 2, argv[0] )); } } result = (int)(arg1)->SubscribeForQuoteRsp(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); { /* free((char *)arg2); */ } return vresult; fail: { /* free((char *)arg2); */ } return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_UnSubscribeForQuoteRsp(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; char **arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int result; VALUE vresult = Qnil; 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_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","UnSubscribeForQuoteRsp", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); { if (rb_obj_is_kind_of(argv[0], rb_cArray)) { int size = RARRAY_LEN(argv[0]); arg3 = (int)size; arg2 = (char **)malloc((size+1)*sizeof(char *)); VALUE *ptr = RARRAY_PTR(argv[0]); int i=0; for (; i < size; i++, ptr++) { arg2[i] = StringValuePtr(*ptr); } arg2[i] = 0; } else { arg2 = 0; arg3 = 0; SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), Ruby_Format_TypeError( "", "char **ARRAY, int SIZE","UnSubscribeForQuoteRsp", 2, argv[0] )); } } result = (int)(arg1)->UnSubscribeForQuoteRsp(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); { /* free((char *)arg2); */ } return vresult; fail: { /* free((char *)arg2); */ } return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_ReqUserLogin(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; CThostFtdcReqUserLoginField *arg2 = (CThostFtdcReqUserLoginField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","ReqUserLogin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","ReqUserLogin", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqUserLogin", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqUserLogin(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcMdApi_ReqUserLogout(int argc, VALUE *argv, VALUE self) { CThostFtdcMdApi *arg1 = (CThostFtdcMdApi *) 0 ; CThostFtdcUserLogoutField *arg2 = (CThostFtdcUserLogoutField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdApi *","ReqUserLogout", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMdApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcUserLogoutField *","ReqUserLogout", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcUserLogoutField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqUserLogout", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqUserLogout(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } static swig_class SwigClassCThostFtdcTraderSpi; SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnFrontConnected(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnFrontConnected", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnFrontConnected(); } else { (arg1)->OnFrontConnected(); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnFrontDisconnected(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnFrontDisconnected", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OnFrontDisconnected", 2, argv[0] )); } arg2 = static_cast< int >(val2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnFrontDisconnected(arg2); } else { (arg1)->OnFrontDisconnected(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnHeartBeatWarning(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnHeartBeatWarning", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OnHeartBeatWarning", 2, argv[0] )); } arg2 = static_cast< int >(val2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnHeartBeatWarning(arg2); } else { (arg1)->OnHeartBeatWarning(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspAuthenticate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspAuthenticateField *arg2 = (CThostFtdcRspAuthenticateField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspAuthenticate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","OnRspAuthenticate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspAuthenticate", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspAuthenticate", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspAuthenticate", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspAuthenticate(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspAuthenticate(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspUserLogin(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspUserLoginField *arg2 = (CThostFtdcRspUserLoginField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspUserLogin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","OnRspUserLogin", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUserLogin", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUserLogin", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUserLogin", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspUserLogin(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspUserLogin(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspUserLogout(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcUserLogoutField *arg2 = (CThostFtdcUserLogoutField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspUserLogout", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcUserLogoutField *","OnRspUserLogout", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcUserLogoutField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUserLogout", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUserLogout", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUserLogout", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspUserLogout(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspUserLogout(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspUserPasswordUpdate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcUserPasswordUpdateField *arg2 = (CThostFtdcUserPasswordUpdateField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspUserPasswordUpdate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcUserPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","OnRspUserPasswordUpdate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUserPasswordUpdate", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUserPasswordUpdate", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUserPasswordUpdate", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspUserPasswordUpdate(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspUserPasswordUpdate(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspTradingAccountPasswordUpdate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcTradingAccountPasswordUpdateField *arg2 = (CThostFtdcTradingAccountPasswordUpdateField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspTradingAccountPasswordUpdate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","OnRspTradingAccountPasswordUpdate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspTradingAccountPasswordUpdate", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspTradingAccountPasswordUpdate", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspTradingAccountPasswordUpdate", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspTradingAccountPasswordUpdate(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspTradingAccountPasswordUpdate(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspOrderInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputOrderField *arg2 = (CThostFtdcInputOrderField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspOrderInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","OnRspOrderInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputOrderField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspOrderInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspOrderInsert", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspOrderInsert", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspOrderInsert(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspOrderInsert(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspParkedOrderInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcParkedOrderField *arg2 = (CThostFtdcParkedOrderField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspParkedOrderInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","OnRspParkedOrderInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspParkedOrderInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspParkedOrderInsert", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspParkedOrderInsert", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspParkedOrderInsert(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspParkedOrderInsert(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspParkedOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcParkedOrderActionField *arg2 = (CThostFtdcParkedOrderActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspParkedOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","OnRspParkedOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspParkedOrderAction", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspParkedOrderAction", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspParkedOrderAction", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspParkedOrderAction(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspParkedOrderAction(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputOrderActionField *arg2 = (CThostFtdcInputOrderActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","OnRspOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspOrderAction", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspOrderAction", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspOrderAction", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspOrderAction(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspOrderAction(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQueryMaxOrderVolume(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcQueryMaxOrderVolumeField *arg2 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQueryMaxOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","OnRspQueryMaxOrderVolume", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQueryMaxOrderVolume", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQueryMaxOrderVolume", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQueryMaxOrderVolume", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQueryMaxOrderVolume(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQueryMaxOrderVolume(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspSettlementInfoConfirm(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcSettlementInfoConfirmField *arg2 = (CThostFtdcSettlementInfoConfirmField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspSettlementInfoConfirm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","OnRspSettlementInfoConfirm", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspSettlementInfoConfirm", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspSettlementInfoConfirm", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspSettlementInfoConfirm", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspSettlementInfoConfirm(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspSettlementInfoConfirm(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspRemoveParkedOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRemoveParkedOrderField *arg2 = (CThostFtdcRemoveParkedOrderField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspRemoveParkedOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRemoveParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderField *","OnRspRemoveParkedOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRemoveParkedOrderField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspRemoveParkedOrder", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspRemoveParkedOrder", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspRemoveParkedOrder", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspRemoveParkedOrder(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspRemoveParkedOrder(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspRemoveParkedOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRemoveParkedOrderActionField *arg2 = (CThostFtdcRemoveParkedOrderActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspRemoveParkedOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRemoveParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderActionField *","OnRspRemoveParkedOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRemoveParkedOrderActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspRemoveParkedOrderAction", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspRemoveParkedOrderAction", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspRemoveParkedOrderAction", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspRemoveParkedOrderAction(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspRemoveParkedOrderAction(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspExecOrderInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputExecOrderField *arg2 = (CThostFtdcInputExecOrderField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspExecOrderInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","OnRspExecOrderInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspExecOrderInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspExecOrderInsert", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspExecOrderInsert", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspExecOrderInsert(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspExecOrderInsert(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspExecOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputExecOrderActionField *arg2 = (CThostFtdcInputExecOrderActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspExecOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","OnRspExecOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspExecOrderAction", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspExecOrderAction", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspExecOrderAction", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspExecOrderAction(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspExecOrderAction(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspForQuoteInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputForQuoteField *arg2 = (CThostFtdcInputForQuoteField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspForQuoteInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","OnRspForQuoteInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspForQuoteInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspForQuoteInsert", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspForQuoteInsert", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspForQuoteInsert(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspForQuoteInsert(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQuoteInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputQuoteField *arg2 = (CThostFtdcInputQuoteField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQuoteInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","OnRspQuoteInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQuoteInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQuoteInsert", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQuoteInsert", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQuoteInsert(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQuoteInsert(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQuoteAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputQuoteActionField *arg2 = (CThostFtdcInputQuoteActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQuoteAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","OnRspQuoteAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQuoteAction", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQuoteAction", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQuoteAction", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQuoteAction(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQuoteAction(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspCombActionInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputCombActionField *arg2 = (CThostFtdcInputCombActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspCombActionInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","OnRspCombActionInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspCombActionInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspCombActionInsert", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspCombActionInsert", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspCombActionInsert(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspCombActionInsert(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcOrderField *arg2 = (CThostFtdcOrderField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OnRspQryOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcOrderField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryOrder", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryOrder", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryOrder", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryOrder(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryOrder(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryTrade(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcTradeField *arg2 = (CThostFtdcTradeField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OnRspQryTrade", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTradeField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryTrade", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryTrade", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryTrade", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryTrade(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryTrade(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryInvestorPosition(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInvestorPositionField *arg2 = (CThostFtdcInvestorPositionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryInvestorPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionField *","OnRspQryInvestorPosition", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInvestorPositionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryInvestorPosition", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryInvestorPosition", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryInvestorPosition", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryInvestorPosition(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryInvestorPosition(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryTradingAccount(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcTradingAccountField *arg2 = (CThostFtdcTradingAccountField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryTradingAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountField *","OnRspQryTradingAccount", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTradingAccountField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryTradingAccount", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryTradingAccount", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryTradingAccount", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryTradingAccount(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryTradingAccount(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryInvestor(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInvestorField *arg2 = (CThostFtdcInvestorField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryInvestor", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInvestorField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInvestorField *","OnRspQryInvestor", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInvestorField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryInvestor", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryInvestor", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryInvestor", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryInvestor(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryInvestor(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryTradingCode(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcTradingCodeField *arg2 = (CThostFtdcTradingCodeField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryTradingCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","OnRspQryTradingCode", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryTradingCode", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryTradingCode", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryTradingCode", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryTradingCode(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryTradingCode(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryInstrumentMarginRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInstrumentMarginRateField *arg2 = (CThostFtdcInstrumentMarginRateField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryInstrumentMarginRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInstrumentMarginRateField *","OnRspQryInstrumentMarginRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInstrumentMarginRateField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryInstrumentMarginRate", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryInstrumentMarginRate", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryInstrumentMarginRate", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryInstrumentMarginRate(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryInstrumentMarginRate(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryInstrumentCommissionRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInstrumentCommissionRateField *arg2 = (CThostFtdcInstrumentCommissionRateField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryInstrumentCommissionRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInstrumentCommissionRateField *","OnRspQryInstrumentCommissionRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInstrumentCommissionRateField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryInstrumentCommissionRate", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryInstrumentCommissionRate", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryInstrumentCommissionRate", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryInstrumentCommissionRate(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryInstrumentCommissionRate(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryExchange(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcExchangeField *arg2 = (CThostFtdcExchangeField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryExchange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcExchangeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcExchangeField *","OnRspQryExchange", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcExchangeField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryExchange", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryExchange", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryExchange", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryExchange(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryExchange(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryProduct(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcProductField *arg2 = (CThostFtdcProductField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryProduct", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcProductField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcProductField *","OnRspQryProduct", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcProductField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryProduct", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryProduct", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryProduct", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryProduct(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryProduct(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryInstrument(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInstrumentField *arg2 = (CThostFtdcInstrumentField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryInstrument", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInstrumentField *","OnRspQryInstrument", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInstrumentField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryInstrument", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryInstrument", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryInstrument", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryInstrument(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryInstrument(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryDepthMarketData(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcDepthMarketDataField *arg2 = (CThostFtdcDepthMarketDataField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryDepthMarketData", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","OnRspQryDepthMarketData", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryDepthMarketData", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryDepthMarketData", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryDepthMarketData", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryDepthMarketData(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryDepthMarketData(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQrySettlementInfo(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcSettlementInfoField *arg2 = (CThostFtdcSettlementInfoField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQrySettlementInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoField *","OnRspQrySettlementInfo", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcSettlementInfoField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQrySettlementInfo", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQrySettlementInfo", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQrySettlementInfo", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQrySettlementInfo(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQrySettlementInfo(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryTransferBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcTransferBankField *arg2 = (CThostFtdcTransferBankField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryTransferBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","OnRspQryTransferBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTransferBankField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryTransferBank", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryTransferBank", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryTransferBank", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryTransferBank(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryTransferBank(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryInvestorPositionDetail(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInvestorPositionDetailField *arg2 = (CThostFtdcInvestorPositionDetailField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryInvestorPositionDetail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionDetailField *","OnRspQryInvestorPositionDetail", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInvestorPositionDetailField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryInvestorPositionDetail", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryInvestorPositionDetail", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryInvestorPositionDetail", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryInvestorPositionDetail(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryInvestorPositionDetail(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryNotice(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcNoticeField *arg2 = (CThostFtdcNoticeField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryNotice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","OnRspQryNotice", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcNoticeField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryNotice", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryNotice", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryNotice", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryNotice(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryNotice(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQrySettlementInfoConfirm(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcSettlementInfoConfirmField *arg2 = (CThostFtdcSettlementInfoConfirmField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQrySettlementInfoConfirm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","OnRspQrySettlementInfoConfirm", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQrySettlementInfoConfirm", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQrySettlementInfoConfirm", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQrySettlementInfoConfirm", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQrySettlementInfoConfirm(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQrySettlementInfoConfirm(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryInvestorPositionCombineDetail(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInvestorPositionCombineDetailField *arg2 = (CThostFtdcInvestorPositionCombineDetailField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryInvestorPositionCombineDetail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInvestorPositionCombineDetailField *","OnRspQryInvestorPositionCombineDetail", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInvestorPositionCombineDetailField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryInvestorPositionCombineDetail", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryInvestorPositionCombineDetail", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryInvestorPositionCombineDetail", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryInvestorPositionCombineDetail(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryInvestorPositionCombineDetail(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryCFMMCTradingAccountKey(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcCFMMCTradingAccountKeyField *arg2 = (CThostFtdcCFMMCTradingAccountKeyField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryCFMMCTradingAccountKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","OnRspQryCFMMCTradingAccountKey", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryCFMMCTradingAccountKey", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryCFMMCTradingAccountKey", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryCFMMCTradingAccountKey", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryCFMMCTradingAccountKey(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryCFMMCTradingAccountKey(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryEWarrantOffset(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcEWarrantOffsetField *arg2 = (CThostFtdcEWarrantOffsetField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryEWarrantOffset", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcEWarrantOffsetField *","OnRspQryEWarrantOffset", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcEWarrantOffsetField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryEWarrantOffset", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryEWarrantOffset", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryEWarrantOffset", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryEWarrantOffset(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryEWarrantOffset(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryInvestorProductGroupMargin(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInvestorProductGroupMarginField *arg2 = (CThostFtdcInvestorProductGroupMarginField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryInvestorProductGroupMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","OnRspQryInvestorProductGroupMargin", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryInvestorProductGroupMargin", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryInvestorProductGroupMargin", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryInvestorProductGroupMargin", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryInvestorProductGroupMargin(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryInvestorProductGroupMargin(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryExchangeMarginRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcExchangeMarginRateField *arg2 = (CThostFtdcExchangeMarginRateField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryExchangeMarginRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateField *","OnRspQryExchangeMarginRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcExchangeMarginRateField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryExchangeMarginRate", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryExchangeMarginRate", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryExchangeMarginRate", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryExchangeMarginRate(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryExchangeMarginRate(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryExchangeMarginRateAdjust(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcExchangeMarginRateAdjustField *arg2 = (CThostFtdcExchangeMarginRateAdjustField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryExchangeMarginRateAdjust", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcExchangeMarginRateAdjustField *","OnRspQryExchangeMarginRateAdjust", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcExchangeMarginRateAdjustField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryExchangeMarginRateAdjust", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryExchangeMarginRateAdjust", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryExchangeMarginRateAdjust", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryExchangeMarginRateAdjust(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryExchangeMarginRateAdjust(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryExchangeRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcExchangeRateField *arg2 = (CThostFtdcExchangeRateField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryExchangeRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcExchangeRateField *","OnRspQryExchangeRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcExchangeRateField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryExchangeRate", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryExchangeRate", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryExchangeRate", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryExchangeRate(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryExchangeRate(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQrySecAgentACIDMap(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcSecAgentACIDMapField *arg2 = (CThostFtdcSecAgentACIDMapField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQrySecAgentACIDMap", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","OnRspQrySecAgentACIDMap", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQrySecAgentACIDMap", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQrySecAgentACIDMap", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQrySecAgentACIDMap", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQrySecAgentACIDMap(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQrySecAgentACIDMap(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryProductExchRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcProductExchRateField *arg2 = (CThostFtdcProductExchRateField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryProductExchRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcProductExchRateField *","OnRspQryProductExchRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcProductExchRateField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryProductExchRate", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryProductExchRate", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryProductExchRate", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryProductExchRate(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryProductExchRate(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryOptionInstrTradeCost(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcOptionInstrTradeCostField *arg2 = (CThostFtdcOptionInstrTradeCostField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryOptionInstrTradeCost", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradeCostField *","OnRspQryOptionInstrTradeCost", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcOptionInstrTradeCostField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryOptionInstrTradeCost", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryOptionInstrTradeCost", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryOptionInstrTradeCost", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryOptionInstrTradeCost(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryOptionInstrTradeCost(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryOptionInstrCommRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcOptionInstrCommRateField *arg2 = (CThostFtdcOptionInstrCommRateField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryOptionInstrCommRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","OnRspQryOptionInstrCommRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryOptionInstrCommRate", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryOptionInstrCommRate", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryOptionInstrCommRate", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryOptionInstrCommRate(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryOptionInstrCommRate(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryExecOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcExecOrderField *arg2 = (CThostFtdcExecOrderField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryExecOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","OnRspQryExecOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcExecOrderField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryExecOrder", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryExecOrder", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryExecOrder", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryExecOrder(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryExecOrder(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryForQuote(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcForQuoteField *arg2 = (CThostFtdcForQuoteField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryForQuote", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcForQuoteField *","OnRspQryForQuote", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcForQuoteField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryForQuote", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryForQuote", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryForQuote", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryForQuote(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryForQuote(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryQuote(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcQuoteField *arg2 = (CThostFtdcQuoteField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryQuote", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","OnRspQryQuote", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQuoteField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryQuote", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryQuote", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryQuote", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryQuote(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryQuote(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryCombInstrumentGuard(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcCombInstrumentGuardField *arg2 = (CThostFtdcCombInstrumentGuardField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryCombInstrumentGuard", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","OnRspQryCombInstrumentGuard", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryCombInstrumentGuard", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryCombInstrumentGuard", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryCombInstrumentGuard", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryCombInstrumentGuard(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryCombInstrumentGuard(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryCombAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcCombActionField *arg2 = (CThostFtdcCombActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryCombAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","OnRspQryCombAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcCombActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryCombAction", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryCombAction", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryCombAction", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryCombAction(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryCombAction(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryTransferSerial(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcTransferSerialField *arg2 = (CThostFtdcTransferSerialField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryTransferSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTransferSerialField *","OnRspQryTransferSerial", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTransferSerialField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryTransferSerial", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryTransferSerial", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryTransferSerial", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryTransferSerial(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryTransferSerial(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryAccountregister(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcAccountregisterField *arg2 = (CThostFtdcAccountregisterField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryAccountregister", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","OnRspQryAccountregister", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryAccountregister", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryAccountregister", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryAccountregister", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryAccountregister(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryAccountregister(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspError(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspInfoField *arg2 = (CThostFtdcRspInfoField *) 0 ; int arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspError", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspError", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspInfoField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","OnRspError", 3, argv[1] )); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_bool(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","OnRspError", 4, argv[2] )); } arg4 = static_cast< bool >(val4); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspError(arg2,arg3,arg4); } else { (arg1)->OnRspError(arg2,arg3,arg4); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcOrderField *arg2 = (CThostFtdcOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","OnRtnOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcOrderField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnOrder(arg2); } else { (arg1)->OnRtnOrder(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnTrade(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcTradeField *arg2 = (CThostFtdcTradeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTradeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OnRtnTrade", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTradeField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnTrade(arg2); } else { (arg1)->OnRtnTrade(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnOrderInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputOrderField *arg2 = (CThostFtdcInputOrderField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnOrderInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","OnErrRtnOrderInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputOrderField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnOrderInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnOrderInsert(arg2,arg3); } else { (arg1)->OnErrRtnOrderInsert(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcOrderActionField *arg2 = (CThostFtdcOrderActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcOrderActionField *","OnErrRtnOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcOrderActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnOrderAction", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnOrderAction(arg2,arg3); } else { (arg1)->OnErrRtnOrderAction(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnInstrumentStatus(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInstrumentStatusField *arg2 = (CThostFtdcInstrumentStatusField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnInstrumentStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","OnRtnInstrumentStatus", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnInstrumentStatus(arg2); } else { (arg1)->OnRtnInstrumentStatus(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnTradingNotice(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcTradingNoticeInfoField *arg2 = (CThostFtdcTradingNoticeInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnTradingNotice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTradingNoticeInfoField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","OnRtnTradingNotice", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnTradingNotice(arg2); } else { (arg1)->OnRtnTradingNotice(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnErrorConditionalOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcErrorConditionalOrderField *arg2 = (CThostFtdcErrorConditionalOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnErrorConditionalOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcErrorConditionalOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcErrorConditionalOrderField *","OnRtnErrorConditionalOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcErrorConditionalOrderField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnErrorConditionalOrder(arg2); } else { (arg1)->OnRtnErrorConditionalOrder(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnExecOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcExecOrderField *arg2 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnExecOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","OnRtnExecOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcExecOrderField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnExecOrder(arg2); } else { (arg1)->OnRtnExecOrder(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnExecOrderInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputExecOrderField *arg2 = (CThostFtdcInputExecOrderField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnExecOrderInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","OnErrRtnExecOrderInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnExecOrderInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnExecOrderInsert(arg2,arg3); } else { (arg1)->OnErrRtnExecOrderInsert(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnExecOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcExecOrderActionField *arg2 = (CThostFtdcExecOrderActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnExecOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcExecOrderActionField *","OnErrRtnExecOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcExecOrderActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnExecOrderAction", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnExecOrderAction(arg2,arg3); } else { (arg1)->OnErrRtnExecOrderAction(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnForQuoteInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputForQuoteField *arg2 = (CThostFtdcInputForQuoteField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnForQuoteInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","OnErrRtnForQuoteInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnForQuoteInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnForQuoteInsert(arg2,arg3); } else { (arg1)->OnErrRtnForQuoteInsert(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnQuote(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcQuoteField *arg2 = (CThostFtdcQuoteField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnQuote", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQuoteField *","OnRtnQuote", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQuoteField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnQuote(arg2); } else { (arg1)->OnRtnQuote(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnQuoteInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputQuoteField *arg2 = (CThostFtdcInputQuoteField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnQuoteInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","OnErrRtnQuoteInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnQuoteInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnQuoteInsert(arg2,arg3); } else { (arg1)->OnErrRtnQuoteInsert(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnQuoteAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcQuoteActionField *arg2 = (CThostFtdcQuoteActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnQuoteAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQuoteActionField *","OnErrRtnQuoteAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQuoteActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnQuoteAction", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnQuoteAction(arg2,arg3); } else { (arg1)->OnErrRtnQuoteAction(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnForQuoteRsp(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcForQuoteRspField *arg2 = (CThostFtdcForQuoteRspField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnForQuoteRsp", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcForQuoteRspField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","OnRtnForQuoteRsp", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnForQuoteRsp(arg2); } else { (arg1)->OnRtnForQuoteRsp(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnCFMMCTradingAccountToken(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcCFMMCTradingAccountTokenField *arg2 = (CThostFtdcCFMMCTradingAccountTokenField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnCFMMCTradingAccountToken", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountTokenField *","OnRtnCFMMCTradingAccountToken", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcCFMMCTradingAccountTokenField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnCFMMCTradingAccountToken(arg2); } else { (arg1)->OnRtnCFMMCTradingAccountToken(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnCombAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcCombActionField *arg2 = (CThostFtdcCombActionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnCombAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcCombActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcCombActionField *","OnRtnCombAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcCombActionField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnCombAction(arg2); } else { (arg1)->OnRtnCombAction(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnCombActionInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcInputCombActionField *arg2 = (CThostFtdcInputCombActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnCombActionInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","OnErrRtnCombActionInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnCombActionInsert", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnCombActionInsert(arg2,arg3); } else { (arg1)->OnErrRtnCombActionInsert(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryContractBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcContractBankField *arg2 = (CThostFtdcContractBankField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryContractBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcContractBankField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcContractBankField *","OnRspQryContractBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcContractBankField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryContractBank", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryContractBank", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryContractBank", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryContractBank(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryContractBank(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryParkedOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcParkedOrderField *arg2 = (CThostFtdcParkedOrderField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryParkedOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","OnRspQryParkedOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryParkedOrder", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryParkedOrder", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryParkedOrder", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryParkedOrder(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryParkedOrder(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryParkedOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcParkedOrderActionField *arg2 = (CThostFtdcParkedOrderActionField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryParkedOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","OnRspQryParkedOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryParkedOrderAction", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryParkedOrderAction", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryParkedOrderAction", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryParkedOrderAction(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryParkedOrderAction(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryTradingNotice(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcTradingNoticeField *arg2 = (CThostFtdcTradingNoticeField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryTradingNotice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","OnRspQryTradingNotice", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryTradingNotice", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryTradingNotice", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryTradingNotice", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryTradingNotice(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryTradingNotice(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryBrokerTradingParams(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcBrokerTradingParamsField *arg2 = (CThostFtdcBrokerTradingParamsField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryBrokerTradingParams", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","OnRspQryBrokerTradingParams", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryBrokerTradingParams", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryBrokerTradingParams", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryBrokerTradingParams", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryBrokerTradingParams(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryBrokerTradingParams(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQryBrokerTradingAlgos(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcBrokerTradingAlgosField *arg2 = (CThostFtdcBrokerTradingAlgosField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQryBrokerTradingAlgos", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingAlgosField *","OnRspQryBrokerTradingAlgos", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcBrokerTradingAlgosField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQryBrokerTradingAlgos", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQryBrokerTradingAlgos", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQryBrokerTradingAlgos", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQryBrokerTradingAlgos(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQryBrokerTradingAlgos(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQueryCFMMCTradingAccountToken(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcQueryCFMMCTradingAccountTokenField *arg2 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQueryCFMMCTradingAccountToken", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","OnRspQueryCFMMCTradingAccountToken", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQueryCFMMCTradingAccountToken", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQueryCFMMCTradingAccountToken", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQueryCFMMCTradingAccountToken", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQueryCFMMCTradingAccountToken(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQueryCFMMCTradingAccountToken(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnFromBankToFutureByBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspTransferField *arg2 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnFromBankToFutureByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","OnRtnFromBankToFutureByBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspTransferField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnFromBankToFutureByBank(arg2); } else { (arg1)->OnRtnFromBankToFutureByBank(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnFromFutureToBankByBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspTransferField *arg2 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnFromFutureToBankByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","OnRtnFromFutureToBankByBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspTransferField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnFromFutureToBankByBank(arg2); } else { (arg1)->OnRtnFromFutureToBankByBank(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnRepealFromBankToFutureByBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspRepealField *arg2 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnRepealFromBankToFutureByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","OnRtnRepealFromBankToFutureByBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspRepealField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnRepealFromBankToFutureByBank(arg2); } else { (arg1)->OnRtnRepealFromBankToFutureByBank(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnRepealFromFutureToBankByBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspRepealField *arg2 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnRepealFromFutureToBankByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","OnRtnRepealFromFutureToBankByBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspRepealField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnRepealFromFutureToBankByBank(arg2); } else { (arg1)->OnRtnRepealFromFutureToBankByBank(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnFromBankToFutureByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspTransferField *arg2 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnFromBankToFutureByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","OnRtnFromBankToFutureByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspTransferField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnFromBankToFutureByFuture(arg2); } else { (arg1)->OnRtnFromBankToFutureByFuture(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnFromFutureToBankByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspTransferField *arg2 = (CThostFtdcRspTransferField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnFromFutureToBankByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspTransferField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspTransferField *","OnRtnFromFutureToBankByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspTransferField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnFromFutureToBankByFuture(arg2); } else { (arg1)->OnRtnFromFutureToBankByFuture(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnRepealFromBankToFutureByFutureManual(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspRepealField *arg2 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnRepealFromBankToFutureByFutureManual", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","OnRtnRepealFromBankToFutureByFutureManual", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspRepealField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnRepealFromBankToFutureByFutureManual(arg2); } else { (arg1)->OnRtnRepealFromBankToFutureByFutureManual(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnRepealFromFutureToBankByFutureManual(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspRepealField *arg2 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnRepealFromFutureToBankByFutureManual", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","OnRtnRepealFromFutureToBankByFutureManual", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspRepealField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnRepealFromFutureToBankByFutureManual(arg2); } else { (arg1)->OnRtnRepealFromFutureToBankByFutureManual(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnQueryBankBalanceByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcNotifyQueryAccountField *arg2 = (CThostFtdcNotifyQueryAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnQueryBankBalanceByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcNotifyQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","OnRtnQueryBankBalanceByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnQueryBankBalanceByFuture(arg2); } else { (arg1)->OnRtnQueryBankBalanceByFuture(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnBankToFutureByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcReqTransferField *arg2 = (CThostFtdcReqTransferField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnBankToFutureByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","OnErrRtnBankToFutureByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqTransferField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnBankToFutureByFuture", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnBankToFutureByFuture(arg2,arg3); } else { (arg1)->OnErrRtnBankToFutureByFuture(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnFutureToBankByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcReqTransferField *arg2 = (CThostFtdcReqTransferField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnFutureToBankByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","OnErrRtnFutureToBankByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqTransferField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnFutureToBankByFuture", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnFutureToBankByFuture(arg2,arg3); } else { (arg1)->OnErrRtnFutureToBankByFuture(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnRepealBankToFutureByFutureManual(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcReqRepealField *arg2 = (CThostFtdcReqRepealField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnRepealBankToFutureByFutureManual", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","OnErrRtnRepealBankToFutureByFutureManual", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqRepealField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnRepealBankToFutureByFutureManual", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnRepealBankToFutureByFutureManual(arg2,arg3); } else { (arg1)->OnErrRtnRepealBankToFutureByFutureManual(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnRepealFutureToBankByFutureManual(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcReqRepealField *arg2 = (CThostFtdcReqRepealField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnRepealFutureToBankByFutureManual", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqRepealField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","OnErrRtnRepealFutureToBankByFutureManual", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqRepealField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnRepealFutureToBankByFutureManual", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnRepealFutureToBankByFutureManual(arg2,arg3); } else { (arg1)->OnErrRtnRepealFutureToBankByFutureManual(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnErrRtnQueryBankBalanceByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcReqQueryAccountField *arg2 = (CThostFtdcReqQueryAccountField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnErrRtnQueryBankBalanceByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","OnErrRtnQueryBankBalanceByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnErrRtnQueryBankBalanceByFuture", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnErrRtnQueryBankBalanceByFuture(arg2,arg3); } else { (arg1)->OnErrRtnQueryBankBalanceByFuture(arg2,arg3); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnRepealFromBankToFutureByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspRepealField *arg2 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnRepealFromBankToFutureByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","OnRtnRepealFromBankToFutureByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspRepealField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnRepealFromBankToFutureByFuture(arg2); } else { (arg1)->OnRtnRepealFromBankToFutureByFuture(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnRepealFromFutureToBankByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcRspRepealField *arg2 = (CThostFtdcRspRepealField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnRepealFromFutureToBankByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspRepealField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspRepealField *","OnRtnRepealFromFutureToBankByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRspRepealField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnRepealFromFutureToBankByFuture(arg2); } else { (arg1)->OnRtnRepealFromFutureToBankByFuture(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspFromBankToFutureByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcReqTransferField *arg2 = (CThostFtdcReqTransferField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspFromBankToFutureByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","OnRspFromBankToFutureByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqTransferField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspFromBankToFutureByFuture", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspFromBankToFutureByFuture", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspFromBankToFutureByFuture", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspFromBankToFutureByFuture(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspFromBankToFutureByFuture(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspFromFutureToBankByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcReqTransferField *arg2 = (CThostFtdcReqTransferField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspFromFutureToBankByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","OnRspFromFutureToBankByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqTransferField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspFromFutureToBankByFuture", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspFromFutureToBankByFuture", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspFromFutureToBankByFuture", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspFromFutureToBankByFuture(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspFromFutureToBankByFuture(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRspQueryBankAccountMoneyByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcReqQueryAccountField *arg2 = (CThostFtdcReqQueryAccountField *) 0 ; CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ; int arg4 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; bool val5 ; int ecode5 = 0 ; Swig::Director *director = 0; bool upcall = false; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRspQueryBankAccountMoneyByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","OnRspQueryBankAccountMoneyByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspQueryBankAccountMoneyByFuture", 3, argv[1] )); } arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspQueryBankAccountMoneyByFuture", 4, argv[2] )); } arg4 = static_cast< int >(val4); ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspQueryBankAccountMoneyByFuture", 5, argv[3] )); } arg5 = static_cast< bool >(val5); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRspQueryBankAccountMoneyByFuture(arg2,arg3,arg4,arg5); } else { (arg1)->OnRspQueryBankAccountMoneyByFuture(arg2,arg3,arg4,arg5); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnOpenAccountByBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcOpenAccountField *arg2 = (CThostFtdcOpenAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnOpenAccountByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcOpenAccountField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcOpenAccountField *","OnRtnOpenAccountByBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnOpenAccountByBank(arg2); } else { (arg1)->OnRtnOpenAccountByBank(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnCancelAccountByBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcCancelAccountField *arg2 = (CThostFtdcCancelAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnCancelAccountByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcCancelAccountField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcCancelAccountField *","OnRtnCancelAccountByBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcCancelAccountField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnCancelAccountByBank(arg2); } else { (arg1)->OnRtnCancelAccountByBank(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderSpi_OnRtnChangeAccountByBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; CThostFtdcChangeAccountField *arg2 = (CThostFtdcChangeAccountField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; Swig::Director *director = 0; bool upcall = false; 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_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","OnRtnChangeAccountByBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcChangeAccountField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcChangeAccountField *","OnRtnChangeAccountByBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcChangeAccountField * >(argp2); director = dynamic_cast(arg1); upcall = (director && (director->swig_get_self() == self)); try { if (upcall) { (arg1)->CThostFtdcTraderSpi::OnRtnChangeAccountByBank(arg2); } else { (arg1)->OnRtnChangeAccountByBank(arg2); } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_CThostFtdcTraderSpi_allocate(VALUE self) #else _wrap_CThostFtdcTraderSpi_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CThostFtdcTraderSpi); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CThostFtdcTraderSpi(int argc, VALUE *argv, VALUE self) { VALUE arg1 = (VALUE) 0 ; const char *classname SWIGUNUSED = "Ctp::CThostFtdcTraderSpi"; CThostFtdcTraderSpi *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } arg1 = self; if ( strcmp(rb_obj_classname(self), classname) != 0 ) { /* subclassed */ result = (CThostFtdcTraderSpi *)new SwigDirector_CThostFtdcTraderSpi(arg1); } else { result = (CThostFtdcTraderSpi *)new CThostFtdcTraderSpi(); } DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_CThostFtdcTraderSpi(void *self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *)self; delete arg1; } SWIGINTERN VALUE _wrap_disown_CThostFtdcTraderSpi(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderSpi *arg1 = (CThostFtdcTraderSpi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","disown_CThostFtdcTraderSpi", 1, argv[0] )); } arg1 = reinterpret_cast< CThostFtdcTraderSpi * >(argp1); { Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); if (director) director->swig_disown(); } return Qnil; fail: return Qnil; } static swig_class SwigClassCThostFtdcTraderApi; SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_CreateFtdcTraderApi__SWIG_0(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; CThostFtdcTraderApi *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CThostFtdcTraderApi::CreateFtdcTraderApi", 1, argv[0] )); } arg1 = reinterpret_cast< char * >(buf1); result = (CThostFtdcTraderApi *)CThostFtdcTraderApi::CreateFtdcTraderApi((char const *)arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_CreateFtdcTraderApi__SWIG_1(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTraderApi *)CThostFtdcTraderApi::CreateFtdcTraderApi(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_CreateFtdcTraderApi(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[1]; int ii; argc = nargs; if (argc > 1) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_CThostFtdcTraderApi_CreateFtdcTraderApi__SWIG_1(nargs, args, self); } if (argc == 1) { int _v; int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CThostFtdcTraderApi_CreateFtdcTraderApi__SWIG_0(nargs, args, self); } } fail: Ruby_Format_OverloadedError( argc, 1, "CThostFtdcTraderApi.CreateFtdcTraderApi", " CThostFtdcTraderApi CThostFtdcTraderApi.CreateFtdcTraderApi(char const *pszFlowPath)\n" " CThostFtdcTraderApi * CThostFtdcTraderApi.CreateFtdcTraderApi()\n"); return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_GetApiVersion(int argc, VALUE *argv, VALUE self) { char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (char *)CThostFtdcTraderApi::GetApiVersion(); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_Release(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; 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_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","Release", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); (arg1)->Release(); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_Init(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; 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_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","Init", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); (arg1)->Init(); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_Join(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","Join", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); result = (int)(arg1)->Join(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_GetTradingDay(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 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_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","GetTradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); result = (char *)(arg1)->GetTradingDay(); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_RegisterFront(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","RegisterFront", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","RegisterFront", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); (arg1)->RegisterFront(arg2); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_RegisterNameServer(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","RegisterNameServer", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","RegisterNameServer", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); (arg1)->RegisterNameServer(arg2); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_RegisterFensUserInfo(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcFensUserInfoField *arg2 = (CThostFtdcFensUserInfoField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","RegisterFensUserInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcFensUserInfoField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcFensUserInfoField *","RegisterFensUserInfo", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcFensUserInfoField * >(argp2); (arg1)->RegisterFensUserInfo(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_RegisterSpi(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcTraderSpi *arg2 = (CThostFtdcTraderSpi *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","RegisterSpi", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","RegisterSpi", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTraderSpi * >(argp2); (arg1)->RegisterSpi(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_SubscribePrivateTopic(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; THOST_TE_RESUME_TYPE 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_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","SubscribePrivateTopic", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "THOST_TE_RESUME_TYPE","SubscribePrivateTopic", 2, argv[0] )); } arg2 = static_cast< THOST_TE_RESUME_TYPE >(val2); (arg1)->SubscribePrivateTopic(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_SubscribePublicTopic(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; THOST_TE_RESUME_TYPE 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_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","SubscribePublicTopic", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "THOST_TE_RESUME_TYPE","SubscribePublicTopic", 2, argv[0] )); } arg2 = static_cast< THOST_TE_RESUME_TYPE >(val2); (arg1)->SubscribePublicTopic(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqAuthenticate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcReqAuthenticateField *arg2 = (CThostFtdcReqAuthenticateField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqAuthenticate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqAuthenticateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqAuthenticateField *","ReqAuthenticate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqAuthenticateField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqAuthenticate", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqAuthenticate(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqUserLogin(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcReqUserLoginField *arg2 = (CThostFtdcReqUserLoginField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqUserLogin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqUserLoginField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","ReqUserLogin", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqUserLogin", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqUserLogin(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqUserLogout(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcUserLogoutField *arg2 = (CThostFtdcUserLogoutField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqUserLogout", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcUserLogoutField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcUserLogoutField *","ReqUserLogout", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcUserLogoutField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqUserLogout", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqUserLogout(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqUserPasswordUpdate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcUserPasswordUpdateField *arg2 = (CThostFtdcUserPasswordUpdateField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqUserPasswordUpdate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcUserPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","ReqUserPasswordUpdate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqUserPasswordUpdate", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqUserPasswordUpdate(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqTradingAccountPasswordUpdate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcTradingAccountPasswordUpdateField *arg2 = (CThostFtdcTradingAccountPasswordUpdateField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqTradingAccountPasswordUpdate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","ReqTradingAccountPasswordUpdate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqTradingAccountPasswordUpdate", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqTradingAccountPasswordUpdate(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqOrderInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcInputOrderField *arg2 = (CThostFtdcInputOrderField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqOrderInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","ReqOrderInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputOrderField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqOrderInsert", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqOrderInsert(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqParkedOrderInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcParkedOrderField *arg2 = (CThostFtdcParkedOrderField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqParkedOrderInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ReqParkedOrderInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqParkedOrderInsert", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqParkedOrderInsert(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqParkedOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcParkedOrderActionField *arg2 = (CThostFtdcParkedOrderActionField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqParkedOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ReqParkedOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqParkedOrderAction", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqParkedOrderAction(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcInputOrderActionField *arg2 = (CThostFtdcInputOrderActionField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","ReqOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqOrderAction", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqOrderAction(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQueryMaxOrderVolume(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQueryMaxOrderVolumeField *arg2 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQueryMaxOrderVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","ReqQueryMaxOrderVolume", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQueryMaxOrderVolume", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQueryMaxOrderVolume(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqSettlementInfoConfirm(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcSettlementInfoConfirmField *arg2 = (CThostFtdcSettlementInfoConfirmField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqSettlementInfoConfirm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","ReqSettlementInfoConfirm", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqSettlementInfoConfirm", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqSettlementInfoConfirm(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqRemoveParkedOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcRemoveParkedOrderField *arg2 = (CThostFtdcRemoveParkedOrderField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqRemoveParkedOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRemoveParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderField *","ReqRemoveParkedOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRemoveParkedOrderField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqRemoveParkedOrder", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqRemoveParkedOrder(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqRemoveParkedOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcRemoveParkedOrderActionField *arg2 = (CThostFtdcRemoveParkedOrderActionField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqRemoveParkedOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRemoveParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderActionField *","ReqRemoveParkedOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcRemoveParkedOrderActionField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqRemoveParkedOrderAction", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqRemoveParkedOrderAction(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqExecOrderInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcInputExecOrderField *arg2 = (CThostFtdcInputExecOrderField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqExecOrderInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ReqExecOrderInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqExecOrderInsert", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqExecOrderInsert(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqExecOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcInputExecOrderActionField *arg2 = (CThostFtdcInputExecOrderActionField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqExecOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputExecOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ReqExecOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqExecOrderAction", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqExecOrderAction(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqForQuoteInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcInputForQuoteField *arg2 = (CThostFtdcInputForQuoteField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqForQuoteInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","ReqForQuoteInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqForQuoteInsert", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqForQuoteInsert(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQuoteInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcInputQuoteField *arg2 = (CThostFtdcInputQuoteField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQuoteInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","ReqQuoteInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQuoteInsert", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQuoteInsert(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQuoteAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcInputQuoteActionField *arg2 = (CThostFtdcInputQuoteActionField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQuoteAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputQuoteActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","ReqQuoteAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQuoteAction", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQuoteAction(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqCombActionInsert(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcInputCombActionField *arg2 = (CThostFtdcInputCombActionField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqCombActionInsert", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputCombActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","ReqCombActionInsert", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqCombActionInsert", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqCombActionInsert(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryOrderField *arg2 = (CThostFtdcQryOrderField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","ReqQryOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryOrderField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryOrder", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryOrder(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryTrade(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryTradeField *arg2 = (CThostFtdcQryTradeField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTrade", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTradeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","ReqQryTrade", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryTradeField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTrade", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryTrade(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryInvestorPosition(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryInvestorPositionField *arg2 = (CThostFtdcQryInvestorPositionField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInvestorPosition", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInvestorPositionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionField *","ReqQryInvestorPosition", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryInvestorPositionField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInvestorPosition", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryInvestorPosition(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryTradingAccount(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryTradingAccountField *arg2 = (CThostFtdcQryTradingAccountField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTradingAccount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTradingAccountField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTradingAccountField *","ReqQryTradingAccount", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryTradingAccountField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTradingAccount", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryTradingAccount(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryInvestor(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryInvestorField *arg2 = (CThostFtdcQryInvestorField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInvestor", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInvestorField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorField *","ReqQryInvestor", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryInvestorField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInvestor", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryInvestor(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryTradingCode(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryTradingCodeField *arg2 = (CThostFtdcQryTradingCodeField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTradingCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ReqQryTradingCode", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTradingCode", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryTradingCode(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryInstrumentMarginRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryInstrumentMarginRateField *arg2 = (CThostFtdcQryInstrumentMarginRateField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInstrumentMarginRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInstrumentMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentMarginRateField *","ReqQryInstrumentMarginRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryInstrumentMarginRateField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInstrumentMarginRate", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryInstrumentMarginRate(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryInstrumentCommissionRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryInstrumentCommissionRateField *arg2 = (CThostFtdcQryInstrumentCommissionRateField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInstrumentCommissionRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInstrumentCommissionRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentCommissionRateField *","ReqQryInstrumentCommissionRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryInstrumentCommissionRateField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInstrumentCommissionRate", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryInstrumentCommissionRate(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryExchange(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryExchangeField *arg2 = (CThostFtdcQryExchangeField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryExchange", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryExchangeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeField *","ReqQryExchange", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryExchangeField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryExchange", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryExchange(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryProduct(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryProductField *arg2 = (CThostFtdcQryProductField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryProduct", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryProductField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryProductField *","ReqQryProduct", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryProductField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryProduct", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryProduct(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryInstrument(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryInstrumentField *arg2 = (CThostFtdcQryInstrumentField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInstrument", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInstrumentField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ReqQryInstrument", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInstrument", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryInstrument(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryDepthMarketData(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryDepthMarketDataField *arg2 = (CThostFtdcQryDepthMarketDataField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryDepthMarketData", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryDepthMarketDataField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryDepthMarketDataField *","ReqQryDepthMarketData", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryDepthMarketDataField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryDepthMarketData", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryDepthMarketData(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQrySettlementInfo(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQrySettlementInfoField *arg2 = (CThostFtdcQrySettlementInfoField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQrySettlementInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQrySettlementInfoField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoField *","ReqQrySettlementInfo", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQrySettlementInfoField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQrySettlementInfo", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQrySettlementInfo(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryTransferBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryTransferBankField *arg2 = (CThostFtdcQryTransferBankField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTransferBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTransferBankField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTransferBankField *","ReqQryTransferBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryTransferBankField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTransferBank", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryTransferBank(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryInvestorPositionDetail(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryInvestorPositionDetailField *arg2 = (CThostFtdcQryInvestorPositionDetailField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInvestorPositionDetail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInvestorPositionDetailField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionDetailField *","ReqQryInvestorPositionDetail", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryInvestorPositionDetailField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInvestorPositionDetail", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryInvestorPositionDetail(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryNotice(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryNoticeField *arg2 = (CThostFtdcQryNoticeField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryNotice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryNoticeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryNoticeField *","ReqQryNotice", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryNoticeField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryNotice", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryNotice(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQrySettlementInfoConfirm(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQrySettlementInfoConfirmField *arg2 = (CThostFtdcQrySettlementInfoConfirmField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQrySettlementInfoConfirm", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQrySettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoConfirmField *","ReqQrySettlementInfoConfirm", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQrySettlementInfoConfirmField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQrySettlementInfoConfirm", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQrySettlementInfoConfirm(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryInvestorPositionCombineDetail(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryInvestorPositionCombineDetailField *arg2 = (CThostFtdcQryInvestorPositionCombineDetailField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInvestorPositionCombineDetail", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInvestorPositionCombineDetailField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionCombineDetailField *","ReqQryInvestorPositionCombineDetail", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryInvestorPositionCombineDetailField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInvestorPositionCombineDetail", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryInvestorPositionCombineDetail(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryCFMMCTradingAccountKey(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryCFMMCTradingAccountKeyField *arg2 = (CThostFtdcQryCFMMCTradingAccountKeyField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryCFMMCTradingAccountKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryCFMMCTradingAccountKeyField *","ReqQryCFMMCTradingAccountKey", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryCFMMCTradingAccountKeyField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryCFMMCTradingAccountKey", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryCFMMCTradingAccountKey(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryEWarrantOffset(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryEWarrantOffsetField *arg2 = (CThostFtdcQryEWarrantOffsetField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryEWarrantOffset", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryEWarrantOffsetField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryEWarrantOffsetField *","ReqQryEWarrantOffset", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryEWarrantOffsetField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryEWarrantOffset", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryEWarrantOffset(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryInvestorProductGroupMargin(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryInvestorProductGroupMarginField *arg2 = (CThostFtdcQryInvestorProductGroupMarginField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInvestorProductGroupMargin", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInvestorProductGroupMarginField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorProductGroupMarginField *","ReqQryInvestorProductGroupMargin", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryInvestorProductGroupMarginField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInvestorProductGroupMargin", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryInvestorProductGroupMargin(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryExchangeMarginRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryExchangeMarginRateField *arg2 = (CThostFtdcQryExchangeMarginRateField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryExchangeMarginRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","ReqQryExchangeMarginRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryExchangeMarginRate", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryExchangeMarginRate(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryExchangeMarginRateAdjust(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryExchangeMarginRateAdjustField *arg2 = (CThostFtdcQryExchangeMarginRateAdjustField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryExchangeMarginRateAdjust", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","ReqQryExchangeMarginRateAdjust", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryExchangeMarginRateAdjust", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryExchangeMarginRateAdjust(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryExchangeRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryExchangeRateField *arg2 = (CThostFtdcQryExchangeRateField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryExchangeRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryExchangeRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","ReqQryExchangeRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryExchangeRate", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryExchangeRate(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQrySecAgentACIDMap(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQrySecAgentACIDMapField *arg2 = (CThostFtdcQrySecAgentACIDMapField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQrySecAgentACIDMap", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQrySecAgentACIDMapField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQrySecAgentACIDMapField *","ReqQrySecAgentACIDMap", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQrySecAgentACIDMapField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQrySecAgentACIDMap", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQrySecAgentACIDMap(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryProductExchRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryProductExchRateField *arg2 = (CThostFtdcQryProductExchRateField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryProductExchRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryProductExchRateField *","ReqQryProductExchRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryProductExchRateField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryProductExchRate", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryProductExchRate(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryOptionInstrTradeCost(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryOptionInstrTradeCostField *arg2 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryOptionInstrTradeCost", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","ReqQryOptionInstrTradeCost", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryOptionInstrTradeCost", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryOptionInstrTradeCost(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryOptionInstrCommRate(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryOptionInstrCommRateField *arg2 = (CThostFtdcQryOptionInstrCommRateField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryOptionInstrCommRate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryOptionInstrCommRateField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","ReqQryOptionInstrCommRate", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryOptionInstrCommRate", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryOptionInstrCommRate(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryExecOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryExecOrderField *arg2 = (CThostFtdcQryExecOrderField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryExecOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","ReqQryExecOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryExecOrder", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryExecOrder(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryForQuote(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryForQuoteField *arg2 = (CThostFtdcQryForQuoteField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryForQuote", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryForQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","ReqQryForQuote", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryForQuote", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryForQuote(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryQuote(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryQuoteField *arg2 = (CThostFtdcQryQuoteField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryQuote", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryQuoteField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","ReqQryQuote", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryQuote", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryQuote(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryCombInstrumentGuard(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryCombInstrumentGuardField *arg2 = (CThostFtdcQryCombInstrumentGuardField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryCombInstrumentGuard", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryCombInstrumentGuardField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryCombInstrumentGuardField *","ReqQryCombInstrumentGuard", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryCombInstrumentGuardField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryCombInstrumentGuard", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryCombInstrumentGuard(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryCombAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryCombActionField *arg2 = (CThostFtdcQryCombActionField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryCombAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryCombActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryCombActionField *","ReqQryCombAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryCombActionField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryCombAction", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryCombAction(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryTransferSerial(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryTransferSerialField *arg2 = (CThostFtdcQryTransferSerialField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTransferSerial", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTransferSerialField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTransferSerialField *","ReqQryTransferSerial", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryTransferSerialField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTransferSerial", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryTransferSerial(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryAccountregister(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryAccountregisterField *arg2 = (CThostFtdcQryAccountregisterField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryAccountregister", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryAccountregisterField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","ReqQryAccountregister", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryAccountregister", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryAccountregister(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryContractBank(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryContractBankField *arg2 = (CThostFtdcQryContractBankField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryContractBank", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryContractBankField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryContractBankField *","ReqQryContractBank", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryContractBankField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryContractBank", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryContractBank(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryParkedOrder(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryParkedOrderField *arg2 = (CThostFtdcQryParkedOrderField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryParkedOrder", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryParkedOrderField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderField *","ReqQryParkedOrder", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryParkedOrderField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryParkedOrder", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryParkedOrder(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryParkedOrderAction(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryParkedOrderActionField *arg2 = (CThostFtdcQryParkedOrderActionField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryParkedOrderAction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryParkedOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderActionField *","ReqQryParkedOrderAction", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryParkedOrderActionField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryParkedOrderAction", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryParkedOrderAction(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryTradingNotice(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryTradingNoticeField *arg2 = (CThostFtdcQryTradingNoticeField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTradingNotice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTradingNoticeField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTradingNoticeField *","ReqQryTradingNotice", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryTradingNoticeField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTradingNotice", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryTradingNotice(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryBrokerTradingParams(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryBrokerTradingParamsField *arg2 = (CThostFtdcQryBrokerTradingParamsField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryBrokerTradingParams", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryBrokerTradingParamsField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","ReqQryBrokerTradingParams", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryBrokerTradingParams", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryBrokerTradingParams(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQryBrokerTradingAlgos(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQryBrokerTradingAlgosField *arg2 = (CThostFtdcQryBrokerTradingAlgosField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryBrokerTradingAlgos", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryBrokerTradingAlgosField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingAlgosField *","ReqQryBrokerTradingAlgos", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQryBrokerTradingAlgosField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryBrokerTradingAlgos", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQryBrokerTradingAlgos(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQueryCFMMCTradingAccountToken(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcQueryCFMMCTradingAccountTokenField *arg2 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQueryCFMMCTradingAccountToken", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","ReqQueryCFMMCTradingAccountToken", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQueryCFMMCTradingAccountToken", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQueryCFMMCTradingAccountToken(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqFromBankToFutureByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcReqTransferField *arg2 = (CThostFtdcReqTransferField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqFromBankToFutureByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","ReqFromBankToFutureByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqTransferField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqFromBankToFutureByFuture", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqFromBankToFutureByFuture(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqFromFutureToBankByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcReqTransferField *arg2 = (CThostFtdcReqTransferField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqFromFutureToBankByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqTransferField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","ReqFromFutureToBankByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqTransferField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqFromFutureToBankByFuture", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqFromFutureToBankByFuture(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_ReqQueryBankAccountMoneyByFuture(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ; CThostFtdcReqQueryAccountField *arg2 = (CThostFtdcReqQueryAccountField *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQueryBankAccountMoneyByFuture", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqQueryAccountField, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","ReqQueryBankAccountMoneyByFuture", 2, argv[0] )); } arg2 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQueryBankAccountMoneyByFuture", 3, argv[1] )); } arg3 = static_cast< int >(val3); result = (int)(arg1)->ReqQueryBankAccountMoneyByFuture(arg2,arg3); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_CThostFtdcAccountregisterField = {"_p_CThostFtdcAccountregisterField", "CThostFtdcAccountregisterField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcAuthenticationInfoField = {"_p_CThostFtdcAuthenticationInfoField", "CThostFtdcAuthenticationInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerDepositField = {"_p_CThostFtdcBrokerDepositField", "CThostFtdcBrokerDepositField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerField = {"_p_CThostFtdcBrokerField", "CThostFtdcBrokerField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerSyncField = {"_p_CThostFtdcBrokerSyncField", "CThostFtdcBrokerSyncField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerTradingAlgosField = {"_p_CThostFtdcBrokerTradingAlgosField", "CThostFtdcBrokerTradingAlgosField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerTradingParamsField = {"_p_CThostFtdcBrokerTradingParamsField", "CThostFtdcBrokerTradingParamsField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerUserEventField = {"_p_CThostFtdcBrokerUserEventField", "CThostFtdcBrokerUserEventField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerUserField = {"_p_CThostFtdcBrokerUserField", "CThostFtdcBrokerUserField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerUserFunctionField = {"_p_CThostFtdcBrokerUserFunctionField", "CThostFtdcBrokerUserFunctionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerUserOTPParamField = {"_p_CThostFtdcBrokerUserOTPParamField", "CThostFtdcBrokerUserOTPParamField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerUserPasswordField = {"_p_CThostFtdcBrokerUserPasswordField", "CThostFtdcBrokerUserPasswordField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerUserRightAssignField = {"_p_CThostFtdcBrokerUserRightAssignField", "CThostFtdcBrokerUserRightAssignField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcBrokerWithdrawAlgorithmField = {"_p_CThostFtdcBrokerWithdrawAlgorithmField", "CThostFtdcBrokerWithdrawAlgorithmField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCFMMCBrokerKeyField = {"_p_CThostFtdcCFMMCBrokerKeyField", "CThostFtdcCFMMCBrokerKeyField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCFMMCTradingAccountKeyField = {"_p_CThostFtdcCFMMCTradingAccountKeyField", "CThostFtdcCFMMCTradingAccountKeyField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCFMMCTradingAccountTokenField = {"_p_CThostFtdcCFMMCTradingAccountTokenField", "CThostFtdcCFMMCTradingAccountTokenField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCancelAccountField = {"_p_CThostFtdcCancelAccountField", "CThostFtdcCancelAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcChangeAccountField = {"_p_CThostFtdcChangeAccountField", "CThostFtdcChangeAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCombActionField = {"_p_CThostFtdcCombActionField", "CThostFtdcCombActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCombInstrumentGuardField = {"_p_CThostFtdcCombInstrumentGuardField", "CThostFtdcCombInstrumentGuardField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCombinationLegField = {"_p_CThostFtdcCombinationLegField", "CThostFtdcCombinationLegField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCommPhaseField = {"_p_CThostFtdcCommPhaseField", "CThostFtdcCommPhaseField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCommRateModelField = {"_p_CThostFtdcCommRateModelField", "CThostFtdcCommRateModelField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcContractBankField = {"_p_CThostFtdcContractBankField", "CThostFtdcContractBankField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCurrTransferIdentityField = {"_p_CThostFtdcCurrTransferIdentityField", "CThostFtdcCurrTransferIdentityField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcCurrentTimeField = {"_p_CThostFtdcCurrentTimeField", "CThostFtdcCurrentTimeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcDRTransferField = {"_p_CThostFtdcDRTransferField", "CThostFtdcDRTransferField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcDepositResultInformField = {"_p_CThostFtdcDepositResultInformField", "CThostFtdcDepositResultInformField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcDepthMarketDataField = {"_p_CThostFtdcDepthMarketDataField", "CThostFtdcDepthMarketDataField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcDiscountField = {"_p_CThostFtdcDiscountField", "CThostFtdcDiscountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcDisseminationField = {"_p_CThostFtdcDisseminationField", "CThostFtdcDisseminationField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcEWarrantOffsetField = {"_p_CThostFtdcEWarrantOffsetField", "CThostFtdcEWarrantOffsetField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcErrExecOrderActionField = {"_p_CThostFtdcErrExecOrderActionField", "CThostFtdcErrExecOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcErrExecOrderField = {"_p_CThostFtdcErrExecOrderField", "CThostFtdcErrExecOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcErrOrderActionField = {"_p_CThostFtdcErrOrderActionField", "CThostFtdcErrOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcErrOrderField = {"_p_CThostFtdcErrOrderField", "CThostFtdcErrOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcErrorConditionalOrderField = {"_p_CThostFtdcErrorConditionalOrderField", "CThostFtdcErrorConditionalOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeCombActionField = {"_p_CThostFtdcExchangeCombActionField", "CThostFtdcExchangeCombActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeExecOrderActionField = {"_p_CThostFtdcExchangeExecOrderActionField", "CThostFtdcExchangeExecOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeExecOrderField = {"_p_CThostFtdcExchangeExecOrderField", "CThostFtdcExchangeExecOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeField = {"_p_CThostFtdcExchangeField", "CThostFtdcExchangeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeForQuoteField = {"_p_CThostFtdcExchangeForQuoteField", "CThostFtdcExchangeForQuoteField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeMarginRateAdjustField = {"_p_CThostFtdcExchangeMarginRateAdjustField", "CThostFtdcExchangeMarginRateAdjustField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeMarginRateField = {"_p_CThostFtdcExchangeMarginRateField", "CThostFtdcExchangeMarginRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeOrderActionErrorField = {"_p_CThostFtdcExchangeOrderActionErrorField", "CThostFtdcExchangeOrderActionErrorField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeOrderActionField = {"_p_CThostFtdcExchangeOrderActionField", "CThostFtdcExchangeOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeOrderField = {"_p_CThostFtdcExchangeOrderField", "CThostFtdcExchangeOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeOrderInsertErrorField = {"_p_CThostFtdcExchangeOrderInsertErrorField", "CThostFtdcExchangeOrderInsertErrorField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeQuoteActionField = {"_p_CThostFtdcExchangeQuoteActionField", "CThostFtdcExchangeQuoteActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeQuoteField = {"_p_CThostFtdcExchangeQuoteField", "CThostFtdcExchangeQuoteField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeRateField = {"_p_CThostFtdcExchangeRateField", "CThostFtdcExchangeRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeSequenceField = {"_p_CThostFtdcExchangeSequenceField", "CThostFtdcExchangeSequenceField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExchangeTradeField = {"_p_CThostFtdcExchangeTradeField", "CThostFtdcExchangeTradeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExecOrderActionField = {"_p_CThostFtdcExecOrderActionField", "CThostFtdcExecOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcExecOrderField = {"_p_CThostFtdcExecOrderField", "CThostFtdcExecOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcFensUserInfoField = {"_p_CThostFtdcFensUserInfoField", "CThostFtdcFensUserInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcForQuoteField = {"_p_CThostFtdcForQuoteField", "CThostFtdcForQuoteField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcForQuoteRspField = {"_p_CThostFtdcForQuoteRspField", "CThostFtdcForQuoteRspField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcForceUserLogoutField = {"_p_CThostFtdcForceUserLogoutField", "CThostFtdcForceUserLogoutField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcFrontStatusField = {"_p_CThostFtdcFrontStatusField", "CThostFtdcFrontStatusField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcFutureSignIOField = {"_p_CThostFtdcFutureSignIOField", "CThostFtdcFutureSignIOField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcIndexPriceField = {"_p_CThostFtdcIndexPriceField", "CThostFtdcIndexPriceField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInputCombActionField = {"_p_CThostFtdcInputCombActionField", "CThostFtdcInputCombActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInputExecOrderActionField = {"_p_CThostFtdcInputExecOrderActionField", "CThostFtdcInputExecOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInputExecOrderField = {"_p_CThostFtdcInputExecOrderField", "CThostFtdcInputExecOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInputForQuoteField = {"_p_CThostFtdcInputForQuoteField", "CThostFtdcInputForQuoteField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInputOrderActionField = {"_p_CThostFtdcInputOrderActionField", "CThostFtdcInputOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInputOrderField = {"_p_CThostFtdcInputOrderField", "CThostFtdcInputOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInputQuoteActionField = {"_p_CThostFtdcInputQuoteActionField", "CThostFtdcInputQuoteActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInputQuoteField = {"_p_CThostFtdcInputQuoteField", "CThostFtdcInputQuoteField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInstrumentCommissionRateField = {"_p_CThostFtdcInstrumentCommissionRateField", "CThostFtdcInstrumentCommissionRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInstrumentField = {"_p_CThostFtdcInstrumentField", "CThostFtdcInstrumentField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInstrumentMarginRateAdjustField = {"_p_CThostFtdcInstrumentMarginRateAdjustField", "CThostFtdcInstrumentMarginRateAdjustField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInstrumentMarginRateField = {"_p_CThostFtdcInstrumentMarginRateField", "CThostFtdcInstrumentMarginRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInstrumentStatusField = {"_p_CThostFtdcInstrumentStatusField", "CThostFtdcInstrumentStatusField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInstrumentTradingRightField = {"_p_CThostFtdcInstrumentTradingRightField", "CThostFtdcInstrumentTradingRightField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInvestorAccountField = {"_p_CThostFtdcInvestorAccountField", "CThostFtdcInvestorAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInvestorField = {"_p_CThostFtdcInvestorField", "CThostFtdcInvestorField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInvestorGroupField = {"_p_CThostFtdcInvestorGroupField", "CThostFtdcInvestorGroupField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInvestorPositionCombineDetailField = {"_p_CThostFtdcInvestorPositionCombineDetailField", "CThostFtdcInvestorPositionCombineDetailField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInvestorPositionDetailField = {"_p_CThostFtdcInvestorPositionDetailField", "CThostFtdcInvestorPositionDetailField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInvestorPositionField = {"_p_CThostFtdcInvestorPositionField", "CThostFtdcInvestorPositionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInvestorProductGroupMarginField = {"_p_CThostFtdcInvestorProductGroupMarginField", "CThostFtdcInvestorProductGroupMarginField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcInvestorWithdrawAlgorithmField = {"_p_CThostFtdcInvestorWithdrawAlgorithmField", "CThostFtdcInvestorWithdrawAlgorithmField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcLinkManField = {"_p_CThostFtdcLinkManField", "CThostFtdcLinkManField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcLoadSettlementInfoField = {"_p_CThostFtdcLoadSettlementInfoField", "CThostFtdcLoadSettlementInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcLoginForbiddenUserField = {"_p_CThostFtdcLoginForbiddenUserField", "CThostFtdcLoginForbiddenUserField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcLoginInfoField = {"_p_CThostFtdcLoginInfoField", "CThostFtdcLoginInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcLogoutAllField = {"_p_CThostFtdcLogoutAllField", "CThostFtdcLogoutAllField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMDTraderOfferField = {"_p_CThostFtdcMDTraderOfferField", "CThostFtdcMDTraderOfferField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcManualSyncBrokerUserOTPField = {"_p_CThostFtdcManualSyncBrokerUserOTPField", "CThostFtdcManualSyncBrokerUserOTPField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarginModelField = {"_p_CThostFtdcMarginModelField", "CThostFtdcMarginModelField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataAsk23Field = {"_p_CThostFtdcMarketDataAsk23Field", "CThostFtdcMarketDataAsk23Field *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataAsk45Field = {"_p_CThostFtdcMarketDataAsk45Field", "CThostFtdcMarketDataAsk45Field *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataAveragePriceField = {"_p_CThostFtdcMarketDataAveragePriceField", "CThostFtdcMarketDataAveragePriceField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataBaseField = {"_p_CThostFtdcMarketDataBaseField", "CThostFtdcMarketDataBaseField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataBestPriceField = {"_p_CThostFtdcMarketDataBestPriceField", "CThostFtdcMarketDataBestPriceField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataBid23Field = {"_p_CThostFtdcMarketDataBid23Field", "CThostFtdcMarketDataBid23Field *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataBid45Field = {"_p_CThostFtdcMarketDataBid45Field", "CThostFtdcMarketDataBid45Field *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataExchangeField = {"_p_CThostFtdcMarketDataExchangeField", "CThostFtdcMarketDataExchangeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataField = {"_p_CThostFtdcMarketDataField", "CThostFtdcMarketDataField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataLastMatchField = {"_p_CThostFtdcMarketDataLastMatchField", "CThostFtdcMarketDataLastMatchField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataStaticField = {"_p_CThostFtdcMarketDataStaticField", "CThostFtdcMarketDataStaticField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMarketDataUpdateTimeField = {"_p_CThostFtdcMarketDataUpdateTimeField", "CThostFtdcMarketDataUpdateTimeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMdApi = {"_p_CThostFtdcMdApi", "CThostFtdcMdApi *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMdSpi = {"_p_CThostFtdcMdSpi", "CThostFtdcMdSpi *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcMulticastGroupInfoField = {"_p_CThostFtdcMulticastGroupInfoField", "CThostFtdcMulticastGroupInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcNoticeField = {"_p_CThostFtdcNoticeField", "CThostFtdcNoticeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcNotifyFutureSignInField = {"_p_CThostFtdcNotifyFutureSignInField", "CThostFtdcNotifyFutureSignInField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcNotifyFutureSignOutField = {"_p_CThostFtdcNotifyFutureSignOutField", "CThostFtdcNotifyFutureSignOutField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcNotifyQueryAccountField = {"_p_CThostFtdcNotifyQueryAccountField", "CThostFtdcNotifyQueryAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcNotifySyncKeyField = {"_p_CThostFtdcNotifySyncKeyField", "CThostFtdcNotifySyncKeyField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcOpenAccountField = {"_p_CThostFtdcOpenAccountField", "CThostFtdcOpenAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcOptionInstrCommRateField = {"_p_CThostFtdcOptionInstrCommRateField", "CThostFtdcOptionInstrCommRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcOptionInstrDeltaField = {"_p_CThostFtdcOptionInstrDeltaField", "CThostFtdcOptionInstrDeltaField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcOptionInstrMarginAdjustField = {"_p_CThostFtdcOptionInstrMarginAdjustField", "CThostFtdcOptionInstrMarginAdjustField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcOptionInstrMiniMarginField = {"_p_CThostFtdcOptionInstrMiniMarginField", "CThostFtdcOptionInstrMiniMarginField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcOptionInstrTradeCostField = {"_p_CThostFtdcOptionInstrTradeCostField", "CThostFtdcOptionInstrTradeCostField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcOptionInstrTradingRightField = {"_p_CThostFtdcOptionInstrTradingRightField", "CThostFtdcOptionInstrTradingRightField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcOrderActionField = {"_p_CThostFtdcOrderActionField", "CThostFtdcOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcOrderField = {"_p_CThostFtdcOrderField", "CThostFtdcOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcParkedOrderActionField = {"_p_CThostFtdcParkedOrderActionField", "CThostFtdcParkedOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcParkedOrderField = {"_p_CThostFtdcParkedOrderField", "CThostFtdcParkedOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcPartBrokerField = {"_p_CThostFtdcPartBrokerField", "CThostFtdcPartBrokerField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcPositionProfitAlgorithmField = {"_p_CThostFtdcPositionProfitAlgorithmField", "CThostFtdcPositionProfitAlgorithmField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcProductExchRateField = {"_p_CThostFtdcProductExchRateField", "CThostFtdcProductExchRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcProductField = {"_p_CThostFtdcProductField", "CThostFtdcProductField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryAccountregisterField = {"_p_CThostFtdcQryAccountregisterField", "CThostFtdcQryAccountregisterField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryBrokerField = {"_p_CThostFtdcQryBrokerField", "CThostFtdcQryBrokerField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryBrokerTradingAlgosField = {"_p_CThostFtdcQryBrokerTradingAlgosField", "CThostFtdcQryBrokerTradingAlgosField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryBrokerTradingParamsField = {"_p_CThostFtdcQryBrokerTradingParamsField", "CThostFtdcQryBrokerTradingParamsField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryBrokerUserEventField = {"_p_CThostFtdcQryBrokerUserEventField", "CThostFtdcQryBrokerUserEventField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryBrokerUserField = {"_p_CThostFtdcQryBrokerUserField", "CThostFtdcQryBrokerUserField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryBrokerUserFunctionField = {"_p_CThostFtdcQryBrokerUserFunctionField", "CThostFtdcQryBrokerUserFunctionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryCFMMCBrokerKeyField = {"_p_CThostFtdcQryCFMMCBrokerKeyField", "CThostFtdcQryCFMMCBrokerKeyField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryCFMMCTradingAccountKeyField = {"_p_CThostFtdcQryCFMMCTradingAccountKeyField", "CThostFtdcQryCFMMCTradingAccountKeyField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryCombActionField = {"_p_CThostFtdcQryCombActionField", "CThostFtdcQryCombActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryCombInstrumentGuardField = {"_p_CThostFtdcQryCombInstrumentGuardField", "CThostFtdcQryCombInstrumentGuardField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryCombinationLegField = {"_p_CThostFtdcQryCombinationLegField", "CThostFtdcQryCombinationLegField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryCommRateModelField = {"_p_CThostFtdcQryCommRateModelField", "CThostFtdcQryCommRateModelField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryContractBankField = {"_p_CThostFtdcQryContractBankField", "CThostFtdcQryContractBankField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryDepthMarketDataField = {"_p_CThostFtdcQryDepthMarketDataField", "CThostFtdcQryDepthMarketDataField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryEWarrantOffsetField = {"_p_CThostFtdcQryEWarrantOffsetField", "CThostFtdcQryEWarrantOffsetField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryErrExecOrderActionField = {"_p_CThostFtdcQryErrExecOrderActionField", "CThostFtdcQryErrExecOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryErrExecOrderField = {"_p_CThostFtdcQryErrExecOrderField", "CThostFtdcQryErrExecOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryErrOrderActionField = {"_p_CThostFtdcQryErrOrderActionField", "CThostFtdcQryErrOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryErrOrderField = {"_p_CThostFtdcQryErrOrderField", "CThostFtdcQryErrOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeCombActionField = {"_p_CThostFtdcQryExchangeCombActionField", "CThostFtdcQryExchangeCombActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeExecOrderActionField = {"_p_CThostFtdcQryExchangeExecOrderActionField", "CThostFtdcQryExchangeExecOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeExecOrderField = {"_p_CThostFtdcQryExchangeExecOrderField", "CThostFtdcQryExchangeExecOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeField = {"_p_CThostFtdcQryExchangeField", "CThostFtdcQryExchangeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeForQuoteField = {"_p_CThostFtdcQryExchangeForQuoteField", "CThostFtdcQryExchangeForQuoteField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeMarginRateAdjustField = {"_p_CThostFtdcQryExchangeMarginRateAdjustField", "CThostFtdcQryExchangeMarginRateAdjustField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeMarginRateField = {"_p_CThostFtdcQryExchangeMarginRateField", "CThostFtdcQryExchangeMarginRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeOrderActionField = {"_p_CThostFtdcQryExchangeOrderActionField", "CThostFtdcQryExchangeOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeOrderField = {"_p_CThostFtdcQryExchangeOrderField", "CThostFtdcQryExchangeOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeQuoteActionField = {"_p_CThostFtdcQryExchangeQuoteActionField", "CThostFtdcQryExchangeQuoteActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeQuoteField = {"_p_CThostFtdcQryExchangeQuoteField", "CThostFtdcQryExchangeQuoteField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeRateField = {"_p_CThostFtdcQryExchangeRateField", "CThostFtdcQryExchangeRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExchangeSequenceField = {"_p_CThostFtdcQryExchangeSequenceField", "CThostFtdcQryExchangeSequenceField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExecOrderActionField = {"_p_CThostFtdcQryExecOrderActionField", "CThostFtdcQryExecOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryExecOrderField = {"_p_CThostFtdcQryExecOrderField", "CThostFtdcQryExecOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryForQuoteField = {"_p_CThostFtdcQryForQuoteField", "CThostFtdcQryForQuoteField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryFrontStatusField = {"_p_CThostFtdcQryFrontStatusField", "CThostFtdcQryFrontStatusField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryHisOrderField = {"_p_CThostFtdcQryHisOrderField", "CThostFtdcQryHisOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInstrumentCommissionRateField = {"_p_CThostFtdcQryInstrumentCommissionRateField", "CThostFtdcQryInstrumentCommissionRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInstrumentField = {"_p_CThostFtdcQryInstrumentField", "CThostFtdcQryInstrumentField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInstrumentMarginRateField = {"_p_CThostFtdcQryInstrumentMarginRateField", "CThostFtdcQryInstrumentMarginRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInstrumentStatusField = {"_p_CThostFtdcQryInstrumentStatusField", "CThostFtdcQryInstrumentStatusField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInstrumentTradingRightField = {"_p_CThostFtdcQryInstrumentTradingRightField", "CThostFtdcQryInstrumentTradingRightField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInvestorField = {"_p_CThostFtdcQryInvestorField", "CThostFtdcQryInvestorField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInvestorGroupField = {"_p_CThostFtdcQryInvestorGroupField", "CThostFtdcQryInvestorGroupField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInvestorPositionCombineDetailField = {"_p_CThostFtdcQryInvestorPositionCombineDetailField", "CThostFtdcQryInvestorPositionCombineDetailField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInvestorPositionDetailField = {"_p_CThostFtdcQryInvestorPositionDetailField", "CThostFtdcQryInvestorPositionDetailField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInvestorPositionField = {"_p_CThostFtdcQryInvestorPositionField", "CThostFtdcQryInvestorPositionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryInvestorProductGroupMarginField = {"_p_CThostFtdcQryInvestorProductGroupMarginField", "CThostFtdcQryInvestorProductGroupMarginField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryLinkManField = {"_p_CThostFtdcQryLinkManField", "CThostFtdcQryLinkManField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryLoginForbiddenUserField = {"_p_CThostFtdcQryLoginForbiddenUserField", "CThostFtdcQryLoginForbiddenUserField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryMDTraderOfferField = {"_p_CThostFtdcQryMDTraderOfferField", "CThostFtdcQryMDTraderOfferField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryMarginModelField = {"_p_CThostFtdcQryMarginModelField", "CThostFtdcQryMarginModelField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryNoticeField = {"_p_CThostFtdcQryNoticeField", "CThostFtdcQryNoticeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryOptionInstrCommRateField = {"_p_CThostFtdcQryOptionInstrCommRateField", "CThostFtdcQryOptionInstrCommRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryOptionInstrTradeCostField = {"_p_CThostFtdcQryOptionInstrTradeCostField", "CThostFtdcQryOptionInstrTradeCostField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryOptionInstrTradingRightField = {"_p_CThostFtdcQryOptionInstrTradingRightField", "CThostFtdcQryOptionInstrTradingRightField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryOrderActionField = {"_p_CThostFtdcQryOrderActionField", "CThostFtdcQryOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryOrderField = {"_p_CThostFtdcQryOrderField", "CThostFtdcQryOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryParkedOrderActionField = {"_p_CThostFtdcQryParkedOrderActionField", "CThostFtdcQryParkedOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryParkedOrderField = {"_p_CThostFtdcQryParkedOrderField", "CThostFtdcQryParkedOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryPartBrokerField = {"_p_CThostFtdcQryPartBrokerField", "CThostFtdcQryPartBrokerField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryProductExchRateField = {"_p_CThostFtdcQryProductExchRateField", "CThostFtdcQryProductExchRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryProductField = {"_p_CThostFtdcQryProductField", "CThostFtdcQryProductField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryQuoteActionField = {"_p_CThostFtdcQryQuoteActionField", "CThostFtdcQryQuoteActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryQuoteField = {"_p_CThostFtdcQryQuoteField", "CThostFtdcQryQuoteField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQrySecAgentACIDMapField = {"_p_CThostFtdcQrySecAgentACIDMapField", "CThostFtdcQrySecAgentACIDMapField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQrySettlementInfoConfirmField = {"_p_CThostFtdcQrySettlementInfoConfirmField", "CThostFtdcQrySettlementInfoConfirmField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQrySettlementInfoField = {"_p_CThostFtdcQrySettlementInfoField", "CThostFtdcQrySettlementInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryStrikeOffsetField = {"_p_CThostFtdcQryStrikeOffsetField", "CThostFtdcQryStrikeOffsetField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQrySuperUserField = {"_p_CThostFtdcQrySuperUserField", "CThostFtdcQrySuperUserField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQrySuperUserFunctionField = {"_p_CThostFtdcQrySuperUserFunctionField", "CThostFtdcQrySuperUserFunctionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQrySyncDepositField = {"_p_CThostFtdcQrySyncDepositField", "CThostFtdcQrySyncDepositField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQrySyncFundMortgageField = {"_p_CThostFtdcQrySyncFundMortgageField", "CThostFtdcQrySyncFundMortgageField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQrySyncStatusField = {"_p_CThostFtdcQrySyncStatusField", "CThostFtdcQrySyncStatusField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryTradeField = {"_p_CThostFtdcQryTradeField", "CThostFtdcQryTradeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryTraderField = {"_p_CThostFtdcQryTraderField", "CThostFtdcQryTraderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryTraderOfferField = {"_p_CThostFtdcQryTraderOfferField", "CThostFtdcQryTraderOfferField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryTradingAccountField = {"_p_CThostFtdcQryTradingAccountField", "CThostFtdcQryTradingAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryTradingCodeField = {"_p_CThostFtdcQryTradingCodeField", "CThostFtdcQryTradingCodeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryTradingNoticeField = {"_p_CThostFtdcQryTradingNoticeField", "CThostFtdcQryTradingNoticeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryTransferBankField = {"_p_CThostFtdcQryTransferBankField", "CThostFtdcQryTransferBankField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryTransferSerialField = {"_p_CThostFtdcQryTransferSerialField", "CThostFtdcQryTransferSerialField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQryUserSessionField = {"_p_CThostFtdcQryUserSessionField", "CThostFtdcQryUserSessionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQueryBrokerDepositField = {"_p_CThostFtdcQueryBrokerDepositField", "CThostFtdcQueryBrokerDepositField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQueryCFMMCTradingAccountTokenField = {"_p_CThostFtdcQueryCFMMCTradingAccountTokenField", "CThostFtdcQueryCFMMCTradingAccountTokenField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQueryMaxOrderVolumeField = {"_p_CThostFtdcQueryMaxOrderVolumeField", "CThostFtdcQueryMaxOrderVolumeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQueryMaxOrderVolumeWithPriceField = {"_p_CThostFtdcQueryMaxOrderVolumeWithPriceField", "CThostFtdcQueryMaxOrderVolumeWithPriceField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQuoteActionField = {"_p_CThostFtdcQuoteActionField", "CThostFtdcQuoteActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcQuoteField = {"_p_CThostFtdcQuoteField", "CThostFtdcQuoteField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRemoveParkedOrderActionField = {"_p_CThostFtdcRemoveParkedOrderActionField", "CThostFtdcRemoveParkedOrderActionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRemoveParkedOrderField = {"_p_CThostFtdcRemoveParkedOrderField", "CThostFtdcRemoveParkedOrderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqAuthenticateField = {"_p_CThostFtdcReqAuthenticateField", "CThostFtdcReqAuthenticateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqCancelAccountField = {"_p_CThostFtdcReqCancelAccountField", "CThostFtdcReqCancelAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqChangeAccountField = {"_p_CThostFtdcReqChangeAccountField", "CThostFtdcReqChangeAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqDayEndFileReadyField = {"_p_CThostFtdcReqDayEndFileReadyField", "CThostFtdcReqDayEndFileReadyField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqFutureSignOutField = {"_p_CThostFtdcReqFutureSignOutField", "CThostFtdcReqFutureSignOutField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqOpenAccountField = {"_p_CThostFtdcReqOpenAccountField", "CThostFtdcReqOpenAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqQueryAccountField = {"_p_CThostFtdcReqQueryAccountField", "CThostFtdcReqQueryAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqQueryTradeResultBySerialField = {"_p_CThostFtdcReqQueryTradeResultBySerialField", "CThostFtdcReqQueryTradeResultBySerialField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqRepealField = {"_p_CThostFtdcReqRepealField", "CThostFtdcReqRepealField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqSyncKeyField = {"_p_CThostFtdcReqSyncKeyField", "CThostFtdcReqSyncKeyField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqTransferField = {"_p_CThostFtdcReqTransferField", "CThostFtdcReqTransferField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReqUserLoginField = {"_p_CThostFtdcReqUserLoginField", "CThostFtdcReqUserLoginField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcReturnResultField = {"_p_CThostFtdcReturnResultField", "CThostFtdcReturnResultField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRspAuthenticateField = {"_p_CThostFtdcRspAuthenticateField", "CThostFtdcRspAuthenticateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRspFutureSignInField = {"_p_CThostFtdcRspFutureSignInField", "CThostFtdcRspFutureSignInField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRspFutureSignOutField = {"_p_CThostFtdcRspFutureSignOutField", "CThostFtdcRspFutureSignOutField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRspInfoField = {"_p_CThostFtdcRspInfoField", "CThostFtdcRspInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRspQueryAccountField = {"_p_CThostFtdcRspQueryAccountField", "CThostFtdcRspQueryAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRspQueryTradeResultBySerialField = {"_p_CThostFtdcRspQueryTradeResultBySerialField", "CThostFtdcRspQueryTradeResultBySerialField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRspRepealField = {"_p_CThostFtdcRspRepealField", "CThostFtdcRspRepealField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRspSyncKeyField = {"_p_CThostFtdcRspSyncKeyField", "CThostFtdcRspSyncKeyField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRspTransferField = {"_p_CThostFtdcRspTransferField", "CThostFtdcRspTransferField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcRspUserLoginField = {"_p_CThostFtdcRspUserLoginField", "CThostFtdcRspUserLoginField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSecAgentACIDMapField = {"_p_CThostFtdcSecAgentACIDMapField", "CThostFtdcSecAgentACIDMapField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSettlementInfoConfirmField = {"_p_CThostFtdcSettlementInfoConfirmField", "CThostFtdcSettlementInfoConfirmField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSettlementInfoField = {"_p_CThostFtdcSettlementInfoField", "CThostFtdcSettlementInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSettlementRefField = {"_p_CThostFtdcSettlementRefField", "CThostFtdcSettlementRefField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSpecificInstrumentField = {"_p_CThostFtdcSpecificInstrumentField", "CThostFtdcSpecificInstrumentField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcStrikeOffsetField = {"_p_CThostFtdcStrikeOffsetField", "CThostFtdcStrikeOffsetField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSuperUserField = {"_p_CThostFtdcSuperUserField", "CThostFtdcSuperUserField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSuperUserFunctionField = {"_p_CThostFtdcSuperUserFunctionField", "CThostFtdcSuperUserFunctionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncDepositField = {"_p_CThostFtdcSyncDepositField", "CThostFtdcSyncDepositField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncFundMortgageField = {"_p_CThostFtdcSyncFundMortgageField", "CThostFtdcSyncFundMortgageField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncStatusField = {"_p_CThostFtdcSyncStatusField", "CThostFtdcSyncStatusField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncingInstrumentCommissionRateField = {"_p_CThostFtdcSyncingInstrumentCommissionRateField", "CThostFtdcSyncingInstrumentCommissionRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncingInstrumentMarginRateField = {"_p_CThostFtdcSyncingInstrumentMarginRateField", "CThostFtdcSyncingInstrumentMarginRateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncingInstrumentTradingRightField = {"_p_CThostFtdcSyncingInstrumentTradingRightField", "CThostFtdcSyncingInstrumentTradingRightField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncingInvestorField = {"_p_CThostFtdcSyncingInvestorField", "CThostFtdcSyncingInvestorField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncingInvestorGroupField = {"_p_CThostFtdcSyncingInvestorGroupField", "CThostFtdcSyncingInvestorGroupField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncingInvestorPositionField = {"_p_CThostFtdcSyncingInvestorPositionField", "CThostFtdcSyncingInvestorPositionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncingTradingAccountField = {"_p_CThostFtdcSyncingTradingAccountField", "CThostFtdcSyncingTradingAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcSyncingTradingCodeField = {"_p_CThostFtdcSyncingTradingCodeField", "CThostFtdcSyncingTradingCodeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTradeField = {"_p_CThostFtdcTradeField", "CThostFtdcTradeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTraderApi = {"_p_CThostFtdcTraderApi", "CThostFtdcTraderApi *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTraderField = {"_p_CThostFtdcTraderField", "CThostFtdcTraderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTraderOfferField = {"_p_CThostFtdcTraderOfferField", "CThostFtdcTraderOfferField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTraderSpi = {"_p_CThostFtdcTraderSpi", "CThostFtdcTraderSpi *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTradingAccountField = {"_p_CThostFtdcTradingAccountField", "CThostFtdcTradingAccountField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTradingAccountPasswordField = {"_p_CThostFtdcTradingAccountPasswordField", "CThostFtdcTradingAccountPasswordField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTradingAccountPasswordUpdateField = {"_p_CThostFtdcTradingAccountPasswordUpdateField", "CThostFtdcTradingAccountPasswordUpdateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTradingAccountPasswordUpdateV1Field = {"_p_CThostFtdcTradingAccountPasswordUpdateV1Field", "CThostFtdcTradingAccountPasswordUpdateV1Field *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTradingAccountReserveField = {"_p_CThostFtdcTradingAccountReserveField", "CThostFtdcTradingAccountReserveField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTradingCodeField = {"_p_CThostFtdcTradingCodeField", "CThostFtdcTradingCodeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTradingNoticeField = {"_p_CThostFtdcTradingNoticeField", "CThostFtdcTradingNoticeField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTradingNoticeInfoField = {"_p_CThostFtdcTradingNoticeInfoField", "CThostFtdcTradingNoticeInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferBankField = {"_p_CThostFtdcTransferBankField", "CThostFtdcTransferBankField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferBankToFutureReqField = {"_p_CThostFtdcTransferBankToFutureReqField", "CThostFtdcTransferBankToFutureReqField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferBankToFutureRspField = {"_p_CThostFtdcTransferBankToFutureRspField", "CThostFtdcTransferBankToFutureRspField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferFutureToBankReqField = {"_p_CThostFtdcTransferFutureToBankReqField", "CThostFtdcTransferFutureToBankReqField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferFutureToBankRspField = {"_p_CThostFtdcTransferFutureToBankRspField", "CThostFtdcTransferFutureToBankRspField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferHeaderField = {"_p_CThostFtdcTransferHeaderField", "CThostFtdcTransferHeaderField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferQryBankReqField = {"_p_CThostFtdcTransferQryBankReqField", "CThostFtdcTransferQryBankReqField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferQryBankRspField = {"_p_CThostFtdcTransferQryBankRspField", "CThostFtdcTransferQryBankRspField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferQryDetailReqField = {"_p_CThostFtdcTransferQryDetailReqField", "CThostFtdcTransferQryDetailReqField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferQryDetailRspField = {"_p_CThostFtdcTransferQryDetailRspField", "CThostFtdcTransferQryDetailRspField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcTransferSerialField = {"_p_CThostFtdcTransferSerialField", "CThostFtdcTransferSerialField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcUserIPField = {"_p_CThostFtdcUserIPField", "CThostFtdcUserIPField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcUserLogoutField = {"_p_CThostFtdcUserLogoutField", "CThostFtdcUserLogoutField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcUserPasswordUpdateField = {"_p_CThostFtdcUserPasswordUpdateField", "CThostFtdcUserPasswordUpdateField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcUserRightField = {"_p_CThostFtdcUserRightField", "CThostFtdcUserRightField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcUserRightsAssignField = {"_p_CThostFtdcUserRightsAssignField", "CThostFtdcUserRightsAssignField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcUserSessionField = {"_p_CThostFtdcUserSessionField", "CThostFtdcUserSessionField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcVerifyCustInfoField = {"_p_CThostFtdcVerifyCustInfoField", "CThostFtdcVerifyCustInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcVerifyFuturePasswordAndCustInfoField = {"_p_CThostFtdcVerifyFuturePasswordAndCustInfoField", "CThostFtdcVerifyFuturePasswordAndCustInfoField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcVerifyFuturePasswordField = {"_p_CThostFtdcVerifyFuturePasswordField", "CThostFtdcVerifyFuturePasswordField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CThostFtdcVerifyInvestorPasswordField = {"_p_CThostFtdcVerifyInvestorPasswordField", "CThostFtdcVerifyInvestorPasswordField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_1001__char = {"_p_a_1001__char", "TThostFtdcBusinessScopeType *|char (*)[1001]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_101__char = {"_p_a_101__char", "TThostFtdcUOAEMailType *|TThostFtdcProfessionType *|char (*)[101]|TThostFtdcAssetmgrCFullNameType *|TThostFtdcCffexDepartmentNameType *|TThostFtdcBankNameType *|TThostFtdcCSRCOpenInvestorNameType *|TThostFtdcInvestorFullNameType *|TThostFtdcInstrumentIDsType *|TThostFtdcAddressType *|TThostFtdcWebSiteType *|TThostFtdcWorkPlaceType *|TThostFtdcLedgerManageBankType *|TThostFtdcOpenBankType *|TThostFtdcCurrencySwapMemoType *|TThostFtdcCSRCMemoType *|TThostFtdcCorporateIdentifiedCardNoType *|TThostFtdcInvestVarietyType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_1025__char = {"_p_a_1025__char", "TThostFtdcDateExprType *|TThostFtdcFunctionUrlType *|TThostFtdcOperationMemoType *|TThostFtdcCommModelMemoType *|TThostFtdcCheckResultMemoType *|TThostFtdcUserEventInfoType *|char (*)[1025]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_10__char = {"_p_a_10__char", "char (*)[10]|TThostFtdcAMLSiteType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_11__char = {"_p_a_11__char", "TThostFtdcRoleIDType *|TThostFtdcFutureIDType *|TThostFtdcBankBranchIDType *|TThostFtdcClientIDType *|TThostFtdcParticipantIDType *|TThostFtdcBrokerIDType *|TThostFtdcCSRCClientIDType *|TThostFtdcUOABrokerIDType *|TThostFtdcCSRCSecAgentIDType *|TThostFtdcProtocolInfoType *|TThostFtdcUOAOrganTypeType *|TThostFtdcCSRCTimeType *|TThostFtdcCffmcTimeType *|TThostFtdcClientClassifyType *|TThostFtdcUOAZipCodeType *|TThostFtdcUOACountryCodeType *|TThostFtdcAreaCodeType *|TThostFtdcSHFEProductClassType *|TThostFtdcCSRCDateType *|TThostFtdcCffmcDateType *|TThostFtdcProductInfoType *|TThostFtdcUOMType *|TThostFtdcIsStockType *|char (*)[11]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_129__char = {"_p_a_129__char", "TThostFtdcBankServerDescriptionType *|TThostFtdcAuthenticDataType *|TThostFtdcSettleManagerNameType *|TThostFtdcFutureAccountNameType *|TThostFtdcDescrInfoForReturnCodeType *|TThostFtdcPasswordKeyType *|TThostFtdcFutureMainKeyType *|TThostFtdcFutureWorkKeyType *|TThostFtdcFutureTransKeyType *|TThostFtdcBankMainKeyType *|TThostFtdcBankWorkKeyType *|TThostFtdcBankTransKeyType *|TThostFtdcAMLCapitalPurposeType *|TThostFtdcAddInfoType *|TThostFtdcRetInfoType *|TThostFtdcDataTypeType *|TThostFtdcAuthInfoType *|TThostFtdcUserProductMemoType *|char (*)[129]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_12__char = {"_p_a_12__char", "TThostFtdcSuperOrganCodeType *|char (*)[12]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_13__char = {"_p_a_13__char", "TThostFtdcOrderLocalIDType *|TThostFtdcAgentIDType *|TThostFtdcAgentGroupIDType *|TThostFtdcAccountIDType *|TThostFtdcParkedOrderIDType *|TThostFtdcParkedOrderActionIDType *|TThostFtdcAMLInstitutionIDType *|TThostFtdcBankSerialType *|TThostFtdcOrderRefType *|TThostFtdcInvestorIDType *|TThostFtdcOptionIDType *|TThostFtdcCSRCInvestorIDType *|TThostFtdcAgentBrokerIDType *|char (*)[13]|TThostFtdcFBEBankNoType *|TThostFtdcAdvanceMonthArrayType *|TThostFtdcStrikeTimeType *|TThostFtdcLongTimeType *|TThostFtdcFBECertNoType *|TThostFtdcCurrExchCertNoType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_15__char = {"_p_a_15__char", "char (*)[15]|TThostFtdcBillNoType *|TThostFtdcDepositSeqNoType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_161__char = {"_p_a_161__char", "TThostFtdcMemoType *|TThostFtdcPhotoNameType *|TThostFtdcCommModelNameType *|char (*)[161]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_16__char = {"_p_a_16__char", "TThostFtdcRegionType *|TThostFtdcUserIDType *|TThostFtdcIPAddressType *|TThostFtdcCompanyTypeType *|TThostFtdcCountryType *|char (*)[16]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_17__char = {"_p_a_17__char", "TThostFtdcIndustryIDType *|TThostFtdcImportSequenceIDType *|TThostFtdcSerialNumberType *|TThostFtdcFutureAccPwdType *|char (*)[17]|TThostFtdcOperNoType *|TThostFtdcOperatorCodeType *|TThostFtdcAuthCodeType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_201__char = {"_p_a_201__char", "TThostFtdcPKNameType *|TThostFtdcCSRCInvestorNameType *|char (*)[201]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_2049__char = {"_p_a_2049__char", "char (*)[2049]|TThostFtdcFieldContentType *|TThostFtdcFieldNameType *|TThostFtdcPropertyStringType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_20__char = {"_p_a_20__char", "TThostFtdcTradeAmtType *|TThostFtdcUseAmtType *|TThostFtdcFetchAmtType *|char (*)[20]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_21__char = {"_p_a_21__char", "TThostFtdcFBESystemSerialType *|TThostFtdcFBEBatchSerialType *|TThostFtdcAMLParamIDType *|TThostFtdcTradeIDType *|TThostFtdcOrderSysIDType *|TThostFtdcSystemIDType *|TThostFtdcFuturesIDType *|TThostFtdcNocIDType *|TThostFtdcCSRCTradeIDType *|TThostFtdcExecOrderSysIDType *|TThostFtdcBusinessPeriodType *|TThostFtdcBusinessUnitType *|TThostFtdcTraderIDType *|TThostFtdcCFMMCTokenType *|char (*)[21]|TThostFtdcMobilePhoneType *|TThostFtdcFBEFileNameType *|TThostFtdcProductNameType *|TThostFtdcInstrumentNameType *|TThostFtdcCountryCodeType *|TThostFtdcUploadModeType *|TThostFtdcCertCodeType *|TThostFtdcMacAddressType *|TThostFtdcCFMMCKeyType *|TThostFtdcSRiskRateType *|TThostFtdcRiskRateType *|TThostFtdcBankIDByBankType *|TThostFtdcBankCustNoType *|TThostFtdcBatchSerialNoType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_22__char = {"_p_a_22__char", "TThostFtdcFutureAccountType *|char (*)[22]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_23__char = {"_p_a_23__char", "TThostFtdcCSRCBankAccountType *|TThostFtdcAmAccountType *|char (*)[23]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_24__char = {"_p_a_24__char", "TThostFtdcForceCloseSceneIdType *|char (*)[24]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_256__char = {"_p_a_256__char", "char (*)[256]|TThostFtdcBrokerDNSType *|TThostFtdcSettlementParamValueType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_257__char = {"_p_a_257__char", "TThostFtdcPublishPathType *|TThostFtdcWarehouseType *|TThostFtdcRiskNofityInfoType *|TThostFtdcFileNameType *|TThostFtdcProcessNameType *|TThostFtdcAMLFileNameType *|TThostFtdcBrandCodeType *|TThostFtdcFunctionValueCodeType *|char (*)[257]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_25__char = {"_p_a_25__char", "TThostFtdcFunctionIDType *|TThostFtdcCombineIDType *|TThostFtdcCombineTypeType *|char (*)[25]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_2__char = {"_p_a_2__char", "TThostFtdcIsSettlementType *|TThostFtdcOTPVendorsIDType *|TThostFtdcPriceDecimalType *|TThostFtdcSequenceLabelType *|TThostFtdcPageControlType *|TThostFtdcAMLReportTypeType *|TThostFtdcCSRCOptionsTypeType *|TThostFtdcBankAccountTypeType *|TThostFtdcInTheMoneyFlagType *|TThostFtdcExchangeFlagType *|TThostFtdcOrganFlagType *|TThostFtdcCSRCCancelFlagType *|TThostFtdcAmlCheckFlowType *|TThostFtdcAMLStatusType *|TThostFtdcCSRCFreezeStatusType *|char (*)[2]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_31__char = {"_p_a_31__char", "TThostFtdcInstrumentIDType *|TThostFtdcMarketIDType *|TThostFtdcSubBranchIDType *|TThostFtdcBankSubBranchIDType *|TThostFtdcFutureBranchIDType *|TThostFtdcCSRCExchangeInstIDType *|TThostFtdcCSRCTargetInstrIDType *|TThostFtdcCommentType *|TThostFtdcDBLinkIDType *|TThostFtdcFBEBusinessSerialType *|TThostFtdcNationalType *|TThostFtdcExchangeInstIDType *|char (*)[31]|TThostFtdcCurrencyNameType *|TThostFtdcBranchNetCodeType *|TThostFtdcTaxNoType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_33__char = {"_p_a_33__char", "TThostFtdcCounterIDType *|TThostFtdcLogLevelType *|TThostFtdcClearAccountType *|TThostFtdcFBEBankAccountType *|TThostFtdcPropertyIDType *|TThostFtdcProcessIDType *|TThostFtdcEnumValueResultType *|TThostFtdcUserProductIDType *|TThostFtdcSettleManagerIDType *|char (*)[33]|TThostFtdcEventTypeType *|TThostFtdcEnumValueTypeType *|TThostFtdcRangeIntTypeType *|TThostFtdcRangeIntToType *|TThostFtdcLicenseNOType *|TThostFtdcBillNameType *|TThostFtdcRangeIntFromType *|TThostFtdcBankCodingForFutureType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_36__char = {"_p_a_36__char", "TThostFtdcMessageFormatVersionType *|TThostFtdcCustNumberType *|TThostFtdcDigestType *|char (*)[36]|TThostFtdcOrganCodeType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_3__char = {"_p_a_3__char", "TThostFtdcDeviceIDType *|TThostFtdcReportTypeIDType *|TThostFtdcAMLTradeDirectType *|TThostFtdcCSRCReasonType *|TThostFtdcAMLTradeModelType *|TThostFtdcCSRCTargetProductIDType *|TThostFtdcAMLRelationShipType *|TThostFtdcAMLIdCardTypeType *|TThostFtdcAMLInstitutionTypeType *|TThostFtdcFBEBusinessTypeType *|TThostFtdcProcessTypeType *|TThostFtdcCSRCBankFlagType *|TThostFtdcClientModeType *|TThostFtdcUOAProcessStatusType *|TThostFtdcAMLCapitalIOType *|TThostFtdcSHFEInstLifePhaseType *|TThostFtdcAMLInvestorTypeType *|TThostFtdcUOAIdCardTypeType *|TThostFtdcSwapBusinessTypeType *|char (*)[3]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_401__char = {"_p_a_401__char", "TThostFtdcDescriptionType *|char (*)[401]|TThostFtdcCSRCOpenNameType *|TThostFtdcAssetmgrMgrNameType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_41__char = {"_p_a_41__char", "TThostFtdcPositionType *|TThostFtdcEMailType *|TThostFtdcFaxType *|TThostFtdcBankAccountType *|TThostFtdcQuestionContentType *|TThostFtdcInstrumentIDExprType *|TThostFtdcInstrumentNameExprType *|TThostFtdcWeightType *|TThostFtdcPasswordType *|char (*)[41]|TThostFtdcRoleNameType *|TThostFtdcSystemNameType *|TThostFtdcAgentNameType *|TThostFtdcAgentGroupNameType *|TThostFtdcInvestorGroupNameType *|TThostFtdcClassifyType *|TThostFtdcContractCodeType *|TThostFtdcGradeType *|TThostFtdcAuthKeyType *|TThostFtdcMobileType *|TThostFtdcProductDateType *|TThostFtdcParamValueType *|TThostFtdcPhotoTypeNameType *|TThostFtdcParamNameType *|TThostFtdcTelephoneType *|TThostFtdcCSRCMemo1Type *|TThostFtdcYieldlyType *|TThostFtdcOldCityType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_4__char = {"_p_a_4__char", "TThostFtdcVersionType *|TThostFtdcCSRCNationalType *|TThostFtdcTargetIDType *|TThostFtdcBankIDType *|TThostFtdcCurrencyIDType *|TThostFtdcCurrencySignType *|TThostFtdcCapitalCurrencyType *|TThostFtdcBankFlagType *|TThostFtdcBankOperNoType *|TThostFtdcCurrencyCodeType *|char (*)[4]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_501__char = {"_p_a_501__char", "TThostFtdcContentType *|TThostFtdcSentenceType *|TThostFtdcPKValueType *|char (*)[501]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_513__char = {"_p_a_513__char", "TThostFtdcInvestorIDRuleExprType *|char (*)[513]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_51__char = {"_p_a_51__char", "TThostFtdcChannelType *|TThostFtdcLedgerManageIDType *|TThostFtdcAssetmgrApprovalNOType *|TThostFtdcIdentifiedCardNoType *|TThostFtdcWebsiteType *|TThostFtdcIndividualNameType *|TThostFtdcCSRCIdentifiedCardNoType *|TThostFtdcLicenseNoType *|TThostFtdcProvinceType *|TThostFtdcCityType *|TThostFtdcCompanyCodeType *|char (*)[51]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_5__char = {"_p_a_5__char", "TThostFtdcBankBrchIDType *|TThostFtdcFundProjectIDType *|TThostFtdcCharacterIDType *|TThostFtdcQuestionIDType *|TThostFtdcPhotoTypeIDType *|TThostFtdcCombOffsetFlagType *|TThostFtdcCombHedgeFlagType *|TThostFtdcAMLAccountTypeType *|TThostFtdcCSRCAmTypeType *|TThostFtdcAMLSerialNoType *|TThostFtdcRetCodeType *|TThostFtdcPlateReturnCodeType *|char (*)[5]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_61__char = {"_p_a_61__char", "TThostFtdcFBEPostScriptType *|TThostFtdcOptionContentType *|TThostFtdcCombinInstrIDType *|char (*)[61]|TThostFtdcExchangeNameType *|TThostFtdcOpenNameType *|TThostFtdcServiceNameType *|TThostFtdcTableNameType *|TThostFtdcFBEBankAccountNameType *|TThostFtdcRateTemplateNameType *|TThostFtdcInvestorIDRuleNameType *|TThostFtdcOTPVendorsNameType *|TThostFtdcRightTemplateNameType *|TThostFtdcCombinSettlePriceType *|TThostFtdcFBEOpenBankType *|TThostFtdcFBEExtendMsgType *|TThostFtdcFBERtnMsgType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_65__char = {"_p_a_65__char", "TThostFtdcEnumValueLabelType *|TThostFtdcOperatorIDType *|TThostFtdcEnumValueIDType *|TThostFtdcCommandTypeType *|TThostFtdcPropertyNameType *|TThostFtdcFunctionNameType *|TThostFtdcAMLInstitutionNameType *|TThostFtdcUserProductNameType *|TThostFtdcDRIdentityNameType *|TThostFtdcAMLSeqCodeType *|char (*)[65]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_6__char = {"_p_a_6__char", "TThostFtdcClearbarchIDType *|TThostFtdcClearDepIDType *|TThostFtdcClearBrchIDType *|TThostFtdcInvDepIDType *|TThostFtdcInvBrchIDType *|TThostFtdcOrganNOType *|char (*)[6]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_71__char = {"_p_a_71__char", "TThostFtdcFBERemarkType *|TThostFtdcOrganNameType *|TThostFtdcSubBranchNameType *|TThostFtdcBranchNetNameType *|TThostFtdcClearNameType *|TThostFtdcBankAccountNameType *|char (*)[71]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_7__char = {"_p_a_7__char", "char (*)[7]|TThostFtdcAMLDistrictIDType *|TThostFtdcAMLTransactClassType *|TThostFtdcAMLTradingTypeType *|TThostFtdcRecordNumType *|TThostFtdcFBETimeType *|TThostFtdcCSRCMortgageNameType *|TThostFtdcZipCodeType *|TThostFtdcTradeCodeType *|TThostFtdcBankReturnCodeType *|TThostFtdcReturnCodeType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_81__char = {"_p_a_81__char", "TThostFtdcErrorMsgType *|TThostFtdcAMLCustomerCardTypeType *|TThostFtdcBrokerNameType *|TThostFtdcUserNameType *|TThostFtdcPartyNameType *|TThostFtdcAMLReportNameType *|TThostFtdcToolNameType *|char (*)[81]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_a_9__char = {"_p_a_9__char", "TThostFtdcToolIDType *|TThostFtdcExchangeIDType *|TThostFtdcRateTemplateIDType *|TThostFtdcRightTemplateIDType *|TThostFtdcTradeSerialType *|TThostFtdcTimeSpanType *|TThostFtdcBrokerAbbrType *|TThostFtdcExchangeAbbrType *|TThostFtdcSettlementGroupIDType *|char (*)[9]|TThostFtdcTimeType *|TThostFtdcTradeTimeType *|TThostFtdcCffexDepartmentCodeType *|TThostFtdcDateType *|TThostFtdcTradeDateType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *|TThostFtdcIncludeCloseProfitType *|TThostFtdcBankAcountOriginType *|TThostFtdcExecResultType *|TThostFtdcSexType *|TThostFtdcCFMMCKeyKindType *|TThostFtdcUOAAutoSendType *|TThostFtdcDirectionEnType *|TThostFtdcFundDirectionEnType *|TThostFtdcFundMortDirectionEnType *|TThostFtdcGenderType *|TThostFtdcExDirectionType *|TThostFtdcDBOperationType *|TThostFtdcFBTTransferDirectionType *|TThostFtdcReasonType *|TThostFtdcContingentConditionType *|TThostFtdcVolumeConditionType *|TThostFtdcTimeConditionType *|TThostFtdcForceCloseReasonType *|TThostFtdcPosiDirectionType *|TThostFtdcDirectionType *|TThostFtdcInstStatusEnterReasonType *|TThostFtdcTransferDirectionType *|TThostFtdcFundDirectionType *|TThostFtdcFundMortDirectionType *|TThostFtdcCurrExDirectionType *|TThostFtdcClientRegionType *|TThostFtdcCombDirectionType *|TThostFtdcTradingRightType *|TThostFtdcOffsetFlagEnType *|TThostFtdcHedgeFlagEnType *|TThostFtdcFundIOTypeEnType *|TThostFtdcFundTypeEnType *|TThostFtdcYesNoIndicatorType *|TThostFtdcOrganLevelType *|TThostFtdcReturnLevelType *|TThostFtdcRiskLevelType *|TThostFtdcCheckLevelType *|TThostFtdcAmlCheckLevelType *|TThostFtdcSettleManagerLevelType *|TThostFtdcFileFormatType *|TThostFtdcRatioAttrType *|TThostFtdcReturnPatternType *|TThostFtdcProtocalIDType *|TThostFtdcRiskNotifyMethodType *|TThostFtdcSendMethodType *|TThostFtdcValueMethodType *|TThostFtdcReturnStandardType *|TThostFtdcHasBoardType *|TThostFtdcByGroupType *|TThostFtdcSettleManagerGroupType *|TThostFtdcOrgSystemIDType *|TThostFtdcHandleTradingAccountAlgoIDType *|TThostFtdcFindMarginRateAlgoIDType *|TThostFtdcHandlePositionAlgoIDType *|TThostFtdcInvestorSettlementParamIDType *|TThostFtdcExchangeSettlementParamIDType *|TThostFtdcSystemParamIDType *|TThostFtdcTradeParamIDType *|TThostFtdcFileIDType *|TThostFtdcApplyOperateIDType *|TThostFtdcApplyStatusIDType *|TThostFtdcFlowIDType *|TThostFtdcAccountSettlementParamIDType *|TThostFtdcLastFragmentType *|TThostFtdcRiskUserEventType *|TThostFtdcInitSettlementType *|TThostFtdcDAClientTypeType *|TThostFtdcDeliveryTypeType *|TThostFtdcCheckInstrTypeType *|TThostFtdcAssetmgrTypeType *|TThostFtdcAssetmgrClientTypeType *|TThostFtdcLanguageTypeType *|TThostFtdcCusAccountTypeType *|TThostFtdcCSRCFundIOTypeType *|TThostFtdcAmTypeType *|TThostFtdcPromptTypeType *|TThostFtdcTemplateTypeType *|TThostFtdcSwapSourceTypeType *|TThostFtdcFundMortgageTypeType *|TThostFtdcSpecProductTypeType *|TThostFtdcCloseDealTypeType *|TThostFtdcCTPTypeType *|TThostFtdcMarginRateTypeType *|TThostFtdcActiveTypeType *|TThostFtdcMarginTypeType *|TThostFtdcLimitUseTypeType *|TThostFtdcSettleManagerTypeType *|TThostFtdcExportFileTypeType *|TThostFtdcAmlDateTypeType *|TThostFtdcRightParamTypeType *|TThostFtdcCSRCDataQueyTypeType *|TThostFtdcSysOperTypeType *|TThostFtdcCodeSourceTypeType *|TThostFtdcAccountSourceTypeType *|TThostFtdcFundEventTypeType *|TThostFtdcFutureTypeType *|TThostFtdcBrokerUserTypeType *|TThostFtdcOTPTypeType *|TThostFtdcExClientIDTypeType *|TThostFtdcExchangeIDTypeType *|TThostFtdcClientTypeType *|TThostFtdcBusinessTypeType *|TThostFtdcQuestionTypeType *|TThostFtdcSendTypeType *|TThostFtdcConditionalOrderSortTypeType *|TThostFtdcForceCloseTypeType *|TThostFtdcPasswordTypeType *|TThostFtdcBrokerTypeType *|TThostFtdcInvestorTypeType *|TThostFtdcFundTypeType *|TThostFtdcFundIOTypeType *|TThostFtdcBasisPriceTypeType *|TThostFtdcFileTypeType *|TThostFtdcMortgageTypeType *|TThostFtdcTradeTypeType *|TThostFtdcIdCardTypeType *|TThostFtdcPositionDateTypeType *|TThostFtdcPositionTypeType *|TThostFtdcClientIDTypeType *|TThostFtdcOrderPriceTypeType *|TThostFtdcOrderTypeType *|TThostFtdcTransferTypeType *|TThostFtdcUserTypeType *|TThostFtdcRateTypeType *|TThostFtdcNoteTypeType *|TThostFtdcSettlementBillTypeType *|TThostFtdcUserRightTypeType *|TThostFtdcMarginPriceTypeType *|TThostFtdcAlgoTypeType *|TThostFtdcPersonTypeType *|TThostFtdcUserEventTypeType *|TThostFtdcVirBankAccTypeType *|TThostFtdcCertificationTypeType *|TThostFtdcBanlanceTypeType *|TThostFtdcPassWordKeyTypeType *|TThostFtdcFBTPassWordTypeType *|TThostFtdcInstitutionTypeType *|TThostFtdcSystemTypeType *|TThostFtdcCustTypeType *|TThostFtdcOrganTypeType *|TThostFtdcBankAccTypeType *|TThostFtdcFutureAccTypeType *|TThostFtdcCommApiTypeType *|TThostFtdcSecuAccTypeType *|TThostFtdcSponsorTypeType *|TThostFtdcReqRspTypeType *|TThostFtdcFBTUserEventTypeType *|TThostFtdcSyncTypeType *|TThostFtdcFBEUserEventTypeType *|TThostFtdcSyncFlagType *|TThostFtdcFBEResultFlagType *|TThostFtdcFBEFileFlagType *|TThostFtdcSettlementStatusType *|TThostFtdcSystemStatusType *|TThostFtdcPublishStatusType *|TThostFtdcFundStatusType *|TThostFtdcFileUploadStatusType *|TThostFtdcBatchStatusType *|TThostFtdcInstrumentStatusType *|TThostFtdcOrderSubmitStatusType *|TThostFtdcOrderStatusType *|TThostFtdcOrderActionStatusType *|TThostFtdcTraderConnectStatusType *|TThostFtdcExchangeConnectStatusType *|TThostFtdcBrokerDataSyncStatusType *|TThostFtdcDataSyncStatusType *|TThostFtdcSysSettlementStatusType *|TThostFtdcBillGenStatusType *|TThostFtdcInvestorRiskStatusType *|TThostFtdcFBEExchStatusType *|TThostFtdcTransferStatusType *|TThostFtdcLinkStatusType *|TThostFtdcOrganStatusType *|TThostFtdcProcessStatusType *|TThostFtdcManageStatusType *|TThostFtdcMoneyAccountStatusType *|TThostFtdcBankAccStatusType *|TThostFtdcAMLGenStatusType *|TThostFtdcVirementStatusType *|TThostFtdcVirTradeStatusType *|TThostFtdcVirDealStatusType *|TThostFtdcParkedOrderStatusType *|TThostFtdcPwdFlagType *|TThostFtdcAvailabilityFlagType *|TThostFtdcTxnEndFlagType *|TThostFtdcBrokerRepealFlagType *|TThostFtdcBankRepealFlagType *|TThostFtdcFeePayFlagType *|TThostFtdcTransferValidFlagType *|TThostFtdcFuturePwdFlagType *|TThostFtdcOffsetFlagType *|TThostFtdcBillHedgeFlagType *|TThostFtdcHedgeFlagType *|TThostFtdcActionFlagType *|TThostFtdcFBEReqFlagType *|TThostFtdcRiskNotifyStatusType *|TThostFtdcClientIDStatusType *|TThostFtdcUpdateFlagType *|TThostFtdcCheckStatusType *|TThostFtdcUsedStatusType *|TThostFtdcOTPStatusType *|TThostFtdcSyncDataStatusType *|TThostFtdcFileStatusType *|TThostFtdcFreezeStatusType *|TThostFtdcStandardStatusType *|TThostFtdcDataStatusType *|TThostFtdcAMLCheckStatusType *|TThostFtdcBackUpStatusType *|TThostFtdcReportStatusType *|TThostFtdcSaveStatusType *|TThostFtdcSettArchiveStatusType *|TThostFtdcCurrencySwapStatusType *|TThostFtdcReqFlagType *|TThostFtdcResFlagType *|TThostFtdcExStatusType *|TThostFtdcForQuoteStatusType *|TThostFtdcExecOrderPositionFlagType *|TThostFtdcExecOrderCloseFlagType *|TThostFtdcProductClassType *|TThostFtdcNotifyClassType *|TThostFtdcBusinessClassType *|TThostFtdcUOAAssetmgrTypeType *|TThostFtdcOptionsTypeType *|TThostFtdcStrikeTypeType *|TThostFtdcApplyTypeType *|TThostFtdcCombinationTypeType *|TThostFtdcOptionRoyaltyPriceTypeType *|TThostFtdcActionTypeType *|TThostFtdcProductTypeType *|TThostFtdcFBTTradeCodeEnumType *|TThostFtdcFBEAlreadyTradeType *|TThostFtdcCCBFeeModeType *|TThostFtdcSyncModeType *|TThostFtdcConnectModeType *|TThostFtdcFBTEncryModeType *|TThostFtdcCashExchangeCodeType *|TThostFtdcFileBusinessCodeType *|TThostFtdcVirementTradeCodeType *|TThostFtdcStatModeType *|TThostFtdcAllWithoutTradeType *|TThostFtdcFunctionCodeType *|TThostFtdcBrokerFunctionCodeType *|TThostFtdcDeliveryModeType *|TThostFtdcCfmmcReturnCodeType *|TThostFtdcEventModeType *|TThostFtdcTradeSumStatModeType *|TThostFtdcExprSetModeType *|TThostFtdcFlexStatModeType *|TThostFtdcSysOperModeType *|TThostFtdcStartModeType *|TThostFtdcLoginModeType *|TThostFtdcStrikeModeType *|TThostFtdcInstLifePhaseType *|TThostFtdcProductLifePhaseType *|TThostFtdcVirementAvailAbilityType *|TThostFtdcCloseStyleType *|TThostFtdcSettlementStyleType *|TThostFtdcTradingRoleType *|TThostFtdcReturnStyleType *|TThostFtdcSpecialCreateRuleType *|TThostFtdcFeeAcceptStyleType *|TThostFtdcFileGenStyleType *|TThostFtdcOpenOrDestroyType *|TThostFtdcExchangePropertyType *|TThostFtdcQueryInvestorRangeType *|TThostFtdcInvestorRangeType *|TThostFtdcDepartmentRangeType *|TThostFtdcUserRangeType *|TThostFtdcRateInvestorRangeType *|TThostFtdcByInvestorRangeType *|TThostFtdcPropertyInvestorRangeType *|TThostFtdcMortgageFundUseRangeType *|TThostFtdcHasTrusteeType *|TThostFtdcPositionDateType *|TThostFtdcAlgorithmType *|TThostFtdcMaxMarginSideAlgorithmType *|TThostFtdcBalanceAlgorithmType *|TThostFtdcCZCEUploadFileNameType *|TThostFtdcDCEUploadFileNameType *|TThostFtdcSHFEUploadFileNameType *|TThostFtdcCFFEXUploadFileNameType *|TThostFtdcOrderSourceType *|TThostFtdcPriceSourceType *|TThostFtdcTradeSourceType *|TThostFtdcDataResourceType *|TThostFtdcGiveUpDataSourceType *|TThostFtdcMonthBillTradeSumType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "TThostFtdcSingleMinAmtType *|TThostFtdcTotalAmtType *|TThostFtdcFBEAmtType *|TThostFtdcSingleMaxAmtType *|TThostFtdcTradeAmountType *|TThostFtdcCurrencyUnitType *|double *|TThostFtdcLargeVolumeType *|TThostFtdcExchangeRateType *|TThostFtdcCSRCStrikePriceType *|TThostFtdcCSRCPriceType *|TThostFtdcExRateType *|TThostFtdcCustFeeType *|TThostFtdcFutureFeeType *|TThostFtdcPriceType *|TThostFtdcRatioType *|TThostFtdcAMLOpParamValueType *|TThostFtdcAMLMoneyType *|TThostFtdcMoneyType *|TThostFtdcUnderlyingMultipleType *|TThostFtdcCSRCMoneyType *|TThostFtdcBigMoneyType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *|TThostFtdcMonthType *|TThostFtdcTradingSegmentSNType *|TThostFtdcDRIdentityIDType *|TThostFtdcParamIDType *|TThostFtdcServiceIDType *|TThostFtdcLegIDType *|TThostFtdcTopicIDType *|TThostFtdcBankProxyIDType *|TThostFtdcFBTCoreIDType *|TThostFtdcSequenceNo12Type *|TThostFtdcLastDriftType *|TThostFtdcCommApiPointerType *|TThostFtdcBoolType *|TThostFtdcApplicationIDType *|TThostFtdcRequestIDType *|TThostFtdcInstallIDType *|TThostFtdcErrorIDType *|TThostFtdcSettlementIDType *|TThostFtdcFrontIDType *|TThostFtdcSessionIDType *|TThostFtdcFBTRequestIDType *|TThostFtdcTIDType *|TThostFtdcDataCenterIDType *|TThostFtdcTradeGroupIDType *|TThostFtdcFutureSerialType *|TThostFtdcCorrectSerialType *|TThostFtdcPlateSerialType *|TThostFtdcSerialType *|TThostFtdcQueryDepthType *|TThostFtdcTimestampType *|TThostFtdcOrderActionRefType *|TThostFtdcAMLFileAmountType *|TThostFtdcMonthCountType *|TThostFtdcInstallCountType *|TThostFtdcFBETotalExCntType *|TThostFtdcRecordCountType *|TThostFtdcRepealTimeIntervalType *|TThostFtdcIPPortType *|TThostFtdcServerPortType *|TThostFtdcYearType *|TThostFtdcImplyLevelType *|TThostFtdcVolumeMultipleType *|TThostFtdcLegMultipleType *|TThostFtdcLastSuccessType *|TThostFtdcDCEPriorityType *|TThostFtdcComTypeType *|TThostFtdcPriorityType *|TThostFtdcCommandNoType *|TThostFtdcSubEntryFundNoType *|TThostFtdcTradeSerialNoType *|TThostFtdcSequenceNoType *|TThostFtdcServiceLineNoType *|TThostFtdcDBOPSeqNoType *|TThostFtdcSeqNoType *|TThostFtdcCheckNoType *|TThostFtdcMillisecType *|TThostFtdcStrikeSequenceType *|TThostFtdcVolumeType *|TThostFtdcIsCheckPrepaType *|TThostFtdcExReturnCodeType *|TThostFtdcRepealedTimesType *|TThostFtdcTotalTimesType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_short = {"_p_short", "TThostFtdcSequenceSeriesType *|TThostFtdcCommPhaseNoType *|short *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_CThostFtdcAccountregisterField, &_swigt__p_CThostFtdcAuthenticationInfoField, &_swigt__p_CThostFtdcBrokerDepositField, &_swigt__p_CThostFtdcBrokerField, &_swigt__p_CThostFtdcBrokerSyncField, &_swigt__p_CThostFtdcBrokerTradingAlgosField, &_swigt__p_CThostFtdcBrokerTradingParamsField, &_swigt__p_CThostFtdcBrokerUserEventField, &_swigt__p_CThostFtdcBrokerUserField, &_swigt__p_CThostFtdcBrokerUserFunctionField, &_swigt__p_CThostFtdcBrokerUserOTPParamField, &_swigt__p_CThostFtdcBrokerUserPasswordField, &_swigt__p_CThostFtdcBrokerUserRightAssignField, &_swigt__p_CThostFtdcBrokerWithdrawAlgorithmField, &_swigt__p_CThostFtdcCFMMCBrokerKeyField, &_swigt__p_CThostFtdcCFMMCTradingAccountKeyField, &_swigt__p_CThostFtdcCFMMCTradingAccountTokenField, &_swigt__p_CThostFtdcCancelAccountField, &_swigt__p_CThostFtdcChangeAccountField, &_swigt__p_CThostFtdcCombActionField, &_swigt__p_CThostFtdcCombInstrumentGuardField, &_swigt__p_CThostFtdcCombinationLegField, &_swigt__p_CThostFtdcCommPhaseField, &_swigt__p_CThostFtdcCommRateModelField, &_swigt__p_CThostFtdcContractBankField, &_swigt__p_CThostFtdcCurrTransferIdentityField, &_swigt__p_CThostFtdcCurrentTimeField, &_swigt__p_CThostFtdcDRTransferField, &_swigt__p_CThostFtdcDepositResultInformField, &_swigt__p_CThostFtdcDepthMarketDataField, &_swigt__p_CThostFtdcDiscountField, &_swigt__p_CThostFtdcDisseminationField, &_swigt__p_CThostFtdcEWarrantOffsetField, &_swigt__p_CThostFtdcErrExecOrderActionField, &_swigt__p_CThostFtdcErrExecOrderField, &_swigt__p_CThostFtdcErrOrderActionField, &_swigt__p_CThostFtdcErrOrderField, &_swigt__p_CThostFtdcErrorConditionalOrderField, &_swigt__p_CThostFtdcExchangeCombActionField, &_swigt__p_CThostFtdcExchangeExecOrderActionField, &_swigt__p_CThostFtdcExchangeExecOrderField, &_swigt__p_CThostFtdcExchangeField, &_swigt__p_CThostFtdcExchangeForQuoteField, &_swigt__p_CThostFtdcExchangeMarginRateAdjustField, &_swigt__p_CThostFtdcExchangeMarginRateField, &_swigt__p_CThostFtdcExchangeOrderActionErrorField, &_swigt__p_CThostFtdcExchangeOrderActionField, &_swigt__p_CThostFtdcExchangeOrderField, &_swigt__p_CThostFtdcExchangeOrderInsertErrorField, &_swigt__p_CThostFtdcExchangeQuoteActionField, &_swigt__p_CThostFtdcExchangeQuoteField, &_swigt__p_CThostFtdcExchangeRateField, &_swigt__p_CThostFtdcExchangeSequenceField, &_swigt__p_CThostFtdcExchangeTradeField, &_swigt__p_CThostFtdcExecOrderActionField, &_swigt__p_CThostFtdcExecOrderField, &_swigt__p_CThostFtdcFensUserInfoField, &_swigt__p_CThostFtdcForQuoteField, &_swigt__p_CThostFtdcForQuoteRspField, &_swigt__p_CThostFtdcForceUserLogoutField, &_swigt__p_CThostFtdcFrontStatusField, &_swigt__p_CThostFtdcFutureSignIOField, &_swigt__p_CThostFtdcIndexPriceField, &_swigt__p_CThostFtdcInputCombActionField, &_swigt__p_CThostFtdcInputExecOrderActionField, &_swigt__p_CThostFtdcInputExecOrderField, &_swigt__p_CThostFtdcInputForQuoteField, &_swigt__p_CThostFtdcInputOrderActionField, &_swigt__p_CThostFtdcInputOrderField, &_swigt__p_CThostFtdcInputQuoteActionField, &_swigt__p_CThostFtdcInputQuoteField, &_swigt__p_CThostFtdcInstrumentCommissionRateField, &_swigt__p_CThostFtdcInstrumentField, &_swigt__p_CThostFtdcInstrumentMarginRateAdjustField, &_swigt__p_CThostFtdcInstrumentMarginRateField, &_swigt__p_CThostFtdcInstrumentStatusField, &_swigt__p_CThostFtdcInstrumentTradingRightField, &_swigt__p_CThostFtdcInvestorAccountField, &_swigt__p_CThostFtdcInvestorField, &_swigt__p_CThostFtdcInvestorGroupField, &_swigt__p_CThostFtdcInvestorPositionCombineDetailField, &_swigt__p_CThostFtdcInvestorPositionDetailField, &_swigt__p_CThostFtdcInvestorPositionField, &_swigt__p_CThostFtdcInvestorProductGroupMarginField, &_swigt__p_CThostFtdcInvestorWithdrawAlgorithmField, &_swigt__p_CThostFtdcLinkManField, &_swigt__p_CThostFtdcLoadSettlementInfoField, &_swigt__p_CThostFtdcLoginForbiddenUserField, &_swigt__p_CThostFtdcLoginInfoField, &_swigt__p_CThostFtdcLogoutAllField, &_swigt__p_CThostFtdcMDTraderOfferField, &_swigt__p_CThostFtdcManualSyncBrokerUserOTPField, &_swigt__p_CThostFtdcMarginModelField, &_swigt__p_CThostFtdcMarketDataAsk23Field, &_swigt__p_CThostFtdcMarketDataAsk45Field, &_swigt__p_CThostFtdcMarketDataAveragePriceField, &_swigt__p_CThostFtdcMarketDataBaseField, &_swigt__p_CThostFtdcMarketDataBestPriceField, &_swigt__p_CThostFtdcMarketDataBid23Field, &_swigt__p_CThostFtdcMarketDataBid45Field, &_swigt__p_CThostFtdcMarketDataExchangeField, &_swigt__p_CThostFtdcMarketDataField, &_swigt__p_CThostFtdcMarketDataLastMatchField, &_swigt__p_CThostFtdcMarketDataStaticField, &_swigt__p_CThostFtdcMarketDataUpdateTimeField, &_swigt__p_CThostFtdcMdApi, &_swigt__p_CThostFtdcMdSpi, &_swigt__p_CThostFtdcMulticastGroupInfoField, &_swigt__p_CThostFtdcNoticeField, &_swigt__p_CThostFtdcNotifyFutureSignInField, &_swigt__p_CThostFtdcNotifyFutureSignOutField, &_swigt__p_CThostFtdcNotifyQueryAccountField, &_swigt__p_CThostFtdcNotifySyncKeyField, &_swigt__p_CThostFtdcOpenAccountField, &_swigt__p_CThostFtdcOptionInstrCommRateField, &_swigt__p_CThostFtdcOptionInstrDeltaField, &_swigt__p_CThostFtdcOptionInstrMarginAdjustField, &_swigt__p_CThostFtdcOptionInstrMiniMarginField, &_swigt__p_CThostFtdcOptionInstrTradeCostField, &_swigt__p_CThostFtdcOptionInstrTradingRightField, &_swigt__p_CThostFtdcOrderActionField, &_swigt__p_CThostFtdcOrderField, &_swigt__p_CThostFtdcParkedOrderActionField, &_swigt__p_CThostFtdcParkedOrderField, &_swigt__p_CThostFtdcPartBrokerField, &_swigt__p_CThostFtdcPositionProfitAlgorithmField, &_swigt__p_CThostFtdcProductExchRateField, &_swigt__p_CThostFtdcProductField, &_swigt__p_CThostFtdcQryAccountregisterField, &_swigt__p_CThostFtdcQryBrokerField, &_swigt__p_CThostFtdcQryBrokerTradingAlgosField, &_swigt__p_CThostFtdcQryBrokerTradingParamsField, &_swigt__p_CThostFtdcQryBrokerUserEventField, &_swigt__p_CThostFtdcQryBrokerUserField, &_swigt__p_CThostFtdcQryBrokerUserFunctionField, &_swigt__p_CThostFtdcQryCFMMCBrokerKeyField, &_swigt__p_CThostFtdcQryCFMMCTradingAccountKeyField, &_swigt__p_CThostFtdcQryCombActionField, &_swigt__p_CThostFtdcQryCombInstrumentGuardField, &_swigt__p_CThostFtdcQryCombinationLegField, &_swigt__p_CThostFtdcQryCommRateModelField, &_swigt__p_CThostFtdcQryContractBankField, &_swigt__p_CThostFtdcQryDepthMarketDataField, &_swigt__p_CThostFtdcQryEWarrantOffsetField, &_swigt__p_CThostFtdcQryErrExecOrderActionField, &_swigt__p_CThostFtdcQryErrExecOrderField, &_swigt__p_CThostFtdcQryErrOrderActionField, &_swigt__p_CThostFtdcQryErrOrderField, &_swigt__p_CThostFtdcQryExchangeCombActionField, &_swigt__p_CThostFtdcQryExchangeExecOrderActionField, &_swigt__p_CThostFtdcQryExchangeExecOrderField, &_swigt__p_CThostFtdcQryExchangeField, &_swigt__p_CThostFtdcQryExchangeForQuoteField, &_swigt__p_CThostFtdcQryExchangeMarginRateAdjustField, &_swigt__p_CThostFtdcQryExchangeMarginRateField, &_swigt__p_CThostFtdcQryExchangeOrderActionField, &_swigt__p_CThostFtdcQryExchangeOrderField, &_swigt__p_CThostFtdcQryExchangeQuoteActionField, &_swigt__p_CThostFtdcQryExchangeQuoteField, &_swigt__p_CThostFtdcQryExchangeRateField, &_swigt__p_CThostFtdcQryExchangeSequenceField, &_swigt__p_CThostFtdcQryExecOrderActionField, &_swigt__p_CThostFtdcQryExecOrderField, &_swigt__p_CThostFtdcQryForQuoteField, &_swigt__p_CThostFtdcQryFrontStatusField, &_swigt__p_CThostFtdcQryHisOrderField, &_swigt__p_CThostFtdcQryInstrumentCommissionRateField, &_swigt__p_CThostFtdcQryInstrumentField, &_swigt__p_CThostFtdcQryInstrumentMarginRateField, &_swigt__p_CThostFtdcQryInstrumentStatusField, &_swigt__p_CThostFtdcQryInstrumentTradingRightField, &_swigt__p_CThostFtdcQryInvestorField, &_swigt__p_CThostFtdcQryInvestorGroupField, &_swigt__p_CThostFtdcQryInvestorPositionCombineDetailField, &_swigt__p_CThostFtdcQryInvestorPositionDetailField, &_swigt__p_CThostFtdcQryInvestorPositionField, &_swigt__p_CThostFtdcQryInvestorProductGroupMarginField, &_swigt__p_CThostFtdcQryLinkManField, &_swigt__p_CThostFtdcQryLoginForbiddenUserField, &_swigt__p_CThostFtdcQryMDTraderOfferField, &_swigt__p_CThostFtdcQryMarginModelField, &_swigt__p_CThostFtdcQryNoticeField, &_swigt__p_CThostFtdcQryOptionInstrCommRateField, &_swigt__p_CThostFtdcQryOptionInstrTradeCostField, &_swigt__p_CThostFtdcQryOptionInstrTradingRightField, &_swigt__p_CThostFtdcQryOrderActionField, &_swigt__p_CThostFtdcQryOrderField, &_swigt__p_CThostFtdcQryParkedOrderActionField, &_swigt__p_CThostFtdcQryParkedOrderField, &_swigt__p_CThostFtdcQryPartBrokerField, &_swigt__p_CThostFtdcQryProductExchRateField, &_swigt__p_CThostFtdcQryProductField, &_swigt__p_CThostFtdcQryQuoteActionField, &_swigt__p_CThostFtdcQryQuoteField, &_swigt__p_CThostFtdcQrySecAgentACIDMapField, &_swigt__p_CThostFtdcQrySettlementInfoConfirmField, &_swigt__p_CThostFtdcQrySettlementInfoField, &_swigt__p_CThostFtdcQryStrikeOffsetField, &_swigt__p_CThostFtdcQrySuperUserField, &_swigt__p_CThostFtdcQrySuperUserFunctionField, &_swigt__p_CThostFtdcQrySyncDepositField, &_swigt__p_CThostFtdcQrySyncFundMortgageField, &_swigt__p_CThostFtdcQrySyncStatusField, &_swigt__p_CThostFtdcQryTradeField, &_swigt__p_CThostFtdcQryTraderField, &_swigt__p_CThostFtdcQryTraderOfferField, &_swigt__p_CThostFtdcQryTradingAccountField, &_swigt__p_CThostFtdcQryTradingCodeField, &_swigt__p_CThostFtdcQryTradingNoticeField, &_swigt__p_CThostFtdcQryTransferBankField, &_swigt__p_CThostFtdcQryTransferSerialField, &_swigt__p_CThostFtdcQryUserSessionField, &_swigt__p_CThostFtdcQueryBrokerDepositField, &_swigt__p_CThostFtdcQueryCFMMCTradingAccountTokenField, &_swigt__p_CThostFtdcQueryMaxOrderVolumeField, &_swigt__p_CThostFtdcQueryMaxOrderVolumeWithPriceField, &_swigt__p_CThostFtdcQuoteActionField, &_swigt__p_CThostFtdcQuoteField, &_swigt__p_CThostFtdcRemoveParkedOrderActionField, &_swigt__p_CThostFtdcRemoveParkedOrderField, &_swigt__p_CThostFtdcReqAuthenticateField, &_swigt__p_CThostFtdcReqCancelAccountField, &_swigt__p_CThostFtdcReqChangeAccountField, &_swigt__p_CThostFtdcReqDayEndFileReadyField, &_swigt__p_CThostFtdcReqFutureSignOutField, &_swigt__p_CThostFtdcReqOpenAccountField, &_swigt__p_CThostFtdcReqQueryAccountField, &_swigt__p_CThostFtdcReqQueryTradeResultBySerialField, &_swigt__p_CThostFtdcReqRepealField, &_swigt__p_CThostFtdcReqSyncKeyField, &_swigt__p_CThostFtdcReqTransferField, &_swigt__p_CThostFtdcReqUserLoginField, &_swigt__p_CThostFtdcReturnResultField, &_swigt__p_CThostFtdcRspAuthenticateField, &_swigt__p_CThostFtdcRspFutureSignInField, &_swigt__p_CThostFtdcRspFutureSignOutField, &_swigt__p_CThostFtdcRspInfoField, &_swigt__p_CThostFtdcRspQueryAccountField, &_swigt__p_CThostFtdcRspQueryTradeResultBySerialField, &_swigt__p_CThostFtdcRspRepealField, &_swigt__p_CThostFtdcRspSyncKeyField, &_swigt__p_CThostFtdcRspTransferField, &_swigt__p_CThostFtdcRspUserLoginField, &_swigt__p_CThostFtdcSecAgentACIDMapField, &_swigt__p_CThostFtdcSettlementInfoConfirmField, &_swigt__p_CThostFtdcSettlementInfoField, &_swigt__p_CThostFtdcSettlementRefField, &_swigt__p_CThostFtdcSpecificInstrumentField, &_swigt__p_CThostFtdcStrikeOffsetField, &_swigt__p_CThostFtdcSuperUserField, &_swigt__p_CThostFtdcSuperUserFunctionField, &_swigt__p_CThostFtdcSyncDepositField, &_swigt__p_CThostFtdcSyncFundMortgageField, &_swigt__p_CThostFtdcSyncStatusField, &_swigt__p_CThostFtdcSyncingInstrumentCommissionRateField, &_swigt__p_CThostFtdcSyncingInstrumentMarginRateField, &_swigt__p_CThostFtdcSyncingInstrumentTradingRightField, &_swigt__p_CThostFtdcSyncingInvestorField, &_swigt__p_CThostFtdcSyncingInvestorGroupField, &_swigt__p_CThostFtdcSyncingInvestorPositionField, &_swigt__p_CThostFtdcSyncingTradingAccountField, &_swigt__p_CThostFtdcSyncingTradingCodeField, &_swigt__p_CThostFtdcTradeField, &_swigt__p_CThostFtdcTraderApi, &_swigt__p_CThostFtdcTraderField, &_swigt__p_CThostFtdcTraderOfferField, &_swigt__p_CThostFtdcTraderSpi, &_swigt__p_CThostFtdcTradingAccountField, &_swigt__p_CThostFtdcTradingAccountPasswordField, &_swigt__p_CThostFtdcTradingAccountPasswordUpdateField, &_swigt__p_CThostFtdcTradingAccountPasswordUpdateV1Field, &_swigt__p_CThostFtdcTradingAccountReserveField, &_swigt__p_CThostFtdcTradingCodeField, &_swigt__p_CThostFtdcTradingNoticeField, &_swigt__p_CThostFtdcTradingNoticeInfoField, &_swigt__p_CThostFtdcTransferBankField, &_swigt__p_CThostFtdcTransferBankToFutureReqField, &_swigt__p_CThostFtdcTransferBankToFutureRspField, &_swigt__p_CThostFtdcTransferFutureToBankReqField, &_swigt__p_CThostFtdcTransferFutureToBankRspField, &_swigt__p_CThostFtdcTransferHeaderField, &_swigt__p_CThostFtdcTransferQryBankReqField, &_swigt__p_CThostFtdcTransferQryBankRspField, &_swigt__p_CThostFtdcTransferQryDetailReqField, &_swigt__p_CThostFtdcTransferQryDetailRspField, &_swigt__p_CThostFtdcTransferSerialField, &_swigt__p_CThostFtdcUserIPField, &_swigt__p_CThostFtdcUserLogoutField, &_swigt__p_CThostFtdcUserPasswordUpdateField, &_swigt__p_CThostFtdcUserRightField, &_swigt__p_CThostFtdcUserRightsAssignField, &_swigt__p_CThostFtdcUserSessionField, &_swigt__p_CThostFtdcVerifyCustInfoField, &_swigt__p_CThostFtdcVerifyFuturePasswordAndCustInfoField, &_swigt__p_CThostFtdcVerifyFuturePasswordField, &_swigt__p_CThostFtdcVerifyInvestorPasswordField, &_swigt__p_a_1001__char, &_swigt__p_a_101__char, &_swigt__p_a_1025__char, &_swigt__p_a_10__char, &_swigt__p_a_11__char, &_swigt__p_a_129__char, &_swigt__p_a_12__char, &_swigt__p_a_13__char, &_swigt__p_a_15__char, &_swigt__p_a_161__char, &_swigt__p_a_16__char, &_swigt__p_a_17__char, &_swigt__p_a_201__char, &_swigt__p_a_2049__char, &_swigt__p_a_20__char, &_swigt__p_a_21__char, &_swigt__p_a_22__char, &_swigt__p_a_23__char, &_swigt__p_a_24__char, &_swigt__p_a_256__char, &_swigt__p_a_257__char, &_swigt__p_a_25__char, &_swigt__p_a_2__char, &_swigt__p_a_31__char, &_swigt__p_a_33__char, &_swigt__p_a_36__char, &_swigt__p_a_3__char, &_swigt__p_a_401__char, &_swigt__p_a_41__char, &_swigt__p_a_4__char, &_swigt__p_a_501__char, &_swigt__p_a_513__char, &_swigt__p_a_51__char, &_swigt__p_a_5__char, &_swigt__p_a_61__char, &_swigt__p_a_65__char, &_swigt__p_a_6__char, &_swigt__p_a_71__char, &_swigt__p_a_7__char, &_swigt__p_a_81__char, &_swigt__p_a_9__char, &_swigt__p_char, &_swigt__p_double, &_swigt__p_int, &_swigt__p_short, }; static swig_cast_info _swigc__p_CThostFtdcAccountregisterField[] = { {&_swigt__p_CThostFtdcAccountregisterField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcAuthenticationInfoField[] = { {&_swigt__p_CThostFtdcAuthenticationInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerDepositField[] = { {&_swigt__p_CThostFtdcBrokerDepositField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerField[] = { {&_swigt__p_CThostFtdcBrokerField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerSyncField[] = { {&_swigt__p_CThostFtdcBrokerSyncField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerTradingAlgosField[] = { {&_swigt__p_CThostFtdcBrokerTradingAlgosField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerTradingParamsField[] = { {&_swigt__p_CThostFtdcBrokerTradingParamsField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerUserEventField[] = { {&_swigt__p_CThostFtdcBrokerUserEventField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerUserField[] = { {&_swigt__p_CThostFtdcBrokerUserField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerUserFunctionField[] = { {&_swigt__p_CThostFtdcBrokerUserFunctionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerUserOTPParamField[] = { {&_swigt__p_CThostFtdcBrokerUserOTPParamField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerUserPasswordField[] = { {&_swigt__p_CThostFtdcBrokerUserPasswordField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerUserRightAssignField[] = { {&_swigt__p_CThostFtdcBrokerUserRightAssignField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcBrokerWithdrawAlgorithmField[] = { {&_swigt__p_CThostFtdcBrokerWithdrawAlgorithmField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCFMMCBrokerKeyField[] = { {&_swigt__p_CThostFtdcCFMMCBrokerKeyField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCFMMCTradingAccountKeyField[] = { {&_swigt__p_CThostFtdcCFMMCTradingAccountKeyField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCFMMCTradingAccountTokenField[] = { {&_swigt__p_CThostFtdcCFMMCTradingAccountTokenField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCancelAccountField[] = { {&_swigt__p_CThostFtdcCancelAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcChangeAccountField[] = { {&_swigt__p_CThostFtdcChangeAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCombActionField[] = { {&_swigt__p_CThostFtdcCombActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCombInstrumentGuardField[] = { {&_swigt__p_CThostFtdcCombInstrumentGuardField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCombinationLegField[] = { {&_swigt__p_CThostFtdcCombinationLegField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCommPhaseField[] = { {&_swigt__p_CThostFtdcCommPhaseField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCommRateModelField[] = { {&_swigt__p_CThostFtdcCommRateModelField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcContractBankField[] = { {&_swigt__p_CThostFtdcContractBankField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCurrTransferIdentityField[] = { {&_swigt__p_CThostFtdcCurrTransferIdentityField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcCurrentTimeField[] = { {&_swigt__p_CThostFtdcCurrentTimeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcDRTransferField[] = { {&_swigt__p_CThostFtdcDRTransferField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcDepositResultInformField[] = { {&_swigt__p_CThostFtdcDepositResultInformField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcDepthMarketDataField[] = { {&_swigt__p_CThostFtdcDepthMarketDataField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcDiscountField[] = { {&_swigt__p_CThostFtdcDiscountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcDisseminationField[] = { {&_swigt__p_CThostFtdcDisseminationField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcEWarrantOffsetField[] = { {&_swigt__p_CThostFtdcEWarrantOffsetField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcErrExecOrderActionField[] = { {&_swigt__p_CThostFtdcErrExecOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcErrExecOrderField[] = { {&_swigt__p_CThostFtdcErrExecOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcErrOrderActionField[] = { {&_swigt__p_CThostFtdcErrOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcErrOrderField[] = { {&_swigt__p_CThostFtdcErrOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcErrorConditionalOrderField[] = { {&_swigt__p_CThostFtdcErrorConditionalOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeCombActionField[] = { {&_swigt__p_CThostFtdcExchangeCombActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeExecOrderActionField[] = { {&_swigt__p_CThostFtdcExchangeExecOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeExecOrderField[] = { {&_swigt__p_CThostFtdcExchangeExecOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeField[] = { {&_swigt__p_CThostFtdcExchangeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeForQuoteField[] = { {&_swigt__p_CThostFtdcExchangeForQuoteField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeMarginRateAdjustField[] = { {&_swigt__p_CThostFtdcExchangeMarginRateAdjustField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeMarginRateField[] = { {&_swigt__p_CThostFtdcExchangeMarginRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeOrderActionErrorField[] = { {&_swigt__p_CThostFtdcExchangeOrderActionErrorField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeOrderActionField[] = { {&_swigt__p_CThostFtdcExchangeOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeOrderField[] = { {&_swigt__p_CThostFtdcExchangeOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeOrderInsertErrorField[] = { {&_swigt__p_CThostFtdcExchangeOrderInsertErrorField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeQuoteActionField[] = { {&_swigt__p_CThostFtdcExchangeQuoteActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeQuoteField[] = { {&_swigt__p_CThostFtdcExchangeQuoteField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeRateField[] = { {&_swigt__p_CThostFtdcExchangeRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeSequenceField[] = { {&_swigt__p_CThostFtdcExchangeSequenceField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExchangeTradeField[] = { {&_swigt__p_CThostFtdcExchangeTradeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExecOrderActionField[] = { {&_swigt__p_CThostFtdcExecOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcExecOrderField[] = { {&_swigt__p_CThostFtdcExecOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcFensUserInfoField[] = { {&_swigt__p_CThostFtdcFensUserInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcForQuoteField[] = { {&_swigt__p_CThostFtdcForQuoteField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcForQuoteRspField[] = { {&_swigt__p_CThostFtdcForQuoteRspField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcForceUserLogoutField[] = { {&_swigt__p_CThostFtdcForceUserLogoutField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcFrontStatusField[] = { {&_swigt__p_CThostFtdcFrontStatusField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcFutureSignIOField[] = { {&_swigt__p_CThostFtdcFutureSignIOField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcIndexPriceField[] = { {&_swigt__p_CThostFtdcIndexPriceField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInputCombActionField[] = { {&_swigt__p_CThostFtdcInputCombActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInputExecOrderActionField[] = { {&_swigt__p_CThostFtdcInputExecOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInputExecOrderField[] = { {&_swigt__p_CThostFtdcInputExecOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInputForQuoteField[] = { {&_swigt__p_CThostFtdcInputForQuoteField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInputOrderActionField[] = { {&_swigt__p_CThostFtdcInputOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInputOrderField[] = { {&_swigt__p_CThostFtdcInputOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInputQuoteActionField[] = { {&_swigt__p_CThostFtdcInputQuoteActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInputQuoteField[] = { {&_swigt__p_CThostFtdcInputQuoteField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInstrumentCommissionRateField[] = { {&_swigt__p_CThostFtdcInstrumentCommissionRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInstrumentField[] = { {&_swigt__p_CThostFtdcInstrumentField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInstrumentMarginRateAdjustField[] = { {&_swigt__p_CThostFtdcInstrumentMarginRateAdjustField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInstrumentMarginRateField[] = { {&_swigt__p_CThostFtdcInstrumentMarginRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInstrumentStatusField[] = { {&_swigt__p_CThostFtdcInstrumentStatusField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInstrumentTradingRightField[] = { {&_swigt__p_CThostFtdcInstrumentTradingRightField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInvestorAccountField[] = { {&_swigt__p_CThostFtdcInvestorAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInvestorField[] = { {&_swigt__p_CThostFtdcInvestorField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInvestorGroupField[] = { {&_swigt__p_CThostFtdcInvestorGroupField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInvestorPositionCombineDetailField[] = { {&_swigt__p_CThostFtdcInvestorPositionCombineDetailField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInvestorPositionDetailField[] = { {&_swigt__p_CThostFtdcInvestorPositionDetailField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInvestorPositionField[] = { {&_swigt__p_CThostFtdcInvestorPositionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInvestorProductGroupMarginField[] = { {&_swigt__p_CThostFtdcInvestorProductGroupMarginField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcInvestorWithdrawAlgorithmField[] = { {&_swigt__p_CThostFtdcInvestorWithdrawAlgorithmField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcLinkManField[] = { {&_swigt__p_CThostFtdcLinkManField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcLoadSettlementInfoField[] = { {&_swigt__p_CThostFtdcLoadSettlementInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcLoginForbiddenUserField[] = { {&_swigt__p_CThostFtdcLoginForbiddenUserField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcLoginInfoField[] = { {&_swigt__p_CThostFtdcLoginInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcLogoutAllField[] = { {&_swigt__p_CThostFtdcLogoutAllField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMDTraderOfferField[] = { {&_swigt__p_CThostFtdcMDTraderOfferField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcManualSyncBrokerUserOTPField[] = { {&_swigt__p_CThostFtdcManualSyncBrokerUserOTPField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarginModelField[] = { {&_swigt__p_CThostFtdcMarginModelField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataAsk23Field[] = { {&_swigt__p_CThostFtdcMarketDataAsk23Field, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataAsk45Field[] = { {&_swigt__p_CThostFtdcMarketDataAsk45Field, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataAveragePriceField[] = { {&_swigt__p_CThostFtdcMarketDataAveragePriceField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataBaseField[] = { {&_swigt__p_CThostFtdcMarketDataBaseField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataBestPriceField[] = { {&_swigt__p_CThostFtdcMarketDataBestPriceField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataBid23Field[] = { {&_swigt__p_CThostFtdcMarketDataBid23Field, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataBid45Field[] = { {&_swigt__p_CThostFtdcMarketDataBid45Field, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataExchangeField[] = { {&_swigt__p_CThostFtdcMarketDataExchangeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataField[] = { {&_swigt__p_CThostFtdcMarketDataField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataLastMatchField[] = { {&_swigt__p_CThostFtdcMarketDataLastMatchField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataStaticField[] = { {&_swigt__p_CThostFtdcMarketDataStaticField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMarketDataUpdateTimeField[] = { {&_swigt__p_CThostFtdcMarketDataUpdateTimeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMdApi[] = { {&_swigt__p_CThostFtdcMdApi, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMdSpi[] = { {&_swigt__p_CThostFtdcMdSpi, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcMulticastGroupInfoField[] = { {&_swigt__p_CThostFtdcMulticastGroupInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcNoticeField[] = { {&_swigt__p_CThostFtdcNoticeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcNotifyFutureSignInField[] = { {&_swigt__p_CThostFtdcNotifyFutureSignInField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcNotifyFutureSignOutField[] = { {&_swigt__p_CThostFtdcNotifyFutureSignOutField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcNotifyQueryAccountField[] = { {&_swigt__p_CThostFtdcNotifyQueryAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcNotifySyncKeyField[] = { {&_swigt__p_CThostFtdcNotifySyncKeyField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcOpenAccountField[] = { {&_swigt__p_CThostFtdcOpenAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcOptionInstrCommRateField[] = { {&_swigt__p_CThostFtdcOptionInstrCommRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcOptionInstrDeltaField[] = { {&_swigt__p_CThostFtdcOptionInstrDeltaField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcOptionInstrMarginAdjustField[] = { {&_swigt__p_CThostFtdcOptionInstrMarginAdjustField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcOptionInstrMiniMarginField[] = { {&_swigt__p_CThostFtdcOptionInstrMiniMarginField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcOptionInstrTradeCostField[] = { {&_swigt__p_CThostFtdcOptionInstrTradeCostField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcOptionInstrTradingRightField[] = { {&_swigt__p_CThostFtdcOptionInstrTradingRightField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcOrderActionField[] = { {&_swigt__p_CThostFtdcOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcOrderField[] = { {&_swigt__p_CThostFtdcOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcParkedOrderActionField[] = { {&_swigt__p_CThostFtdcParkedOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcParkedOrderField[] = { {&_swigt__p_CThostFtdcParkedOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcPartBrokerField[] = { {&_swigt__p_CThostFtdcPartBrokerField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcPositionProfitAlgorithmField[] = { {&_swigt__p_CThostFtdcPositionProfitAlgorithmField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcProductExchRateField[] = { {&_swigt__p_CThostFtdcProductExchRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcProductField[] = { {&_swigt__p_CThostFtdcProductField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryAccountregisterField[] = { {&_swigt__p_CThostFtdcQryAccountregisterField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryBrokerField[] = { {&_swigt__p_CThostFtdcQryBrokerField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryBrokerTradingAlgosField[] = { {&_swigt__p_CThostFtdcQryBrokerTradingAlgosField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryBrokerTradingParamsField[] = { {&_swigt__p_CThostFtdcQryBrokerTradingParamsField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryBrokerUserEventField[] = { {&_swigt__p_CThostFtdcQryBrokerUserEventField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryBrokerUserField[] = { {&_swigt__p_CThostFtdcQryBrokerUserField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryBrokerUserFunctionField[] = { {&_swigt__p_CThostFtdcQryBrokerUserFunctionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryCFMMCBrokerKeyField[] = { {&_swigt__p_CThostFtdcQryCFMMCBrokerKeyField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryCFMMCTradingAccountKeyField[] = { {&_swigt__p_CThostFtdcQryCFMMCTradingAccountKeyField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryCombActionField[] = { {&_swigt__p_CThostFtdcQryCombActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryCombInstrumentGuardField[] = { {&_swigt__p_CThostFtdcQryCombInstrumentGuardField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryCombinationLegField[] = { {&_swigt__p_CThostFtdcQryCombinationLegField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryCommRateModelField[] = { {&_swigt__p_CThostFtdcQryCommRateModelField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryContractBankField[] = { {&_swigt__p_CThostFtdcQryContractBankField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryDepthMarketDataField[] = { {&_swigt__p_CThostFtdcQryDepthMarketDataField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryEWarrantOffsetField[] = { {&_swigt__p_CThostFtdcQryEWarrantOffsetField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryErrExecOrderActionField[] = { {&_swigt__p_CThostFtdcQryErrExecOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryErrExecOrderField[] = { {&_swigt__p_CThostFtdcQryErrExecOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryErrOrderActionField[] = { {&_swigt__p_CThostFtdcQryErrOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryErrOrderField[] = { {&_swigt__p_CThostFtdcQryErrOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeCombActionField[] = { {&_swigt__p_CThostFtdcQryExchangeCombActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeExecOrderActionField[] = { {&_swigt__p_CThostFtdcQryExchangeExecOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeExecOrderField[] = { {&_swigt__p_CThostFtdcQryExchangeExecOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeField[] = { {&_swigt__p_CThostFtdcQryExchangeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeForQuoteField[] = { {&_swigt__p_CThostFtdcQryExchangeForQuoteField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeMarginRateAdjustField[] = { {&_swigt__p_CThostFtdcQryExchangeMarginRateAdjustField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeMarginRateField[] = { {&_swigt__p_CThostFtdcQryExchangeMarginRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeOrderActionField[] = { {&_swigt__p_CThostFtdcQryExchangeOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeOrderField[] = { {&_swigt__p_CThostFtdcQryExchangeOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeQuoteActionField[] = { {&_swigt__p_CThostFtdcQryExchangeQuoteActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeQuoteField[] = { {&_swigt__p_CThostFtdcQryExchangeQuoteField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeRateField[] = { {&_swigt__p_CThostFtdcQryExchangeRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExchangeSequenceField[] = { {&_swigt__p_CThostFtdcQryExchangeSequenceField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExecOrderActionField[] = { {&_swigt__p_CThostFtdcQryExecOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryExecOrderField[] = { {&_swigt__p_CThostFtdcQryExecOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryForQuoteField[] = { {&_swigt__p_CThostFtdcQryForQuoteField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryFrontStatusField[] = { {&_swigt__p_CThostFtdcQryFrontStatusField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryHisOrderField[] = { {&_swigt__p_CThostFtdcQryHisOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInstrumentCommissionRateField[] = { {&_swigt__p_CThostFtdcQryInstrumentCommissionRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInstrumentField[] = { {&_swigt__p_CThostFtdcQryInstrumentField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInstrumentMarginRateField[] = { {&_swigt__p_CThostFtdcQryInstrumentMarginRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInstrumentStatusField[] = { {&_swigt__p_CThostFtdcQryInstrumentStatusField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInstrumentTradingRightField[] = { {&_swigt__p_CThostFtdcQryInstrumentTradingRightField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInvestorField[] = { {&_swigt__p_CThostFtdcQryInvestorField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInvestorGroupField[] = { {&_swigt__p_CThostFtdcQryInvestorGroupField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInvestorPositionCombineDetailField[] = { {&_swigt__p_CThostFtdcQryInvestorPositionCombineDetailField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInvestorPositionDetailField[] = { {&_swigt__p_CThostFtdcQryInvestorPositionDetailField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInvestorPositionField[] = { {&_swigt__p_CThostFtdcQryInvestorPositionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryInvestorProductGroupMarginField[] = { {&_swigt__p_CThostFtdcQryInvestorProductGroupMarginField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryLinkManField[] = { {&_swigt__p_CThostFtdcQryLinkManField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryLoginForbiddenUserField[] = { {&_swigt__p_CThostFtdcQryLoginForbiddenUserField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryMDTraderOfferField[] = { {&_swigt__p_CThostFtdcQryMDTraderOfferField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryMarginModelField[] = { {&_swigt__p_CThostFtdcQryMarginModelField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryNoticeField[] = { {&_swigt__p_CThostFtdcQryNoticeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryOptionInstrCommRateField[] = { {&_swigt__p_CThostFtdcQryOptionInstrCommRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryOptionInstrTradeCostField[] = { {&_swigt__p_CThostFtdcQryOptionInstrTradeCostField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryOptionInstrTradingRightField[] = { {&_swigt__p_CThostFtdcQryOptionInstrTradingRightField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryOrderActionField[] = { {&_swigt__p_CThostFtdcQryOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryOrderField[] = { {&_swigt__p_CThostFtdcQryOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryParkedOrderActionField[] = { {&_swigt__p_CThostFtdcQryParkedOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryParkedOrderField[] = { {&_swigt__p_CThostFtdcQryParkedOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryPartBrokerField[] = { {&_swigt__p_CThostFtdcQryPartBrokerField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryProductExchRateField[] = { {&_swigt__p_CThostFtdcQryProductExchRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryProductField[] = { {&_swigt__p_CThostFtdcQryProductField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryQuoteActionField[] = { {&_swigt__p_CThostFtdcQryQuoteActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryQuoteField[] = { {&_swigt__p_CThostFtdcQryQuoteField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQrySecAgentACIDMapField[] = { {&_swigt__p_CThostFtdcQrySecAgentACIDMapField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQrySettlementInfoConfirmField[] = { {&_swigt__p_CThostFtdcQrySettlementInfoConfirmField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQrySettlementInfoField[] = { {&_swigt__p_CThostFtdcQrySettlementInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryStrikeOffsetField[] = { {&_swigt__p_CThostFtdcQryStrikeOffsetField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQrySuperUserField[] = { {&_swigt__p_CThostFtdcQrySuperUserField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQrySuperUserFunctionField[] = { {&_swigt__p_CThostFtdcQrySuperUserFunctionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQrySyncDepositField[] = { {&_swigt__p_CThostFtdcQrySyncDepositField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQrySyncFundMortgageField[] = { {&_swigt__p_CThostFtdcQrySyncFundMortgageField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQrySyncStatusField[] = { {&_swigt__p_CThostFtdcQrySyncStatusField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryTradeField[] = { {&_swigt__p_CThostFtdcQryTradeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryTraderField[] = { {&_swigt__p_CThostFtdcQryTraderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryTraderOfferField[] = { {&_swigt__p_CThostFtdcQryTraderOfferField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryTradingAccountField[] = { {&_swigt__p_CThostFtdcQryTradingAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryTradingCodeField[] = { {&_swigt__p_CThostFtdcQryTradingCodeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryTradingNoticeField[] = { {&_swigt__p_CThostFtdcQryTradingNoticeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryTransferBankField[] = { {&_swigt__p_CThostFtdcQryTransferBankField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryTransferSerialField[] = { {&_swigt__p_CThostFtdcQryTransferSerialField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQryUserSessionField[] = { {&_swigt__p_CThostFtdcQryUserSessionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQueryBrokerDepositField[] = { {&_swigt__p_CThostFtdcQueryBrokerDepositField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQueryCFMMCTradingAccountTokenField[] = { {&_swigt__p_CThostFtdcQueryCFMMCTradingAccountTokenField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQueryMaxOrderVolumeField[] = { {&_swigt__p_CThostFtdcQueryMaxOrderVolumeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQueryMaxOrderVolumeWithPriceField[] = { {&_swigt__p_CThostFtdcQueryMaxOrderVolumeWithPriceField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQuoteActionField[] = { {&_swigt__p_CThostFtdcQuoteActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcQuoteField[] = { {&_swigt__p_CThostFtdcQuoteField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRemoveParkedOrderActionField[] = { {&_swigt__p_CThostFtdcRemoveParkedOrderActionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRemoveParkedOrderField[] = { {&_swigt__p_CThostFtdcRemoveParkedOrderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqAuthenticateField[] = { {&_swigt__p_CThostFtdcReqAuthenticateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqCancelAccountField[] = { {&_swigt__p_CThostFtdcReqCancelAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqChangeAccountField[] = { {&_swigt__p_CThostFtdcReqChangeAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqDayEndFileReadyField[] = { {&_swigt__p_CThostFtdcReqDayEndFileReadyField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqFutureSignOutField[] = { {&_swigt__p_CThostFtdcReqFutureSignOutField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqOpenAccountField[] = { {&_swigt__p_CThostFtdcReqOpenAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqQueryAccountField[] = { {&_swigt__p_CThostFtdcReqQueryAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqQueryTradeResultBySerialField[] = { {&_swigt__p_CThostFtdcReqQueryTradeResultBySerialField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqRepealField[] = { {&_swigt__p_CThostFtdcReqRepealField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqSyncKeyField[] = { {&_swigt__p_CThostFtdcReqSyncKeyField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqTransferField[] = { {&_swigt__p_CThostFtdcReqTransferField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReqUserLoginField[] = { {&_swigt__p_CThostFtdcReqUserLoginField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcReturnResultField[] = { {&_swigt__p_CThostFtdcReturnResultField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRspAuthenticateField[] = { {&_swigt__p_CThostFtdcRspAuthenticateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRspFutureSignInField[] = { {&_swigt__p_CThostFtdcRspFutureSignInField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRspFutureSignOutField[] = { {&_swigt__p_CThostFtdcRspFutureSignOutField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRspInfoField[] = { {&_swigt__p_CThostFtdcRspInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRspQueryAccountField[] = { {&_swigt__p_CThostFtdcRspQueryAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRspQueryTradeResultBySerialField[] = { {&_swigt__p_CThostFtdcRspQueryTradeResultBySerialField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRspRepealField[] = { {&_swigt__p_CThostFtdcRspRepealField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRspSyncKeyField[] = { {&_swigt__p_CThostFtdcRspSyncKeyField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRspTransferField[] = { {&_swigt__p_CThostFtdcRspTransferField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcRspUserLoginField[] = { {&_swigt__p_CThostFtdcRspUserLoginField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSecAgentACIDMapField[] = { {&_swigt__p_CThostFtdcSecAgentACIDMapField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSettlementInfoConfirmField[] = { {&_swigt__p_CThostFtdcSettlementInfoConfirmField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSettlementInfoField[] = { {&_swigt__p_CThostFtdcSettlementInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSettlementRefField[] = { {&_swigt__p_CThostFtdcSettlementRefField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSpecificInstrumentField[] = { {&_swigt__p_CThostFtdcSpecificInstrumentField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcStrikeOffsetField[] = { {&_swigt__p_CThostFtdcStrikeOffsetField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSuperUserField[] = { {&_swigt__p_CThostFtdcSuperUserField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSuperUserFunctionField[] = { {&_swigt__p_CThostFtdcSuperUserFunctionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncDepositField[] = { {&_swigt__p_CThostFtdcSyncDepositField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncFundMortgageField[] = { {&_swigt__p_CThostFtdcSyncFundMortgageField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncStatusField[] = { {&_swigt__p_CThostFtdcSyncStatusField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncingInstrumentCommissionRateField[] = { {&_swigt__p_CThostFtdcSyncingInstrumentCommissionRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncingInstrumentMarginRateField[] = { {&_swigt__p_CThostFtdcSyncingInstrumentMarginRateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncingInstrumentTradingRightField[] = { {&_swigt__p_CThostFtdcSyncingInstrumentTradingRightField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncingInvestorField[] = { {&_swigt__p_CThostFtdcSyncingInvestorField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncingInvestorGroupField[] = { {&_swigt__p_CThostFtdcSyncingInvestorGroupField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncingInvestorPositionField[] = { {&_swigt__p_CThostFtdcSyncingInvestorPositionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncingTradingAccountField[] = { {&_swigt__p_CThostFtdcSyncingTradingAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcSyncingTradingCodeField[] = { {&_swigt__p_CThostFtdcSyncingTradingCodeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTradeField[] = { {&_swigt__p_CThostFtdcTradeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTraderApi[] = { {&_swigt__p_CThostFtdcTraderApi, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTraderField[] = { {&_swigt__p_CThostFtdcTraderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTraderOfferField[] = { {&_swigt__p_CThostFtdcTraderOfferField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTraderSpi[] = { {&_swigt__p_CThostFtdcTraderSpi, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTradingAccountField[] = { {&_swigt__p_CThostFtdcTradingAccountField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTradingAccountPasswordField[] = { {&_swigt__p_CThostFtdcTradingAccountPasswordField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTradingAccountPasswordUpdateField[] = { {&_swigt__p_CThostFtdcTradingAccountPasswordUpdateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTradingAccountPasswordUpdateV1Field[] = { {&_swigt__p_CThostFtdcTradingAccountPasswordUpdateV1Field, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTradingAccountReserveField[] = { {&_swigt__p_CThostFtdcTradingAccountReserveField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTradingCodeField[] = { {&_swigt__p_CThostFtdcTradingCodeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTradingNoticeField[] = { {&_swigt__p_CThostFtdcTradingNoticeField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTradingNoticeInfoField[] = { {&_swigt__p_CThostFtdcTradingNoticeInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferBankField[] = { {&_swigt__p_CThostFtdcTransferBankField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferBankToFutureReqField[] = { {&_swigt__p_CThostFtdcTransferBankToFutureReqField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferBankToFutureRspField[] = { {&_swigt__p_CThostFtdcTransferBankToFutureRspField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferFutureToBankReqField[] = { {&_swigt__p_CThostFtdcTransferFutureToBankReqField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferFutureToBankRspField[] = { {&_swigt__p_CThostFtdcTransferFutureToBankRspField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferHeaderField[] = { {&_swigt__p_CThostFtdcTransferHeaderField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferQryBankReqField[] = { {&_swigt__p_CThostFtdcTransferQryBankReqField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferQryBankRspField[] = { {&_swigt__p_CThostFtdcTransferQryBankRspField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferQryDetailReqField[] = { {&_swigt__p_CThostFtdcTransferQryDetailReqField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferQryDetailRspField[] = { {&_swigt__p_CThostFtdcTransferQryDetailRspField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcTransferSerialField[] = { {&_swigt__p_CThostFtdcTransferSerialField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcUserIPField[] = { {&_swigt__p_CThostFtdcUserIPField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcUserLogoutField[] = { {&_swigt__p_CThostFtdcUserLogoutField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcUserPasswordUpdateField[] = { {&_swigt__p_CThostFtdcUserPasswordUpdateField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcUserRightField[] = { {&_swigt__p_CThostFtdcUserRightField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcUserRightsAssignField[] = { {&_swigt__p_CThostFtdcUserRightsAssignField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcUserSessionField[] = { {&_swigt__p_CThostFtdcUserSessionField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcVerifyCustInfoField[] = { {&_swigt__p_CThostFtdcVerifyCustInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcVerifyFuturePasswordAndCustInfoField[] = { {&_swigt__p_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcVerifyFuturePasswordField[] = { {&_swigt__p_CThostFtdcVerifyFuturePasswordField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CThostFtdcVerifyInvestorPasswordField[] = { {&_swigt__p_CThostFtdcVerifyInvestorPasswordField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_1001__char[] = { {&_swigt__p_a_1001__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_101__char[] = { {&_swigt__p_a_101__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_1025__char[] = { {&_swigt__p_a_1025__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_10__char[] = { {&_swigt__p_a_10__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_11__char[] = { {&_swigt__p_a_11__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_129__char[] = { {&_swigt__p_a_129__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_12__char[] = { {&_swigt__p_a_12__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_13__char[] = { {&_swigt__p_a_13__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_15__char[] = { {&_swigt__p_a_15__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_161__char[] = { {&_swigt__p_a_161__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_16__char[] = { {&_swigt__p_a_16__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_17__char[] = { {&_swigt__p_a_17__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_201__char[] = { {&_swigt__p_a_201__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_2049__char[] = { {&_swigt__p_a_2049__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_20__char[] = { {&_swigt__p_a_20__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_21__char[] = { {&_swigt__p_a_21__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_22__char[] = { {&_swigt__p_a_22__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_23__char[] = { {&_swigt__p_a_23__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_24__char[] = { {&_swigt__p_a_24__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_256__char[] = { {&_swigt__p_a_256__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_257__char[] = { {&_swigt__p_a_257__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_25__char[] = { {&_swigt__p_a_25__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_2__char[] = { {&_swigt__p_a_2__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_31__char[] = { {&_swigt__p_a_31__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_33__char[] = { {&_swigt__p_a_33__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_36__char[] = { {&_swigt__p_a_36__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_3__char[] = { {&_swigt__p_a_3__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_401__char[] = { {&_swigt__p_a_401__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_41__char[] = { {&_swigt__p_a_41__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_4__char[] = { {&_swigt__p_a_4__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_501__char[] = { {&_swigt__p_a_501__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_513__char[] = { {&_swigt__p_a_513__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_51__char[] = { {&_swigt__p_a_51__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_5__char[] = { {&_swigt__p_a_5__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_61__char[] = { {&_swigt__p_a_61__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_65__char[] = { {&_swigt__p_a_65__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_6__char[] = { {&_swigt__p_a_6__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_71__char[] = { {&_swigt__p_a_71__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_7__char[] = { {&_swigt__p_a_7__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_81__char[] = { {&_swigt__p_a_81__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_a_9__char[] = { {&_swigt__p_a_9__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_CThostFtdcAccountregisterField, _swigc__p_CThostFtdcAuthenticationInfoField, _swigc__p_CThostFtdcBrokerDepositField, _swigc__p_CThostFtdcBrokerField, _swigc__p_CThostFtdcBrokerSyncField, _swigc__p_CThostFtdcBrokerTradingAlgosField, _swigc__p_CThostFtdcBrokerTradingParamsField, _swigc__p_CThostFtdcBrokerUserEventField, _swigc__p_CThostFtdcBrokerUserField, _swigc__p_CThostFtdcBrokerUserFunctionField, _swigc__p_CThostFtdcBrokerUserOTPParamField, _swigc__p_CThostFtdcBrokerUserPasswordField, _swigc__p_CThostFtdcBrokerUserRightAssignField, _swigc__p_CThostFtdcBrokerWithdrawAlgorithmField, _swigc__p_CThostFtdcCFMMCBrokerKeyField, _swigc__p_CThostFtdcCFMMCTradingAccountKeyField, _swigc__p_CThostFtdcCFMMCTradingAccountTokenField, _swigc__p_CThostFtdcCancelAccountField, _swigc__p_CThostFtdcChangeAccountField, _swigc__p_CThostFtdcCombActionField, _swigc__p_CThostFtdcCombInstrumentGuardField, _swigc__p_CThostFtdcCombinationLegField, _swigc__p_CThostFtdcCommPhaseField, _swigc__p_CThostFtdcCommRateModelField, _swigc__p_CThostFtdcContractBankField, _swigc__p_CThostFtdcCurrTransferIdentityField, _swigc__p_CThostFtdcCurrentTimeField, _swigc__p_CThostFtdcDRTransferField, _swigc__p_CThostFtdcDepositResultInformField, _swigc__p_CThostFtdcDepthMarketDataField, _swigc__p_CThostFtdcDiscountField, _swigc__p_CThostFtdcDisseminationField, _swigc__p_CThostFtdcEWarrantOffsetField, _swigc__p_CThostFtdcErrExecOrderActionField, _swigc__p_CThostFtdcErrExecOrderField, _swigc__p_CThostFtdcErrOrderActionField, _swigc__p_CThostFtdcErrOrderField, _swigc__p_CThostFtdcErrorConditionalOrderField, _swigc__p_CThostFtdcExchangeCombActionField, _swigc__p_CThostFtdcExchangeExecOrderActionField, _swigc__p_CThostFtdcExchangeExecOrderField, _swigc__p_CThostFtdcExchangeField, _swigc__p_CThostFtdcExchangeForQuoteField, _swigc__p_CThostFtdcExchangeMarginRateAdjustField, _swigc__p_CThostFtdcExchangeMarginRateField, _swigc__p_CThostFtdcExchangeOrderActionErrorField, _swigc__p_CThostFtdcExchangeOrderActionField, _swigc__p_CThostFtdcExchangeOrderField, _swigc__p_CThostFtdcExchangeOrderInsertErrorField, _swigc__p_CThostFtdcExchangeQuoteActionField, _swigc__p_CThostFtdcExchangeQuoteField, _swigc__p_CThostFtdcExchangeRateField, _swigc__p_CThostFtdcExchangeSequenceField, _swigc__p_CThostFtdcExchangeTradeField, _swigc__p_CThostFtdcExecOrderActionField, _swigc__p_CThostFtdcExecOrderField, _swigc__p_CThostFtdcFensUserInfoField, _swigc__p_CThostFtdcForQuoteField, _swigc__p_CThostFtdcForQuoteRspField, _swigc__p_CThostFtdcForceUserLogoutField, _swigc__p_CThostFtdcFrontStatusField, _swigc__p_CThostFtdcFutureSignIOField, _swigc__p_CThostFtdcIndexPriceField, _swigc__p_CThostFtdcInputCombActionField, _swigc__p_CThostFtdcInputExecOrderActionField, _swigc__p_CThostFtdcInputExecOrderField, _swigc__p_CThostFtdcInputForQuoteField, _swigc__p_CThostFtdcInputOrderActionField, _swigc__p_CThostFtdcInputOrderField, _swigc__p_CThostFtdcInputQuoteActionField, _swigc__p_CThostFtdcInputQuoteField, _swigc__p_CThostFtdcInstrumentCommissionRateField, _swigc__p_CThostFtdcInstrumentField, _swigc__p_CThostFtdcInstrumentMarginRateAdjustField, _swigc__p_CThostFtdcInstrumentMarginRateField, _swigc__p_CThostFtdcInstrumentStatusField, _swigc__p_CThostFtdcInstrumentTradingRightField, _swigc__p_CThostFtdcInvestorAccountField, _swigc__p_CThostFtdcInvestorField, _swigc__p_CThostFtdcInvestorGroupField, _swigc__p_CThostFtdcInvestorPositionCombineDetailField, _swigc__p_CThostFtdcInvestorPositionDetailField, _swigc__p_CThostFtdcInvestorPositionField, _swigc__p_CThostFtdcInvestorProductGroupMarginField, _swigc__p_CThostFtdcInvestorWithdrawAlgorithmField, _swigc__p_CThostFtdcLinkManField, _swigc__p_CThostFtdcLoadSettlementInfoField, _swigc__p_CThostFtdcLoginForbiddenUserField, _swigc__p_CThostFtdcLoginInfoField, _swigc__p_CThostFtdcLogoutAllField, _swigc__p_CThostFtdcMDTraderOfferField, _swigc__p_CThostFtdcManualSyncBrokerUserOTPField, _swigc__p_CThostFtdcMarginModelField, _swigc__p_CThostFtdcMarketDataAsk23Field, _swigc__p_CThostFtdcMarketDataAsk45Field, _swigc__p_CThostFtdcMarketDataAveragePriceField, _swigc__p_CThostFtdcMarketDataBaseField, _swigc__p_CThostFtdcMarketDataBestPriceField, _swigc__p_CThostFtdcMarketDataBid23Field, _swigc__p_CThostFtdcMarketDataBid45Field, _swigc__p_CThostFtdcMarketDataExchangeField, _swigc__p_CThostFtdcMarketDataField, _swigc__p_CThostFtdcMarketDataLastMatchField, _swigc__p_CThostFtdcMarketDataStaticField, _swigc__p_CThostFtdcMarketDataUpdateTimeField, _swigc__p_CThostFtdcMdApi, _swigc__p_CThostFtdcMdSpi, _swigc__p_CThostFtdcMulticastGroupInfoField, _swigc__p_CThostFtdcNoticeField, _swigc__p_CThostFtdcNotifyFutureSignInField, _swigc__p_CThostFtdcNotifyFutureSignOutField, _swigc__p_CThostFtdcNotifyQueryAccountField, _swigc__p_CThostFtdcNotifySyncKeyField, _swigc__p_CThostFtdcOpenAccountField, _swigc__p_CThostFtdcOptionInstrCommRateField, _swigc__p_CThostFtdcOptionInstrDeltaField, _swigc__p_CThostFtdcOptionInstrMarginAdjustField, _swigc__p_CThostFtdcOptionInstrMiniMarginField, _swigc__p_CThostFtdcOptionInstrTradeCostField, _swigc__p_CThostFtdcOptionInstrTradingRightField, _swigc__p_CThostFtdcOrderActionField, _swigc__p_CThostFtdcOrderField, _swigc__p_CThostFtdcParkedOrderActionField, _swigc__p_CThostFtdcParkedOrderField, _swigc__p_CThostFtdcPartBrokerField, _swigc__p_CThostFtdcPositionProfitAlgorithmField, _swigc__p_CThostFtdcProductExchRateField, _swigc__p_CThostFtdcProductField, _swigc__p_CThostFtdcQryAccountregisterField, _swigc__p_CThostFtdcQryBrokerField, _swigc__p_CThostFtdcQryBrokerTradingAlgosField, _swigc__p_CThostFtdcQryBrokerTradingParamsField, _swigc__p_CThostFtdcQryBrokerUserEventField, _swigc__p_CThostFtdcQryBrokerUserField, _swigc__p_CThostFtdcQryBrokerUserFunctionField, _swigc__p_CThostFtdcQryCFMMCBrokerKeyField, _swigc__p_CThostFtdcQryCFMMCTradingAccountKeyField, _swigc__p_CThostFtdcQryCombActionField, _swigc__p_CThostFtdcQryCombInstrumentGuardField, _swigc__p_CThostFtdcQryCombinationLegField, _swigc__p_CThostFtdcQryCommRateModelField, _swigc__p_CThostFtdcQryContractBankField, _swigc__p_CThostFtdcQryDepthMarketDataField, _swigc__p_CThostFtdcQryEWarrantOffsetField, _swigc__p_CThostFtdcQryErrExecOrderActionField, _swigc__p_CThostFtdcQryErrExecOrderField, _swigc__p_CThostFtdcQryErrOrderActionField, _swigc__p_CThostFtdcQryErrOrderField, _swigc__p_CThostFtdcQryExchangeCombActionField, _swigc__p_CThostFtdcQryExchangeExecOrderActionField, _swigc__p_CThostFtdcQryExchangeExecOrderField, _swigc__p_CThostFtdcQryExchangeField, _swigc__p_CThostFtdcQryExchangeForQuoteField, _swigc__p_CThostFtdcQryExchangeMarginRateAdjustField, _swigc__p_CThostFtdcQryExchangeMarginRateField, _swigc__p_CThostFtdcQryExchangeOrderActionField, _swigc__p_CThostFtdcQryExchangeOrderField, _swigc__p_CThostFtdcQryExchangeQuoteActionField, _swigc__p_CThostFtdcQryExchangeQuoteField, _swigc__p_CThostFtdcQryExchangeRateField, _swigc__p_CThostFtdcQryExchangeSequenceField, _swigc__p_CThostFtdcQryExecOrderActionField, _swigc__p_CThostFtdcQryExecOrderField, _swigc__p_CThostFtdcQryForQuoteField, _swigc__p_CThostFtdcQryFrontStatusField, _swigc__p_CThostFtdcQryHisOrderField, _swigc__p_CThostFtdcQryInstrumentCommissionRateField, _swigc__p_CThostFtdcQryInstrumentField, _swigc__p_CThostFtdcQryInstrumentMarginRateField, _swigc__p_CThostFtdcQryInstrumentStatusField, _swigc__p_CThostFtdcQryInstrumentTradingRightField, _swigc__p_CThostFtdcQryInvestorField, _swigc__p_CThostFtdcQryInvestorGroupField, _swigc__p_CThostFtdcQryInvestorPositionCombineDetailField, _swigc__p_CThostFtdcQryInvestorPositionDetailField, _swigc__p_CThostFtdcQryInvestorPositionField, _swigc__p_CThostFtdcQryInvestorProductGroupMarginField, _swigc__p_CThostFtdcQryLinkManField, _swigc__p_CThostFtdcQryLoginForbiddenUserField, _swigc__p_CThostFtdcQryMDTraderOfferField, _swigc__p_CThostFtdcQryMarginModelField, _swigc__p_CThostFtdcQryNoticeField, _swigc__p_CThostFtdcQryOptionInstrCommRateField, _swigc__p_CThostFtdcQryOptionInstrTradeCostField, _swigc__p_CThostFtdcQryOptionInstrTradingRightField, _swigc__p_CThostFtdcQryOrderActionField, _swigc__p_CThostFtdcQryOrderField, _swigc__p_CThostFtdcQryParkedOrderActionField, _swigc__p_CThostFtdcQryParkedOrderField, _swigc__p_CThostFtdcQryPartBrokerField, _swigc__p_CThostFtdcQryProductExchRateField, _swigc__p_CThostFtdcQryProductField, _swigc__p_CThostFtdcQryQuoteActionField, _swigc__p_CThostFtdcQryQuoteField, _swigc__p_CThostFtdcQrySecAgentACIDMapField, _swigc__p_CThostFtdcQrySettlementInfoConfirmField, _swigc__p_CThostFtdcQrySettlementInfoField, _swigc__p_CThostFtdcQryStrikeOffsetField, _swigc__p_CThostFtdcQrySuperUserField, _swigc__p_CThostFtdcQrySuperUserFunctionField, _swigc__p_CThostFtdcQrySyncDepositField, _swigc__p_CThostFtdcQrySyncFundMortgageField, _swigc__p_CThostFtdcQrySyncStatusField, _swigc__p_CThostFtdcQryTradeField, _swigc__p_CThostFtdcQryTraderField, _swigc__p_CThostFtdcQryTraderOfferField, _swigc__p_CThostFtdcQryTradingAccountField, _swigc__p_CThostFtdcQryTradingCodeField, _swigc__p_CThostFtdcQryTradingNoticeField, _swigc__p_CThostFtdcQryTransferBankField, _swigc__p_CThostFtdcQryTransferSerialField, _swigc__p_CThostFtdcQryUserSessionField, _swigc__p_CThostFtdcQueryBrokerDepositField, _swigc__p_CThostFtdcQueryCFMMCTradingAccountTokenField, _swigc__p_CThostFtdcQueryMaxOrderVolumeField, _swigc__p_CThostFtdcQueryMaxOrderVolumeWithPriceField, _swigc__p_CThostFtdcQuoteActionField, _swigc__p_CThostFtdcQuoteField, _swigc__p_CThostFtdcRemoveParkedOrderActionField, _swigc__p_CThostFtdcRemoveParkedOrderField, _swigc__p_CThostFtdcReqAuthenticateField, _swigc__p_CThostFtdcReqCancelAccountField, _swigc__p_CThostFtdcReqChangeAccountField, _swigc__p_CThostFtdcReqDayEndFileReadyField, _swigc__p_CThostFtdcReqFutureSignOutField, _swigc__p_CThostFtdcReqOpenAccountField, _swigc__p_CThostFtdcReqQueryAccountField, _swigc__p_CThostFtdcReqQueryTradeResultBySerialField, _swigc__p_CThostFtdcReqRepealField, _swigc__p_CThostFtdcReqSyncKeyField, _swigc__p_CThostFtdcReqTransferField, _swigc__p_CThostFtdcReqUserLoginField, _swigc__p_CThostFtdcReturnResultField, _swigc__p_CThostFtdcRspAuthenticateField, _swigc__p_CThostFtdcRspFutureSignInField, _swigc__p_CThostFtdcRspFutureSignOutField, _swigc__p_CThostFtdcRspInfoField, _swigc__p_CThostFtdcRspQueryAccountField, _swigc__p_CThostFtdcRspQueryTradeResultBySerialField, _swigc__p_CThostFtdcRspRepealField, _swigc__p_CThostFtdcRspSyncKeyField, _swigc__p_CThostFtdcRspTransferField, _swigc__p_CThostFtdcRspUserLoginField, _swigc__p_CThostFtdcSecAgentACIDMapField, _swigc__p_CThostFtdcSettlementInfoConfirmField, _swigc__p_CThostFtdcSettlementInfoField, _swigc__p_CThostFtdcSettlementRefField, _swigc__p_CThostFtdcSpecificInstrumentField, _swigc__p_CThostFtdcStrikeOffsetField, _swigc__p_CThostFtdcSuperUserField, _swigc__p_CThostFtdcSuperUserFunctionField, _swigc__p_CThostFtdcSyncDepositField, _swigc__p_CThostFtdcSyncFundMortgageField, _swigc__p_CThostFtdcSyncStatusField, _swigc__p_CThostFtdcSyncingInstrumentCommissionRateField, _swigc__p_CThostFtdcSyncingInstrumentMarginRateField, _swigc__p_CThostFtdcSyncingInstrumentTradingRightField, _swigc__p_CThostFtdcSyncingInvestorField, _swigc__p_CThostFtdcSyncingInvestorGroupField, _swigc__p_CThostFtdcSyncingInvestorPositionField, _swigc__p_CThostFtdcSyncingTradingAccountField, _swigc__p_CThostFtdcSyncingTradingCodeField, _swigc__p_CThostFtdcTradeField, _swigc__p_CThostFtdcTraderApi, _swigc__p_CThostFtdcTraderField, _swigc__p_CThostFtdcTraderOfferField, _swigc__p_CThostFtdcTraderSpi, _swigc__p_CThostFtdcTradingAccountField, _swigc__p_CThostFtdcTradingAccountPasswordField, _swigc__p_CThostFtdcTradingAccountPasswordUpdateField, _swigc__p_CThostFtdcTradingAccountPasswordUpdateV1Field, _swigc__p_CThostFtdcTradingAccountReserveField, _swigc__p_CThostFtdcTradingCodeField, _swigc__p_CThostFtdcTradingNoticeField, _swigc__p_CThostFtdcTradingNoticeInfoField, _swigc__p_CThostFtdcTransferBankField, _swigc__p_CThostFtdcTransferBankToFutureReqField, _swigc__p_CThostFtdcTransferBankToFutureRspField, _swigc__p_CThostFtdcTransferFutureToBankReqField, _swigc__p_CThostFtdcTransferFutureToBankRspField, _swigc__p_CThostFtdcTransferHeaderField, _swigc__p_CThostFtdcTransferQryBankReqField, _swigc__p_CThostFtdcTransferQryBankRspField, _swigc__p_CThostFtdcTransferQryDetailReqField, _swigc__p_CThostFtdcTransferQryDetailRspField, _swigc__p_CThostFtdcTransferSerialField, _swigc__p_CThostFtdcUserIPField, _swigc__p_CThostFtdcUserLogoutField, _swigc__p_CThostFtdcUserPasswordUpdateField, _swigc__p_CThostFtdcUserRightField, _swigc__p_CThostFtdcUserRightsAssignField, _swigc__p_CThostFtdcUserSessionField, _swigc__p_CThostFtdcVerifyCustInfoField, _swigc__p_CThostFtdcVerifyFuturePasswordAndCustInfoField, _swigc__p_CThostFtdcVerifyFuturePasswordField, _swigc__p_CThostFtdcVerifyInvestorPasswordField, _swigc__p_a_1001__char, _swigc__p_a_101__char, _swigc__p_a_1025__char, _swigc__p_a_10__char, _swigc__p_a_11__char, _swigc__p_a_129__char, _swigc__p_a_12__char, _swigc__p_a_13__char, _swigc__p_a_15__char, _swigc__p_a_161__char, _swigc__p_a_16__char, _swigc__p_a_17__char, _swigc__p_a_201__char, _swigc__p_a_2049__char, _swigc__p_a_20__char, _swigc__p_a_21__char, _swigc__p_a_22__char, _swigc__p_a_23__char, _swigc__p_a_24__char, _swigc__p_a_256__char, _swigc__p_a_257__char, _swigc__p_a_25__char, _swigc__p_a_2__char, _swigc__p_a_31__char, _swigc__p_a_33__char, _swigc__p_a_36__char, _swigc__p_a_3__char, _swigc__p_a_401__char, _swigc__p_a_41__char, _swigc__p_a_4__char, _swigc__p_a_501__char, _swigc__p_a_513__char, _swigc__p_a_51__char, _swigc__p_a_5__char, _swigc__p_a_61__char, _swigc__p_a_65__char, _swigc__p_a_6__char, _swigc__p_a_71__char, _swigc__p_a_7__char, _swigc__p_a_81__char, _swigc__p_a_9__char, _swigc__p_char, _swigc__p_double, _swigc__p_int, _swigc__p_short, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ iter=module_head; do { if (iter==&swig_module) { /* Our module is already in the list, so there's nothing more to do. */ return; } iter=iter->next; } while (iter!= module_head); /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpreters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif /* */ #ifdef __cplusplus extern "C" #endif SWIGEXPORT void Init_ctp(void) { size_t i; SWIG_InitRuntime(); mCtp = rb_define_module("Ctp"); SWIG_InitializeModule(0); for (i = 0; i < swig_module.size; i++) { SWIG_define_class(swig_module.types[i]); } SWIG_RubyInitializeTrackings(); rb_define_const(mCtp, "THOST_TERT_RESTART", SWIG_From_int(static_cast< int >(THOST_TERT_RESTART))); rb_define_const(mCtp, "THOST_TERT_RESUME", SWIG_From_int(static_cast< int >(THOST_TERT_RESUME))); rb_define_const(mCtp, "THOST_TERT_QUICK", SWIG_From_int(static_cast< int >(THOST_TERT_QUICK))); rb_define_const(mCtp, "THOST_FTDC_EXP_Normal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_EXP_GenOrderByTrade", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ICT_EID", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_ICT_IDCard", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ICT_OfficerIDCard", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ICT_PoliceIDCard", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_ICT_SoldierIDCard", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_ICT_HouseholdRegister", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_ICT_Passport", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_ICT_TaiwanCompatriotIDCard", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_ICT_HomeComingCard", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_ICT_LicenseNo", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_ICT_TaxNo", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_ICT_HMMainlandTravelPermit", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_ICT_TwMainlandTravelPermit", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_ICT_DrivingLicense", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_ICT_SocialID", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_ICT_LocalID", SWIG_From_char(static_cast< char >('G'))); rb_define_const(mCtp, "THOST_FTDC_ICT_BusinessRegistration", SWIG_From_char(static_cast< char >('H'))); rb_define_const(mCtp, "THOST_FTDC_ICT_HKMCIDCard", SWIG_From_char(static_cast< char >('I'))); rb_define_const(mCtp, "THOST_FTDC_ICT_AccountsPermits", SWIG_From_char(static_cast< char >('J'))); rb_define_const(mCtp, "THOST_FTDC_ICT_OtherCard", SWIG_From_char(static_cast< char >('x'))); rb_define_const(mCtp, "THOST_FTDC_IR_All", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_IR_Group", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_IR_Single", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_DR_All", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_DR_Group", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_DR_Single", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_DS_Asynchronous", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_DS_Synchronizing", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_DS_Synchronized", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_BDS_Synchronized", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BDS_Synchronizing", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ECS_NoConnection", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ECS_QryInstrumentSent", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ECS_GotInformation", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_TCS_NotConnected", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TCS_Connected", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_TCS_QryInstrumentSent", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_TCS_SubPrivateFlow", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FC_DataAsync", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FC_ForceUserLogout", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FC_UserPasswordUpdate", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FC_BrokerPasswordUpdate", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FC_InvestorPasswordUpdate", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_FC_OrderInsert", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_FC_OrderAction", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_FC_SyncSystemData", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_FC_SyncBrokerData", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_FC_BachSyncBrokerData", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_FC_SuperQuery", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_FC_ParkedOrderInsert", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_FC_ParkedOrderAction", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_FC_SyncOTP", SWIG_From_char(static_cast< char >('E'))); rb_define_const(mCtp, "THOST_FTDC_FC_DeleteOrder", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_BFC_ForceUserLogout", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BFC_UserPasswordUpdate", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BFC_SyncBrokerData", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_BFC_BachSyncBrokerData", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_BFC_OrderInsert", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_BFC_OrderAction", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_BFC_AllQuery", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_BFC_log", SWIG_From_char(static_cast< char >('a'))); rb_define_const(mCtp, "THOST_FTDC_BFC_BaseQry", SWIG_From_char(static_cast< char >('b'))); rb_define_const(mCtp, "THOST_FTDC_BFC_TradeQry", SWIG_From_char(static_cast< char >('c'))); rb_define_const(mCtp, "THOST_FTDC_BFC_Trade", SWIG_From_char(static_cast< char >('d'))); rb_define_const(mCtp, "THOST_FTDC_BFC_Virement", SWIG_From_char(static_cast< char >('e'))); rb_define_const(mCtp, "THOST_FTDC_BFC_Risk", SWIG_From_char(static_cast< char >('f'))); rb_define_const(mCtp, "THOST_FTDC_BFC_Session", SWIG_From_char(static_cast< char >('g'))); rb_define_const(mCtp, "THOST_FTDC_BFC_RiskNoticeCtl", SWIG_From_char(static_cast< char >('h'))); rb_define_const(mCtp, "THOST_FTDC_BFC_RiskNotice", SWIG_From_char(static_cast< char >('i'))); rb_define_const(mCtp, "THOST_FTDC_BFC_BrokerDeposit", SWIG_From_char(static_cast< char >('j'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QueryFund", SWIG_From_char(static_cast< char >('k'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QueryOrder", SWIG_From_char(static_cast< char >('l'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QueryTrade", SWIG_From_char(static_cast< char >('m'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QueryPosition", SWIG_From_char(static_cast< char >('n'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QueryMarketData", SWIG_From_char(static_cast< char >('o'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QueryUserEvent", SWIG_From_char(static_cast< char >('p'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QueryRiskNotify", SWIG_From_char(static_cast< char >('q'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QueryFundChange", SWIG_From_char(static_cast< char >('r'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QueryInvestor", SWIG_From_char(static_cast< char >('s'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QueryTradingCode", SWIG_From_char(static_cast< char >('t'))); rb_define_const(mCtp, "THOST_FTDC_BFC_ForceClose", SWIG_From_char(static_cast< char >('u'))); rb_define_const(mCtp, "THOST_FTDC_BFC_PressTest", SWIG_From_char(static_cast< char >('v'))); rb_define_const(mCtp, "THOST_FTDC_BFC_RemainCalc", SWIG_From_char(static_cast< char >('w'))); rb_define_const(mCtp, "THOST_FTDC_BFC_NetPositionInd", SWIG_From_char(static_cast< char >('x'))); rb_define_const(mCtp, "THOST_FTDC_BFC_RiskPredict", SWIG_From_char(static_cast< char >('y'))); rb_define_const(mCtp, "THOST_FTDC_BFC_DataExport", SWIG_From_char(static_cast< char >('z'))); rb_define_const(mCtp, "THOST_FTDC_BFC_RiskTargetSetup", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_BFC_MarketDataWarn", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_BFC_QryBizNotice", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_BFC_CfgBizNotice", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_BFC_SyncOTP", SWIG_From_char(static_cast< char >('E'))); rb_define_const(mCtp, "THOST_FTDC_BFC_SendBizNotice", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_BFC_CfgRiskLevelStd", SWIG_From_char(static_cast< char >('G'))); rb_define_const(mCtp, "THOST_FTDC_BFC_TbCommand", SWIG_From_char(static_cast< char >('H'))); rb_define_const(mCtp, "THOST_FTDC_BFC_DeleteOrder", SWIG_From_char(static_cast< char >('J'))); rb_define_const(mCtp, "THOST_FTDC_BFC_ParkedOrderInsert", SWIG_From_char(static_cast< char >('K'))); rb_define_const(mCtp, "THOST_FTDC_BFC_ParkedOrderAction", SWIG_From_char(static_cast< char >('L'))); rb_define_const(mCtp, "THOST_FTDC_OAS_Submitted", SWIG_From_char(static_cast< char >('a'))); rb_define_const(mCtp, "THOST_FTDC_OAS_Accepted", SWIG_From_char(static_cast< char >('b'))); rb_define_const(mCtp, "THOST_FTDC_OAS_Rejected", SWIG_From_char(static_cast< char >('c'))); rb_define_const(mCtp, "THOST_FTDC_OST_AllTraded", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_OST_PartTradedQueueing", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OST_PartTradedNotQueueing", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OST_NoTradeQueueing", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_OST_NoTradeNotQueueing", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_OST_Canceled", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_OST_Unknown", SWIG_From_char(static_cast< char >('a'))); rb_define_const(mCtp, "THOST_FTDC_OST_NotTouched", SWIG_From_char(static_cast< char >('b'))); rb_define_const(mCtp, "THOST_FTDC_OST_Touched", SWIG_From_char(static_cast< char >('c'))); rb_define_const(mCtp, "THOST_FTDC_OSS_InsertSubmitted", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_OSS_CancelSubmitted", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OSS_ModifySubmitted", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OSS_Accepted", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_OSS_InsertRejected", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_OSS_CancelRejected", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_OSS_ModifyRejected", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_PSD_Today", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PSD_History", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PDT_UseHistory", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PDT_NoUseHistory", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ER_Broker", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ER_Host", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ER_Maker", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_PC_Futures", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PC_Options", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PC_Combination", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_PC_Spot", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_PC_EFP", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_PC_SpotOption", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_IP_NotStart", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_IP_Started", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_IP_Pause", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_IP_Expired", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_D_Buy", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_D_Sell", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PT_Net", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PT_Gross", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PD_Net", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PD_Long", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PD_Short", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SS_NonActive", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SS_Startup", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SS_Operating", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SS_Settlement", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_SS_SettlementFinished", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_RA_Trade", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_RA_Settlement", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_HF_Speculation", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_HF_Arbitrage", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_HF_Hedge", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_BHF_Speculation", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BHF_Arbitrage", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BHF_Hedge", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CIDT_Speculation", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CIDT_Arbitrage", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CIDT_Hedge", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_OPT_AnyPrice", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OPT_LimitPrice", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OPT_BestPrice", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_OPT_LastPrice", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_OPT_LastPricePlusOneTicks", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_OPT_LastPricePlusTwoTicks", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_OPT_LastPricePlusThreeTicks", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_OPT_AskPrice1", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_OPT_AskPrice1PlusOneTicks", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_OPT_AskPrice1PlusTwoTicks", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_OPT_AskPrice1PlusThreeTicks", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_OPT_BidPrice1", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_OPT_BidPrice1PlusOneTicks", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_OPT_BidPrice1PlusTwoTicks", SWIG_From_char(static_cast< char >('E'))); rb_define_const(mCtp, "THOST_FTDC_OPT_BidPrice1PlusThreeTicks", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_OPT_FiveLevelPrice", SWIG_From_char(static_cast< char >('G'))); rb_define_const(mCtp, "THOST_FTDC_OF_Open", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_OF_Close", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OF_ForceClose", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OF_CloseToday", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_OF_CloseYesterday", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_OF_ForceOff", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_OF_LocalForceClose", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_FCC_NotForceClose", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FCC_LackDeposit", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FCC_ClientOverPositionLimit", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FCC_MemberOverPositionLimit", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FCC_NotMultiple", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FCC_Violation", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_FCC_Other", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_FCC_PersonDeliv", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_ORDT_Normal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_ORDT_DeriveFromQuote", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ORDT_DeriveFromCombination", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ORDT_Combination", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_ORDT_ConditionalOrder", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_ORDT_Swap", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_TC_IOC", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TC_GFS", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_TC_GFD", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_TC_GTD", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_TC_GTC", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_TC_GFA", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_VC_AV", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_VC_MV", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_VC_CV", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CC_Immediately", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CC_Touch", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CC_TouchProfit", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CC_ParkedOrder", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_CC_LastPriceGreaterThanStopPrice", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_CC_LastPriceGreaterEqualStopPrice", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_CC_LastPriceLesserThanStopPrice", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_CC_LastPriceLesserEqualStopPrice", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_CC_AskPriceGreaterThanStopPrice", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_CC_AskPriceGreaterEqualStopPrice", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_CC_AskPriceLesserThanStopPrice", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_CC_AskPriceLesserEqualStopPrice", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_CC_BidPriceGreaterThanStopPrice", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_CC_BidPriceGreaterEqualStopPrice", SWIG_From_char(static_cast< char >('E'))); rb_define_const(mCtp, "THOST_FTDC_CC_BidPriceLesserThanStopPrice", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_CC_BidPriceLesserEqualStopPrice", SWIG_From_char(static_cast< char >('H'))); rb_define_const(mCtp, "THOST_FTDC_AF_Delete", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_AF_Modify", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_TR_Allow", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_TR_CloseOnly", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TR_Forbidden", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OSRC_Participant", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_OSRC_Administrator", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TRDT_SplitCombination", SWIG_From_char(static_cast< char >('#'))); rb_define_const(mCtp, "THOST_FTDC_TRDT_Common", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_TRDT_OptionsExecution", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TRDT_OTC", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_TRDT_EFPDerived", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_TRDT_CombinationDerived", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_PSRC_LastPrice", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_PSRC_Buy", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PSRC_Sell", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_IS_BeforeTrading", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_IS_NoTrading", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_IS_Continous", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_IS_AuctionOrdering", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_IS_AuctionBalance", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_IS_AuctionMatch", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_IS_Closed", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_IER_Automatic", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_IER_Manual", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_IER_Fuse", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_BS_NoUpload", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BS_Uploaded", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BS_Failed", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_RS_All", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RS_ByProduct", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RP_ByVolume", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RP_ByFeeOnHand", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RL_Level1", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RL_Level2", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RL_Level3", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_RL_Level4", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_RL_Level5", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_RL_Level6", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_RL_Level7", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_RL_Level8", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_RL_Level9", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_RSD_ByPeriod", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RSD_ByStandard", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_MT_Out", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_MT_In", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ISPI_MortgageRatio", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_ISPI_MarginWay", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_ISPI_BillDeposit", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_MortgageRatio", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_OtherFundItem", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_OtherFundImport", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_CFFEXMinPrepa", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_CZCESettlementType", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_ExchDelivFeeMode", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_DelivFeeMode", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_CZCEComMarginType", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_DceComMarginType", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_OptOutDisCountRate", SWIG_From_char(static_cast< char >('a'))); rb_define_const(mCtp, "THOST_FTDC_ESPI_OptMiniGuarantee", SWIG_From_char(static_cast< char >('b'))); rb_define_const(mCtp, "THOST_FTDC_SPI_InvestorIDMinLength", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SPI_AccountIDMinLength", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SPI_UserRightLogon", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SPI_SettlementBillTrade", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_SPI_TradingCode", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_SPI_CheckFund", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_SPI_CommModelRight", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_SPI_MarginModelRight", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_SPI_IsStandardActive", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_SPI_UploadSettlementFile", SWIG_From_char(static_cast< char >('U'))); rb_define_const(mCtp, "THOST_FTDC_SPI_DownloadCSRCFile", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_SPI_SettlementBillFile", SWIG_From_char(static_cast< char >('S'))); rb_define_const(mCtp, "THOST_FTDC_SPI_CSRCOthersFile", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_SPI_InvestorPhoto", SWIG_From_char(static_cast< char >('P'))); rb_define_const(mCtp, "THOST_FTDC_SPI_CSRCData", SWIG_From_char(static_cast< char >('R'))); rb_define_const(mCtp, "THOST_FTDC_SPI_InvestorPwdModel", SWIG_From_char(static_cast< char >('I'))); rb_define_const(mCtp, "THOST_FTDC_SPI_CFFEXInvestorSettleFile", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_SPI_InvestorIDType", SWIG_From_char(static_cast< char >('a'))); rb_define_const(mCtp, "THOST_FTDC_SPI_FreezeMaxReMain", SWIG_From_char(static_cast< char >('r'))); rb_define_const(mCtp, "THOST_FTDC_SPI_IsSync", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_SPI_RelieveOpenLimit", SWIG_From_char(static_cast< char >('O'))); rb_define_const(mCtp, "THOST_FTDC_SPI_IsStandardFreeze", SWIG_From_char(static_cast< char >('X'))); rb_define_const(mCtp, "THOST_FTDC_SPI_CZCENormalProductHedge", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_TPID_EncryptionStandard", SWIG_From_char(static_cast< char >('E'))); rb_define_const(mCtp, "THOST_FTDC_TPID_RiskMode", SWIG_From_char(static_cast< char >('R'))); rb_define_const(mCtp, "THOST_FTDC_TPID_RiskModeGlobal", SWIG_From_char(static_cast< char >('G'))); rb_define_const(mCtp, "THOST_FTDC_TPID_modeEncode", SWIG_From_char(static_cast< char >('P'))); rb_define_const(mCtp, "THOST_FTDC_TPID_tickMode", SWIG_From_char(static_cast< char >('T'))); rb_define_const(mCtp, "THOST_FTDC_TPID_SingleUserSessionMaxNum", SWIG_From_char(static_cast< char >('S'))); rb_define_const(mCtp, "THOST_FTDC_TPID_LoginFailMaxNum", SWIG_From_char(static_cast< char >('L'))); rb_define_const(mCtp, "THOST_FTDC_TPID_IsAuthForce", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_FI_SettlementFund", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_FI_Trade", SWIG_From_char(static_cast< char >('T'))); rb_define_const(mCtp, "THOST_FTDC_FI_InvestorPosition", SWIG_From_char(static_cast< char >('P'))); rb_define_const(mCtp, "THOST_FTDC_FI_SubEntryFund", SWIG_From_char(static_cast< char >('O'))); rb_define_const(mCtp, "THOST_FTDC_FI_CZCECombinationPos", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_FI_CSRCData", SWIG_From_char(static_cast< char >('R'))); rb_define_const(mCtp, "THOST_FTDC_FI_CZCEClose", SWIG_From_char(static_cast< char >('L'))); rb_define_const(mCtp, "THOST_FTDC_FI_CZCENoClose", SWIG_From_char(static_cast< char >('N'))); rb_define_const(mCtp, "THOST_FTDC_FI_PositionDtl", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_FI_OptionStrike", SWIG_From_char(static_cast< char >('S'))); rb_define_const(mCtp, "THOST_FTDC_FI_SettlementPriceComparison", SWIG_From_char(static_cast< char >('M'))); rb_define_const(mCtp, "THOST_FTDC_FI_NonTradePosChange", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_FUT_Settlement", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FUT_Check", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FFT_Txt", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FFT_Zip", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FFT_DBF", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FUS_SucceedUpload", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FUS_FailedUpload", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FUS_SucceedLoad", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FUS_PartSucceedLoad", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FUS_FailedLoad", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_TD_Out", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_TD_In", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SC_NoSpecialRule", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SC_NoSpringFestival", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_IPT_LastSettlement", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_IPT_LaseClose", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PLP_Active", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PLP_NonActive", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PLP_Canceled", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_DM_CashDeliv", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_DM_CommodityDeliv", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FIOT_FundIO", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FIOT_Transfer", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FIOT_SwapCurrency", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FT_Deposite", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FT_ItemFund", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FT_Company", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FT_InnerTransfer", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FD_In", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FD_Out", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FS_Record", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FS_Check", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FS_Charge", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_PS_None", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PS_Publishing", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PS_Published", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_ES_NonActive", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ES_Startup", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ES_Initialize", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_ES_Initialized", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_ES_Close", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_ES_Closed", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_ES_Settlement", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_STS_Initialize", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_STS_Settlementing", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_STS_Settlemented", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_STS_Finished", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CT_Person", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CT_Company", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CT_Fund", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CT_SpecialOrgan", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CT_Asset", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_BT_Trade", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_BT_TradeSettle", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FAS_Low", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FAS_Normal", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FAS_Focus", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FAS_Risk", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FAS_ByTrade", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FAS_ByDeliv", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FAS_None", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FAS_FixFee", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_PWDT_Trade", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PWDT_Account", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AG_All", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_AG_OnlyLost", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AG_OnlyGain", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_AG_None", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_ICP_Include", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_ICP_NotInclude", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AWT_Enable", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_AWT_Disable", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AWT_NoHoldEnable", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FPWD_UnCheck", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FPWD_Check", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TT_BankToFuture", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_TT_FutureToBank", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TVF_Invalid", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_TVF_Valid", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TVF_Reverse", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RN_CD", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_RN_ZT", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RN_QT", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SEX_None", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SEX_Man", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SEX_Woman", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_UT_Investor", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_UT_Operator", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_UT_SuperUser", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RATETYPE_MarginRate", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_NOTETYPE_TradeSettleBill", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_NOTETYPE_TradeSettleMonth", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_NOTETYPE_CallMarginNotes", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_NOTETYPE_ForceCloseNotes", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_NOTETYPE_TradeNotes", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_NOTETYPE_DelivNotes", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_SBS_Day", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SBS_Volume", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ST_Day", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_ST_Month", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_URT_Logon", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_URT_Transfer", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_URT_EMail", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_URT_Fax", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_URT_ConditionOrder", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_MPT_PreSettlementPrice", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_MPT_SettlementPrice", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_MPT_AveragePrice", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_MPT_OpenPrice", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_BGS_None", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_BGS_NoGenerated", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BGS_Generated", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AT_HandlePositionAlgo", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_AT_FindMarginRateAlgo", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_HPA_Base", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_HPA_DCE", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_HPA_CZCE", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FMRA_Base", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FMRA_DCE", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FMRA_CZCE", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_HTAA_Base", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_HTAA_DCE", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_HTAA_CZCE", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_PST_Order", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PST_Open", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PST_Fund", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_PST_Settlement", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_PST_Company", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_PST_Corporation", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_PST_LinkMan", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_PST_Ledger", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_PST_Trustee", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_PST_TrusteeCorporation", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_PST_TrusteeOpen", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_PST_TrusteeContact", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_PST_ForeignerRefer", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_PST_CorporationRefer", SWIG_From_char(static_cast< char >('E'))); rb_define_const(mCtp, "THOST_FTDC_QIR_All", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_QIR_Group", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_QIR_Single", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_IRS_Normal", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_IRS_Warn", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_IRS_Call", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_IRS_Force", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_IRS_Exception", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_UET_Login", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_UET_Logout", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_UET_Trading", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_UET_TradingError", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_UET_UpdatePassword", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_UET_Authenticate", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_UET_Other", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_ICS_Close", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_ICS_CloseToday", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SM_Non", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SM_Instrument", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SM_Product", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SM_Investor", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_PAOS_NotSend", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PAOS_Send", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PAOS_Deleted", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_VDS_Dealing", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_VDS_DeaclSucceed", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ORGS_Standard", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_ORGS_ESunny", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ORGS_KingStarV6", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_VTS_NaturalDeal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_VTS_SucceedEnd", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_VTS_FailedEND", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_VTS_Exception", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_VTS_ManualDeal", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_VTS_MesException", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_VTS_SysException", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_VBAT_BankBook", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_VBAT_BankCard", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_VBAT_CreditCard", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_VMS_Natural", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_VMS_Canceled", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_VAA_NoAvailAbility", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_VAA_AvailAbility", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_VAA_Repeal", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_VTC_BankBankToFuture", SWIG_From_char(static_cast< char >('102001'))); rb_define_const(mCtp, "THOST_FTDC_VTC_BankFutureToBank", SWIG_From_char(static_cast< char >('102002'))); rb_define_const(mCtp, "THOST_FTDC_VTC_FutureBankToFuture", SWIG_From_char(static_cast< char >('202001'))); rb_define_const(mCtp, "THOST_FTDC_VTC_FutureFutureToBank", SWIG_From_char(static_cast< char >('202002'))); rb_define_const(mCtp, "THOST_FTDC_GEN_Program", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_GEN_HandWork", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CFMMCKK_REQUEST", SWIG_From_char(static_cast< char >('R'))); rb_define_const(mCtp, "THOST_FTDC_CFMMCKK_AUTO", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_CFMMCKK_MANUAL", SWIG_From_char(static_cast< char >('M'))); rb_define_const(mCtp, "THOST_FTDC_CFT_IDCard", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CFT_Passport", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CFT_OfficerIDCard", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CFT_SoldierIDCard", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CFT_HomeComingCard", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_CFT_HouseholdRegister", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_CFT_LicenseNo", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_CFT_InstitutionCodeCard", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_CFT_TempLicenseNo", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_CFT_NoEnterpriseLicenseNo", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_CFT_OtherCard", SWIG_From_char(static_cast< char >('x'))); rb_define_const(mCtp, "THOST_FTDC_CFT_SuperDepAgree", SWIG_From_char(static_cast< char >('a'))); rb_define_const(mCtp, "THOST_FTDC_FBC_Others", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FBC_TransferDetails", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBC_CustAccStatus", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FBC_AccountTradeDetails", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FBC_FutureAccountChangeInfoDetails", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FBC_CustMoneyDetail", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_FBC_CustCancelAccountInfo", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_FBC_CustMoneyResult", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_FBC_OthersExceptionResult", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_FBC_CustInterestNetMoneyDetails", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_FBC_CustMoneySendAndReceiveDetails", SWIG_From_char(static_cast< char >('a'))); rb_define_const(mCtp, "THOST_FTDC_FBC_CorporationMoneyTotal", SWIG_From_char(static_cast< char >('b'))); rb_define_const(mCtp, "THOST_FTDC_FBC_MainbodyMoneyTotal", SWIG_From_char(static_cast< char >('c'))); rb_define_const(mCtp, "THOST_FTDC_FBC_MainPartMonitorData", SWIG_From_char(static_cast< char >('d'))); rb_define_const(mCtp, "THOST_FTDC_FBC_PreparationMoney", SWIG_From_char(static_cast< char >('e'))); rb_define_const(mCtp, "THOST_FTDC_FBC_BankMoneyMonitorData", SWIG_From_char(static_cast< char >('f'))); rb_define_const(mCtp, "THOST_FTDC_CEC_Exchange", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CEC_Cash", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_YNI_Yes", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_YNI_No", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BLT_CurrentMoney", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_BLT_UsableMoney", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BLT_FetchableMoney", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BLT_FreezeMoney", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_GD_Unknown", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_GD_Male", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_GD_Female", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FPF_BEN", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FPF_OUR", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FPF_SHA", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PWKT_ExchangeKey", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_PWKT_PassWordKey", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PWKT_MACKey", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PWKT_MessageKey", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_PWT_Query", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_PWT_Fetch", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PWT_Transfer", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PWT_Trade", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_EM_NoEncry", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_EM_DES", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_EM_3DES", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BRF_BankNotNeedRepeal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_BRF_BankWaitingRepeal", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BRF_BankBeenRepealed", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BRORF_BrokerNotNeedRepeal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_BRORF_BrokerWaitingRepeal", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BRORF_BrokerBeenRepealed", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_TS_Bank", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_TS_Future", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TS_Store", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_LF_Yes", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_LF_No", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BAS_Normal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_BAS_Freeze", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BAS_ReportLoss", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_MAS_Normal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_MAS_Cancel", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_MSS_Point", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_MSS_PrePoint", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_MSS_CancelPoint", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SYT_FutureBankTransfer", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SYT_StockBankTransfer", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SYT_TheThirdPartStore", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_TEF_NormalProcessing", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_TEF_Success", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TEF_Failed", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_TEF_Abnormal", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_TEF_ManualProcessedForException", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_TEF_CommuFailedNeedManualProcess", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_TEF_SysErrorNeedManualProcess", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_PSS_NotProcess", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_PSS_StartProcess", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PSS_Finished", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CUSTT_Person", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CUSTT_Institution", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBTTD_FromBankToFuture", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBTTD_FromFutureToBank", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OOD_Open", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OOD_Destroy", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_AVAF_Invalid", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_AVAF_Valid", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_AVAF_Repeal", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OT_Bank", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OT_Future", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OT_PlateForm", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_OL_HeadQuarters", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OL_Branch", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PID_FutureProtocal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_PID_ICBCProtocal", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PID_ABCProtocal", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PID_CBCProtocal", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_PID_CCBProtocal", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_PID_BOCOMProtocal", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_PID_FBTPlateFormProtocal", SWIG_From_char(static_cast< char >('X'))); rb_define_const(mCtp, "THOST_FTDC_CM_ShortConnect", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CM_LongConnect", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SRM_ASync", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SRM_Sync", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BAT_BankBook", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BAT_SavingCard", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BAT_CreditCard", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FAT_BankBook", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FAT_SavingCard", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FAT_CreditCard", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_OS_Ready", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_OS_CheckIn", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OS_CheckOut", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OS_CheckFileArrived", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_OS_CheckDetail", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_OS_DayEndClean", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_OS_Invalid", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_CCBFM_ByAmount", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CCBFM_ByMonth", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CAPIT_Client", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CAPIT_Server", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CAPIT_UserApi", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_LS_Connected", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_LS_Disconnected", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BPWDF_NoCheck", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_BPWDF_BlankCheck", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BPWDF_EncryptCheck", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SAT_AccountID", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SAT_CardID", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SAT_SHStockholderID", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SAT_SZStockholderID", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_TRFS_Normal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_TRFS_Repealed", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SPTYPE_Broker", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SPTYPE_Bank", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_REQRSP_Request", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_REQRSP_Response", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_SignIn", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_FromBankToFuture", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_FromFutureToBank", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_OpenAccount", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_CancelAccount", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_ChangeAccount", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_RepealFromBankToFuture", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_RepealFromFutureToBank", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_QueryBankAccount", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_QueryFutureAccount", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_SignOut", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_SyncKey", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_FBTUET_Other", SWIG_From_char(static_cast< char >('Z'))); rb_define_const(mCtp, "THOST_FTDC_DBOP_Insert", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_DBOP_Update", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_DBOP_Delete", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SYNF_Yes", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SYNF_No", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SYNT_OneOffSync", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SYNT_TimerSync", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SYNT_TimerFullSync", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FBEDIR_Settlement", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FBEDIR_Sale", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBERES_Success", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FBERES_InsufficientBalance", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBERES_UnknownTrading", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_FBERES_Fail", SWIG_From_char(static_cast< char >('x'))); rb_define_const(mCtp, "THOST_FTDC_FBEES_Normal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FBEES_ReExchange", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBEFG_DataPackage", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FBEFG_File", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBEAT_NotTrade", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FBEAT_Trade", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBEUET_SignIn", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FBEUET_Exchange", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBEUET_ReExchange", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FBEUET_QueryBankAccount", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FBEUET_QueryExchDetial", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FBEUET_QueryExchSummary", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_FBEUET_QueryExchRate", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_FBEUET_CheckBankAccount", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_FBEUET_SignOut", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_FBEUET_Other", SWIG_From_char(static_cast< char >('Z'))); rb_define_const(mCtp, "THOST_FTDC_FBERF_UnProcessed", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FBERF_WaitSend", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FBERF_SendSuccess", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FBERF_SendFailed", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FBERF_WaitReSend", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_NC_NOERROR", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_NC_Warn", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_NC_Call", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_NC_Force", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_NC_CHUANCANG", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_NC_Exception", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_FCT_Manual", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FCT_Single", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FCT_Group", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RNM_System", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_RNM_SMS", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RNM_EMail", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RNM_Manual", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_RNS_NotGen", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_RNS_Generated", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RNS_SendError", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RNS_SendOk", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_RNS_Received", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_RNS_Confirmed", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_RUE_ExportData", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_COST_LastPriceAsc", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_COST_LastPriceDesc", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_COST_AskPriceAsc", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_COST_AskPriceDesc", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_COST_BidPriceAsc", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_COST_BidPriceDesc", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_UOAST_NoSend", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_UOAST_Sended", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_UOAST_Generated", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_UOAST_SendFail", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_UOAST_Success", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_UOAST_Fail", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_UOAST_Cancel", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_UOACS_NoApply", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_UOACS_Submited", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_UOACS_Sended", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_UOACS_Success", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_UOACS_Refuse", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_UOACS_Cancel", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_QT_Radio", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_QT_Option", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_QT_Blank", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_BT_Request", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BT_Response", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BT_Notice", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CRC_Success", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CRC_Working", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CRC_InfoFail", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CRC_IDCardFail", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CRC_OtherFail", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_CfMMCCT_All", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CfMMCCT_Person", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CfMMCCT_Company", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CfMMCCT_Other", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CfMMCCT_SpecialOrgan", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_CfMMCCT_Asset", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_EIDT_SHFE", SWIG_From_char(static_cast< char >('S'))); rb_define_const(mCtp, "THOST_FTDC_EIDT_CZCE", SWIG_From_char(static_cast< char >('Z'))); rb_define_const(mCtp, "THOST_FTDC_EIDT_DCE", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_EIDT_CFFEX", SWIG_From_char(static_cast< char >('J'))); rb_define_const(mCtp, "THOST_FTDC_EIDT_INE", SWIG_From_char(static_cast< char >('N'))); rb_define_const(mCtp, "THOST_FTDC_ECIDT_Hedge", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ECIDT_Arbitrage", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ECIDT_Speculation", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_UF_NoUpdate", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_UF_Success", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_UF_Fail", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_UF_TCSuccess", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_UF_TCFail", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_UF_Cancel", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_AOID_OpenInvestor", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_AOID_ModifyIDCard", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AOID_ModifyNoIDCard", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_AOID_ApplyTradingCode", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_AOID_CancelTradingCode", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_AOID_CancelInvestor", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_AOID_FreezeAccount", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_AOID_ActiveFreezeAccount", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_ASID_NoComplete", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ASID_Submited", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ASID_Checked", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_ASID_Refused", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_ASID_Deleted", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_UOASM_ByAPI", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_UOASM_ByFile", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_EvM_ADD", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_EvM_UPDATE", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_EvM_DELETE", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_EvM_CHECK", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_EvM_COPY", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_EvM_CANCEL", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_EvM_Reverse", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_UOAA_ASR", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_UOAA_ASNR", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_UOAA_NSAR", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_UOAA_NSR", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_EvM_InvestorGroupFlow", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_EvM_InvestorRate", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_EvM_InvestorCommRateModel", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CL_Zero", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CL_One", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CL_Two", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CHS_Init", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CHS_Checking", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CHS_Checked", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CHS_Refuse", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CHS_Cancel", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_CHU_Unused", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CHU_Used", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CHU_Fail", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BAO_ByAccProperty", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_BAO_ByFBTransfer", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_MBTS_ByInstrument", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_MBTS_ByDayInsPrc", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_MBTS_ByDayIns", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FTC_BankLaunchBankToBroker", SWIG_From_char(static_cast< char >('102001'))); rb_define_const(mCtp, "THOST_FTDC_FTC_BrokerLaunchBankToBroker", SWIG_From_char(static_cast< char >('202001'))); rb_define_const(mCtp, "THOST_FTDC_FTC_BankLaunchBrokerToBank", SWIG_From_char(static_cast< char >('102002'))); rb_define_const(mCtp, "THOST_FTDC_FTC_BrokerLaunchBrokerToBank", SWIG_From_char(static_cast< char >('202002'))); rb_define_const(mCtp, "THOST_FTDC_OTP_NONE", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_OTP_TOTP", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OTPS_Unused", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_OTPS_Used", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OTPS_Disuse", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BUT_Investor", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BUT_BrokerUser", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FUTT_Commodity", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FUTT_Financial", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FET_Restriction", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FET_TodayRestriction", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FET_Transfer", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FET_Credit", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FET_InvestorWithdrawAlm", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FET_BankRestriction", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_FET_Accountregister", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_FET_ExchangeFundIO", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_FET_InvestorFundIO", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_AST_FBTransfer", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_AST_ManualEntry", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CST_UnifyAccount", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CST_ManualEntry", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_UR_All", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_UR_Single", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BG_Investor", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BG_Group", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TSSM_Instrument", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TSSM_Product", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_TSSM_Exchange", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_ESM_Relative", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ESM_Typical", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RIR_All", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RIR_Model", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RIR_Single", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SDS_Initialize", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SDS_Settlementing", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SDS_Settlemented", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_TSRC_NORMAL", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_TSRC_QUERY", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FSM_Product", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FSM_Exchange", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FSM_All", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_BIR_Property", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BIR_All", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PIR_All", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PIR_Property", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_PIR_Single", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FIS_NoCreate", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FIS_Created", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FIS_Failed", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FGS_FileTransmit", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_FGS_FileGen", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SoM_Add", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SoM_Update", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SoM_Delete", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SoM_Copy", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_SoM_AcTive", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_SoM_CanCel", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_SoM_ReSet", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_SoT_UpdatePassword", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SoT_UserDepartment", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SoT_RoleManager", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SoT_RoleFunction", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SoT_BaseParam", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_SoT_SetUserID", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_SoT_SetUserRole", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_SoT_UserIpRestriction", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_SoT_DepartmentManager", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_SoT_DepartmentCopy", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_SoT_Tradingcode", SWIG_From_char(static_cast< char >('A'))); rb_define_const(mCtp, "THOST_FTDC_SoT_InvestorStatus", SWIG_From_char(static_cast< char >('B'))); rb_define_const(mCtp, "THOST_FTDC_SoT_InvestorAuthority", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_SoT_PropertySet", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_SoT_ReSetInvestorPasswd", SWIG_From_char(static_cast< char >('E'))); rb_define_const(mCtp, "THOST_FTDC_SoT_InvestorPersonalityInfo", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_CSRCQ_Current", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CSRCQ_History", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FRS_Normal", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FRS_Freeze", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_STST_Standard", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_STST_NonStandard", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RPT_Freeze", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RPT_FreezeActive", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_RPT_OpenLimit", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_RPT_RelieveOpenLimit", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_AMLDS_Normal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_AMLDS_Deleted", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_AMLCHS_Init", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_AMLCHS_Checking", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_AMLCHS_Checked", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AMLCHS_RefuseReport", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_AMLDT_DrawDay", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_AMLDT_TouchDay", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_AMLCL_CheckLevel0", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_AMLCL_CheckLevel1", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_AMLCL_CheckLevel2", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AMLCL_CheckLevel3", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_EFT_CSV", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_EFT_EXCEL", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_EFT_DBF", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SMT_Before", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SMT_Settlement", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SMT_After", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SMT_Settlemented", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_SML_Must", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SML_Alarm", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SML_Prompt", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SML_Ignore", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_SMG_Exhcange", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SMG_ASP", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SMG_CSRC", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_LUT_Repeatable", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_LUT_Unrepeatable", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_DAR_Settle", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_DAR_Exchange", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_DAR_CSRC", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_MGT_ExchMarginRate", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_MGT_InstrMarginRate", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_MGT_InstrMarginRateTrade", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ACT_Intraday", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ACT_Long", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_MRT_Exchange", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_MRT_Investor", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_MRT_InvestorTrade", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_BUS_UnBak", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_BUS_BakUp", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BUS_BakUped", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BUS_BakFail", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SIS_UnInitialize", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SIS_Initialize", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SIS_Initialized", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SRS_NoCreate", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SRS_Create", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SRS_Created", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SRS_CreateFail", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_SSS_UnSaveData", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SSS_SaveDatad", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SAS_UnArchived", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SAS_Archiving", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SAS_Archived", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SAS_ArchiveFail", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CTPT_Unkown", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CTPT_MainCenter", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CTPT_BackUp", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CDT_Normal", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CDT_SpecFirst", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_MFUR_None", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_MFUR_Margin", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_MFUR_All", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SPT_CzceHedge", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SPT_IneForeignCurrency", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SPT_DceOpenClose", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FMT_Mortgage", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FMT_Redemption", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ASPI_BaseMargin", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ASPI_LowestInterest", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FMD_In", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FMD_Out", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_BT_Profit", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_BT_Loss", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BT_Other", SWIG_From_char(static_cast< char >('Z'))); rb_define_const(mCtp, "THOST_FTDC_SST_Manual", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_SST_Automatic", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CED_Settlement", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CED_Sale", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CSS_Entry", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CSS_Approve", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CSS_Refuse", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CSS_Revoke", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_CSS_Send", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_CSS_Success", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_CSS_Failure", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_REQF_NoSend", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_REQF_SendSuccess", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_REQF_SendFailed", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_REQF_WaitReSend", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_RESF_Success", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_RESF_InsuffiCient", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_RESF_UnKnown", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_EXS_Before", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_EXS_After", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CR_Domestic", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CR_GMT", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CR_Foreign", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_HB_No", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_HB_Yes", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SM_Normal", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_SM_Emerge", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_SM_Restore", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_TPT_Full", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_TPT_Increment", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_TPT_BackUp", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_LM_Trade", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_LM_Transfer", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CPT_Instrument", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CPT_Margin", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_HT_Yes", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_HT_No", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_AMT_Bank", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_AMT_Securities", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AMT_Fund", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_AMT_Insurance", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_AMT_Trust", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_AMT_Other", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_CFIOT_FundIO", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CFIOT_SwapCurrency", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CAT_Futures", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CAT_AssetmgrFuture", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CAT_AssetmgrTrustee", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_CAT_AssetmgrTransfer", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_LT_Chinese", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_LT_English", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AMCT_Person", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_AMCT_Organ", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_AMCT_SpecialOrgan", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_ASST_Futures", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_ASST_SpecialOrgan", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_CIT_HasExch", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CIT_HasATP", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CIT_HasDiff", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_DT_HandDeliv", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_DT_PersonDeliv", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_MMSA_NO", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_MMSA_YES", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CACT_Person", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CACT_Company", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CACT_Other", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_UOAAT_Futures", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_UOAAT_SpecialOrgan", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_DEN_Buy", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_DEN_Sell", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OFEN_Open", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_OFEN_Close", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OFEN_ForceClose", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OFEN_CloseToday", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_OFEN_CloseYesterday", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_OFEN_ForceOff", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_OFEN_LocalForceClose", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_HFEN_Speculation", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_HFEN_Arbitrage", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_HFEN_Hedge", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FIOTEN_FundIO", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FIOTEN_Transfer", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FIOTEN_SwapCurrency", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FTEN_Deposite", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FTEN_ItemFund", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FTEN_Company", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_FTEN_InnerTransfer", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_FDEN_In", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FDEN_Out", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FMDEN_In", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_FMDEN_Out", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CP_CallOptions", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_CP_PutOptions", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_STM_Continental", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_STM_American", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_STM_Bermuda", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_STT_Hedge", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_STT_Match", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_APPT_NotStrikeNum", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_GUDS_Gen", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_GUDS_Hand", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OER_NoExec", SWIG_From_char(static_cast< char >('n'))); rb_define_const(mCtp, "THOST_FTDC_OER_Canceled", SWIG_From_char(static_cast< char >('c'))); rb_define_const(mCtp, "THOST_FTDC_OER_OK", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_OER_NoPosition", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_OER_NoDeposit", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_OER_NoParticipant", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_OER_NoClient", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_OER_NoInstrument", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_OER_NoRight", SWIG_From_char(static_cast< char >('7'))); rb_define_const(mCtp, "THOST_FTDC_OER_InvalidVolume", SWIG_From_char(static_cast< char >('8'))); rb_define_const(mCtp, "THOST_FTDC_OER_NoEnoughHistoryTrade", SWIG_From_char(static_cast< char >('9'))); rb_define_const(mCtp, "THOST_FTDC_OER_Unknown", SWIG_From_char(static_cast< char >('a'))); rb_define_const(mCtp, "THOST_FTDC_COMBT_Future", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_COMBT_BUL", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_COMBT_BER", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_COMBT_STD", SWIG_From_char(static_cast< char >('3'))); rb_define_const(mCtp, "THOST_FTDC_COMBT_STG", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_COMBT_PRT", SWIG_From_char(static_cast< char >('5'))); rb_define_const(mCtp, "THOST_FTDC_COMBT_CLD", SWIG_From_char(static_cast< char >('6'))); rb_define_const(mCtp, "THOST_FTDC_ORPT_PreSettlementPrice", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ORPT_OpenPrice", SWIG_From_char(static_cast< char >('4'))); rb_define_const(mCtp, "THOST_FTDC_BLAG_Default", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_BLAG_IncludeOptValLost", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_ACTP_Exec", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_ACTP_Abandon", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_FQST_Submitted", SWIG_From_char(static_cast< char >('a'))); rb_define_const(mCtp, "THOST_FTDC_FQST_Accepted", SWIG_From_char(static_cast< char >('b'))); rb_define_const(mCtp, "THOST_FTDC_FQST_Rejected", SWIG_From_char(static_cast< char >('c'))); rb_define_const(mCtp, "THOST_FTDC_VM_Absolute", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_VM_Ratio", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_EOPF_Reserve", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_EOPF_UnReserve", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_EOCF_AutoClose", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_EOCF_NotToClose", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PTE_Futures", SWIG_From_char(static_cast< char >('1'))); rb_define_const(mCtp, "THOST_FTDC_PTE_Options", SWIG_From_char(static_cast< char >('2'))); rb_define_const(mCtp, "THOST_FTDC_CUFN_CUFN_O", SWIG_From_char(static_cast< char >('O'))); rb_define_const(mCtp, "THOST_FTDC_CUFN_CUFN_T", SWIG_From_char(static_cast< char >('T'))); rb_define_const(mCtp, "THOST_FTDC_CUFN_CUFN_P", SWIG_From_char(static_cast< char >('P'))); rb_define_const(mCtp, "THOST_FTDC_CUFN_CUFN_N", SWIG_From_char(static_cast< char >('N'))); rb_define_const(mCtp, "THOST_FTDC_CUFN_CUFN_L", SWIG_From_char(static_cast< char >('L'))); rb_define_const(mCtp, "THOST_FTDC_CUFN_CUFN_F", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_CUFN_CUFN_C", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_CUFN_CUFN_M", SWIG_From_char(static_cast< char >('M'))); rb_define_const(mCtp, "THOST_FTDC_DUFN_DUFN_O", SWIG_From_char(static_cast< char >('O'))); rb_define_const(mCtp, "THOST_FTDC_DUFN_DUFN_T", SWIG_From_char(static_cast< char >('T'))); rb_define_const(mCtp, "THOST_FTDC_DUFN_DUFN_P", SWIG_From_char(static_cast< char >('P'))); rb_define_const(mCtp, "THOST_FTDC_DUFN_DUFN_F", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_DUFN_DUFN_C", SWIG_From_char(static_cast< char >('C'))); rb_define_const(mCtp, "THOST_FTDC_DUFN_DUFN_D", SWIG_From_char(static_cast< char >('D'))); rb_define_const(mCtp, "THOST_FTDC_DUFN_DUFN_M", SWIG_From_char(static_cast< char >('M'))); rb_define_const(mCtp, "THOST_FTDC_DUFN_DUFN_S", SWIG_From_char(static_cast< char >('S'))); rb_define_const(mCtp, "THOST_FTDC_SUFN_SUFN_O", SWIG_From_char(static_cast< char >('O'))); rb_define_const(mCtp, "THOST_FTDC_SUFN_SUFN_T", SWIG_From_char(static_cast< char >('T'))); rb_define_const(mCtp, "THOST_FTDC_SUFN_SUFN_P", SWIG_From_char(static_cast< char >('P'))); rb_define_const(mCtp, "THOST_FTDC_SUFN_SUFN_F", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_CFUFN_SUFN_T", SWIG_From_char(static_cast< char >('T'))); rb_define_const(mCtp, "THOST_FTDC_CFUFN_SUFN_P", SWIG_From_char(static_cast< char >('P'))); rb_define_const(mCtp, "THOST_FTDC_CFUFN_SUFN_F", SWIG_From_char(static_cast< char >('F'))); rb_define_const(mCtp, "THOST_FTDC_CFUFN_SUFN_S", SWIG_From_char(static_cast< char >('S'))); rb_define_const(mCtp, "THOST_FTDC_CMDR_Comb", SWIG_From_char(static_cast< char >('0'))); rb_define_const(mCtp, "THOST_FTDC_CMDR_UnComb", SWIG_From_char(static_cast< char >('1'))); SwigClassCThostFtdcDisseminationField.klass = rb_define_class_under(mCtp, "CThostFtdcDisseminationField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcDisseminationField, (void *) &SwigClassCThostFtdcDisseminationField); rb_define_alloc_func(SwigClassCThostFtdcDisseminationField.klass, _wrap_CThostFtdcDisseminationField_allocate); rb_define_method(SwigClassCThostFtdcDisseminationField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcDisseminationField), -1); rb_define_method(SwigClassCThostFtdcDisseminationField.klass, "SequenceSeries=", VALUEFUNC(_wrap_CThostFtdcDisseminationField_SequenceSeries_set), -1); rb_define_method(SwigClassCThostFtdcDisseminationField.klass, "SequenceSeries", VALUEFUNC(_wrap_CThostFtdcDisseminationField_SequenceSeries_get), -1); rb_define_method(SwigClassCThostFtdcDisseminationField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcDisseminationField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcDisseminationField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcDisseminationField_SequenceNo_get), -1); SwigClassCThostFtdcDisseminationField.mark = 0; SwigClassCThostFtdcDisseminationField.destroy = (void (*)(void *)) free_CThostFtdcDisseminationField; SwigClassCThostFtdcDisseminationField.trackObjects = 0; SwigClassCThostFtdcReqUserLoginField.klass = rb_define_class_under(mCtp, "CThostFtdcReqUserLoginField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqUserLoginField, (void *) &SwigClassCThostFtdcReqUserLoginField); rb_define_alloc_func(SwigClassCThostFtdcReqUserLoginField.klass, _wrap_CThostFtdcReqUserLoginField_allocate); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqUserLoginField), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_Password_set), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_Password_get), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_UserProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "InterfaceProductInfo=", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_InterfaceProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "InterfaceProductInfo", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_InterfaceProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "ProtocolInfo=", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_ProtocolInfo_set), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "ProtocolInfo", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_ProtocolInfo_get), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "MacAddress=", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_MacAddress_set), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "MacAddress", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_MacAddress_get), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "OneTimePassword=", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_OneTimePassword_set), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "OneTimePassword", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_OneTimePassword_get), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "ClientIPAddress=", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_ClientIPAddress_set), -1); rb_define_method(SwigClassCThostFtdcReqUserLoginField.klass, "ClientIPAddress", VALUEFUNC(_wrap_CThostFtdcReqUserLoginField_ClientIPAddress_get), -1); SwigClassCThostFtdcReqUserLoginField.mark = 0; SwigClassCThostFtdcReqUserLoginField.destroy = (void (*)(void *)) free_CThostFtdcReqUserLoginField; SwigClassCThostFtdcReqUserLoginField.trackObjects = 0; SwigClassCThostFtdcRspUserLoginField.klass = rb_define_class_under(mCtp, "CThostFtdcRspUserLoginField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRspUserLoginField, (void *) &SwigClassCThostFtdcRspUserLoginField); rb_define_alloc_func(SwigClassCThostFtdcRspUserLoginField.klass, _wrap_CThostFtdcRspUserLoginField_allocate); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRspUserLoginField), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "LoginTime=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_LoginTime_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "LoginTime", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_LoginTime_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "SystemName=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_SystemName_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "SystemName", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_SystemName_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "MaxOrderRef=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_MaxOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "MaxOrderRef", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_MaxOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "SHFETime=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_SHFETime_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "SHFETime", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_SHFETime_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "DCETime=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_DCETime_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "DCETime", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_DCETime_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "CZCETime=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_CZCETime_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "CZCETime", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_CZCETime_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "FFEXTime=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_FFEXTime_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "FFEXTime", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_FFEXTime_get), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "INETime=", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_INETime_set), -1); rb_define_method(SwigClassCThostFtdcRspUserLoginField.klass, "INETime", VALUEFUNC(_wrap_CThostFtdcRspUserLoginField_INETime_get), -1); SwigClassCThostFtdcRspUserLoginField.mark = 0; SwigClassCThostFtdcRspUserLoginField.destroy = (void (*)(void *)) free_CThostFtdcRspUserLoginField; SwigClassCThostFtdcRspUserLoginField.trackObjects = 0; SwigClassCThostFtdcUserLogoutField.klass = rb_define_class_under(mCtp, "CThostFtdcUserLogoutField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcUserLogoutField, (void *) &SwigClassCThostFtdcUserLogoutField); rb_define_alloc_func(SwigClassCThostFtdcUserLogoutField.klass, _wrap_CThostFtdcUserLogoutField_allocate); rb_define_method(SwigClassCThostFtdcUserLogoutField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcUserLogoutField), -1); rb_define_method(SwigClassCThostFtdcUserLogoutField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcUserLogoutField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcUserLogoutField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcUserLogoutField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcUserLogoutField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcUserLogoutField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcUserLogoutField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcUserLogoutField_UserID_get), -1); SwigClassCThostFtdcUserLogoutField.mark = 0; SwigClassCThostFtdcUserLogoutField.destroy = (void (*)(void *)) free_CThostFtdcUserLogoutField; SwigClassCThostFtdcUserLogoutField.trackObjects = 0; SwigClassCThostFtdcForceUserLogoutField.klass = rb_define_class_under(mCtp, "CThostFtdcForceUserLogoutField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcForceUserLogoutField, (void *) &SwigClassCThostFtdcForceUserLogoutField); rb_define_alloc_func(SwigClassCThostFtdcForceUserLogoutField.klass, _wrap_CThostFtdcForceUserLogoutField_allocate); rb_define_method(SwigClassCThostFtdcForceUserLogoutField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcForceUserLogoutField), -1); rb_define_method(SwigClassCThostFtdcForceUserLogoutField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcForceUserLogoutField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcForceUserLogoutField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcForceUserLogoutField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcForceUserLogoutField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcForceUserLogoutField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcForceUserLogoutField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcForceUserLogoutField_UserID_get), -1); SwigClassCThostFtdcForceUserLogoutField.mark = 0; SwigClassCThostFtdcForceUserLogoutField.destroy = (void (*)(void *)) free_CThostFtdcForceUserLogoutField; SwigClassCThostFtdcForceUserLogoutField.trackObjects = 0; SwigClassCThostFtdcReqAuthenticateField.klass = rb_define_class_under(mCtp, "CThostFtdcReqAuthenticateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqAuthenticateField, (void *) &SwigClassCThostFtdcReqAuthenticateField); rb_define_alloc_func(SwigClassCThostFtdcReqAuthenticateField.klass, _wrap_CThostFtdcReqAuthenticateField_allocate); rb_define_method(SwigClassCThostFtdcReqAuthenticateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqAuthenticateField), -1); rb_define_method(SwigClassCThostFtdcReqAuthenticateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqAuthenticateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqAuthenticateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqAuthenticateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqAuthenticateField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcReqAuthenticateField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcReqAuthenticateField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcReqAuthenticateField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcReqAuthenticateField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcReqAuthenticateField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcReqAuthenticateField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcReqAuthenticateField_UserProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcReqAuthenticateField.klass, "AuthCode=", VALUEFUNC(_wrap_CThostFtdcReqAuthenticateField_AuthCode_set), -1); rb_define_method(SwigClassCThostFtdcReqAuthenticateField.klass, "AuthCode", VALUEFUNC(_wrap_CThostFtdcReqAuthenticateField_AuthCode_get), -1); SwigClassCThostFtdcReqAuthenticateField.mark = 0; SwigClassCThostFtdcReqAuthenticateField.destroy = (void (*)(void *)) free_CThostFtdcReqAuthenticateField; SwigClassCThostFtdcReqAuthenticateField.trackObjects = 0; SwigClassCThostFtdcRspAuthenticateField.klass = rb_define_class_under(mCtp, "CThostFtdcRspAuthenticateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRspAuthenticateField, (void *) &SwigClassCThostFtdcRspAuthenticateField); rb_define_alloc_func(SwigClassCThostFtdcRspAuthenticateField.klass, _wrap_CThostFtdcRspAuthenticateField_allocate); rb_define_method(SwigClassCThostFtdcRspAuthenticateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRspAuthenticateField), -1); rb_define_method(SwigClassCThostFtdcRspAuthenticateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRspAuthenticateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRspAuthenticateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRspAuthenticateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRspAuthenticateField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcRspAuthenticateField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcRspAuthenticateField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcRspAuthenticateField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcRspAuthenticateField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcRspAuthenticateField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcRspAuthenticateField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcRspAuthenticateField_UserProductInfo_get), -1); SwigClassCThostFtdcRspAuthenticateField.mark = 0; SwigClassCThostFtdcRspAuthenticateField.destroy = (void (*)(void *)) free_CThostFtdcRspAuthenticateField; SwigClassCThostFtdcRspAuthenticateField.trackObjects = 0; SwigClassCThostFtdcAuthenticationInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcAuthenticationInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcAuthenticationInfoField, (void *) &SwigClassCThostFtdcAuthenticationInfoField); rb_define_alloc_func(SwigClassCThostFtdcAuthenticationInfoField.klass, _wrap_CThostFtdcAuthenticationInfoField_allocate); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcAuthenticationInfoField), -1); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcAuthenticationInfoField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcAuthenticationInfoField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcAuthenticationInfoField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcAuthenticationInfoField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcAuthenticationInfoField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcAuthenticationInfoField_UserProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "AuthInfo=", VALUEFUNC(_wrap_CThostFtdcAuthenticationInfoField_AuthInfo_set), -1); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "AuthInfo", VALUEFUNC(_wrap_CThostFtdcAuthenticationInfoField_AuthInfo_get), -1); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "IsResult=", VALUEFUNC(_wrap_CThostFtdcAuthenticationInfoField_IsResult_set), -1); rb_define_method(SwigClassCThostFtdcAuthenticationInfoField.klass, "IsResult", VALUEFUNC(_wrap_CThostFtdcAuthenticationInfoField_IsResult_get), -1); SwigClassCThostFtdcAuthenticationInfoField.mark = 0; SwigClassCThostFtdcAuthenticationInfoField.destroy = (void (*)(void *)) free_CThostFtdcAuthenticationInfoField; SwigClassCThostFtdcAuthenticationInfoField.trackObjects = 0; SwigClassCThostFtdcTransferHeaderField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferHeaderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferHeaderField, (void *) &SwigClassCThostFtdcTransferHeaderField); rb_define_alloc_func(SwigClassCThostFtdcTransferHeaderField.klass, _wrap_CThostFtdcTransferHeaderField_allocate); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferHeaderField), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "Version=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_Version_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "Version", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_Version_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "TradeSerial=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_TradeSerial_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "TradeSerial", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_TradeSerial_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "FutureID=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_FutureID_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "FutureID", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_FutureID_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "BankBrchID=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_BankBrchID_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "BankBrchID", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_BankBrchID_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "RecordNum=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_RecordNum_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "RecordNum", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_RecordNum_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcTransferHeaderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcTransferHeaderField_RequestID_get), -1); SwigClassCThostFtdcTransferHeaderField.mark = 0; SwigClassCThostFtdcTransferHeaderField.destroy = (void (*)(void *)) free_CThostFtdcTransferHeaderField; SwigClassCThostFtdcTransferHeaderField.trackObjects = 0; SwigClassCThostFtdcTransferBankToFutureReqField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferBankToFutureReqField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferBankToFutureReqField, (void *) &SwigClassCThostFtdcTransferBankToFutureReqField); rb_define_alloc_func(SwigClassCThostFtdcTransferBankToFutureReqField.klass, _wrap_CThostFtdcTransferBankToFutureReqField_allocate); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferBankToFutureReqField), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "FutureAccount=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_FutureAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "FutureAccount", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_FutureAccount_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "FuturePwdFlag=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_FuturePwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "FuturePwdFlag", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_FuturePwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "FutureAccPwd=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_FutureAccPwd_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "FutureAccPwd", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_FutureAccPwd_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "TradeAmt=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_TradeAmt_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "TradeAmt", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_TradeAmt_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "CustFee=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_CustFee_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "CustFee", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_CustFee_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "CurrencyCode=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_CurrencyCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureReqField.klass, "CurrencyCode", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureReqField_CurrencyCode_get), -1); SwigClassCThostFtdcTransferBankToFutureReqField.mark = 0; SwigClassCThostFtdcTransferBankToFutureReqField.destroy = (void (*)(void *)) free_CThostFtdcTransferBankToFutureReqField; SwigClassCThostFtdcTransferBankToFutureReqField.trackObjects = 0; SwigClassCThostFtdcTransferBankToFutureRspField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferBankToFutureRspField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferBankToFutureRspField, (void *) &SwigClassCThostFtdcTransferBankToFutureRspField); rb_define_alloc_func(SwigClassCThostFtdcTransferBankToFutureRspField.klass, _wrap_CThostFtdcTransferBankToFutureRspField_allocate); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferBankToFutureRspField), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "RetCode=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_RetCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "RetCode", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_RetCode_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "RetInfo=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_RetInfo_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "RetInfo", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_RetInfo_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "FutureAccount=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_FutureAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "FutureAccount", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_FutureAccount_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "TradeAmt=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_TradeAmt_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "TradeAmt", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_TradeAmt_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "CustFee=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_CustFee_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "CustFee", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_CustFee_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "CurrencyCode=", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_CurrencyCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankToFutureRspField.klass, "CurrencyCode", VALUEFUNC(_wrap_CThostFtdcTransferBankToFutureRspField_CurrencyCode_get), -1); SwigClassCThostFtdcTransferBankToFutureRspField.mark = 0; SwigClassCThostFtdcTransferBankToFutureRspField.destroy = (void (*)(void *)) free_CThostFtdcTransferBankToFutureRspField; SwigClassCThostFtdcTransferBankToFutureRspField.trackObjects = 0; SwigClassCThostFtdcTransferFutureToBankReqField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferFutureToBankReqField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferFutureToBankReqField, (void *) &SwigClassCThostFtdcTransferFutureToBankReqField); rb_define_alloc_func(SwigClassCThostFtdcTransferFutureToBankReqField.klass, _wrap_CThostFtdcTransferFutureToBankReqField_allocate); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferFutureToBankReqField), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "FutureAccount=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_FutureAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "FutureAccount", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_FutureAccount_get), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "FuturePwdFlag=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_FuturePwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "FuturePwdFlag", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_FuturePwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "FutureAccPwd=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_FutureAccPwd_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "FutureAccPwd", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_FutureAccPwd_get), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "TradeAmt=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_TradeAmt_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "TradeAmt", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_TradeAmt_get), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "CustFee=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_CustFee_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "CustFee", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_CustFee_get), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "CurrencyCode=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_CurrencyCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankReqField.klass, "CurrencyCode", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankReqField_CurrencyCode_get), -1); SwigClassCThostFtdcTransferFutureToBankReqField.mark = 0; SwigClassCThostFtdcTransferFutureToBankReqField.destroy = (void (*)(void *)) free_CThostFtdcTransferFutureToBankReqField; SwigClassCThostFtdcTransferFutureToBankReqField.trackObjects = 0; SwigClassCThostFtdcTransferFutureToBankRspField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferFutureToBankRspField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferFutureToBankRspField, (void *) &SwigClassCThostFtdcTransferFutureToBankRspField); rb_define_alloc_func(SwigClassCThostFtdcTransferFutureToBankRspField.klass, _wrap_CThostFtdcTransferFutureToBankRspField_allocate); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferFutureToBankRspField), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "RetCode=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_RetCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "RetCode", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_RetCode_get), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "RetInfo=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_RetInfo_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "RetInfo", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_RetInfo_get), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "FutureAccount=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_FutureAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "FutureAccount", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_FutureAccount_get), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "TradeAmt=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_TradeAmt_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "TradeAmt", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_TradeAmt_get), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "CustFee=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_CustFee_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "CustFee", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_CustFee_get), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "CurrencyCode=", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_CurrencyCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferFutureToBankRspField.klass, "CurrencyCode", VALUEFUNC(_wrap_CThostFtdcTransferFutureToBankRspField_CurrencyCode_get), -1); SwigClassCThostFtdcTransferFutureToBankRspField.mark = 0; SwigClassCThostFtdcTransferFutureToBankRspField.destroy = (void (*)(void *)) free_CThostFtdcTransferFutureToBankRspField; SwigClassCThostFtdcTransferFutureToBankRspField.trackObjects = 0; SwigClassCThostFtdcTransferQryBankReqField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferQryBankReqField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferQryBankReqField, (void *) &SwigClassCThostFtdcTransferQryBankReqField); rb_define_alloc_func(SwigClassCThostFtdcTransferQryBankReqField.klass, _wrap_CThostFtdcTransferQryBankReqField_allocate); rb_define_method(SwigClassCThostFtdcTransferQryBankReqField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferQryBankReqField), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankReqField.klass, "FutureAccount=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankReqField_FutureAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankReqField.klass, "FutureAccount", VALUEFUNC(_wrap_CThostFtdcTransferQryBankReqField_FutureAccount_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankReqField.klass, "FuturePwdFlag=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankReqField_FuturePwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankReqField.klass, "FuturePwdFlag", VALUEFUNC(_wrap_CThostFtdcTransferQryBankReqField_FuturePwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankReqField.klass, "FutureAccPwd=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankReqField_FutureAccPwd_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankReqField.klass, "FutureAccPwd", VALUEFUNC(_wrap_CThostFtdcTransferQryBankReqField_FutureAccPwd_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankReqField.klass, "CurrencyCode=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankReqField_CurrencyCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankReqField.klass, "CurrencyCode", VALUEFUNC(_wrap_CThostFtdcTransferQryBankReqField_CurrencyCode_get), -1); SwigClassCThostFtdcTransferQryBankReqField.mark = 0; SwigClassCThostFtdcTransferQryBankReqField.destroy = (void (*)(void *)) free_CThostFtdcTransferQryBankReqField; SwigClassCThostFtdcTransferQryBankReqField.trackObjects = 0; SwigClassCThostFtdcTransferQryBankRspField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferQryBankRspField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferQryBankRspField, (void *) &SwigClassCThostFtdcTransferQryBankRspField); rb_define_alloc_func(SwigClassCThostFtdcTransferQryBankRspField.klass, _wrap_CThostFtdcTransferQryBankRspField_allocate); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferQryBankRspField), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "RetCode=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_RetCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "RetCode", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_RetCode_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "RetInfo=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_RetInfo_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "RetInfo", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_RetInfo_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "FutureAccount=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_FutureAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "FutureAccount", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_FutureAccount_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "TradeAmt=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_TradeAmt_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "TradeAmt", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_TradeAmt_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "UseAmt=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_UseAmt_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "UseAmt", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_UseAmt_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "FetchAmt=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_FetchAmt_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "FetchAmt", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_FetchAmt_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "CurrencyCode=", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_CurrencyCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryBankRspField.klass, "CurrencyCode", VALUEFUNC(_wrap_CThostFtdcTransferQryBankRspField_CurrencyCode_get), -1); SwigClassCThostFtdcTransferQryBankRspField.mark = 0; SwigClassCThostFtdcTransferQryBankRspField.destroy = (void (*)(void *)) free_CThostFtdcTransferQryBankRspField; SwigClassCThostFtdcTransferQryBankRspField.trackObjects = 0; SwigClassCThostFtdcTransferQryDetailReqField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferQryDetailReqField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferQryDetailReqField, (void *) &SwigClassCThostFtdcTransferQryDetailReqField); rb_define_alloc_func(SwigClassCThostFtdcTransferQryDetailReqField.klass, _wrap_CThostFtdcTransferQryDetailReqField_allocate); rb_define_method(SwigClassCThostFtdcTransferQryDetailReqField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferQryDetailReqField), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailReqField.klass, "FutureAccount=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailReqField_FutureAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailReqField.klass, "FutureAccount", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailReqField_FutureAccount_get), -1); SwigClassCThostFtdcTransferQryDetailReqField.mark = 0; SwigClassCThostFtdcTransferQryDetailReqField.destroy = (void (*)(void *)) free_CThostFtdcTransferQryDetailReqField; SwigClassCThostFtdcTransferQryDetailReqField.trackObjects = 0; SwigClassCThostFtdcTransferQryDetailRspField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferQryDetailRspField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferQryDetailRspField, (void *) &SwigClassCThostFtdcTransferQryDetailRspField); rb_define_alloc_func(SwigClassCThostFtdcTransferQryDetailRspField.klass, _wrap_CThostFtdcTransferQryDetailRspField_allocate); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferQryDetailRspField), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "FutureSerial=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_FutureSerial_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "FutureSerial", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_FutureSerial_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "FutureID=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_FutureID_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "FutureID", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_FutureID_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "FutureAccount=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_FutureAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "FutureAccount", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_FutureAccount_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "BankBrchID=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_BankBrchID_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "BankBrchID", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_BankBrchID_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "CertCode=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_CertCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "CertCode", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_CertCode_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "CurrencyCode=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_CurrencyCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "CurrencyCode", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_CurrencyCode_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "TxAmount=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_TxAmount_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "TxAmount", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_TxAmount_get), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "Flag=", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_Flag_set), -1); rb_define_method(SwigClassCThostFtdcTransferQryDetailRspField.klass, "Flag", VALUEFUNC(_wrap_CThostFtdcTransferQryDetailRspField_Flag_get), -1); SwigClassCThostFtdcTransferQryDetailRspField.mark = 0; SwigClassCThostFtdcTransferQryDetailRspField.destroy = (void (*)(void *)) free_CThostFtdcTransferQryDetailRspField; SwigClassCThostFtdcTransferQryDetailRspField.trackObjects = 0; SwigClassCThostFtdcRspInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcRspInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRspInfoField, (void *) &SwigClassCThostFtdcRspInfoField); rb_define_alloc_func(SwigClassCThostFtdcRspInfoField.klass, _wrap_CThostFtdcRspInfoField_allocate); rb_define_method(SwigClassCThostFtdcRspInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRspInfoField), -1); rb_define_method(SwigClassCThostFtdcRspInfoField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcRspInfoField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcRspInfoField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcRspInfoField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcRspInfoField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcRspInfoField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcRspInfoField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcRspInfoField_ErrorMsg_get), -1); SwigClassCThostFtdcRspInfoField.mark = 0; SwigClassCThostFtdcRspInfoField.destroy = (void (*)(void *)) free_CThostFtdcRspInfoField; SwigClassCThostFtdcRspInfoField.trackObjects = 0; SwigClassCThostFtdcExchangeField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeField, (void *) &SwigClassCThostFtdcExchangeField); rb_define_alloc_func(SwigClassCThostFtdcExchangeField.klass, _wrap_CThostFtdcExchangeField_allocate); rb_define_method(SwigClassCThostFtdcExchangeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeField), -1); rb_define_method(SwigClassCThostFtdcExchangeField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeField.klass, "ExchangeName=", VALUEFUNC(_wrap_CThostFtdcExchangeField_ExchangeName_set), -1); rb_define_method(SwigClassCThostFtdcExchangeField.klass, "ExchangeName", VALUEFUNC(_wrap_CThostFtdcExchangeField_ExchangeName_get), -1); rb_define_method(SwigClassCThostFtdcExchangeField.klass, "ExchangeProperty=", VALUEFUNC(_wrap_CThostFtdcExchangeField_ExchangeProperty_set), -1); rb_define_method(SwigClassCThostFtdcExchangeField.klass, "ExchangeProperty", VALUEFUNC(_wrap_CThostFtdcExchangeField_ExchangeProperty_get), -1); SwigClassCThostFtdcExchangeField.mark = 0; SwigClassCThostFtdcExchangeField.destroy = (void (*)(void *)) free_CThostFtdcExchangeField; SwigClassCThostFtdcExchangeField.trackObjects = 0; SwigClassCThostFtdcProductField.klass = rb_define_class_under(mCtp, "CThostFtdcProductField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcProductField, (void *) &SwigClassCThostFtdcProductField); rb_define_alloc_func(SwigClassCThostFtdcProductField.klass, _wrap_CThostFtdcProductField_allocate); rb_define_method(SwigClassCThostFtdcProductField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcProductField), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "ProductID=", VALUEFUNC(_wrap_CThostFtdcProductField_ProductID_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "ProductID", VALUEFUNC(_wrap_CThostFtdcProductField_ProductID_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "ProductName=", VALUEFUNC(_wrap_CThostFtdcProductField_ProductName_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "ProductName", VALUEFUNC(_wrap_CThostFtdcProductField_ProductName_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcProductField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcProductField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "ProductClass=", VALUEFUNC(_wrap_CThostFtdcProductField_ProductClass_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "ProductClass", VALUEFUNC(_wrap_CThostFtdcProductField_ProductClass_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "VolumeMultiple=", VALUEFUNC(_wrap_CThostFtdcProductField_VolumeMultiple_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "VolumeMultiple", VALUEFUNC(_wrap_CThostFtdcProductField_VolumeMultiple_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "PriceTick=", VALUEFUNC(_wrap_CThostFtdcProductField_PriceTick_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "PriceTick", VALUEFUNC(_wrap_CThostFtdcProductField_PriceTick_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "MaxMarketOrderVolume=", VALUEFUNC(_wrap_CThostFtdcProductField_MaxMarketOrderVolume_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "MaxMarketOrderVolume", VALUEFUNC(_wrap_CThostFtdcProductField_MaxMarketOrderVolume_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "MinMarketOrderVolume=", VALUEFUNC(_wrap_CThostFtdcProductField_MinMarketOrderVolume_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "MinMarketOrderVolume", VALUEFUNC(_wrap_CThostFtdcProductField_MinMarketOrderVolume_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "MaxLimitOrderVolume=", VALUEFUNC(_wrap_CThostFtdcProductField_MaxLimitOrderVolume_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "MaxLimitOrderVolume", VALUEFUNC(_wrap_CThostFtdcProductField_MaxLimitOrderVolume_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "MinLimitOrderVolume=", VALUEFUNC(_wrap_CThostFtdcProductField_MinLimitOrderVolume_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "MinLimitOrderVolume", VALUEFUNC(_wrap_CThostFtdcProductField_MinLimitOrderVolume_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "PositionType=", VALUEFUNC(_wrap_CThostFtdcProductField_PositionType_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "PositionType", VALUEFUNC(_wrap_CThostFtdcProductField_PositionType_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "PositionDateType=", VALUEFUNC(_wrap_CThostFtdcProductField_PositionDateType_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "PositionDateType", VALUEFUNC(_wrap_CThostFtdcProductField_PositionDateType_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "CloseDealType=", VALUEFUNC(_wrap_CThostFtdcProductField_CloseDealType_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "CloseDealType", VALUEFUNC(_wrap_CThostFtdcProductField_CloseDealType_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "TradeCurrencyID=", VALUEFUNC(_wrap_CThostFtdcProductField_TradeCurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "TradeCurrencyID", VALUEFUNC(_wrap_CThostFtdcProductField_TradeCurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "MortgageFundUseRange=", VALUEFUNC(_wrap_CThostFtdcProductField_MortgageFundUseRange_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "MortgageFundUseRange", VALUEFUNC(_wrap_CThostFtdcProductField_MortgageFundUseRange_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "ExchangeProductID=", VALUEFUNC(_wrap_CThostFtdcProductField_ExchangeProductID_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "ExchangeProductID", VALUEFUNC(_wrap_CThostFtdcProductField_ExchangeProductID_get), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "UnderlyingMultiple=", VALUEFUNC(_wrap_CThostFtdcProductField_UnderlyingMultiple_set), -1); rb_define_method(SwigClassCThostFtdcProductField.klass, "UnderlyingMultiple", VALUEFUNC(_wrap_CThostFtdcProductField_UnderlyingMultiple_get), -1); SwigClassCThostFtdcProductField.mark = 0; SwigClassCThostFtdcProductField.destroy = (void (*)(void *)) free_CThostFtdcProductField; SwigClassCThostFtdcProductField.trackObjects = 0; SwigClassCThostFtdcInstrumentField.klass = rb_define_class_under(mCtp, "CThostFtdcInstrumentField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInstrumentField, (void *) &SwigClassCThostFtdcInstrumentField); rb_define_alloc_func(SwigClassCThostFtdcInstrumentField.klass, _wrap_CThostFtdcInstrumentField_allocate); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInstrumentField), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInstrumentField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "InstrumentName=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_InstrumentName_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "InstrumentName", VALUEFUNC(_wrap_CThostFtdcInstrumentField_InstrumentName_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ProductID=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ProductID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ProductID", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ProductID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ProductClass=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ProductClass_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ProductClass", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ProductClass_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "DeliveryYear=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_DeliveryYear_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "DeliveryYear", VALUEFUNC(_wrap_CThostFtdcInstrumentField_DeliveryYear_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "DeliveryMonth=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_DeliveryMonth_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "DeliveryMonth", VALUEFUNC(_wrap_CThostFtdcInstrumentField_DeliveryMonth_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "MaxMarketOrderVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_MaxMarketOrderVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "MaxMarketOrderVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentField_MaxMarketOrderVolume_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "MinMarketOrderVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_MinMarketOrderVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "MinMarketOrderVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentField_MinMarketOrderVolume_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "MaxLimitOrderVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_MaxLimitOrderVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "MaxLimitOrderVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentField_MaxLimitOrderVolume_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "MinLimitOrderVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_MinLimitOrderVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "MinLimitOrderVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentField_MinLimitOrderVolume_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "VolumeMultiple=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_VolumeMultiple_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "VolumeMultiple", VALUEFUNC(_wrap_CThostFtdcInstrumentField_VolumeMultiple_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "PriceTick=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_PriceTick_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "PriceTick", VALUEFUNC(_wrap_CThostFtdcInstrumentField_PriceTick_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "CreateDate=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_CreateDate_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "CreateDate", VALUEFUNC(_wrap_CThostFtdcInstrumentField_CreateDate_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "OpenDate=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_OpenDate_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "OpenDate", VALUEFUNC(_wrap_CThostFtdcInstrumentField_OpenDate_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ExpireDate=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ExpireDate_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ExpireDate", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ExpireDate_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "StartDelivDate=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_StartDelivDate_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "StartDelivDate", VALUEFUNC(_wrap_CThostFtdcInstrumentField_StartDelivDate_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "EndDelivDate=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_EndDelivDate_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "EndDelivDate", VALUEFUNC(_wrap_CThostFtdcInstrumentField_EndDelivDate_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "InstLifePhase=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_InstLifePhase_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "InstLifePhase", VALUEFUNC(_wrap_CThostFtdcInstrumentField_InstLifePhase_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "IsTrading=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_IsTrading_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "IsTrading", VALUEFUNC(_wrap_CThostFtdcInstrumentField_IsTrading_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "PositionType=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_PositionType_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "PositionType", VALUEFUNC(_wrap_CThostFtdcInstrumentField_PositionType_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "PositionDateType=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_PositionDateType_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "PositionDateType", VALUEFUNC(_wrap_CThostFtdcInstrumentField_PositionDateType_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "LongMarginRatio=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_LongMarginRatio_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "LongMarginRatio", VALUEFUNC(_wrap_CThostFtdcInstrumentField_LongMarginRatio_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ShortMarginRatio=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ShortMarginRatio_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "ShortMarginRatio", VALUEFUNC(_wrap_CThostFtdcInstrumentField_ShortMarginRatio_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "MaxMarginSideAlgorithm=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_MaxMarginSideAlgorithm_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "MaxMarginSideAlgorithm", VALUEFUNC(_wrap_CThostFtdcInstrumentField_MaxMarginSideAlgorithm_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "UnderlyingInstrID=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_UnderlyingInstrID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "UnderlyingInstrID", VALUEFUNC(_wrap_CThostFtdcInstrumentField_UnderlyingInstrID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "StrikePrice=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_StrikePrice_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "StrikePrice", VALUEFUNC(_wrap_CThostFtdcInstrumentField_StrikePrice_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "OptionsType=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_OptionsType_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "OptionsType", VALUEFUNC(_wrap_CThostFtdcInstrumentField_OptionsType_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "UnderlyingMultiple=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_UnderlyingMultiple_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "UnderlyingMultiple", VALUEFUNC(_wrap_CThostFtdcInstrumentField_UnderlyingMultiple_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "CombinationType=", VALUEFUNC(_wrap_CThostFtdcInstrumentField_CombinationType_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentField.klass, "CombinationType", VALUEFUNC(_wrap_CThostFtdcInstrumentField_CombinationType_get), -1); SwigClassCThostFtdcInstrumentField.mark = 0; SwigClassCThostFtdcInstrumentField.destroy = (void (*)(void *)) free_CThostFtdcInstrumentField; SwigClassCThostFtdcInstrumentField.trackObjects = 0; SwigClassCThostFtdcBrokerField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerField, (void *) &SwigClassCThostFtdcBrokerField); rb_define_alloc_func(SwigClassCThostFtdcBrokerField.klass, _wrap_CThostFtdcBrokerField_allocate); rb_define_method(SwigClassCThostFtdcBrokerField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerField), -1); rb_define_method(SwigClassCThostFtdcBrokerField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerField.klass, "BrokerAbbr=", VALUEFUNC(_wrap_CThostFtdcBrokerField_BrokerAbbr_set), -1); rb_define_method(SwigClassCThostFtdcBrokerField.klass, "BrokerAbbr", VALUEFUNC(_wrap_CThostFtdcBrokerField_BrokerAbbr_get), -1); rb_define_method(SwigClassCThostFtdcBrokerField.klass, "BrokerName=", VALUEFUNC(_wrap_CThostFtdcBrokerField_BrokerName_set), -1); rb_define_method(SwigClassCThostFtdcBrokerField.klass, "BrokerName", VALUEFUNC(_wrap_CThostFtdcBrokerField_BrokerName_get), -1); rb_define_method(SwigClassCThostFtdcBrokerField.klass, "IsActive=", VALUEFUNC(_wrap_CThostFtdcBrokerField_IsActive_set), -1); rb_define_method(SwigClassCThostFtdcBrokerField.klass, "IsActive", VALUEFUNC(_wrap_CThostFtdcBrokerField_IsActive_get), -1); SwigClassCThostFtdcBrokerField.mark = 0; SwigClassCThostFtdcBrokerField.destroy = (void (*)(void *)) free_CThostFtdcBrokerField; SwigClassCThostFtdcBrokerField.trackObjects = 0; SwigClassCThostFtdcTraderField.klass = rb_define_class_under(mCtp, "CThostFtdcTraderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTraderField, (void *) &SwigClassCThostFtdcTraderField); rb_define_alloc_func(SwigClassCThostFtdcTraderField.klass, _wrap_CThostFtdcTraderField_allocate); rb_define_method(SwigClassCThostFtdcTraderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTraderField), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcTraderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcTraderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcTraderField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcTraderField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcTraderField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcTraderField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcTraderField_Password_set), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcTraderField_Password_get), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "InstallCount=", VALUEFUNC(_wrap_CThostFtdcTraderField_InstallCount_set), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "InstallCount", VALUEFUNC(_wrap_CThostFtdcTraderField_InstallCount_get), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTraderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTraderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTraderField_BrokerID_get), -1); SwigClassCThostFtdcTraderField.mark = 0; SwigClassCThostFtdcTraderField.destroy = (void (*)(void *)) free_CThostFtdcTraderField; SwigClassCThostFtdcTraderField.trackObjects = 0; SwigClassCThostFtdcInvestorField.klass = rb_define_class_under(mCtp, "CThostFtdcInvestorField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInvestorField, (void *) &SwigClassCThostFtdcInvestorField); rb_define_alloc_func(SwigClassCThostFtdcInvestorField.klass, _wrap_CThostFtdcInvestorField_allocate); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInvestorField), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInvestorField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInvestorField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInvestorField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInvestorField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "InvestorGroupID=", VALUEFUNC(_wrap_CThostFtdcInvestorField_InvestorGroupID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "InvestorGroupID", VALUEFUNC(_wrap_CThostFtdcInvestorField_InvestorGroupID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "InvestorName=", VALUEFUNC(_wrap_CThostFtdcInvestorField_InvestorName_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "InvestorName", VALUEFUNC(_wrap_CThostFtdcInvestorField_InvestorName_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "IdentifiedCardType=", VALUEFUNC(_wrap_CThostFtdcInvestorField_IdentifiedCardType_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "IdentifiedCardType", VALUEFUNC(_wrap_CThostFtdcInvestorField_IdentifiedCardType_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcInvestorField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcInvestorField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "IsActive=", VALUEFUNC(_wrap_CThostFtdcInvestorField_IsActive_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "IsActive", VALUEFUNC(_wrap_CThostFtdcInvestorField_IsActive_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "Telephone=", VALUEFUNC(_wrap_CThostFtdcInvestorField_Telephone_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "Telephone", VALUEFUNC(_wrap_CThostFtdcInvestorField_Telephone_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "Address=", VALUEFUNC(_wrap_CThostFtdcInvestorField_Address_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "Address", VALUEFUNC(_wrap_CThostFtdcInvestorField_Address_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "OpenDate=", VALUEFUNC(_wrap_CThostFtdcInvestorField_OpenDate_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "OpenDate", VALUEFUNC(_wrap_CThostFtdcInvestorField_OpenDate_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "Mobile=", VALUEFUNC(_wrap_CThostFtdcInvestorField_Mobile_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "Mobile", VALUEFUNC(_wrap_CThostFtdcInvestorField_Mobile_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "CommModelID=", VALUEFUNC(_wrap_CThostFtdcInvestorField_CommModelID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "CommModelID", VALUEFUNC(_wrap_CThostFtdcInvestorField_CommModelID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "MarginModelID=", VALUEFUNC(_wrap_CThostFtdcInvestorField_MarginModelID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorField.klass, "MarginModelID", VALUEFUNC(_wrap_CThostFtdcInvestorField_MarginModelID_get), -1); SwigClassCThostFtdcInvestorField.mark = 0; SwigClassCThostFtdcInvestorField.destroy = (void (*)(void *)) free_CThostFtdcInvestorField; SwigClassCThostFtdcInvestorField.trackObjects = 0; SwigClassCThostFtdcTradingCodeField.klass = rb_define_class_under(mCtp, "CThostFtdcTradingCodeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTradingCodeField, (void *) &SwigClassCThostFtdcTradingCodeField); rb_define_alloc_func(SwigClassCThostFtdcTradingCodeField.klass, _wrap_CThostFtdcTradingCodeField_allocate); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTradingCodeField), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "IsActive=", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_IsActive_set), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "IsActive", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_IsActive_get), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "ClientIDType=", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_ClientIDType_set), -1); rb_define_method(SwigClassCThostFtdcTradingCodeField.klass, "ClientIDType", VALUEFUNC(_wrap_CThostFtdcTradingCodeField_ClientIDType_get), -1); SwigClassCThostFtdcTradingCodeField.mark = 0; SwigClassCThostFtdcTradingCodeField.destroy = (void (*)(void *)) free_CThostFtdcTradingCodeField; SwigClassCThostFtdcTradingCodeField.trackObjects = 0; SwigClassCThostFtdcPartBrokerField.klass = rb_define_class_under(mCtp, "CThostFtdcPartBrokerField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcPartBrokerField, (void *) &SwigClassCThostFtdcPartBrokerField); rb_define_alloc_func(SwigClassCThostFtdcPartBrokerField.klass, _wrap_CThostFtdcPartBrokerField_allocate); rb_define_method(SwigClassCThostFtdcPartBrokerField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcPartBrokerField), -1); rb_define_method(SwigClassCThostFtdcPartBrokerField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcPartBrokerField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcPartBrokerField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcPartBrokerField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcPartBrokerField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcPartBrokerField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcPartBrokerField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcPartBrokerField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcPartBrokerField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcPartBrokerField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcPartBrokerField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcPartBrokerField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcPartBrokerField.klass, "IsActive=", VALUEFUNC(_wrap_CThostFtdcPartBrokerField_IsActive_set), -1); rb_define_method(SwigClassCThostFtdcPartBrokerField.klass, "IsActive", VALUEFUNC(_wrap_CThostFtdcPartBrokerField_IsActive_get), -1); SwigClassCThostFtdcPartBrokerField.mark = 0; SwigClassCThostFtdcPartBrokerField.destroy = (void (*)(void *)) free_CThostFtdcPartBrokerField; SwigClassCThostFtdcPartBrokerField.trackObjects = 0; SwigClassCThostFtdcSuperUserField.klass = rb_define_class_under(mCtp, "CThostFtdcSuperUserField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSuperUserField, (void *) &SwigClassCThostFtdcSuperUserField); rb_define_alloc_func(SwigClassCThostFtdcSuperUserField.klass, _wrap_CThostFtdcSuperUserField_allocate); rb_define_method(SwigClassCThostFtdcSuperUserField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSuperUserField), -1); rb_define_method(SwigClassCThostFtdcSuperUserField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcSuperUserField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcSuperUserField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcSuperUserField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcSuperUserField.klass, "UserName=", VALUEFUNC(_wrap_CThostFtdcSuperUserField_UserName_set), -1); rb_define_method(SwigClassCThostFtdcSuperUserField.klass, "UserName", VALUEFUNC(_wrap_CThostFtdcSuperUserField_UserName_get), -1); rb_define_method(SwigClassCThostFtdcSuperUserField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcSuperUserField_Password_set), -1); rb_define_method(SwigClassCThostFtdcSuperUserField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcSuperUserField_Password_get), -1); rb_define_method(SwigClassCThostFtdcSuperUserField.klass, "IsActive=", VALUEFUNC(_wrap_CThostFtdcSuperUserField_IsActive_set), -1); rb_define_method(SwigClassCThostFtdcSuperUserField.klass, "IsActive", VALUEFUNC(_wrap_CThostFtdcSuperUserField_IsActive_get), -1); SwigClassCThostFtdcSuperUserField.mark = 0; SwigClassCThostFtdcSuperUserField.destroy = (void (*)(void *)) free_CThostFtdcSuperUserField; SwigClassCThostFtdcSuperUserField.trackObjects = 0; SwigClassCThostFtdcSuperUserFunctionField.klass = rb_define_class_under(mCtp, "CThostFtdcSuperUserFunctionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSuperUserFunctionField, (void *) &SwigClassCThostFtdcSuperUserFunctionField); rb_define_alloc_func(SwigClassCThostFtdcSuperUserFunctionField.klass, _wrap_CThostFtdcSuperUserFunctionField_allocate); rb_define_method(SwigClassCThostFtdcSuperUserFunctionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSuperUserFunctionField), -1); rb_define_method(SwigClassCThostFtdcSuperUserFunctionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcSuperUserFunctionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcSuperUserFunctionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcSuperUserFunctionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcSuperUserFunctionField.klass, "FunctionCode=", VALUEFUNC(_wrap_CThostFtdcSuperUserFunctionField_FunctionCode_set), -1); rb_define_method(SwigClassCThostFtdcSuperUserFunctionField.klass, "FunctionCode", VALUEFUNC(_wrap_CThostFtdcSuperUserFunctionField_FunctionCode_get), -1); SwigClassCThostFtdcSuperUserFunctionField.mark = 0; SwigClassCThostFtdcSuperUserFunctionField.destroy = (void (*)(void *)) free_CThostFtdcSuperUserFunctionField; SwigClassCThostFtdcSuperUserFunctionField.trackObjects = 0; SwigClassCThostFtdcInvestorGroupField.klass = rb_define_class_under(mCtp, "CThostFtdcInvestorGroupField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInvestorGroupField, (void *) &SwigClassCThostFtdcInvestorGroupField); rb_define_alloc_func(SwigClassCThostFtdcInvestorGroupField.klass, _wrap_CThostFtdcInvestorGroupField_allocate); rb_define_method(SwigClassCThostFtdcInvestorGroupField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInvestorGroupField), -1); rb_define_method(SwigClassCThostFtdcInvestorGroupField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInvestorGroupField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorGroupField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInvestorGroupField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorGroupField.klass, "InvestorGroupID=", VALUEFUNC(_wrap_CThostFtdcInvestorGroupField_InvestorGroupID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorGroupField.klass, "InvestorGroupID", VALUEFUNC(_wrap_CThostFtdcInvestorGroupField_InvestorGroupID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorGroupField.klass, "InvestorGroupName=", VALUEFUNC(_wrap_CThostFtdcInvestorGroupField_InvestorGroupName_set), -1); rb_define_method(SwigClassCThostFtdcInvestorGroupField.klass, "InvestorGroupName", VALUEFUNC(_wrap_CThostFtdcInvestorGroupField_InvestorGroupName_get), -1); SwigClassCThostFtdcInvestorGroupField.mark = 0; SwigClassCThostFtdcInvestorGroupField.destroy = (void (*)(void *)) free_CThostFtdcInvestorGroupField; SwigClassCThostFtdcInvestorGroupField.trackObjects = 0; SwigClassCThostFtdcTradingAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcTradingAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTradingAccountField, (void *) &SwigClassCThostFtdcTradingAccountField); rb_define_alloc_func(SwigClassCThostFtdcTradingAccountField.klass, _wrap_CThostFtdcTradingAccountField_allocate); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTradingAccountField), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreMortgage=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreMortgage_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreMortgage", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreMortgage_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreCredit=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreCredit_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreCredit", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreCredit_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreDeposit=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreDeposit_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreDeposit", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreDeposit_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreBalance=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreBalance_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreBalance", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreBalance_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreMargin=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreMargin_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreMargin", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreMargin_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "InterestBase=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_InterestBase_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "InterestBase", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_InterestBase_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Interest=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Interest_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Interest", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Interest_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Deposit=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Deposit_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Deposit", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Deposit_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Withdraw=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Withdraw_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Withdraw", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Withdraw_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FrozenMargin=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FrozenMargin_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FrozenMargin", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FrozenMargin_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FrozenCash=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FrozenCash_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FrozenCash", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FrozenCash_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FrozenCommission=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FrozenCommission_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FrozenCommission", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FrozenCommission_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "CurrMargin=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_CurrMargin_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "CurrMargin", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_CurrMargin_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "CashIn=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_CashIn_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "CashIn", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_CashIn_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Commission=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Commission_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Commission", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Commission_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "CloseProfit=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_CloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "CloseProfit", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_CloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PositionProfit=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PositionProfit_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PositionProfit", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PositionProfit_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Balance=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Balance_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Balance", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Balance_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Available=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Available_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Available", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Available_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "WithdrawQuota=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_WithdrawQuota_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "WithdrawQuota", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_WithdrawQuota_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Reserve=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Reserve_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Reserve", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Reserve_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Credit=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Credit_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Credit", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Credit_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Mortgage=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Mortgage_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "Mortgage", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_Mortgage_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "ExchangeMargin=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_ExchangeMargin_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "ExchangeMargin", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_ExchangeMargin_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "DeliveryMargin=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_DeliveryMargin_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "DeliveryMargin", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_DeliveryMargin_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "ExchangeDeliveryMargin=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_ExchangeDeliveryMargin_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "ExchangeDeliveryMargin", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_ExchangeDeliveryMargin_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "ReserveBalance=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_ReserveBalance_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "ReserveBalance", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_ReserveBalance_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreFundMortgageIn=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreFundMortgageIn_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreFundMortgageIn", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreFundMortgageIn_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreFundMortgageOut=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreFundMortgageOut_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "PreFundMortgageOut", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_PreFundMortgageOut_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FundMortgageIn=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FundMortgageIn_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FundMortgageIn", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FundMortgageIn_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FundMortgageOut=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FundMortgageOut_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FundMortgageOut", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FundMortgageOut_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FundMortgageAvailable=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FundMortgageAvailable_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "FundMortgageAvailable", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_FundMortgageAvailable_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "MortgageableFund=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_MortgageableFund_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "MortgageableFund", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_MortgageableFund_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductMargin=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductMargin_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductMargin", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductMargin_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductFrozenMargin=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductFrozenMargin_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductFrozenMargin", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductFrozenMargin_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductCommission=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductCommission_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductCommission", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductCommission_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductFrozenCommission=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductFrozenCommission_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductFrozenCommission", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductFrozenCommission_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductPositionProfit=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductPositionProfit_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductPositionProfit", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductPositionProfit_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductCloseProfit=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductCloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductCloseProfit", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductCloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductPositionProfitByAlg=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductPositionProfitByAlg_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductPositionProfitByAlg", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductPositionProfitByAlg_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductExchangeMargin=", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductExchangeMargin_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountField.klass, "SpecProductExchangeMargin", VALUEFUNC(_wrap_CThostFtdcTradingAccountField_SpecProductExchangeMargin_get), -1); SwigClassCThostFtdcTradingAccountField.mark = 0; SwigClassCThostFtdcTradingAccountField.destroy = (void (*)(void *)) free_CThostFtdcTradingAccountField; SwigClassCThostFtdcTradingAccountField.trackObjects = 0; SwigClassCThostFtdcInvestorPositionField.klass = rb_define_class_under(mCtp, "CThostFtdcInvestorPositionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInvestorPositionField, (void *) &SwigClassCThostFtdcInvestorPositionField); rb_define_alloc_func(SwigClassCThostFtdcInvestorPositionField.klass, _wrap_CThostFtdcInvestorPositionField_allocate); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInvestorPositionField), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PosiDirection=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PosiDirection_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PosiDirection", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PosiDirection_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PositionDate=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PositionDate_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PositionDate", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PositionDate_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "YdPosition=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_YdPosition_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "YdPosition", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_YdPosition_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "Position=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_Position_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "Position", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_Position_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "LongFrozen=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_LongFrozen_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "LongFrozen", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_LongFrozen_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "ShortFrozen=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_ShortFrozen_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "ShortFrozen", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_ShortFrozen_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "LongFrozenAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_LongFrozenAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "LongFrozenAmount", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_LongFrozenAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "ShortFrozenAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_ShortFrozenAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "ShortFrozenAmount", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_ShortFrozenAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "OpenVolume=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_OpenVolume_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "OpenVolume", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_OpenVolume_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CloseVolume=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CloseVolume_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CloseVolume", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CloseVolume_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "OpenAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_OpenAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "OpenAmount", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_OpenAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CloseAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CloseAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CloseAmount", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CloseAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PositionCost=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PositionCost_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PositionCost", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PositionCost_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PreMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PreMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PreMargin", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PreMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "UseMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_UseMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "UseMargin", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_UseMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "FrozenMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_FrozenMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "FrozenMargin", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_FrozenMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "FrozenCash=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_FrozenCash_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "FrozenCash", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_FrozenCash_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "FrozenCommission=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_FrozenCommission_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "FrozenCommission", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_FrozenCommission_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CashIn=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CashIn_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CashIn", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CashIn_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "Commission=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_Commission_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "Commission", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_Commission_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CloseProfit=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CloseProfit", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PositionProfit=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PositionProfit_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PositionProfit", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PositionProfit_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PreSettlementPrice=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PreSettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "PreSettlementPrice", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_PreSettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "SettlementPrice=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_SettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "SettlementPrice", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_SettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "OpenCost=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_OpenCost_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "OpenCost", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_OpenCost_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "ExchangeMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_ExchangeMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "ExchangeMargin", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_ExchangeMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CombPosition=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CombPosition_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CombPosition", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CombPosition_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CombLongFrozen=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CombLongFrozen_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CombLongFrozen", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CombLongFrozen_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CombShortFrozen=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CombShortFrozen_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CombShortFrozen", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CombShortFrozen_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CloseProfitByDate=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CloseProfitByDate_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CloseProfitByDate", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CloseProfitByDate_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CloseProfitByTrade=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CloseProfitByTrade_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "CloseProfitByTrade", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_CloseProfitByTrade_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "TodayPosition=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_TodayPosition_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "TodayPosition", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_TodayPosition_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "MarginRateByMoney=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_MarginRateByMoney_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "MarginRateByMoney", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_MarginRateByMoney_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "MarginRateByVolume=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_MarginRateByVolume_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "MarginRateByVolume", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_MarginRateByVolume_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "StrikeFrozen=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_StrikeFrozen_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "StrikeFrozen", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_StrikeFrozen_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "StrikeFrozenAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_StrikeFrozenAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "StrikeFrozenAmount", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_StrikeFrozenAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "AbandonFrozen=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_AbandonFrozen_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionField.klass, "AbandonFrozen", VALUEFUNC(_wrap_CThostFtdcInvestorPositionField_AbandonFrozen_get), -1); SwigClassCThostFtdcInvestorPositionField.mark = 0; SwigClassCThostFtdcInvestorPositionField.destroy = (void (*)(void *)) free_CThostFtdcInvestorPositionField; SwigClassCThostFtdcInvestorPositionField.trackObjects = 0; SwigClassCThostFtdcInstrumentMarginRateField.klass = rb_define_class_under(mCtp, "CThostFtdcInstrumentMarginRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInstrumentMarginRateField, (void *) &SwigClassCThostFtdcInstrumentMarginRateField); rb_define_alloc_func(SwigClassCThostFtdcInstrumentMarginRateField.klass, _wrap_CThostFtdcInstrumentMarginRateField_allocate); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInstrumentMarginRateField), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "LongMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_LongMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "LongMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_LongMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "LongMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_LongMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "LongMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_LongMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "ShortMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_ShortMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "ShortMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_ShortMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "ShortMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_ShortMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "ShortMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_ShortMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "IsRelative=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_IsRelative_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateField.klass, "IsRelative", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateField_IsRelative_get), -1); SwigClassCThostFtdcInstrumentMarginRateField.mark = 0; SwigClassCThostFtdcInstrumentMarginRateField.destroy = (void (*)(void *)) free_CThostFtdcInstrumentMarginRateField; SwigClassCThostFtdcInstrumentMarginRateField.trackObjects = 0; SwigClassCThostFtdcInstrumentCommissionRateField.klass = rb_define_class_under(mCtp, "CThostFtdcInstrumentCommissionRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInstrumentCommissionRateField, (void *) &SwigClassCThostFtdcInstrumentCommissionRateField); rb_define_alloc_func(SwigClassCThostFtdcInstrumentCommissionRateField.klass, _wrap_CThostFtdcInstrumentCommissionRateField_allocate); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInstrumentCommissionRateField), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "OpenRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_OpenRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "OpenRatioByMoney", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_OpenRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "OpenRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_OpenRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "OpenRatioByVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_OpenRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "CloseRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_CloseRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "CloseRatioByMoney", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_CloseRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "CloseRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_CloseRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "CloseRatioByVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_CloseRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "CloseTodayRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_CloseTodayRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "CloseTodayRatioByMoney", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_CloseTodayRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "CloseTodayRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_CloseTodayRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentCommissionRateField.klass, "CloseTodayRatioByVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentCommissionRateField_CloseTodayRatioByVolume_get), -1); SwigClassCThostFtdcInstrumentCommissionRateField.mark = 0; SwigClassCThostFtdcInstrumentCommissionRateField.destroy = (void (*)(void *)) free_CThostFtdcInstrumentCommissionRateField; SwigClassCThostFtdcInstrumentCommissionRateField.trackObjects = 0; SwigClassCThostFtdcDepthMarketDataField.klass = rb_define_class_under(mCtp, "CThostFtdcDepthMarketDataField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcDepthMarketDataField, (void *) &SwigClassCThostFtdcDepthMarketDataField); rb_define_alloc_func(SwigClassCThostFtdcDepthMarketDataField.klass, _wrap_CThostFtdcDepthMarketDataField_allocate); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcDepthMarketDataField), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "LastPrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_LastPrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "LastPrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_LastPrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "PreSettlementPrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_PreSettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "PreSettlementPrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_PreSettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "PreClosePrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_PreClosePrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "PreClosePrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_PreClosePrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "PreOpenInterest=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_PreOpenInterest_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "PreOpenInterest", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_PreOpenInterest_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "OpenPrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_OpenPrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "OpenPrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_OpenPrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "HighestPrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_HighestPrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "HighestPrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_HighestPrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "LowestPrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_LowestPrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "LowestPrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_LowestPrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "Turnover=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_Turnover_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "Turnover", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_Turnover_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "OpenInterest=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_OpenInterest_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "OpenInterest", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_OpenInterest_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "ClosePrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_ClosePrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "ClosePrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_ClosePrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "SettlementPrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_SettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "SettlementPrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_SettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "UpperLimitPrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_UpperLimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "UpperLimitPrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_UpperLimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "LowerLimitPrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_LowerLimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "LowerLimitPrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_LowerLimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "PreDelta=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_PreDelta_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "PreDelta", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_PreDelta_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "CurrDelta=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_CurrDelta_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "CurrDelta", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_CurrDelta_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "UpdateTime=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_UpdateTime_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "UpdateTime", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_UpdateTime_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "UpdateMillisec=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_UpdateMillisec_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "UpdateMillisec", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_UpdateMillisec_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidPrice1=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidPrice1_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidPrice1", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidPrice1_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidVolume1=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidVolume1_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidVolume1", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidVolume1_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskPrice1=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskPrice1_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskPrice1", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskPrice1_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskVolume1=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskVolume1_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskVolume1", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskVolume1_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidPrice2=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidPrice2_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidPrice2", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidPrice2_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidVolume2=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidVolume2_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidVolume2", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidVolume2_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskPrice2=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskPrice2_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskPrice2", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskPrice2_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskVolume2=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskVolume2_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskVolume2", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskVolume2_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidPrice3=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidPrice3_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidPrice3", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidPrice3_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidVolume3=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidVolume3_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidVolume3", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidVolume3_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskPrice3=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskPrice3_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskPrice3", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskPrice3_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskVolume3=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskVolume3_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskVolume3", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskVolume3_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidPrice4=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidPrice4_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidPrice4", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidPrice4_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidVolume4=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidVolume4_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidVolume4", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidVolume4_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskPrice4=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskPrice4_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskPrice4", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskPrice4_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskVolume4=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskVolume4_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskVolume4", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskVolume4_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidPrice5=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidPrice5_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidPrice5", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidPrice5_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidVolume5=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidVolume5_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "BidVolume5", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_BidVolume5_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskPrice5=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskPrice5_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskPrice5", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskPrice5_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskVolume5=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskVolume5_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AskVolume5", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AskVolume5_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AveragePrice=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AveragePrice_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "AveragePrice", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_AveragePrice_get), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "ActionDay=", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_ActionDay_set), -1); rb_define_method(SwigClassCThostFtdcDepthMarketDataField.klass, "ActionDay", VALUEFUNC(_wrap_CThostFtdcDepthMarketDataField_ActionDay_get), -1); SwigClassCThostFtdcDepthMarketDataField.mark = 0; SwigClassCThostFtdcDepthMarketDataField.destroy = (void (*)(void *)) free_CThostFtdcDepthMarketDataField; SwigClassCThostFtdcDepthMarketDataField.trackObjects = 0; SwigClassCThostFtdcInstrumentTradingRightField.klass = rb_define_class_under(mCtp, "CThostFtdcInstrumentTradingRightField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInstrumentTradingRightField, (void *) &SwigClassCThostFtdcInstrumentTradingRightField); rb_define_alloc_func(SwigClassCThostFtdcInstrumentTradingRightField.klass, _wrap_CThostFtdcInstrumentTradingRightField_allocate); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInstrumentTradingRightField), -1); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInstrumentTradingRightField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInstrumentTradingRightField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcInstrumentTradingRightField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcInstrumentTradingRightField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInstrumentTradingRightField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInstrumentTradingRightField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInstrumentTradingRightField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInstrumentTradingRightField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "TradingRight=", VALUEFUNC(_wrap_CThostFtdcInstrumentTradingRightField_TradingRight_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentTradingRightField.klass, "TradingRight", VALUEFUNC(_wrap_CThostFtdcInstrumentTradingRightField_TradingRight_get), -1); SwigClassCThostFtdcInstrumentTradingRightField.mark = 0; SwigClassCThostFtdcInstrumentTradingRightField.destroy = (void (*)(void *)) free_CThostFtdcInstrumentTradingRightField; SwigClassCThostFtdcInstrumentTradingRightField.trackObjects = 0; SwigClassCThostFtdcBrokerUserField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerUserField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerUserField, (void *) &SwigClassCThostFtdcBrokerUserField); rb_define_alloc_func(SwigClassCThostFtdcBrokerUserField.klass, _wrap_CThostFtdcBrokerUserField_allocate); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerUserField), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "UserName=", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_UserName_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "UserName", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_UserName_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "UserType=", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_UserType_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "UserType", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_UserType_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "IsActive=", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_IsActive_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "IsActive", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_IsActive_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "IsUsingOTP=", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_IsUsingOTP_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserField.klass, "IsUsingOTP", VALUEFUNC(_wrap_CThostFtdcBrokerUserField_IsUsingOTP_get), -1); SwigClassCThostFtdcBrokerUserField.mark = 0; SwigClassCThostFtdcBrokerUserField.destroy = (void (*)(void *)) free_CThostFtdcBrokerUserField; SwigClassCThostFtdcBrokerUserField.trackObjects = 0; SwigClassCThostFtdcBrokerUserPasswordField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerUserPasswordField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerUserPasswordField, (void *) &SwigClassCThostFtdcBrokerUserPasswordField); rb_define_alloc_func(SwigClassCThostFtdcBrokerUserPasswordField.klass, _wrap_CThostFtdcBrokerUserPasswordField_allocate); rb_define_method(SwigClassCThostFtdcBrokerUserPasswordField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerUserPasswordField), -1); rb_define_method(SwigClassCThostFtdcBrokerUserPasswordField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserPasswordField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserPasswordField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerUserPasswordField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserPasswordField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserPasswordField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserPasswordField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcBrokerUserPasswordField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserPasswordField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcBrokerUserPasswordField_Password_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserPasswordField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcBrokerUserPasswordField_Password_get), -1); SwigClassCThostFtdcBrokerUserPasswordField.mark = 0; SwigClassCThostFtdcBrokerUserPasswordField.destroy = (void (*)(void *)) free_CThostFtdcBrokerUserPasswordField; SwigClassCThostFtdcBrokerUserPasswordField.trackObjects = 0; SwigClassCThostFtdcBrokerUserFunctionField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerUserFunctionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerUserFunctionField, (void *) &SwigClassCThostFtdcBrokerUserFunctionField); rb_define_alloc_func(SwigClassCThostFtdcBrokerUserFunctionField.klass, _wrap_CThostFtdcBrokerUserFunctionField_allocate); rb_define_method(SwigClassCThostFtdcBrokerUserFunctionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerUserFunctionField), -1); rb_define_method(SwigClassCThostFtdcBrokerUserFunctionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserFunctionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserFunctionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerUserFunctionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserFunctionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserFunctionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserFunctionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcBrokerUserFunctionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserFunctionField.klass, "BrokerFunctionCode=", VALUEFUNC(_wrap_CThostFtdcBrokerUserFunctionField_BrokerFunctionCode_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserFunctionField.klass, "BrokerFunctionCode", VALUEFUNC(_wrap_CThostFtdcBrokerUserFunctionField_BrokerFunctionCode_get), -1); SwigClassCThostFtdcBrokerUserFunctionField.mark = 0; SwigClassCThostFtdcBrokerUserFunctionField.destroy = (void (*)(void *)) free_CThostFtdcBrokerUserFunctionField; SwigClassCThostFtdcBrokerUserFunctionField.trackObjects = 0; SwigClassCThostFtdcTraderOfferField.klass = rb_define_class_under(mCtp, "CThostFtdcTraderOfferField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTraderOfferField, (void *) &SwigClassCThostFtdcTraderOfferField); rb_define_alloc_func(SwigClassCThostFtdcTraderOfferField.klass, _wrap_CThostFtdcTraderOfferField_allocate); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTraderOfferField), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_Password_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_Password_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "TraderConnectStatus=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_TraderConnectStatus_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "TraderConnectStatus", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_TraderConnectStatus_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ConnectRequestDate=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ConnectRequestDate_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ConnectRequestDate", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ConnectRequestDate_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ConnectRequestTime=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ConnectRequestTime_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ConnectRequestTime", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ConnectRequestTime_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "LastReportDate=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_LastReportDate_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "LastReportDate", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_LastReportDate_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "LastReportTime=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_LastReportTime_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "LastReportTime", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_LastReportTime_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ConnectDate=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ConnectDate_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ConnectDate", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ConnectDate_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ConnectTime=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ConnectTime_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "ConnectTime", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_ConnectTime_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "StartDate=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_StartDate_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "StartDate", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_StartDate_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "StartTime=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_StartTime_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "StartTime", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_StartTime_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "MaxTradeID=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_MaxTradeID_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "MaxTradeID", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_MaxTradeID_get), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "MaxOrderMessageReference=", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_MaxOrderMessageReference_set), -1); rb_define_method(SwigClassCThostFtdcTraderOfferField.klass, "MaxOrderMessageReference", VALUEFUNC(_wrap_CThostFtdcTraderOfferField_MaxOrderMessageReference_get), -1); SwigClassCThostFtdcTraderOfferField.mark = 0; SwigClassCThostFtdcTraderOfferField.destroy = (void (*)(void *)) free_CThostFtdcTraderOfferField; SwigClassCThostFtdcTraderOfferField.trackObjects = 0; SwigClassCThostFtdcSettlementInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcSettlementInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSettlementInfoField, (void *) &SwigClassCThostFtdcSettlementInfoField); rb_define_alloc_func(SwigClassCThostFtdcSettlementInfoField.klass, _wrap_CThostFtdcSettlementInfoField_allocate); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSettlementInfoField), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "Content=", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_Content_set), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoField.klass, "Content", VALUEFUNC(_wrap_CThostFtdcSettlementInfoField_Content_get), -1); SwigClassCThostFtdcSettlementInfoField.mark = 0; SwigClassCThostFtdcSettlementInfoField.destroy = (void (*)(void *)) free_CThostFtdcSettlementInfoField; SwigClassCThostFtdcSettlementInfoField.trackObjects = 0; SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass = rb_define_class_under(mCtp, "CThostFtdcInstrumentMarginRateAdjustField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInstrumentMarginRateAdjustField, (void *) &SwigClassCThostFtdcInstrumentMarginRateAdjustField); rb_define_alloc_func(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, _wrap_CThostFtdcInstrumentMarginRateAdjustField_allocate); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInstrumentMarginRateAdjustField), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "LongMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_LongMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "LongMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_LongMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "LongMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_LongMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "LongMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_LongMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "ShortMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_ShortMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "ShortMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_ShortMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "ShortMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_ShortMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "ShortMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_ShortMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "IsRelative=", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_IsRelative_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentMarginRateAdjustField.klass, "IsRelative", VALUEFUNC(_wrap_CThostFtdcInstrumentMarginRateAdjustField_IsRelative_get), -1); SwigClassCThostFtdcInstrumentMarginRateAdjustField.mark = 0; SwigClassCThostFtdcInstrumentMarginRateAdjustField.destroy = (void (*)(void *)) free_CThostFtdcInstrumentMarginRateAdjustField; SwigClassCThostFtdcInstrumentMarginRateAdjustField.trackObjects = 0; SwigClassCThostFtdcExchangeMarginRateField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeMarginRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeMarginRateField, (void *) &SwigClassCThostFtdcExchangeMarginRateField); rb_define_alloc_func(SwigClassCThostFtdcExchangeMarginRateField.klass, _wrap_CThostFtdcExchangeMarginRateField_allocate); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeMarginRateField), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "LongMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_LongMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "LongMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_LongMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "LongMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_LongMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "LongMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_LongMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "ShortMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_ShortMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "ShortMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_ShortMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "ShortMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_ShortMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateField.klass, "ShortMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateField_ShortMarginRatioByVolume_get), -1); SwigClassCThostFtdcExchangeMarginRateField.mark = 0; SwigClassCThostFtdcExchangeMarginRateField.destroy = (void (*)(void *)) free_CThostFtdcExchangeMarginRateField; SwigClassCThostFtdcExchangeMarginRateField.trackObjects = 0; SwigClassCThostFtdcExchangeMarginRateAdjustField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeMarginRateAdjustField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeMarginRateAdjustField, (void *) &SwigClassCThostFtdcExchangeMarginRateAdjustField); rb_define_alloc_func(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, _wrap_CThostFtdcExchangeMarginRateAdjustField_allocate); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeMarginRateAdjustField), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "LongMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_LongMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "LongMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_LongMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "LongMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_LongMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "LongMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_LongMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ShortMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ShortMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ShortMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ShortMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ShortMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ShortMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ShortMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ShortMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ExchLongMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ExchLongMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ExchLongMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ExchLongMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ExchLongMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ExchLongMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ExchLongMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ExchLongMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ExchShortMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ExchShortMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ExchShortMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ExchShortMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ExchShortMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ExchShortMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "ExchShortMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_ExchShortMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "NoLongMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_NoLongMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "NoLongMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_NoLongMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "NoLongMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_NoLongMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "NoLongMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_NoLongMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "NoShortMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_NoShortMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "NoShortMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_NoShortMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "NoShortMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_NoShortMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeMarginRateAdjustField.klass, "NoShortMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcExchangeMarginRateAdjustField_NoShortMarginRatioByVolume_get), -1); SwigClassCThostFtdcExchangeMarginRateAdjustField.mark = 0; SwigClassCThostFtdcExchangeMarginRateAdjustField.destroy = (void (*)(void *)) free_CThostFtdcExchangeMarginRateAdjustField; SwigClassCThostFtdcExchangeMarginRateAdjustField.trackObjects = 0; SwigClassCThostFtdcExchangeRateField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeRateField, (void *) &SwigClassCThostFtdcExchangeRateField); rb_define_alloc_func(SwigClassCThostFtdcExchangeRateField.klass, _wrap_CThostFtdcExchangeRateField_allocate); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeRateField), -1); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcExchangeRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcExchangeRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "FromCurrencyID=", VALUEFUNC(_wrap_CThostFtdcExchangeRateField_FromCurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "FromCurrencyID", VALUEFUNC(_wrap_CThostFtdcExchangeRateField_FromCurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "FromCurrencyUnit=", VALUEFUNC(_wrap_CThostFtdcExchangeRateField_FromCurrencyUnit_set), -1); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "FromCurrencyUnit", VALUEFUNC(_wrap_CThostFtdcExchangeRateField_FromCurrencyUnit_get), -1); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "ToCurrencyID=", VALUEFUNC(_wrap_CThostFtdcExchangeRateField_ToCurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "ToCurrencyID", VALUEFUNC(_wrap_CThostFtdcExchangeRateField_ToCurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "ExchangeRate=", VALUEFUNC(_wrap_CThostFtdcExchangeRateField_ExchangeRate_set), -1); rb_define_method(SwigClassCThostFtdcExchangeRateField.klass, "ExchangeRate", VALUEFUNC(_wrap_CThostFtdcExchangeRateField_ExchangeRate_get), -1); SwigClassCThostFtdcExchangeRateField.mark = 0; SwigClassCThostFtdcExchangeRateField.destroy = (void (*)(void *)) free_CThostFtdcExchangeRateField; SwigClassCThostFtdcExchangeRateField.trackObjects = 0; SwigClassCThostFtdcSettlementRefField.klass = rb_define_class_under(mCtp, "CThostFtdcSettlementRefField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSettlementRefField, (void *) &SwigClassCThostFtdcSettlementRefField); rb_define_alloc_func(SwigClassCThostFtdcSettlementRefField.klass, _wrap_CThostFtdcSettlementRefField_allocate); rb_define_method(SwigClassCThostFtdcSettlementRefField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSettlementRefField), -1); rb_define_method(SwigClassCThostFtdcSettlementRefField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcSettlementRefField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcSettlementRefField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcSettlementRefField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcSettlementRefField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcSettlementRefField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcSettlementRefField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcSettlementRefField_SettlementID_get), -1); SwigClassCThostFtdcSettlementRefField.mark = 0; SwigClassCThostFtdcSettlementRefField.destroy = (void (*)(void *)) free_CThostFtdcSettlementRefField; SwigClassCThostFtdcSettlementRefField.trackObjects = 0; SwigClassCThostFtdcCurrentTimeField.klass = rb_define_class_under(mCtp, "CThostFtdcCurrentTimeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCurrentTimeField, (void *) &SwigClassCThostFtdcCurrentTimeField); rb_define_alloc_func(SwigClassCThostFtdcCurrentTimeField.klass, _wrap_CThostFtdcCurrentTimeField_allocate); rb_define_method(SwigClassCThostFtdcCurrentTimeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCurrentTimeField), -1); rb_define_method(SwigClassCThostFtdcCurrentTimeField.klass, "CurrDate=", VALUEFUNC(_wrap_CThostFtdcCurrentTimeField_CurrDate_set), -1); rb_define_method(SwigClassCThostFtdcCurrentTimeField.klass, "CurrDate", VALUEFUNC(_wrap_CThostFtdcCurrentTimeField_CurrDate_get), -1); rb_define_method(SwigClassCThostFtdcCurrentTimeField.klass, "CurrTime=", VALUEFUNC(_wrap_CThostFtdcCurrentTimeField_CurrTime_set), -1); rb_define_method(SwigClassCThostFtdcCurrentTimeField.klass, "CurrTime", VALUEFUNC(_wrap_CThostFtdcCurrentTimeField_CurrTime_get), -1); rb_define_method(SwigClassCThostFtdcCurrentTimeField.klass, "CurrMillisec=", VALUEFUNC(_wrap_CThostFtdcCurrentTimeField_CurrMillisec_set), -1); rb_define_method(SwigClassCThostFtdcCurrentTimeField.klass, "CurrMillisec", VALUEFUNC(_wrap_CThostFtdcCurrentTimeField_CurrMillisec_get), -1); rb_define_method(SwigClassCThostFtdcCurrentTimeField.klass, "ActionDay=", VALUEFUNC(_wrap_CThostFtdcCurrentTimeField_ActionDay_set), -1); rb_define_method(SwigClassCThostFtdcCurrentTimeField.klass, "ActionDay", VALUEFUNC(_wrap_CThostFtdcCurrentTimeField_ActionDay_get), -1); SwigClassCThostFtdcCurrentTimeField.mark = 0; SwigClassCThostFtdcCurrentTimeField.destroy = (void (*)(void *)) free_CThostFtdcCurrentTimeField; SwigClassCThostFtdcCurrentTimeField.trackObjects = 0; SwigClassCThostFtdcCommPhaseField.klass = rb_define_class_under(mCtp, "CThostFtdcCommPhaseField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCommPhaseField, (void *) &SwigClassCThostFtdcCommPhaseField); rb_define_alloc_func(SwigClassCThostFtdcCommPhaseField.klass, _wrap_CThostFtdcCommPhaseField_allocate); rb_define_method(SwigClassCThostFtdcCommPhaseField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCommPhaseField), -1); rb_define_method(SwigClassCThostFtdcCommPhaseField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcCommPhaseField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcCommPhaseField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcCommPhaseField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcCommPhaseField.klass, "CommPhaseNo=", VALUEFUNC(_wrap_CThostFtdcCommPhaseField_CommPhaseNo_set), -1); rb_define_method(SwigClassCThostFtdcCommPhaseField.klass, "CommPhaseNo", VALUEFUNC(_wrap_CThostFtdcCommPhaseField_CommPhaseNo_get), -1); rb_define_method(SwigClassCThostFtdcCommPhaseField.klass, "SystemID=", VALUEFUNC(_wrap_CThostFtdcCommPhaseField_SystemID_set), -1); rb_define_method(SwigClassCThostFtdcCommPhaseField.klass, "SystemID", VALUEFUNC(_wrap_CThostFtdcCommPhaseField_SystemID_get), -1); SwigClassCThostFtdcCommPhaseField.mark = 0; SwigClassCThostFtdcCommPhaseField.destroy = (void (*)(void *)) free_CThostFtdcCommPhaseField; SwigClassCThostFtdcCommPhaseField.trackObjects = 0; SwigClassCThostFtdcLoginInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcLoginInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcLoginInfoField, (void *) &SwigClassCThostFtdcLoginInfoField); rb_define_alloc_func(SwigClassCThostFtdcLoginInfoField.klass, _wrap_CThostFtdcLoginInfoField_allocate); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcLoginInfoField), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "LoginDate=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_LoginDate_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "LoginDate", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_LoginDate_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "LoginTime=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_LoginTime_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "LoginTime", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_LoginTime_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "IPAddress=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_IPAddress_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "IPAddress", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_IPAddress_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_UserProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "InterfaceProductInfo=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_InterfaceProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "InterfaceProductInfo", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_InterfaceProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "ProtocolInfo=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_ProtocolInfo_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "ProtocolInfo", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_ProtocolInfo_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "SystemName=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_SystemName_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "SystemName", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_SystemName_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_Password_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_Password_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "MaxOrderRef=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_MaxOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "MaxOrderRef", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_MaxOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "SHFETime=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_SHFETime_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "SHFETime", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_SHFETime_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "DCETime=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_DCETime_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "DCETime", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_DCETime_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "CZCETime=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_CZCETime_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "CZCETime", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_CZCETime_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "FFEXTime=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_FFEXTime_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "FFEXTime", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_FFEXTime_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "MacAddress=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_MacAddress_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "MacAddress", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_MacAddress_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "OneTimePassword=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_OneTimePassword_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "OneTimePassword", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_OneTimePassword_get), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "INETime=", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_INETime_set), -1); rb_define_method(SwigClassCThostFtdcLoginInfoField.klass, "INETime", VALUEFUNC(_wrap_CThostFtdcLoginInfoField_INETime_get), -1); SwigClassCThostFtdcLoginInfoField.mark = 0; SwigClassCThostFtdcLoginInfoField.destroy = (void (*)(void *)) free_CThostFtdcLoginInfoField; SwigClassCThostFtdcLoginInfoField.trackObjects = 0; SwigClassCThostFtdcLogoutAllField.klass = rb_define_class_under(mCtp, "CThostFtdcLogoutAllField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcLogoutAllField, (void *) &SwigClassCThostFtdcLogoutAllField); rb_define_alloc_func(SwigClassCThostFtdcLogoutAllField.klass, _wrap_CThostFtdcLogoutAllField_allocate); rb_define_method(SwigClassCThostFtdcLogoutAllField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcLogoutAllField), -1); rb_define_method(SwigClassCThostFtdcLogoutAllField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcLogoutAllField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcLogoutAllField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcLogoutAllField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcLogoutAllField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcLogoutAllField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcLogoutAllField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcLogoutAllField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcLogoutAllField.klass, "SystemName=", VALUEFUNC(_wrap_CThostFtdcLogoutAllField_SystemName_set), -1); rb_define_method(SwigClassCThostFtdcLogoutAllField.klass, "SystemName", VALUEFUNC(_wrap_CThostFtdcLogoutAllField_SystemName_get), -1); SwigClassCThostFtdcLogoutAllField.mark = 0; SwigClassCThostFtdcLogoutAllField.destroy = (void (*)(void *)) free_CThostFtdcLogoutAllField; SwigClassCThostFtdcLogoutAllField.trackObjects = 0; SwigClassCThostFtdcFrontStatusField.klass = rb_define_class_under(mCtp, "CThostFtdcFrontStatusField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcFrontStatusField, (void *) &SwigClassCThostFtdcFrontStatusField); rb_define_alloc_func(SwigClassCThostFtdcFrontStatusField.klass, _wrap_CThostFtdcFrontStatusField_allocate); rb_define_method(SwigClassCThostFtdcFrontStatusField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcFrontStatusField), -1); rb_define_method(SwigClassCThostFtdcFrontStatusField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcFrontStatusField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcFrontStatusField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcFrontStatusField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcFrontStatusField.klass, "LastReportDate=", VALUEFUNC(_wrap_CThostFtdcFrontStatusField_LastReportDate_set), -1); rb_define_method(SwigClassCThostFtdcFrontStatusField.klass, "LastReportDate", VALUEFUNC(_wrap_CThostFtdcFrontStatusField_LastReportDate_get), -1); rb_define_method(SwigClassCThostFtdcFrontStatusField.klass, "LastReportTime=", VALUEFUNC(_wrap_CThostFtdcFrontStatusField_LastReportTime_set), -1); rb_define_method(SwigClassCThostFtdcFrontStatusField.klass, "LastReportTime", VALUEFUNC(_wrap_CThostFtdcFrontStatusField_LastReportTime_get), -1); rb_define_method(SwigClassCThostFtdcFrontStatusField.klass, "IsActive=", VALUEFUNC(_wrap_CThostFtdcFrontStatusField_IsActive_set), -1); rb_define_method(SwigClassCThostFtdcFrontStatusField.klass, "IsActive", VALUEFUNC(_wrap_CThostFtdcFrontStatusField_IsActive_get), -1); SwigClassCThostFtdcFrontStatusField.mark = 0; SwigClassCThostFtdcFrontStatusField.destroy = (void (*)(void *)) free_CThostFtdcFrontStatusField; SwigClassCThostFtdcFrontStatusField.trackObjects = 0; SwigClassCThostFtdcUserPasswordUpdateField.klass = rb_define_class_under(mCtp, "CThostFtdcUserPasswordUpdateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcUserPasswordUpdateField, (void *) &SwigClassCThostFtdcUserPasswordUpdateField); rb_define_alloc_func(SwigClassCThostFtdcUserPasswordUpdateField.klass, _wrap_CThostFtdcUserPasswordUpdateField_allocate); rb_define_method(SwigClassCThostFtdcUserPasswordUpdateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcUserPasswordUpdateField), -1); rb_define_method(SwigClassCThostFtdcUserPasswordUpdateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcUserPasswordUpdateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcUserPasswordUpdateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcUserPasswordUpdateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcUserPasswordUpdateField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcUserPasswordUpdateField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcUserPasswordUpdateField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcUserPasswordUpdateField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcUserPasswordUpdateField.klass, "OldPassword=", VALUEFUNC(_wrap_CThostFtdcUserPasswordUpdateField_OldPassword_set), -1); rb_define_method(SwigClassCThostFtdcUserPasswordUpdateField.klass, "OldPassword", VALUEFUNC(_wrap_CThostFtdcUserPasswordUpdateField_OldPassword_get), -1); rb_define_method(SwigClassCThostFtdcUserPasswordUpdateField.klass, "NewPassword=", VALUEFUNC(_wrap_CThostFtdcUserPasswordUpdateField_NewPassword_set), -1); rb_define_method(SwigClassCThostFtdcUserPasswordUpdateField.klass, "NewPassword", VALUEFUNC(_wrap_CThostFtdcUserPasswordUpdateField_NewPassword_get), -1); SwigClassCThostFtdcUserPasswordUpdateField.mark = 0; SwigClassCThostFtdcUserPasswordUpdateField.destroy = (void (*)(void *)) free_CThostFtdcUserPasswordUpdateField; SwigClassCThostFtdcUserPasswordUpdateField.trackObjects = 0; SwigClassCThostFtdcInputOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcInputOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInputOrderField, (void *) &SwigClassCThostFtdcInputOrderField); rb_define_alloc_func(SwigClassCThostFtdcInputOrderField.klass, _wrap_CThostFtdcInputOrderField_allocate); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInputOrderField), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInputOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInputOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInputOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "OrderRef=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_OrderRef_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "OrderRef", VALUEFUNC(_wrap_CThostFtdcInputOrderField_OrderRef_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcInputOrderField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "OrderPriceType=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_OrderPriceType_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "OrderPriceType", VALUEFUNC(_wrap_CThostFtdcInputOrderField_OrderPriceType_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcInputOrderField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "CombOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_CombOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "CombOffsetFlag", VALUEFUNC(_wrap_CThostFtdcInputOrderField_CombOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "CombHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_CombHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "CombHedgeFlag", VALUEFUNC(_wrap_CThostFtdcInputOrderField_CombHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcInputOrderField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "VolumeTotalOriginal=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_VolumeTotalOriginal_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "VolumeTotalOriginal", VALUEFUNC(_wrap_CThostFtdcInputOrderField_VolumeTotalOriginal_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "TimeCondition=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_TimeCondition_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "TimeCondition", VALUEFUNC(_wrap_CThostFtdcInputOrderField_TimeCondition_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "GTDDate=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_GTDDate_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "GTDDate", VALUEFUNC(_wrap_CThostFtdcInputOrderField_GTDDate_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "VolumeCondition=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_VolumeCondition_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "VolumeCondition", VALUEFUNC(_wrap_CThostFtdcInputOrderField_VolumeCondition_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "MinVolume=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_MinVolume_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "MinVolume", VALUEFUNC(_wrap_CThostFtdcInputOrderField_MinVolume_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "ContingentCondition=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_ContingentCondition_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "ContingentCondition", VALUEFUNC(_wrap_CThostFtdcInputOrderField_ContingentCondition_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "StopPrice=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_StopPrice_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "StopPrice", VALUEFUNC(_wrap_CThostFtdcInputOrderField_StopPrice_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "ForceCloseReason=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_ForceCloseReason_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "ForceCloseReason", VALUEFUNC(_wrap_CThostFtdcInputOrderField_ForceCloseReason_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "IsAutoSuspend=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_IsAutoSuspend_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "IsAutoSuspend", VALUEFUNC(_wrap_CThostFtdcInputOrderField_IsAutoSuspend_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcInputOrderField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcInputOrderField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "UserForceClose=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_UserForceClose_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "UserForceClose", VALUEFUNC(_wrap_CThostFtdcInputOrderField_UserForceClose_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "IsSwapOrder=", VALUEFUNC(_wrap_CThostFtdcInputOrderField_IsSwapOrder_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderField.klass, "IsSwapOrder", VALUEFUNC(_wrap_CThostFtdcInputOrderField_IsSwapOrder_get), -1); SwigClassCThostFtdcInputOrderField.mark = 0; SwigClassCThostFtdcInputOrderField.destroy = (void (*)(void *)) free_CThostFtdcInputOrderField; SwigClassCThostFtdcInputOrderField.trackObjects = 0; SwigClassCThostFtdcOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcOrderField, (void *) &SwigClassCThostFtdcOrderField); rb_define_alloc_func(SwigClassCThostFtdcOrderField.klass, _wrap_CThostFtdcOrderField_allocate); rb_define_method(SwigClassCThostFtdcOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcOrderField), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderRef=", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderRef_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderRef", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderRef_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcOrderField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcOrderField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderPriceType=", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderPriceType_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderPriceType", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderPriceType_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcOrderField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcOrderField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "CombOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcOrderField_CombOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "CombOffsetFlag", VALUEFUNC(_wrap_CThostFtdcOrderField_CombOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "CombHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcOrderField_CombHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "CombHedgeFlag", VALUEFUNC(_wrap_CThostFtdcOrderField_CombHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcOrderField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcOrderField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "VolumeTotalOriginal=", VALUEFUNC(_wrap_CThostFtdcOrderField_VolumeTotalOriginal_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "VolumeTotalOriginal", VALUEFUNC(_wrap_CThostFtdcOrderField_VolumeTotalOriginal_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "TimeCondition=", VALUEFUNC(_wrap_CThostFtdcOrderField_TimeCondition_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "TimeCondition", VALUEFUNC(_wrap_CThostFtdcOrderField_TimeCondition_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "GTDDate=", VALUEFUNC(_wrap_CThostFtdcOrderField_GTDDate_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "GTDDate", VALUEFUNC(_wrap_CThostFtdcOrderField_GTDDate_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "VolumeCondition=", VALUEFUNC(_wrap_CThostFtdcOrderField_VolumeCondition_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "VolumeCondition", VALUEFUNC(_wrap_CThostFtdcOrderField_VolumeCondition_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "MinVolume=", VALUEFUNC(_wrap_CThostFtdcOrderField_MinVolume_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "MinVolume", VALUEFUNC(_wrap_CThostFtdcOrderField_MinVolume_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ContingentCondition=", VALUEFUNC(_wrap_CThostFtdcOrderField_ContingentCondition_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ContingentCondition", VALUEFUNC(_wrap_CThostFtdcOrderField_ContingentCondition_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "StopPrice=", VALUEFUNC(_wrap_CThostFtdcOrderField_StopPrice_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "StopPrice", VALUEFUNC(_wrap_CThostFtdcOrderField_StopPrice_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ForceCloseReason=", VALUEFUNC(_wrap_CThostFtdcOrderField_ForceCloseReason_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ForceCloseReason", VALUEFUNC(_wrap_CThostFtdcOrderField_ForceCloseReason_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "IsAutoSuspend=", VALUEFUNC(_wrap_CThostFtdcOrderField_IsAutoSuspend_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "IsAutoSuspend", VALUEFUNC(_wrap_CThostFtdcOrderField_IsAutoSuspend_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcOrderField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcOrderField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcOrderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcOrderField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcOrderField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcOrderField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcOrderField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcOrderField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcOrderField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcOrderField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcOrderField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcOrderField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcOrderField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcOrderField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderSubmitStatus=", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderSubmitStatus_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderSubmitStatus", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderSubmitStatus_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "NotifySequence=", VALUEFUNC(_wrap_CThostFtdcOrderField_NotifySequence_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "NotifySequence", VALUEFUNC(_wrap_CThostFtdcOrderField_NotifySequence_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcOrderField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcOrderField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcOrderField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcOrderField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderSource=", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderSource_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderSource", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderSource_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderStatus=", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderStatus_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderStatus", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderStatus_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderType=", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderType_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "OrderType", VALUEFUNC(_wrap_CThostFtdcOrderField_OrderType_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "VolumeTraded=", VALUEFUNC(_wrap_CThostFtdcOrderField_VolumeTraded_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "VolumeTraded", VALUEFUNC(_wrap_CThostFtdcOrderField_VolumeTraded_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "VolumeTotal=", VALUEFUNC(_wrap_CThostFtdcOrderField_VolumeTotal_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "VolumeTotal", VALUEFUNC(_wrap_CThostFtdcOrderField_VolumeTotal_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "InsertDate=", VALUEFUNC(_wrap_CThostFtdcOrderField_InsertDate_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "InsertDate", VALUEFUNC(_wrap_CThostFtdcOrderField_InsertDate_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "InsertTime=", VALUEFUNC(_wrap_CThostFtdcOrderField_InsertTime_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "InsertTime", VALUEFUNC(_wrap_CThostFtdcOrderField_InsertTime_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ActiveTime=", VALUEFUNC(_wrap_CThostFtdcOrderField_ActiveTime_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ActiveTime", VALUEFUNC(_wrap_CThostFtdcOrderField_ActiveTime_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "SuspendTime=", VALUEFUNC(_wrap_CThostFtdcOrderField_SuspendTime_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "SuspendTime", VALUEFUNC(_wrap_CThostFtdcOrderField_SuspendTime_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "UpdateTime=", VALUEFUNC(_wrap_CThostFtdcOrderField_UpdateTime_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "UpdateTime", VALUEFUNC(_wrap_CThostFtdcOrderField_UpdateTime_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "CancelTime=", VALUEFUNC(_wrap_CThostFtdcOrderField_CancelTime_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "CancelTime", VALUEFUNC(_wrap_CThostFtdcOrderField_CancelTime_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ActiveTraderID=", VALUEFUNC(_wrap_CThostFtdcOrderField_ActiveTraderID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ActiveTraderID", VALUEFUNC(_wrap_CThostFtdcOrderField_ActiveTraderID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ClearingPartID=", VALUEFUNC(_wrap_CThostFtdcOrderField_ClearingPartID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ClearingPartID", VALUEFUNC(_wrap_CThostFtdcOrderField_ClearingPartID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcOrderField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcOrderField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcOrderField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcOrderField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcOrderField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcOrderField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcOrderField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcOrderField_UserProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "StatusMsg=", VALUEFUNC(_wrap_CThostFtdcOrderField_StatusMsg_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "StatusMsg", VALUEFUNC(_wrap_CThostFtdcOrderField_StatusMsg_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "UserForceClose=", VALUEFUNC(_wrap_CThostFtdcOrderField_UserForceClose_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "UserForceClose", VALUEFUNC(_wrap_CThostFtdcOrderField_UserForceClose_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ActiveUserID=", VALUEFUNC(_wrap_CThostFtdcOrderField_ActiveUserID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ActiveUserID", VALUEFUNC(_wrap_CThostFtdcOrderField_ActiveUserID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "BrokerOrderSeq=", VALUEFUNC(_wrap_CThostFtdcOrderField_BrokerOrderSeq_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "BrokerOrderSeq", VALUEFUNC(_wrap_CThostFtdcOrderField_BrokerOrderSeq_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "RelativeOrderSysID=", VALUEFUNC(_wrap_CThostFtdcOrderField_RelativeOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "RelativeOrderSysID", VALUEFUNC(_wrap_CThostFtdcOrderField_RelativeOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ZCETotalTradedVolume=", VALUEFUNC(_wrap_CThostFtdcOrderField_ZCETotalTradedVolume_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "ZCETotalTradedVolume", VALUEFUNC(_wrap_CThostFtdcOrderField_ZCETotalTradedVolume_get), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "IsSwapOrder=", VALUEFUNC(_wrap_CThostFtdcOrderField_IsSwapOrder_set), -1); rb_define_method(SwigClassCThostFtdcOrderField.klass, "IsSwapOrder", VALUEFUNC(_wrap_CThostFtdcOrderField_IsSwapOrder_get), -1); SwigClassCThostFtdcOrderField.mark = 0; SwigClassCThostFtdcOrderField.destroy = (void (*)(void *)) free_CThostFtdcOrderField; SwigClassCThostFtdcOrderField.trackObjects = 0; SwigClassCThostFtdcExchangeOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeOrderField, (void *) &SwigClassCThostFtdcExchangeOrderField); rb_define_alloc_func(SwigClassCThostFtdcExchangeOrderField.klass, _wrap_CThostFtdcExchangeOrderField_allocate); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeOrderField), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderPriceType=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderPriceType_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderPriceType", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderPriceType_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "CombOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_CombOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "CombOffsetFlag", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_CombOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "CombHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_CombHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "CombHedgeFlag", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_CombHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "VolumeTotalOriginal=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_VolumeTotalOriginal_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "VolumeTotalOriginal", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_VolumeTotalOriginal_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "TimeCondition=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_TimeCondition_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "TimeCondition", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_TimeCondition_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "GTDDate=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_GTDDate_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "GTDDate", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_GTDDate_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "VolumeCondition=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_VolumeCondition_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "VolumeCondition", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_VolumeCondition_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "MinVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_MinVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "MinVolume", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_MinVolume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ContingentCondition=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ContingentCondition_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ContingentCondition", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ContingentCondition_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "StopPrice=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_StopPrice_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "StopPrice", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_StopPrice_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ForceCloseReason=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ForceCloseReason_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ForceCloseReason", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ForceCloseReason_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "IsAutoSuspend=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_IsAutoSuspend_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "IsAutoSuspend", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_IsAutoSuspend_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderSubmitStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderSubmitStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderSubmitStatus", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderSubmitStatus_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "NotifySequence=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_NotifySequence_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "NotifySequence", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_NotifySequence_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderSource=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderSource_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderSource", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderSource_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderStatus", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderStatus_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderType=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderType_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "OrderType", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_OrderType_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "VolumeTraded=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_VolumeTraded_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "VolumeTraded", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_VolumeTraded_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "VolumeTotal=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_VolumeTotal_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "VolumeTotal", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_VolumeTotal_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "InsertDate=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_InsertDate_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "InsertDate", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_InsertDate_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "InsertTime=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_InsertTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "InsertTime", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_InsertTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ActiveTime=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ActiveTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ActiveTime", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ActiveTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "SuspendTime=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_SuspendTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "SuspendTime", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_SuspendTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "UpdateTime=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_UpdateTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "UpdateTime", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_UpdateTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "CancelTime=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_CancelTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "CancelTime", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_CancelTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ActiveTraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ActiveTraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ActiveTraderID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ActiveTraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ClearingPartID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ClearingPartID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "ClearingPartID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_ClearingPartID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcExchangeOrderField_SequenceNo_get), -1); SwigClassCThostFtdcExchangeOrderField.mark = 0; SwigClassCThostFtdcExchangeOrderField.destroy = (void (*)(void *)) free_CThostFtdcExchangeOrderField; SwigClassCThostFtdcExchangeOrderField.trackObjects = 0; SwigClassCThostFtdcExchangeOrderInsertErrorField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeOrderInsertErrorField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeOrderInsertErrorField, (void *) &SwigClassCThostFtdcExchangeOrderInsertErrorField); rb_define_alloc_func(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, _wrap_CThostFtdcExchangeOrderInsertErrorField_allocate); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeOrderInsertErrorField), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderInsertErrorField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcExchangeOrderInsertErrorField_ErrorMsg_get), -1); SwigClassCThostFtdcExchangeOrderInsertErrorField.mark = 0; SwigClassCThostFtdcExchangeOrderInsertErrorField.destroy = (void (*)(void *)) free_CThostFtdcExchangeOrderInsertErrorField; SwigClassCThostFtdcExchangeOrderInsertErrorField.trackObjects = 0; SwigClassCThostFtdcInputOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcInputOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInputOrderActionField, (void *) &SwigClassCThostFtdcInputOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcInputOrderActionField.klass, _wrap_CThostFtdcInputOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInputOrderActionField), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "OrderActionRef=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_OrderActionRef_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "OrderActionRef", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_OrderActionRef_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "OrderRef=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_OrderRef_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "OrderRef", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_OrderRef_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "VolumeChange=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_VolumeChange_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "VolumeChange", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_VolumeChange_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInputOrderActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInputOrderActionField_InstrumentID_get), -1); SwigClassCThostFtdcInputOrderActionField.mark = 0; SwigClassCThostFtdcInputOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcInputOrderActionField; SwigClassCThostFtdcInputOrderActionField.trackObjects = 0; SwigClassCThostFtdcOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcOrderActionField, (void *) &SwigClassCThostFtdcOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcOrderActionField.klass, _wrap_CThostFtdcOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcOrderActionField), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "OrderActionRef=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_OrderActionRef_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "OrderActionRef", VALUEFUNC(_wrap_CThostFtdcOrderActionField_OrderActionRef_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "OrderRef=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_OrderRef_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "OrderRef", VALUEFUNC(_wrap_CThostFtdcOrderActionField_OrderRef_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcOrderActionField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "VolumeChange=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_VolumeChange_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "VolumeChange", VALUEFUNC(_wrap_CThostFtdcOrderActionField_VolumeChange_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ActionDate=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ActionDate_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ActionDate", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ActionDate_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ActionTime=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ActionTime_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ActionTime", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ActionTime_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ActionLocalID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ActionLocalID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ActionLocalID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ActionLocalID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcOrderActionField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "OrderActionStatus=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_OrderActionStatus_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "OrderActionStatus", VALUEFUNC(_wrap_CThostFtdcOrderActionField_OrderActionStatus_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "StatusMsg=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_StatusMsg_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "StatusMsg", VALUEFUNC(_wrap_CThostFtdcOrderActionField_StatusMsg_get), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcOrderActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcOrderActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcOrderActionField_InstrumentID_get), -1); SwigClassCThostFtdcOrderActionField.mark = 0; SwigClassCThostFtdcOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcOrderActionField; SwigClassCThostFtdcOrderActionField.trackObjects = 0; SwigClassCThostFtdcExchangeOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeOrderActionField, (void *) &SwigClassCThostFtdcExchangeOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcExchangeOrderActionField.klass, _wrap_CThostFtdcExchangeOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeOrderActionField), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "VolumeChange=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_VolumeChange_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "VolumeChange", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_VolumeChange_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ActionDate=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ActionDate_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ActionDate", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ActionDate_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ActionTime=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ActionTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ActionTime", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ActionTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ActionLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ActionLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ActionLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ActionLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "OrderActionStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_OrderActionStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "OrderActionStatus", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_OrderActionStatus_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionField_UserID_get), -1); SwigClassCThostFtdcExchangeOrderActionField.mark = 0; SwigClassCThostFtdcExchangeOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcExchangeOrderActionField; SwigClassCThostFtdcExchangeOrderActionField.trackObjects = 0; SwigClassCThostFtdcExchangeOrderActionErrorField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeOrderActionErrorField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeOrderActionErrorField, (void *) &SwigClassCThostFtdcExchangeOrderActionErrorField); rb_define_alloc_func(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, _wrap_CThostFtdcExchangeOrderActionErrorField_allocate); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeOrderActionErrorField), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "ActionLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_ActionLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "ActionLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_ActionLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcExchangeOrderActionErrorField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcExchangeOrderActionErrorField_ErrorMsg_get), -1); SwigClassCThostFtdcExchangeOrderActionErrorField.mark = 0; SwigClassCThostFtdcExchangeOrderActionErrorField.destroy = (void (*)(void *)) free_CThostFtdcExchangeOrderActionErrorField; SwigClassCThostFtdcExchangeOrderActionErrorField.trackObjects = 0; SwigClassCThostFtdcExchangeTradeField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeTradeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeTradeField, (void *) &SwigClassCThostFtdcExchangeTradeField); rb_define_alloc_func(SwigClassCThostFtdcExchangeTradeField.klass, _wrap_CThostFtdcExchangeTradeField_allocate); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeTradeField), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradeID=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradeID", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradingRole=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradingRole_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradingRole", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradingRole_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "OffsetFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_OffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "OffsetFlag", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_OffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "Price=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_Price_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "Price", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_Price_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradeType=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradeType_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradeType", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradeType_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "PriceSource=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_PriceSource_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "PriceSource", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_PriceSource_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "ClearingPartID=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_ClearingPartID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "ClearingPartID", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_ClearingPartID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradeSource=", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradeSource_set), -1); rb_define_method(SwigClassCThostFtdcExchangeTradeField.klass, "TradeSource", VALUEFUNC(_wrap_CThostFtdcExchangeTradeField_TradeSource_get), -1); SwigClassCThostFtdcExchangeTradeField.mark = 0; SwigClassCThostFtdcExchangeTradeField.destroy = (void (*)(void *)) free_CThostFtdcExchangeTradeField; SwigClassCThostFtdcExchangeTradeField.trackObjects = 0; SwigClassCThostFtdcTradeField.klass = rb_define_class_under(mCtp, "CThostFtdcTradeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTradeField, (void *) &SwigClassCThostFtdcTradeField); rb_define_alloc_func(SwigClassCThostFtdcTradeField.klass, _wrap_CThostFtdcTradeField_allocate); rb_define_method(SwigClassCThostFtdcTradeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTradeField), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTradeField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTradeField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcTradeField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcTradeField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcTradeField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcTradeField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "OrderRef=", VALUEFUNC(_wrap_CThostFtdcTradeField_OrderRef_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "OrderRef", VALUEFUNC(_wrap_CThostFtdcTradeField_OrderRef_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcTradeField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcTradeField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcTradeField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcTradeField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradeID=", VALUEFUNC(_wrap_CThostFtdcTradeField_TradeID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradeID", VALUEFUNC(_wrap_CThostFtdcTradeField_TradeID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcTradeField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcTradeField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcTradeField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcTradeField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcTradeField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcTradeField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcTradeField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcTradeField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradingRole=", VALUEFUNC(_wrap_CThostFtdcTradeField_TradingRole_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradingRole", VALUEFUNC(_wrap_CThostFtdcTradeField_TradingRole_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcTradeField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcTradeField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "OffsetFlag=", VALUEFUNC(_wrap_CThostFtdcTradeField_OffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "OffsetFlag", VALUEFUNC(_wrap_CThostFtdcTradeField_OffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcTradeField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcTradeField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "Price=", VALUEFUNC(_wrap_CThostFtdcTradeField_Price_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "Price", VALUEFUNC(_wrap_CThostFtdcTradeField_Price_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcTradeField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcTradeField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcTradeField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcTradeField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcTradeField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcTradeField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradeType=", VALUEFUNC(_wrap_CThostFtdcTradeField_TradeType_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradeType", VALUEFUNC(_wrap_CThostFtdcTradeField_TradeType_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "PriceSource=", VALUEFUNC(_wrap_CThostFtdcTradeField_PriceSource_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "PriceSource", VALUEFUNC(_wrap_CThostFtdcTradeField_PriceSource_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcTradeField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcTradeField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcTradeField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcTradeField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "ClearingPartID=", VALUEFUNC(_wrap_CThostFtdcTradeField_ClearingPartID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "ClearingPartID", VALUEFUNC(_wrap_CThostFtdcTradeField_ClearingPartID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcTradeField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcTradeField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcTradeField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcTradeField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcTradeField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcTradeField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcTradeField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcTradeField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "BrokerOrderSeq=", VALUEFUNC(_wrap_CThostFtdcTradeField_BrokerOrderSeq_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "BrokerOrderSeq", VALUEFUNC(_wrap_CThostFtdcTradeField_BrokerOrderSeq_get), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradeSource=", VALUEFUNC(_wrap_CThostFtdcTradeField_TradeSource_set), -1); rb_define_method(SwigClassCThostFtdcTradeField.klass, "TradeSource", VALUEFUNC(_wrap_CThostFtdcTradeField_TradeSource_get), -1); SwigClassCThostFtdcTradeField.mark = 0; SwigClassCThostFtdcTradeField.destroy = (void (*)(void *)) free_CThostFtdcTradeField; SwigClassCThostFtdcTradeField.trackObjects = 0; SwigClassCThostFtdcUserSessionField.klass = rb_define_class_under(mCtp, "CThostFtdcUserSessionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcUserSessionField, (void *) &SwigClassCThostFtdcUserSessionField); rb_define_alloc_func(SwigClassCThostFtdcUserSessionField.klass, _wrap_CThostFtdcUserSessionField_allocate); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcUserSessionField), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcUserSessionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcUserSessionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcUserSessionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcUserSessionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "LoginDate=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_LoginDate_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "LoginDate", VALUEFUNC(_wrap_CThostFtdcUserSessionField_LoginDate_get), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "LoginTime=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_LoginTime_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "LoginTime", VALUEFUNC(_wrap_CThostFtdcUserSessionField_LoginTime_get), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "IPAddress=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_IPAddress_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "IPAddress", VALUEFUNC(_wrap_CThostFtdcUserSessionField_IPAddress_get), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcUserSessionField_UserProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "InterfaceProductInfo=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_InterfaceProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "InterfaceProductInfo", VALUEFUNC(_wrap_CThostFtdcUserSessionField_InterfaceProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "ProtocolInfo=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_ProtocolInfo_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "ProtocolInfo", VALUEFUNC(_wrap_CThostFtdcUserSessionField_ProtocolInfo_get), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "MacAddress=", VALUEFUNC(_wrap_CThostFtdcUserSessionField_MacAddress_set), -1); rb_define_method(SwigClassCThostFtdcUserSessionField.klass, "MacAddress", VALUEFUNC(_wrap_CThostFtdcUserSessionField_MacAddress_get), -1); SwigClassCThostFtdcUserSessionField.mark = 0; SwigClassCThostFtdcUserSessionField.destroy = (void (*)(void *)) free_CThostFtdcUserSessionField; SwigClassCThostFtdcUserSessionField.trackObjects = 0; SwigClassCThostFtdcQueryMaxOrderVolumeField.klass = rb_define_class_under(mCtp, "CThostFtdcQueryMaxOrderVolumeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQueryMaxOrderVolumeField, (void *) &SwigClassCThostFtdcQueryMaxOrderVolumeField); rb_define_alloc_func(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, _wrap_CThostFtdcQueryMaxOrderVolumeField_allocate); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQueryMaxOrderVolumeField), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "OffsetFlag=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_OffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "OffsetFlag", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_OffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "MaxVolume=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_MaxVolume_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeField.klass, "MaxVolume", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeField_MaxVolume_get), -1); SwigClassCThostFtdcQueryMaxOrderVolumeField.mark = 0; SwigClassCThostFtdcQueryMaxOrderVolumeField.destroy = (void (*)(void *)) free_CThostFtdcQueryMaxOrderVolumeField; SwigClassCThostFtdcQueryMaxOrderVolumeField.trackObjects = 0; SwigClassCThostFtdcSettlementInfoConfirmField.klass = rb_define_class_under(mCtp, "CThostFtdcSettlementInfoConfirmField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSettlementInfoConfirmField, (void *) &SwigClassCThostFtdcSettlementInfoConfirmField); rb_define_alloc_func(SwigClassCThostFtdcSettlementInfoConfirmField.klass, _wrap_CThostFtdcSettlementInfoConfirmField_allocate); rb_define_method(SwigClassCThostFtdcSettlementInfoConfirmField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSettlementInfoConfirmField), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoConfirmField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSettlementInfoConfirmField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoConfirmField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSettlementInfoConfirmField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoConfirmField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcSettlementInfoConfirmField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoConfirmField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcSettlementInfoConfirmField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoConfirmField.klass, "ConfirmDate=", VALUEFUNC(_wrap_CThostFtdcSettlementInfoConfirmField_ConfirmDate_set), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoConfirmField.klass, "ConfirmDate", VALUEFUNC(_wrap_CThostFtdcSettlementInfoConfirmField_ConfirmDate_get), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoConfirmField.klass, "ConfirmTime=", VALUEFUNC(_wrap_CThostFtdcSettlementInfoConfirmField_ConfirmTime_set), -1); rb_define_method(SwigClassCThostFtdcSettlementInfoConfirmField.klass, "ConfirmTime", VALUEFUNC(_wrap_CThostFtdcSettlementInfoConfirmField_ConfirmTime_get), -1); SwigClassCThostFtdcSettlementInfoConfirmField.mark = 0; SwigClassCThostFtdcSettlementInfoConfirmField.destroy = (void (*)(void *)) free_CThostFtdcSettlementInfoConfirmField; SwigClassCThostFtdcSettlementInfoConfirmField.trackObjects = 0; SwigClassCThostFtdcSyncDepositField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncDepositField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncDepositField, (void *) &SwigClassCThostFtdcSyncDepositField); rb_define_alloc_func(SwigClassCThostFtdcSyncDepositField.klass, _wrap_CThostFtdcSyncDepositField_allocate); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncDepositField), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "DepositSeqNo=", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_DepositSeqNo_set), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "DepositSeqNo", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_DepositSeqNo_get), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "Deposit=", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_Deposit_set), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "Deposit", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_Deposit_get), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "IsForce=", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_IsForce_set), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "IsForce", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_IsForce_get), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcSyncDepositField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcSyncDepositField_CurrencyID_get), -1); SwigClassCThostFtdcSyncDepositField.mark = 0; SwigClassCThostFtdcSyncDepositField.destroy = (void (*)(void *)) free_CThostFtdcSyncDepositField; SwigClassCThostFtdcSyncDepositField.trackObjects = 0; SwigClassCThostFtdcSyncFundMortgageField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncFundMortgageField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncFundMortgageField, (void *) &SwigClassCThostFtdcSyncFundMortgageField); rb_define_alloc_func(SwigClassCThostFtdcSyncFundMortgageField.klass, _wrap_CThostFtdcSyncFundMortgageField_allocate); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncFundMortgageField), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "MortgageSeqNo=", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_MortgageSeqNo_set), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "MortgageSeqNo", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_MortgageSeqNo_get), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "FromCurrencyID=", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_FromCurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "FromCurrencyID", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_FromCurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "MortgageAmount=", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_MortgageAmount_set), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "MortgageAmount", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_MortgageAmount_get), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "ToCurrencyID=", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_ToCurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcSyncFundMortgageField.klass, "ToCurrencyID", VALUEFUNC(_wrap_CThostFtdcSyncFundMortgageField_ToCurrencyID_get), -1); SwigClassCThostFtdcSyncFundMortgageField.mark = 0; SwigClassCThostFtdcSyncFundMortgageField.destroy = (void (*)(void *)) free_CThostFtdcSyncFundMortgageField; SwigClassCThostFtdcSyncFundMortgageField.trackObjects = 0; SwigClassCThostFtdcBrokerSyncField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerSyncField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerSyncField, (void *) &SwigClassCThostFtdcBrokerSyncField); rb_define_alloc_func(SwigClassCThostFtdcBrokerSyncField.klass, _wrap_CThostFtdcBrokerSyncField_allocate); rb_define_method(SwigClassCThostFtdcBrokerSyncField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerSyncField), -1); rb_define_method(SwigClassCThostFtdcBrokerSyncField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerSyncField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerSyncField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerSyncField_BrokerID_get), -1); SwigClassCThostFtdcBrokerSyncField.mark = 0; SwigClassCThostFtdcBrokerSyncField.destroy = (void (*)(void *)) free_CThostFtdcBrokerSyncField; SwigClassCThostFtdcBrokerSyncField.trackObjects = 0; SwigClassCThostFtdcSyncingInvestorField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncingInvestorField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncingInvestorField, (void *) &SwigClassCThostFtdcSyncingInvestorField); rb_define_alloc_func(SwigClassCThostFtdcSyncingInvestorField.klass, _wrap_CThostFtdcSyncingInvestorField_allocate); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncingInvestorField), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "InvestorGroupID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_InvestorGroupID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "InvestorGroupID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_InvestorGroupID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "InvestorName=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_InvestorName_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "InvestorName", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_InvestorName_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "IdentifiedCardType=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_IdentifiedCardType_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "IdentifiedCardType", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_IdentifiedCardType_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "IsActive=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_IsActive_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "IsActive", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_IsActive_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "Telephone=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_Telephone_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "Telephone", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_Telephone_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "Address=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_Address_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "Address", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_Address_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "OpenDate=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_OpenDate_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "OpenDate", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_OpenDate_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "Mobile=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_Mobile_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "Mobile", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_Mobile_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "CommModelID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_CommModelID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "CommModelID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_CommModelID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "MarginModelID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_MarginModelID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorField.klass, "MarginModelID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorField_MarginModelID_get), -1); SwigClassCThostFtdcSyncingInvestorField.mark = 0; SwigClassCThostFtdcSyncingInvestorField.destroy = (void (*)(void *)) free_CThostFtdcSyncingInvestorField; SwigClassCThostFtdcSyncingInvestorField.trackObjects = 0; SwigClassCThostFtdcSyncingTradingCodeField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncingTradingCodeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncingTradingCodeField, (void *) &SwigClassCThostFtdcSyncingTradingCodeField); rb_define_alloc_func(SwigClassCThostFtdcSyncingTradingCodeField.klass, _wrap_CThostFtdcSyncingTradingCodeField_allocate); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncingTradingCodeField), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "IsActive=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_IsActive_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "IsActive", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_IsActive_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "ClientIDType=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_ClientIDType_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingCodeField.klass, "ClientIDType", VALUEFUNC(_wrap_CThostFtdcSyncingTradingCodeField_ClientIDType_get), -1); SwigClassCThostFtdcSyncingTradingCodeField.mark = 0; SwigClassCThostFtdcSyncingTradingCodeField.destroy = (void (*)(void *)) free_CThostFtdcSyncingTradingCodeField; SwigClassCThostFtdcSyncingTradingCodeField.trackObjects = 0; SwigClassCThostFtdcSyncingInvestorGroupField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncingInvestorGroupField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncingInvestorGroupField, (void *) &SwigClassCThostFtdcSyncingInvestorGroupField); rb_define_alloc_func(SwigClassCThostFtdcSyncingInvestorGroupField.klass, _wrap_CThostFtdcSyncingInvestorGroupField_allocate); rb_define_method(SwigClassCThostFtdcSyncingInvestorGroupField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncingInvestorGroupField), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorGroupField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorGroupField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorGroupField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorGroupField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorGroupField.klass, "InvestorGroupID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorGroupField_InvestorGroupID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorGroupField.klass, "InvestorGroupID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorGroupField_InvestorGroupID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorGroupField.klass, "InvestorGroupName=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorGroupField_InvestorGroupName_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorGroupField.klass, "InvestorGroupName", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorGroupField_InvestorGroupName_get), -1); SwigClassCThostFtdcSyncingInvestorGroupField.mark = 0; SwigClassCThostFtdcSyncingInvestorGroupField.destroy = (void (*)(void *)) free_CThostFtdcSyncingInvestorGroupField; SwigClassCThostFtdcSyncingInvestorGroupField.trackObjects = 0; SwigClassCThostFtdcSyncingTradingAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncingTradingAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncingTradingAccountField, (void *) &SwigClassCThostFtdcSyncingTradingAccountField); rb_define_alloc_func(SwigClassCThostFtdcSyncingTradingAccountField.klass, _wrap_CThostFtdcSyncingTradingAccountField_allocate); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncingTradingAccountField), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreMortgage=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreMortgage_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreMortgage", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreMortgage_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreCredit=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreCredit_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreCredit", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreCredit_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreDeposit=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreDeposit_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreDeposit", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreDeposit_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreBalance=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreBalance_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreBalance", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreBalance_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreMargin", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "InterestBase=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_InterestBase_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "InterestBase", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_InterestBase_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Interest=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Interest_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Interest", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Interest_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Deposit=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Deposit_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Deposit", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Deposit_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Withdraw=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Withdraw_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Withdraw", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Withdraw_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FrozenMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FrozenMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FrozenMargin", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FrozenMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FrozenCash=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FrozenCash_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FrozenCash", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FrozenCash_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FrozenCommission=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FrozenCommission_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FrozenCommission", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FrozenCommission_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "CurrMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_CurrMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "CurrMargin", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_CurrMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "CashIn=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_CashIn_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "CashIn", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_CashIn_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Commission=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Commission_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Commission", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Commission_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "CloseProfit=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_CloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "CloseProfit", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_CloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PositionProfit=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PositionProfit_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PositionProfit", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PositionProfit_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Balance=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Balance_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Balance", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Balance_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Available=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Available_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Available", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Available_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "WithdrawQuota=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_WithdrawQuota_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "WithdrawQuota", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_WithdrawQuota_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Reserve=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Reserve_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Reserve", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Reserve_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Credit=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Credit_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Credit", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Credit_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Mortgage=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Mortgage_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "Mortgage", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_Mortgage_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "ExchangeMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_ExchangeMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "ExchangeMargin", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_ExchangeMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "DeliveryMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_DeliveryMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "DeliveryMargin", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_DeliveryMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "ExchangeDeliveryMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_ExchangeDeliveryMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "ExchangeDeliveryMargin", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_ExchangeDeliveryMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "ReserveBalance=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_ReserveBalance_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "ReserveBalance", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_ReserveBalance_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreFundMortgageIn=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageIn_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreFundMortgageIn", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageIn_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreFundMortgageOut=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageOut_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "PreFundMortgageOut", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageOut_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FundMortgageIn=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageIn_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FundMortgageIn", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageIn_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FundMortgageOut=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageOut_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FundMortgageOut", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageOut_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FundMortgageAvailable=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageAvailable_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "FundMortgageAvailable", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageAvailable_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "MortgageableFund=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_MortgageableFund_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "MortgageableFund", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_MortgageableFund_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductMargin", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductFrozenMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductFrozenMargin", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductCommission=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductCommission_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductCommission", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductCommission_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductFrozenCommission=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenCommission_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductFrozenCommission", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenCommission_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductPositionProfit=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfit_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductPositionProfit", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfit_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductCloseProfit=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductCloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductCloseProfit", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductCloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductPositionProfitByAlg=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfitByAlg_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductPositionProfitByAlg", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfitByAlg_get), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductExchangeMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductExchangeMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingTradingAccountField.klass, "SpecProductExchangeMargin", VALUEFUNC(_wrap_CThostFtdcSyncingTradingAccountField_SpecProductExchangeMargin_get), -1); SwigClassCThostFtdcSyncingTradingAccountField.mark = 0; SwigClassCThostFtdcSyncingTradingAccountField.destroy = (void (*)(void *)) free_CThostFtdcSyncingTradingAccountField; SwigClassCThostFtdcSyncingTradingAccountField.trackObjects = 0; SwigClassCThostFtdcSyncingInvestorPositionField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncingInvestorPositionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncingInvestorPositionField, (void *) &SwigClassCThostFtdcSyncingInvestorPositionField); rb_define_alloc_func(SwigClassCThostFtdcSyncingInvestorPositionField.klass, _wrap_CThostFtdcSyncingInvestorPositionField_allocate); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncingInvestorPositionField), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PosiDirection=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PosiDirection_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PosiDirection", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PosiDirection_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PositionDate=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PositionDate_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PositionDate", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PositionDate_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "YdPosition=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_YdPosition_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "YdPosition", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_YdPosition_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "Position=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_Position_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "Position", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_Position_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "LongFrozen=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_LongFrozen_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "LongFrozen", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_LongFrozen_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "ShortFrozen=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_ShortFrozen_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "ShortFrozen", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_ShortFrozen_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "LongFrozenAmount=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_LongFrozenAmount_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "LongFrozenAmount", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_LongFrozenAmount_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "ShortFrozenAmount=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_ShortFrozenAmount_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "ShortFrozenAmount", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_ShortFrozenAmount_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "OpenVolume=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_OpenVolume_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "OpenVolume", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_OpenVolume_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CloseVolume=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CloseVolume_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CloseVolume", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CloseVolume_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "OpenAmount=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_OpenAmount_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "OpenAmount", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_OpenAmount_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CloseAmount=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CloseAmount_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CloseAmount", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CloseAmount_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PositionCost=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PositionCost_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PositionCost", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PositionCost_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PreMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PreMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PreMargin", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PreMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "UseMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_UseMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "UseMargin", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_UseMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "FrozenMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_FrozenMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "FrozenMargin", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_FrozenMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "FrozenCash=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_FrozenCash_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "FrozenCash", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_FrozenCash_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "FrozenCommission=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_FrozenCommission_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "FrozenCommission", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_FrozenCommission_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CashIn=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CashIn_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CashIn", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CashIn_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "Commission=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_Commission_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "Commission", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_Commission_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CloseProfit=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CloseProfit", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PositionProfit=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PositionProfit_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PositionProfit", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PositionProfit_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PreSettlementPrice=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PreSettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "PreSettlementPrice", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_PreSettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "SettlementPrice=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_SettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "SettlementPrice", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_SettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "OpenCost=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_OpenCost_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "OpenCost", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_OpenCost_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "ExchangeMargin=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_ExchangeMargin_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "ExchangeMargin", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_ExchangeMargin_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CombPosition=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CombPosition_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CombPosition", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CombPosition_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CombLongFrozen=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CombLongFrozen_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CombLongFrozen", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CombLongFrozen_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CombShortFrozen=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CombShortFrozen_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CombShortFrozen", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CombShortFrozen_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CloseProfitByDate=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CloseProfitByDate_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CloseProfitByDate", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CloseProfitByDate_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CloseProfitByTrade=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CloseProfitByTrade_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "CloseProfitByTrade", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_CloseProfitByTrade_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "TodayPosition=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_TodayPosition_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "TodayPosition", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_TodayPosition_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "MarginRateByMoney=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_MarginRateByMoney_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "MarginRateByMoney", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_MarginRateByMoney_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "MarginRateByVolume=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_MarginRateByVolume_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "MarginRateByVolume", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_MarginRateByVolume_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "StrikeFrozen=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_StrikeFrozen_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "StrikeFrozen", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_StrikeFrozen_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "StrikeFrozenAmount=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_StrikeFrozenAmount_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "StrikeFrozenAmount", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_StrikeFrozenAmount_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "AbandonFrozen=", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_AbandonFrozen_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInvestorPositionField.klass, "AbandonFrozen", VALUEFUNC(_wrap_CThostFtdcSyncingInvestorPositionField_AbandonFrozen_get), -1); SwigClassCThostFtdcSyncingInvestorPositionField.mark = 0; SwigClassCThostFtdcSyncingInvestorPositionField.destroy = (void (*)(void *)) free_CThostFtdcSyncingInvestorPositionField; SwigClassCThostFtdcSyncingInvestorPositionField.trackObjects = 0; SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncingInstrumentMarginRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncingInstrumentMarginRateField, (void *) &SwigClassCThostFtdcSyncingInstrumentMarginRateField); rb_define_alloc_func(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, _wrap_CThostFtdcSyncingInstrumentMarginRateField_allocate); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncingInstrumentMarginRateField), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "LongMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "LongMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "LongMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "LongMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "ShortMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "ShortMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "ShortMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "ShortMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "IsRelative=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_IsRelative_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentMarginRateField.klass, "IsRelative", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentMarginRateField_IsRelative_get), -1); SwigClassCThostFtdcSyncingInstrumentMarginRateField.mark = 0; SwigClassCThostFtdcSyncingInstrumentMarginRateField.destroy = (void (*)(void *)) free_CThostFtdcSyncingInstrumentMarginRateField; SwigClassCThostFtdcSyncingInstrumentMarginRateField.trackObjects = 0; SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncingInstrumentCommissionRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncingInstrumentCommissionRateField, (void *) &SwigClassCThostFtdcSyncingInstrumentCommissionRateField); rb_define_alloc_func(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, _wrap_CThostFtdcSyncingInstrumentCommissionRateField_allocate); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncingInstrumentCommissionRateField), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "OpenRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "OpenRatioByMoney", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "OpenRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "OpenRatioByVolume", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "CloseRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "CloseRatioByMoney", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "CloseRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "CloseRatioByVolume", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "CloseTodayRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "CloseTodayRatioByMoney", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "CloseTodayRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentCommissionRateField.klass, "CloseTodayRatioByVolume", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByVolume_get), -1); SwigClassCThostFtdcSyncingInstrumentCommissionRateField.mark = 0; SwigClassCThostFtdcSyncingInstrumentCommissionRateField.destroy = (void (*)(void *)) free_CThostFtdcSyncingInstrumentCommissionRateField; SwigClassCThostFtdcSyncingInstrumentCommissionRateField.trackObjects = 0; SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncingInstrumentTradingRightField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncingInstrumentTradingRightField, (void *) &SwigClassCThostFtdcSyncingInstrumentTradingRightField); rb_define_alloc_func(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, _wrap_CThostFtdcSyncingInstrumentTradingRightField_allocate); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncingInstrumentTradingRightField), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentTradingRightField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentTradingRightField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentTradingRightField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentTradingRightField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentTradingRightField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentTradingRightField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentTradingRightField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentTradingRightField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "TradingRight=", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentTradingRightField_TradingRight_set), -1); rb_define_method(SwigClassCThostFtdcSyncingInstrumentTradingRightField.klass, "TradingRight", VALUEFUNC(_wrap_CThostFtdcSyncingInstrumentTradingRightField_TradingRight_get), -1); SwigClassCThostFtdcSyncingInstrumentTradingRightField.mark = 0; SwigClassCThostFtdcSyncingInstrumentTradingRightField.destroy = (void (*)(void *)) free_CThostFtdcSyncingInstrumentTradingRightField; SwigClassCThostFtdcSyncingInstrumentTradingRightField.trackObjects = 0; SwigClassCThostFtdcQryOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcQryOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryOrderField, (void *) &SwigClassCThostFtdcQryOrderField); rb_define_alloc_func(SwigClassCThostFtdcQryOrderField.klass, _wrap_CThostFtdcQryOrderField_allocate); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryOrderField), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcQryOrderField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcQryOrderField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "InsertTimeStart=", VALUEFUNC(_wrap_CThostFtdcQryOrderField_InsertTimeStart_set), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "InsertTimeStart", VALUEFUNC(_wrap_CThostFtdcQryOrderField_InsertTimeStart_get), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "InsertTimeEnd=", VALUEFUNC(_wrap_CThostFtdcQryOrderField_InsertTimeEnd_set), -1); rb_define_method(SwigClassCThostFtdcQryOrderField.klass, "InsertTimeEnd", VALUEFUNC(_wrap_CThostFtdcQryOrderField_InsertTimeEnd_get), -1); SwigClassCThostFtdcQryOrderField.mark = 0; SwigClassCThostFtdcQryOrderField.destroy = (void (*)(void *)) free_CThostFtdcQryOrderField; SwigClassCThostFtdcQryOrderField.trackObjects = 0; SwigClassCThostFtdcQryTradeField.klass = rb_define_class_under(mCtp, "CThostFtdcQryTradeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryTradeField, (void *) &SwigClassCThostFtdcQryTradeField); rb_define_alloc_func(SwigClassCThostFtdcQryTradeField.klass, _wrap_CThostFtdcQryTradeField_allocate); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryTradeField), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryTradeField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryTradeField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryTradeField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryTradeField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryTradeField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryTradeField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryTradeField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryTradeField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "TradeID=", VALUEFUNC(_wrap_CThostFtdcQryTradeField_TradeID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "TradeID", VALUEFUNC(_wrap_CThostFtdcQryTradeField_TradeID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "TradeTimeStart=", VALUEFUNC(_wrap_CThostFtdcQryTradeField_TradeTimeStart_set), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "TradeTimeStart", VALUEFUNC(_wrap_CThostFtdcQryTradeField_TradeTimeStart_get), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "TradeTimeEnd=", VALUEFUNC(_wrap_CThostFtdcQryTradeField_TradeTimeEnd_set), -1); rb_define_method(SwigClassCThostFtdcQryTradeField.klass, "TradeTimeEnd", VALUEFUNC(_wrap_CThostFtdcQryTradeField_TradeTimeEnd_get), -1); SwigClassCThostFtdcQryTradeField.mark = 0; SwigClassCThostFtdcQryTradeField.destroy = (void (*)(void *)) free_CThostFtdcQryTradeField; SwigClassCThostFtdcQryTradeField.trackObjects = 0; SwigClassCThostFtdcQryInvestorPositionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInvestorPositionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInvestorPositionField, (void *) &SwigClassCThostFtdcQryInvestorPositionField); rb_define_alloc_func(SwigClassCThostFtdcQryInvestorPositionField.klass, _wrap_CThostFtdcQryInvestorPositionField_allocate); rb_define_method(SwigClassCThostFtdcQryInvestorPositionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInvestorPositionField), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionField_InstrumentID_get), -1); SwigClassCThostFtdcQryInvestorPositionField.mark = 0; SwigClassCThostFtdcQryInvestorPositionField.destroy = (void (*)(void *)) free_CThostFtdcQryInvestorPositionField; SwigClassCThostFtdcQryInvestorPositionField.trackObjects = 0; SwigClassCThostFtdcQryTradingAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcQryTradingAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryTradingAccountField, (void *) &SwigClassCThostFtdcQryTradingAccountField); rb_define_alloc_func(SwigClassCThostFtdcQryTradingAccountField.klass, _wrap_CThostFtdcQryTradingAccountField_allocate); rb_define_method(SwigClassCThostFtdcQryTradingAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryTradingAccountField), -1); rb_define_method(SwigClassCThostFtdcQryTradingAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryTradingAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradingAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryTradingAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradingAccountField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryTradingAccountField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradingAccountField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryTradingAccountField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradingAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcQryTradingAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradingAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcQryTradingAccountField_CurrencyID_get), -1); SwigClassCThostFtdcQryTradingAccountField.mark = 0; SwigClassCThostFtdcQryTradingAccountField.destroy = (void (*)(void *)) free_CThostFtdcQryTradingAccountField; SwigClassCThostFtdcQryTradingAccountField.trackObjects = 0; SwigClassCThostFtdcQryInvestorField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInvestorField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInvestorField, (void *) &SwigClassCThostFtdcQryInvestorField); rb_define_alloc_func(SwigClassCThostFtdcQryInvestorField.klass, _wrap_CThostFtdcQryInvestorField_allocate); rb_define_method(SwigClassCThostFtdcQryInvestorField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInvestorField), -1); rb_define_method(SwigClassCThostFtdcQryInvestorField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryInvestorField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryInvestorField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryInvestorField_InvestorID_get), -1); SwigClassCThostFtdcQryInvestorField.mark = 0; SwigClassCThostFtdcQryInvestorField.destroy = (void (*)(void *)) free_CThostFtdcQryInvestorField; SwigClassCThostFtdcQryInvestorField.trackObjects = 0; SwigClassCThostFtdcQryTradingCodeField.klass = rb_define_class_under(mCtp, "CThostFtdcQryTradingCodeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryTradingCodeField, (void *) &SwigClassCThostFtdcQryTradingCodeField); rb_define_alloc_func(SwigClassCThostFtdcQryTradingCodeField.klass, _wrap_CThostFtdcQryTradingCodeField_allocate); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryTradingCodeField), -1); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryTradingCodeField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryTradingCodeField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryTradingCodeField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryTradingCodeField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryTradingCodeField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryTradingCodeField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQryTradingCodeField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQryTradingCodeField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "ClientIDType=", VALUEFUNC(_wrap_CThostFtdcQryTradingCodeField_ClientIDType_set), -1); rb_define_method(SwigClassCThostFtdcQryTradingCodeField.klass, "ClientIDType", VALUEFUNC(_wrap_CThostFtdcQryTradingCodeField_ClientIDType_get), -1); SwigClassCThostFtdcQryTradingCodeField.mark = 0; SwigClassCThostFtdcQryTradingCodeField.destroy = (void (*)(void *)) free_CThostFtdcQryTradingCodeField; SwigClassCThostFtdcQryTradingCodeField.trackObjects = 0; SwigClassCThostFtdcQryInvestorGroupField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInvestorGroupField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInvestorGroupField, (void *) &SwigClassCThostFtdcQryInvestorGroupField); rb_define_alloc_func(SwigClassCThostFtdcQryInvestorGroupField.klass, _wrap_CThostFtdcQryInvestorGroupField_allocate); rb_define_method(SwigClassCThostFtdcQryInvestorGroupField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInvestorGroupField), -1); rb_define_method(SwigClassCThostFtdcQryInvestorGroupField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorGroupField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorGroupField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryInvestorGroupField_BrokerID_get), -1); SwigClassCThostFtdcQryInvestorGroupField.mark = 0; SwigClassCThostFtdcQryInvestorGroupField.destroy = (void (*)(void *)) free_CThostFtdcQryInvestorGroupField; SwigClassCThostFtdcQryInvestorGroupField.trackObjects = 0; SwigClassCThostFtdcQryInstrumentMarginRateField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInstrumentMarginRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInstrumentMarginRateField, (void *) &SwigClassCThostFtdcQryInstrumentMarginRateField); rb_define_alloc_func(SwigClassCThostFtdcQryInstrumentMarginRateField.klass, _wrap_CThostFtdcQryInstrumentMarginRateField_allocate); rb_define_method(SwigClassCThostFtdcQryInstrumentMarginRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInstrumentMarginRateField), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentMarginRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentMarginRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentMarginRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentMarginRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentMarginRateField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentMarginRateField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentMarginRateField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentMarginRateField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentMarginRateField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentMarginRateField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentMarginRateField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentMarginRateField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentMarginRateField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentMarginRateField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentMarginRateField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcQryInstrumentMarginRateField_HedgeFlag_get), -1); SwigClassCThostFtdcQryInstrumentMarginRateField.mark = 0; SwigClassCThostFtdcQryInstrumentMarginRateField.destroy = (void (*)(void *)) free_CThostFtdcQryInstrumentMarginRateField; SwigClassCThostFtdcQryInstrumentMarginRateField.trackObjects = 0; SwigClassCThostFtdcQryInstrumentCommissionRateField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInstrumentCommissionRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInstrumentCommissionRateField, (void *) &SwigClassCThostFtdcQryInstrumentCommissionRateField); rb_define_alloc_func(SwigClassCThostFtdcQryInstrumentCommissionRateField.klass, _wrap_CThostFtdcQryInstrumentCommissionRateField_allocate); rb_define_method(SwigClassCThostFtdcQryInstrumentCommissionRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInstrumentCommissionRateField), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentCommissionRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentCommissionRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentCommissionRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentCommissionRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentCommissionRateField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentCommissionRateField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentCommissionRateField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentCommissionRateField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentCommissionRateField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentCommissionRateField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentCommissionRateField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentCommissionRateField_InstrumentID_get), -1); SwigClassCThostFtdcQryInstrumentCommissionRateField.mark = 0; SwigClassCThostFtdcQryInstrumentCommissionRateField.destroy = (void (*)(void *)) free_CThostFtdcQryInstrumentCommissionRateField; SwigClassCThostFtdcQryInstrumentCommissionRateField.trackObjects = 0; SwigClassCThostFtdcQryInstrumentTradingRightField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInstrumentTradingRightField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInstrumentTradingRightField, (void *) &SwigClassCThostFtdcQryInstrumentTradingRightField); rb_define_alloc_func(SwigClassCThostFtdcQryInstrumentTradingRightField.klass, _wrap_CThostFtdcQryInstrumentTradingRightField_allocate); rb_define_method(SwigClassCThostFtdcQryInstrumentTradingRightField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInstrumentTradingRightField), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentTradingRightField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentTradingRightField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentTradingRightField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentTradingRightField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentTradingRightField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentTradingRightField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentTradingRightField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentTradingRightField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentTradingRightField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentTradingRightField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentTradingRightField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentTradingRightField_InstrumentID_get), -1); SwigClassCThostFtdcQryInstrumentTradingRightField.mark = 0; SwigClassCThostFtdcQryInstrumentTradingRightField.destroy = (void (*)(void *)) free_CThostFtdcQryInstrumentTradingRightField; SwigClassCThostFtdcQryInstrumentTradingRightField.trackObjects = 0; SwigClassCThostFtdcQryBrokerField.klass = rb_define_class_under(mCtp, "CThostFtdcQryBrokerField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryBrokerField, (void *) &SwigClassCThostFtdcQryBrokerField); rb_define_alloc_func(SwigClassCThostFtdcQryBrokerField.klass, _wrap_CThostFtdcQryBrokerField_allocate); rb_define_method(SwigClassCThostFtdcQryBrokerField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryBrokerField), -1); rb_define_method(SwigClassCThostFtdcQryBrokerField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryBrokerField_BrokerID_get), -1); SwigClassCThostFtdcQryBrokerField.mark = 0; SwigClassCThostFtdcQryBrokerField.destroy = (void (*)(void *)) free_CThostFtdcQryBrokerField; SwigClassCThostFtdcQryBrokerField.trackObjects = 0; SwigClassCThostFtdcQryTraderField.klass = rb_define_class_under(mCtp, "CThostFtdcQryTraderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryTraderField, (void *) &SwigClassCThostFtdcQryTraderField); rb_define_alloc_func(SwigClassCThostFtdcQryTraderField.klass, _wrap_CThostFtdcQryTraderField_allocate); rb_define_method(SwigClassCThostFtdcQryTraderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryTraderField), -1); rb_define_method(SwigClassCThostFtdcQryTraderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryTraderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryTraderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryTraderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryTraderField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryTraderField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryTraderField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryTraderField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryTraderField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryTraderField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryTraderField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryTraderField_TraderID_get), -1); SwigClassCThostFtdcQryTraderField.mark = 0; SwigClassCThostFtdcQryTraderField.destroy = (void (*)(void *)) free_CThostFtdcQryTraderField; SwigClassCThostFtdcQryTraderField.trackObjects = 0; SwigClassCThostFtdcQrySuperUserFunctionField.klass = rb_define_class_under(mCtp, "CThostFtdcQrySuperUserFunctionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQrySuperUserFunctionField, (void *) &SwigClassCThostFtdcQrySuperUserFunctionField); rb_define_alloc_func(SwigClassCThostFtdcQrySuperUserFunctionField.klass, _wrap_CThostFtdcQrySuperUserFunctionField_allocate); rb_define_method(SwigClassCThostFtdcQrySuperUserFunctionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQrySuperUserFunctionField), -1); rb_define_method(SwigClassCThostFtdcQrySuperUserFunctionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcQrySuperUserFunctionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcQrySuperUserFunctionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcQrySuperUserFunctionField_UserID_get), -1); SwigClassCThostFtdcQrySuperUserFunctionField.mark = 0; SwigClassCThostFtdcQrySuperUserFunctionField.destroy = (void (*)(void *)) free_CThostFtdcQrySuperUserFunctionField; SwigClassCThostFtdcQrySuperUserFunctionField.trackObjects = 0; SwigClassCThostFtdcQryUserSessionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryUserSessionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryUserSessionField, (void *) &SwigClassCThostFtdcQryUserSessionField); rb_define_alloc_func(SwigClassCThostFtdcQryUserSessionField.klass, _wrap_CThostFtdcQryUserSessionField_allocate); rb_define_method(SwigClassCThostFtdcQryUserSessionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryUserSessionField), -1); rb_define_method(SwigClassCThostFtdcQryUserSessionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcQryUserSessionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcQryUserSessionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcQryUserSessionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcQryUserSessionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcQryUserSessionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcQryUserSessionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcQryUserSessionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcQryUserSessionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryUserSessionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryUserSessionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryUserSessionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryUserSessionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcQryUserSessionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcQryUserSessionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcQryUserSessionField_UserID_get), -1); SwigClassCThostFtdcQryUserSessionField.mark = 0; SwigClassCThostFtdcQryUserSessionField.destroy = (void (*)(void *)) free_CThostFtdcQryUserSessionField; SwigClassCThostFtdcQryUserSessionField.trackObjects = 0; SwigClassCThostFtdcQryPartBrokerField.klass = rb_define_class_under(mCtp, "CThostFtdcQryPartBrokerField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryPartBrokerField, (void *) &SwigClassCThostFtdcQryPartBrokerField); rb_define_alloc_func(SwigClassCThostFtdcQryPartBrokerField.klass, _wrap_CThostFtdcQryPartBrokerField_allocate); rb_define_method(SwigClassCThostFtdcQryPartBrokerField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryPartBrokerField), -1); rb_define_method(SwigClassCThostFtdcQryPartBrokerField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryPartBrokerField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryPartBrokerField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryPartBrokerField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryPartBrokerField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryPartBrokerField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryPartBrokerField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryPartBrokerField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryPartBrokerField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryPartBrokerField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryPartBrokerField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryPartBrokerField_ParticipantID_get), -1); SwigClassCThostFtdcQryPartBrokerField.mark = 0; SwigClassCThostFtdcQryPartBrokerField.destroy = (void (*)(void *)) free_CThostFtdcQryPartBrokerField; SwigClassCThostFtdcQryPartBrokerField.trackObjects = 0; SwigClassCThostFtdcQryFrontStatusField.klass = rb_define_class_under(mCtp, "CThostFtdcQryFrontStatusField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryFrontStatusField, (void *) &SwigClassCThostFtdcQryFrontStatusField); rb_define_alloc_func(SwigClassCThostFtdcQryFrontStatusField.klass, _wrap_CThostFtdcQryFrontStatusField_allocate); rb_define_method(SwigClassCThostFtdcQryFrontStatusField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryFrontStatusField), -1); rb_define_method(SwigClassCThostFtdcQryFrontStatusField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcQryFrontStatusField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcQryFrontStatusField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcQryFrontStatusField_FrontID_get), -1); SwigClassCThostFtdcQryFrontStatusField.mark = 0; SwigClassCThostFtdcQryFrontStatusField.destroy = (void (*)(void *)) free_CThostFtdcQryFrontStatusField; SwigClassCThostFtdcQryFrontStatusField.trackObjects = 0; SwigClassCThostFtdcQryExchangeOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeOrderField, (void *) &SwigClassCThostFtdcQryExchangeOrderField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeOrderField.klass, _wrap_CThostFtdcQryExchangeOrderField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeOrderField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderField_TraderID_get), -1); SwigClassCThostFtdcQryExchangeOrderField.mark = 0; SwigClassCThostFtdcQryExchangeOrderField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeOrderField; SwigClassCThostFtdcQryExchangeOrderField.trackObjects = 0; SwigClassCThostFtdcQryOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryOrderActionField, (void *) &SwigClassCThostFtdcQryOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcQryOrderActionField.klass, _wrap_CThostFtdcQryOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcQryOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryOrderActionField), -1); rb_define_method(SwigClassCThostFtdcQryOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryOrderActionField_ExchangeID_get), -1); SwigClassCThostFtdcQryOrderActionField.mark = 0; SwigClassCThostFtdcQryOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcQryOrderActionField; SwigClassCThostFtdcQryOrderActionField.trackObjects = 0; SwigClassCThostFtdcQryExchangeOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeOrderActionField, (void *) &SwigClassCThostFtdcQryExchangeOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeOrderActionField.klass, _wrap_CThostFtdcQryExchangeOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeOrderActionField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeOrderActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryExchangeOrderActionField_TraderID_get), -1); SwigClassCThostFtdcQryExchangeOrderActionField.mark = 0; SwigClassCThostFtdcQryExchangeOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeOrderActionField; SwigClassCThostFtdcQryExchangeOrderActionField.trackObjects = 0; SwigClassCThostFtdcQrySuperUserField.klass = rb_define_class_under(mCtp, "CThostFtdcQrySuperUserField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQrySuperUserField, (void *) &SwigClassCThostFtdcQrySuperUserField); rb_define_alloc_func(SwigClassCThostFtdcQrySuperUserField.klass, _wrap_CThostFtdcQrySuperUserField_allocate); rb_define_method(SwigClassCThostFtdcQrySuperUserField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQrySuperUserField), -1); rb_define_method(SwigClassCThostFtdcQrySuperUserField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcQrySuperUserField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcQrySuperUserField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcQrySuperUserField_UserID_get), -1); SwigClassCThostFtdcQrySuperUserField.mark = 0; SwigClassCThostFtdcQrySuperUserField.destroy = (void (*)(void *)) free_CThostFtdcQrySuperUserField; SwigClassCThostFtdcQrySuperUserField.trackObjects = 0; SwigClassCThostFtdcQryExchangeField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeField, (void *) &SwigClassCThostFtdcQryExchangeField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeField.klass, _wrap_CThostFtdcQryExchangeField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExchangeField_ExchangeID_get), -1); SwigClassCThostFtdcQryExchangeField.mark = 0; SwigClassCThostFtdcQryExchangeField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeField; SwigClassCThostFtdcQryExchangeField.trackObjects = 0; SwigClassCThostFtdcQryProductField.klass = rb_define_class_under(mCtp, "CThostFtdcQryProductField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryProductField, (void *) &SwigClassCThostFtdcQryProductField); rb_define_alloc_func(SwigClassCThostFtdcQryProductField.klass, _wrap_CThostFtdcQryProductField_allocate); rb_define_method(SwigClassCThostFtdcQryProductField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryProductField), -1); rb_define_method(SwigClassCThostFtdcQryProductField.klass, "ProductID=", VALUEFUNC(_wrap_CThostFtdcQryProductField_ProductID_set), -1); rb_define_method(SwigClassCThostFtdcQryProductField.klass, "ProductID", VALUEFUNC(_wrap_CThostFtdcQryProductField_ProductID_get), -1); rb_define_method(SwigClassCThostFtdcQryProductField.klass, "ProductClass=", VALUEFUNC(_wrap_CThostFtdcQryProductField_ProductClass_set), -1); rb_define_method(SwigClassCThostFtdcQryProductField.klass, "ProductClass", VALUEFUNC(_wrap_CThostFtdcQryProductField_ProductClass_get), -1); SwigClassCThostFtdcQryProductField.mark = 0; SwigClassCThostFtdcQryProductField.destroy = (void (*)(void *)) free_CThostFtdcQryProductField; SwigClassCThostFtdcQryProductField.trackObjects = 0; SwigClassCThostFtdcQryInstrumentField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInstrumentField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInstrumentField, (void *) &SwigClassCThostFtdcQryInstrumentField); rb_define_alloc_func(SwigClassCThostFtdcQryInstrumentField.klass, _wrap_CThostFtdcQryInstrumentField_allocate); rb_define_method(SwigClassCThostFtdcQryInstrumentField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInstrumentField), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentField.klass, "ProductID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentField_ProductID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentField.klass, "ProductID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentField_ProductID_get), -1); SwigClassCThostFtdcQryInstrumentField.mark = 0; SwigClassCThostFtdcQryInstrumentField.destroy = (void (*)(void *)) free_CThostFtdcQryInstrumentField; SwigClassCThostFtdcQryInstrumentField.trackObjects = 0; SwigClassCThostFtdcQryDepthMarketDataField.klass = rb_define_class_under(mCtp, "CThostFtdcQryDepthMarketDataField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryDepthMarketDataField, (void *) &SwigClassCThostFtdcQryDepthMarketDataField); rb_define_alloc_func(SwigClassCThostFtdcQryDepthMarketDataField.klass, _wrap_CThostFtdcQryDepthMarketDataField_allocate); rb_define_method(SwigClassCThostFtdcQryDepthMarketDataField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryDepthMarketDataField), -1); rb_define_method(SwigClassCThostFtdcQryDepthMarketDataField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryDepthMarketDataField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryDepthMarketDataField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryDepthMarketDataField_InstrumentID_get), -1); SwigClassCThostFtdcQryDepthMarketDataField.mark = 0; SwigClassCThostFtdcQryDepthMarketDataField.destroy = (void (*)(void *)) free_CThostFtdcQryDepthMarketDataField; SwigClassCThostFtdcQryDepthMarketDataField.trackObjects = 0; SwigClassCThostFtdcQryBrokerUserField.klass = rb_define_class_under(mCtp, "CThostFtdcQryBrokerUserField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryBrokerUserField, (void *) &SwigClassCThostFtdcQryBrokerUserField); rb_define_alloc_func(SwigClassCThostFtdcQryBrokerUserField.klass, _wrap_CThostFtdcQryBrokerUserField_allocate); rb_define_method(SwigClassCThostFtdcQryBrokerUserField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryBrokerUserField), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserField_UserID_get), -1); SwigClassCThostFtdcQryBrokerUserField.mark = 0; SwigClassCThostFtdcQryBrokerUserField.destroy = (void (*)(void *)) free_CThostFtdcQryBrokerUserField; SwigClassCThostFtdcQryBrokerUserField.trackObjects = 0; SwigClassCThostFtdcQryBrokerUserFunctionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryBrokerUserFunctionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryBrokerUserFunctionField, (void *) &SwigClassCThostFtdcQryBrokerUserFunctionField); rb_define_alloc_func(SwigClassCThostFtdcQryBrokerUserFunctionField.klass, _wrap_CThostFtdcQryBrokerUserFunctionField_allocate); rb_define_method(SwigClassCThostFtdcQryBrokerUserFunctionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryBrokerUserFunctionField), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserFunctionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserFunctionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserFunctionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserFunctionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserFunctionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserFunctionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserFunctionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserFunctionField_UserID_get), -1); SwigClassCThostFtdcQryBrokerUserFunctionField.mark = 0; SwigClassCThostFtdcQryBrokerUserFunctionField.destroy = (void (*)(void *)) free_CThostFtdcQryBrokerUserFunctionField; SwigClassCThostFtdcQryBrokerUserFunctionField.trackObjects = 0; SwigClassCThostFtdcQryTraderOfferField.klass = rb_define_class_under(mCtp, "CThostFtdcQryTraderOfferField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryTraderOfferField, (void *) &SwigClassCThostFtdcQryTraderOfferField); rb_define_alloc_func(SwigClassCThostFtdcQryTraderOfferField.klass, _wrap_CThostFtdcQryTraderOfferField_allocate); rb_define_method(SwigClassCThostFtdcQryTraderOfferField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryTraderOfferField), -1); rb_define_method(SwigClassCThostFtdcQryTraderOfferField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryTraderOfferField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryTraderOfferField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryTraderOfferField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryTraderOfferField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryTraderOfferField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryTraderOfferField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryTraderOfferField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryTraderOfferField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryTraderOfferField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryTraderOfferField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryTraderOfferField_TraderID_get), -1); SwigClassCThostFtdcQryTraderOfferField.mark = 0; SwigClassCThostFtdcQryTraderOfferField.destroy = (void (*)(void *)) free_CThostFtdcQryTraderOfferField; SwigClassCThostFtdcQryTraderOfferField.trackObjects = 0; SwigClassCThostFtdcQrySyncDepositField.klass = rb_define_class_under(mCtp, "CThostFtdcQrySyncDepositField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQrySyncDepositField, (void *) &SwigClassCThostFtdcQrySyncDepositField); rb_define_alloc_func(SwigClassCThostFtdcQrySyncDepositField.klass, _wrap_CThostFtdcQrySyncDepositField_allocate); rb_define_method(SwigClassCThostFtdcQrySyncDepositField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQrySyncDepositField), -1); rb_define_method(SwigClassCThostFtdcQrySyncDepositField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQrySyncDepositField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQrySyncDepositField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQrySyncDepositField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQrySyncDepositField.klass, "DepositSeqNo=", VALUEFUNC(_wrap_CThostFtdcQrySyncDepositField_DepositSeqNo_set), -1); rb_define_method(SwigClassCThostFtdcQrySyncDepositField.klass, "DepositSeqNo", VALUEFUNC(_wrap_CThostFtdcQrySyncDepositField_DepositSeqNo_get), -1); SwigClassCThostFtdcQrySyncDepositField.mark = 0; SwigClassCThostFtdcQrySyncDepositField.destroy = (void (*)(void *)) free_CThostFtdcQrySyncDepositField; SwigClassCThostFtdcQrySyncDepositField.trackObjects = 0; SwigClassCThostFtdcQrySettlementInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcQrySettlementInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQrySettlementInfoField, (void *) &SwigClassCThostFtdcQrySettlementInfoField); rb_define_alloc_func(SwigClassCThostFtdcQrySettlementInfoField.klass, _wrap_CThostFtdcQrySettlementInfoField_allocate); rb_define_method(SwigClassCThostFtdcQrySettlementInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQrySettlementInfoField), -1); rb_define_method(SwigClassCThostFtdcQrySettlementInfoField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQrySettlementInfoField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQrySettlementInfoField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQrySettlementInfoField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQrySettlementInfoField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQrySettlementInfoField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQrySettlementInfoField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQrySettlementInfoField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQrySettlementInfoField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcQrySettlementInfoField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcQrySettlementInfoField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcQrySettlementInfoField_TradingDay_get), -1); SwigClassCThostFtdcQrySettlementInfoField.mark = 0; SwigClassCThostFtdcQrySettlementInfoField.destroy = (void (*)(void *)) free_CThostFtdcQrySettlementInfoField; SwigClassCThostFtdcQrySettlementInfoField.trackObjects = 0; SwigClassCThostFtdcQryExchangeMarginRateField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeMarginRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeMarginRateField, (void *) &SwigClassCThostFtdcQryExchangeMarginRateField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeMarginRateField.klass, _wrap_CThostFtdcQryExchangeMarginRateField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeMarginRateField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateField_HedgeFlag_get), -1); SwigClassCThostFtdcQryExchangeMarginRateField.mark = 0; SwigClassCThostFtdcQryExchangeMarginRateField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeMarginRateField; SwigClassCThostFtdcQryExchangeMarginRateField.trackObjects = 0; SwigClassCThostFtdcQryExchangeMarginRateAdjustField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeMarginRateAdjustField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeMarginRateAdjustField, (void *) &SwigClassCThostFtdcQryExchangeMarginRateAdjustField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeMarginRateAdjustField.klass, _wrap_CThostFtdcQryExchangeMarginRateAdjustField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateAdjustField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeMarginRateAdjustField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateAdjustField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateAdjustField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateAdjustField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateAdjustField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateAdjustField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateAdjustField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateAdjustField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateAdjustField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateAdjustField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateAdjustField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeMarginRateAdjustField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcQryExchangeMarginRateAdjustField_HedgeFlag_get), -1); SwigClassCThostFtdcQryExchangeMarginRateAdjustField.mark = 0; SwigClassCThostFtdcQryExchangeMarginRateAdjustField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeMarginRateAdjustField; SwigClassCThostFtdcQryExchangeMarginRateAdjustField.trackObjects = 0; SwigClassCThostFtdcQryExchangeRateField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeRateField, (void *) &SwigClassCThostFtdcQryExchangeRateField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeRateField.klass, _wrap_CThostFtdcQryExchangeRateField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeRateField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryExchangeRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeRateField.klass, "FromCurrencyID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeRateField_FromCurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeRateField.klass, "FromCurrencyID", VALUEFUNC(_wrap_CThostFtdcQryExchangeRateField_FromCurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeRateField.klass, "ToCurrencyID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeRateField_ToCurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeRateField.klass, "ToCurrencyID", VALUEFUNC(_wrap_CThostFtdcQryExchangeRateField_ToCurrencyID_get), -1); SwigClassCThostFtdcQryExchangeRateField.mark = 0; SwigClassCThostFtdcQryExchangeRateField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeRateField; SwigClassCThostFtdcQryExchangeRateField.trackObjects = 0; SwigClassCThostFtdcQrySyncFundMortgageField.klass = rb_define_class_under(mCtp, "CThostFtdcQrySyncFundMortgageField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQrySyncFundMortgageField, (void *) &SwigClassCThostFtdcQrySyncFundMortgageField); rb_define_alloc_func(SwigClassCThostFtdcQrySyncFundMortgageField.klass, _wrap_CThostFtdcQrySyncFundMortgageField_allocate); rb_define_method(SwigClassCThostFtdcQrySyncFundMortgageField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQrySyncFundMortgageField), -1); rb_define_method(SwigClassCThostFtdcQrySyncFundMortgageField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQrySyncFundMortgageField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQrySyncFundMortgageField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQrySyncFundMortgageField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQrySyncFundMortgageField.klass, "MortgageSeqNo=", VALUEFUNC(_wrap_CThostFtdcQrySyncFundMortgageField_MortgageSeqNo_set), -1); rb_define_method(SwigClassCThostFtdcQrySyncFundMortgageField.klass, "MortgageSeqNo", VALUEFUNC(_wrap_CThostFtdcQrySyncFundMortgageField_MortgageSeqNo_get), -1); SwigClassCThostFtdcQrySyncFundMortgageField.mark = 0; SwigClassCThostFtdcQrySyncFundMortgageField.destroy = (void (*)(void *)) free_CThostFtdcQrySyncFundMortgageField; SwigClassCThostFtdcQrySyncFundMortgageField.trackObjects = 0; SwigClassCThostFtdcQryHisOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcQryHisOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryHisOrderField, (void *) &SwigClassCThostFtdcQryHisOrderField); rb_define_alloc_func(SwigClassCThostFtdcQryHisOrderField.klass, _wrap_CThostFtdcQryHisOrderField_allocate); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryHisOrderField), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "InsertTimeStart=", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_InsertTimeStart_set), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "InsertTimeStart", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_InsertTimeStart_get), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "InsertTimeEnd=", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_InsertTimeEnd_set), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "InsertTimeEnd", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_InsertTimeEnd_get), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcQryHisOrderField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcQryHisOrderField_SettlementID_get), -1); SwigClassCThostFtdcQryHisOrderField.mark = 0; SwigClassCThostFtdcQryHisOrderField.destroy = (void (*)(void *)) free_CThostFtdcQryHisOrderField; SwigClassCThostFtdcQryHisOrderField.trackObjects = 0; SwigClassCThostFtdcOptionInstrMiniMarginField.klass = rb_define_class_under(mCtp, "CThostFtdcOptionInstrMiniMarginField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcOptionInstrMiniMarginField, (void *) &SwigClassCThostFtdcOptionInstrMiniMarginField); rb_define_alloc_func(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, _wrap_CThostFtdcOptionInstrMiniMarginField_allocate); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcOptionInstrMiniMarginField), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "MinMargin=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_MinMargin_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "MinMargin", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_MinMargin_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "ValueMethod=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_ValueMethod_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "ValueMethod", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_ValueMethod_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "IsRelative=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_IsRelative_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMiniMarginField.klass, "IsRelative", VALUEFUNC(_wrap_CThostFtdcOptionInstrMiniMarginField_IsRelative_get), -1); SwigClassCThostFtdcOptionInstrMiniMarginField.mark = 0; SwigClassCThostFtdcOptionInstrMiniMarginField.destroy = (void (*)(void *)) free_CThostFtdcOptionInstrMiniMarginField; SwigClassCThostFtdcOptionInstrMiniMarginField.trackObjects = 0; SwigClassCThostFtdcOptionInstrMarginAdjustField.klass = rb_define_class_under(mCtp, "CThostFtdcOptionInstrMarginAdjustField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcOptionInstrMarginAdjustField, (void *) &SwigClassCThostFtdcOptionInstrMarginAdjustField); rb_define_alloc_func(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, _wrap_CThostFtdcOptionInstrMarginAdjustField_allocate); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcOptionInstrMarginAdjustField), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "SShortMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_SShortMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "SShortMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_SShortMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "SShortMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_SShortMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "SShortMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_SShortMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "HShortMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_HShortMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "HShortMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_HShortMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "HShortMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_HShortMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "HShortMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_HShortMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "AShortMarginRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_AShortMarginRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "AShortMarginRatioByMoney", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_AShortMarginRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "AShortMarginRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_AShortMarginRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "AShortMarginRatioByVolume", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_AShortMarginRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "IsRelative=", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_IsRelative_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrMarginAdjustField.klass, "IsRelative", VALUEFUNC(_wrap_CThostFtdcOptionInstrMarginAdjustField_IsRelative_get), -1); SwigClassCThostFtdcOptionInstrMarginAdjustField.mark = 0; SwigClassCThostFtdcOptionInstrMarginAdjustField.destroy = (void (*)(void *)) free_CThostFtdcOptionInstrMarginAdjustField; SwigClassCThostFtdcOptionInstrMarginAdjustField.trackObjects = 0; SwigClassCThostFtdcOptionInstrCommRateField.klass = rb_define_class_under(mCtp, "CThostFtdcOptionInstrCommRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcOptionInstrCommRateField, (void *) &SwigClassCThostFtdcOptionInstrCommRateField); rb_define_alloc_func(SwigClassCThostFtdcOptionInstrCommRateField.klass, _wrap_CThostFtdcOptionInstrCommRateField_allocate); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcOptionInstrCommRateField), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "OpenRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_OpenRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "OpenRatioByMoney", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_OpenRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "OpenRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_OpenRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "OpenRatioByVolume", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_OpenRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "CloseRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_CloseRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "CloseRatioByMoney", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_CloseRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "CloseRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_CloseRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "CloseRatioByVolume", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_CloseRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "CloseTodayRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_CloseTodayRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "CloseTodayRatioByMoney", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_CloseTodayRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "CloseTodayRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_CloseTodayRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "CloseTodayRatioByVolume", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_CloseTodayRatioByVolume_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "StrikeRatioByMoney=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_StrikeRatioByMoney_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "StrikeRatioByMoney", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_StrikeRatioByMoney_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "StrikeRatioByVolume=", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_StrikeRatioByVolume_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrCommRateField.klass, "StrikeRatioByVolume", VALUEFUNC(_wrap_CThostFtdcOptionInstrCommRateField_StrikeRatioByVolume_get), -1); SwigClassCThostFtdcOptionInstrCommRateField.mark = 0; SwigClassCThostFtdcOptionInstrCommRateField.destroy = (void (*)(void *)) free_CThostFtdcOptionInstrCommRateField; SwigClassCThostFtdcOptionInstrCommRateField.trackObjects = 0; SwigClassCThostFtdcOptionInstrTradeCostField.klass = rb_define_class_under(mCtp, "CThostFtdcOptionInstrTradeCostField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcOptionInstrTradeCostField, (void *) &SwigClassCThostFtdcOptionInstrTradeCostField); rb_define_alloc_func(SwigClassCThostFtdcOptionInstrTradeCostField.klass, _wrap_CThostFtdcOptionInstrTradeCostField_allocate); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcOptionInstrTradeCostField), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "FixedMargin=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_FixedMargin_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "FixedMargin", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_FixedMargin_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "MiniMargin=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_MiniMargin_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "MiniMargin", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_MiniMargin_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "Royalty=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_Royalty_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "Royalty", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_Royalty_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "ExchFixedMargin=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_ExchFixedMargin_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "ExchFixedMargin", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_ExchFixedMargin_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "ExchMiniMargin=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_ExchMiniMargin_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradeCostField.klass, "ExchMiniMargin", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradeCostField_ExchMiniMargin_get), -1); SwigClassCThostFtdcOptionInstrTradeCostField.mark = 0; SwigClassCThostFtdcOptionInstrTradeCostField.destroy = (void (*)(void *)) free_CThostFtdcOptionInstrTradeCostField; SwigClassCThostFtdcOptionInstrTradeCostField.trackObjects = 0; SwigClassCThostFtdcQryOptionInstrTradeCostField.klass = rb_define_class_under(mCtp, "CThostFtdcQryOptionInstrTradeCostField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryOptionInstrTradeCostField, (void *) &SwigClassCThostFtdcQryOptionInstrTradeCostField); rb_define_alloc_func(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, _wrap_CThostFtdcQryOptionInstrTradeCostField_allocate); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryOptionInstrTradeCostField), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "InputPrice=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_InputPrice_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "InputPrice", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_InputPrice_get), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "UnderlyingPrice=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_UnderlyingPrice_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradeCostField.klass, "UnderlyingPrice", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradeCostField_UnderlyingPrice_get), -1); SwigClassCThostFtdcQryOptionInstrTradeCostField.mark = 0; SwigClassCThostFtdcQryOptionInstrTradeCostField.destroy = (void (*)(void *)) free_CThostFtdcQryOptionInstrTradeCostField; SwigClassCThostFtdcQryOptionInstrTradeCostField.trackObjects = 0; SwigClassCThostFtdcQryOptionInstrCommRateField.klass = rb_define_class_under(mCtp, "CThostFtdcQryOptionInstrCommRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryOptionInstrCommRateField, (void *) &SwigClassCThostFtdcQryOptionInstrCommRateField); rb_define_alloc_func(SwigClassCThostFtdcQryOptionInstrCommRateField.klass, _wrap_CThostFtdcQryOptionInstrCommRateField_allocate); rb_define_method(SwigClassCThostFtdcQryOptionInstrCommRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryOptionInstrCommRateField), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrCommRateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrCommRateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrCommRateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrCommRateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrCommRateField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrCommRateField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrCommRateField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrCommRateField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrCommRateField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrCommRateField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrCommRateField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrCommRateField_InstrumentID_get), -1); SwigClassCThostFtdcQryOptionInstrCommRateField.mark = 0; SwigClassCThostFtdcQryOptionInstrCommRateField.destroy = (void (*)(void *)) free_CThostFtdcQryOptionInstrCommRateField; SwigClassCThostFtdcQryOptionInstrCommRateField.trackObjects = 0; SwigClassCThostFtdcIndexPriceField.klass = rb_define_class_under(mCtp, "CThostFtdcIndexPriceField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcIndexPriceField, (void *) &SwigClassCThostFtdcIndexPriceField); rb_define_alloc_func(SwigClassCThostFtdcIndexPriceField.klass, _wrap_CThostFtdcIndexPriceField_allocate); rb_define_method(SwigClassCThostFtdcIndexPriceField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcIndexPriceField), -1); rb_define_method(SwigClassCThostFtdcIndexPriceField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcIndexPriceField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcIndexPriceField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcIndexPriceField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcIndexPriceField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcIndexPriceField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcIndexPriceField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcIndexPriceField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcIndexPriceField.klass, "ClosePrice=", VALUEFUNC(_wrap_CThostFtdcIndexPriceField_ClosePrice_set), -1); rb_define_method(SwigClassCThostFtdcIndexPriceField.klass, "ClosePrice", VALUEFUNC(_wrap_CThostFtdcIndexPriceField_ClosePrice_get), -1); SwigClassCThostFtdcIndexPriceField.mark = 0; SwigClassCThostFtdcIndexPriceField.destroy = (void (*)(void *)) free_CThostFtdcIndexPriceField; SwigClassCThostFtdcIndexPriceField.trackObjects = 0; SwigClassCThostFtdcInputExecOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcInputExecOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInputExecOrderField, (void *) &SwigClassCThostFtdcInputExecOrderField); rb_define_alloc_func(SwigClassCThostFtdcInputExecOrderField.klass, _wrap_CThostFtdcInputExecOrderField_allocate); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInputExecOrderField), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "ExecOrderRef=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_ExecOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "ExecOrderRef", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_ExecOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "OffsetFlag=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_OffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "OffsetFlag", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_OffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "ActionType=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_ActionType_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "ActionType", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_ActionType_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "PosiDirection=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_PosiDirection_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "PosiDirection", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_PosiDirection_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "ReservePositionFlag=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_ReservePositionFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "ReservePositionFlag", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_ReservePositionFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "CloseFlag=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_CloseFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderField.klass, "CloseFlag", VALUEFUNC(_wrap_CThostFtdcInputExecOrderField_CloseFlag_get), -1); SwigClassCThostFtdcInputExecOrderField.mark = 0; SwigClassCThostFtdcInputExecOrderField.destroy = (void (*)(void *)) free_CThostFtdcInputExecOrderField; SwigClassCThostFtdcInputExecOrderField.trackObjects = 0; SwigClassCThostFtdcInputExecOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcInputExecOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInputExecOrderActionField, (void *) &SwigClassCThostFtdcInputExecOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcInputExecOrderActionField.klass, _wrap_CThostFtdcInputExecOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInputExecOrderActionField), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "ExecOrderActionRef=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_ExecOrderActionRef_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "ExecOrderActionRef", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_ExecOrderActionRef_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "ExecOrderRef=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_ExecOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "ExecOrderRef", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_ExecOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "ExecOrderSysID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_ExecOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "ExecOrderSysID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_ExecOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInputExecOrderActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInputExecOrderActionField_InstrumentID_get), -1); SwigClassCThostFtdcInputExecOrderActionField.mark = 0; SwigClassCThostFtdcInputExecOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcInputExecOrderActionField; SwigClassCThostFtdcInputExecOrderActionField.trackObjects = 0; SwigClassCThostFtdcExecOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcExecOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExecOrderField, (void *) &SwigClassCThostFtdcExecOrderField); rb_define_alloc_func(SwigClassCThostFtdcExecOrderField.klass, _wrap_CThostFtdcExecOrderField_allocate); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExecOrderField), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExecOrderRef=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExecOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExecOrderRef", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExecOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcExecOrderField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcExecOrderField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "OffsetFlag=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_OffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "OffsetFlag", VALUEFUNC(_wrap_CThostFtdcExecOrderField_OffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcExecOrderField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ActionType=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ActionType_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ActionType", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ActionType_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "PosiDirection=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_PosiDirection_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "PosiDirection", VALUEFUNC(_wrap_CThostFtdcExecOrderField_PosiDirection_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ReservePositionFlag=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ReservePositionFlag_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ReservePositionFlag", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ReservePositionFlag_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "CloseFlag=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_CloseFlag_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "CloseFlag", VALUEFUNC(_wrap_CThostFtdcExecOrderField_CloseFlag_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExecOrderLocalID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExecOrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExecOrderLocalID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExecOrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "OrderSubmitStatus=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_OrderSubmitStatus_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "OrderSubmitStatus", VALUEFUNC(_wrap_CThostFtdcExecOrderField_OrderSubmitStatus_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "NotifySequence=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_NotifySequence_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "NotifySequence", VALUEFUNC(_wrap_CThostFtdcExecOrderField_NotifySequence_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcExecOrderField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExecOrderSysID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExecOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExecOrderSysID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExecOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "InsertDate=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_InsertDate_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "InsertDate", VALUEFUNC(_wrap_CThostFtdcExecOrderField_InsertDate_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "InsertTime=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_InsertTime_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "InsertTime", VALUEFUNC(_wrap_CThostFtdcExecOrderField_InsertTime_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "CancelTime=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_CancelTime_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "CancelTime", VALUEFUNC(_wrap_CThostFtdcExecOrderField_CancelTime_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExecResult=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExecResult_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ExecResult", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ExecResult_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ClearingPartID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ClearingPartID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ClearingPartID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ClearingPartID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcExecOrderField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcExecOrderField_UserProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "StatusMsg=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_StatusMsg_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "StatusMsg", VALUEFUNC(_wrap_CThostFtdcExecOrderField_StatusMsg_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ActiveUserID=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ActiveUserID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "ActiveUserID", VALUEFUNC(_wrap_CThostFtdcExecOrderField_ActiveUserID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "BrokerExecOrderSeq=", VALUEFUNC(_wrap_CThostFtdcExecOrderField_BrokerExecOrderSeq_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderField.klass, "BrokerExecOrderSeq", VALUEFUNC(_wrap_CThostFtdcExecOrderField_BrokerExecOrderSeq_get), -1); SwigClassCThostFtdcExecOrderField.mark = 0; SwigClassCThostFtdcExecOrderField.destroy = (void (*)(void *)) free_CThostFtdcExecOrderField; SwigClassCThostFtdcExecOrderField.trackObjects = 0; SwigClassCThostFtdcExecOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcExecOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExecOrderActionField, (void *) &SwigClassCThostFtdcExecOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcExecOrderActionField.klass, _wrap_CThostFtdcExecOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExecOrderActionField), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ExecOrderActionRef=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ExecOrderActionRef_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ExecOrderActionRef", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ExecOrderActionRef_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ExecOrderRef=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ExecOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ExecOrderRef", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ExecOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ExecOrderSysID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ExecOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ExecOrderSysID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ExecOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ActionDate=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ActionDate_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ActionDate", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ActionDate_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ActionTime=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ActionTime_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ActionTime", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ActionTime_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ExecOrderLocalID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ExecOrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ExecOrderLocalID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ExecOrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ActionLocalID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ActionLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ActionLocalID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ActionLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "OrderActionStatus=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_OrderActionStatus_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "OrderActionStatus", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_OrderActionStatus_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ActionType=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ActionType_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "ActionType", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_ActionType_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "StatusMsg=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_StatusMsg_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "StatusMsg", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_StatusMsg_get), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcExecOrderActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcExecOrderActionField_InstrumentID_get), -1); SwigClassCThostFtdcExecOrderActionField.mark = 0; SwigClassCThostFtdcExecOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcExecOrderActionField; SwigClassCThostFtdcExecOrderActionField.trackObjects = 0; SwigClassCThostFtdcQryExecOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExecOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExecOrderField, (void *) &SwigClassCThostFtdcQryExecOrderField); rb_define_alloc_func(SwigClassCThostFtdcQryExecOrderField.klass, _wrap_CThostFtdcQryExecOrderField_allocate); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExecOrderField), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "ExecOrderSysID=", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_ExecOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "ExecOrderSysID", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_ExecOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "InsertTimeStart=", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_InsertTimeStart_set), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "InsertTimeStart", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_InsertTimeStart_get), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "InsertTimeEnd=", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_InsertTimeEnd_set), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderField.klass, "InsertTimeEnd", VALUEFUNC(_wrap_CThostFtdcQryExecOrderField_InsertTimeEnd_get), -1); SwigClassCThostFtdcQryExecOrderField.mark = 0; SwigClassCThostFtdcQryExecOrderField.destroy = (void (*)(void *)) free_CThostFtdcQryExecOrderField; SwigClassCThostFtdcQryExecOrderField.trackObjects = 0; SwigClassCThostFtdcExchangeExecOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeExecOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeExecOrderField, (void *) &SwigClassCThostFtdcExchangeExecOrderField); rb_define_alloc_func(SwigClassCThostFtdcExchangeExecOrderField.klass, _wrap_CThostFtdcExchangeExecOrderField_allocate); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeExecOrderField), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "OffsetFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_OffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "OffsetFlag", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_OffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ActionType=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ActionType_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ActionType", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ActionType_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "PosiDirection=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_PosiDirection_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "PosiDirection", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_PosiDirection_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ReservePositionFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ReservePositionFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ReservePositionFlag", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ReservePositionFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "CloseFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_CloseFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "CloseFlag", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_CloseFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ExecOrderLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ExecOrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ExecOrderLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ExecOrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "OrderSubmitStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_OrderSubmitStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "OrderSubmitStatus", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_OrderSubmitStatus_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "NotifySequence=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_NotifySequence_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "NotifySequence", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_NotifySequence_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ExecOrderSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ExecOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ExecOrderSysID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ExecOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "InsertDate=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_InsertDate_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "InsertDate", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_InsertDate_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "InsertTime=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_InsertTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "InsertTime", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_InsertTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "CancelTime=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_CancelTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "CancelTime", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_CancelTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ExecResult=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ExecResult_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ExecResult", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ExecResult_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ClearingPartID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ClearingPartID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "ClearingPartID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_ClearingPartID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderField_SequenceNo_get), -1); SwigClassCThostFtdcExchangeExecOrderField.mark = 0; SwigClassCThostFtdcExchangeExecOrderField.destroy = (void (*)(void *)) free_CThostFtdcExchangeExecOrderField; SwigClassCThostFtdcExchangeExecOrderField.trackObjects = 0; SwigClassCThostFtdcQryExchangeExecOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeExecOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeExecOrderField, (void *) &SwigClassCThostFtdcQryExchangeExecOrderField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeExecOrderField.klass, _wrap_CThostFtdcQryExchangeExecOrderField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeExecOrderField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderField_TraderID_get), -1); SwigClassCThostFtdcQryExchangeExecOrderField.mark = 0; SwigClassCThostFtdcQryExchangeExecOrderField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeExecOrderField; SwigClassCThostFtdcQryExchangeExecOrderField.trackObjects = 0; SwigClassCThostFtdcQryExecOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExecOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExecOrderActionField, (void *) &SwigClassCThostFtdcQryExecOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcQryExecOrderActionField.klass, _wrap_CThostFtdcQryExecOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcQryExecOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExecOrderActionField), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryExecOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryExecOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryExecOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryExecOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExecOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExecOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExecOrderActionField_ExchangeID_get), -1); SwigClassCThostFtdcQryExecOrderActionField.mark = 0; SwigClassCThostFtdcQryExecOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcQryExecOrderActionField; SwigClassCThostFtdcQryExecOrderActionField.trackObjects = 0; SwigClassCThostFtdcExchangeExecOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeExecOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeExecOrderActionField, (void *) &SwigClassCThostFtdcExchangeExecOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcExchangeExecOrderActionField.klass, _wrap_CThostFtdcExchangeExecOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeExecOrderActionField), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ExecOrderSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ExecOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ExecOrderSysID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ExecOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ActionDate=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ActionDate_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ActionDate", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ActionDate_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ActionTime=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ActionTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ActionTime", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ActionTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ExecOrderLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ExecOrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ExecOrderLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ExecOrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ActionLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ActionLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ActionLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ActionLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "OrderActionStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_OrderActionStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "OrderActionStatus", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_OrderActionStatus_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ActionType=", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ActionType_set), -1); rb_define_method(SwigClassCThostFtdcExchangeExecOrderActionField.klass, "ActionType", VALUEFUNC(_wrap_CThostFtdcExchangeExecOrderActionField_ActionType_get), -1); SwigClassCThostFtdcExchangeExecOrderActionField.mark = 0; SwigClassCThostFtdcExchangeExecOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcExchangeExecOrderActionField; SwigClassCThostFtdcExchangeExecOrderActionField.trackObjects = 0; SwigClassCThostFtdcQryExchangeExecOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeExecOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeExecOrderActionField, (void *) &SwigClassCThostFtdcQryExchangeExecOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeExecOrderActionField.klass, _wrap_CThostFtdcQryExchangeExecOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeExecOrderActionField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeExecOrderActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryExchangeExecOrderActionField_TraderID_get), -1); SwigClassCThostFtdcQryExchangeExecOrderActionField.mark = 0; SwigClassCThostFtdcQryExchangeExecOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeExecOrderActionField; SwigClassCThostFtdcQryExchangeExecOrderActionField.trackObjects = 0; SwigClassCThostFtdcErrExecOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcErrExecOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcErrExecOrderField, (void *) &SwigClassCThostFtdcErrExecOrderField); rb_define_alloc_func(SwigClassCThostFtdcErrExecOrderField.klass, _wrap_CThostFtdcErrExecOrderField_allocate); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcErrExecOrderField), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "ExecOrderRef=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_ExecOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "ExecOrderRef", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_ExecOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "OffsetFlag=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_OffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "OffsetFlag", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_OffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "ActionType=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_ActionType_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "ActionType", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_ActionType_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "PosiDirection=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_PosiDirection_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "PosiDirection", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_PosiDirection_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "ReservePositionFlag=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_ReservePositionFlag_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "ReservePositionFlag", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_ReservePositionFlag_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "CloseFlag=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_CloseFlag_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "CloseFlag", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_CloseFlag_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcErrExecOrderField_ErrorMsg_get), -1); SwigClassCThostFtdcErrExecOrderField.mark = 0; SwigClassCThostFtdcErrExecOrderField.destroy = (void (*)(void *)) free_CThostFtdcErrExecOrderField; SwigClassCThostFtdcErrExecOrderField.trackObjects = 0; SwigClassCThostFtdcQryErrExecOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcQryErrExecOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryErrExecOrderField, (void *) &SwigClassCThostFtdcQryErrExecOrderField); rb_define_alloc_func(SwigClassCThostFtdcQryErrExecOrderField.klass, _wrap_CThostFtdcQryErrExecOrderField_allocate); rb_define_method(SwigClassCThostFtdcQryErrExecOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryErrExecOrderField), -1); rb_define_method(SwigClassCThostFtdcQryErrExecOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryErrExecOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryErrExecOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryErrExecOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryErrExecOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryErrExecOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryErrExecOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryErrExecOrderField_InvestorID_get), -1); SwigClassCThostFtdcQryErrExecOrderField.mark = 0; SwigClassCThostFtdcQryErrExecOrderField.destroy = (void (*)(void *)) free_CThostFtdcQryErrExecOrderField; SwigClassCThostFtdcQryErrExecOrderField.trackObjects = 0; SwigClassCThostFtdcErrExecOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcErrExecOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcErrExecOrderActionField, (void *) &SwigClassCThostFtdcErrExecOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcErrExecOrderActionField.klass, _wrap_CThostFtdcErrExecOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcErrExecOrderActionField), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ExecOrderActionRef=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ExecOrderActionRef_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ExecOrderActionRef", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ExecOrderActionRef_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ExecOrderRef=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ExecOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ExecOrderRef", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ExecOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ExecOrderSysID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ExecOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ExecOrderSysID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ExecOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcErrExecOrderActionField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcErrExecOrderActionField_ErrorMsg_get), -1); SwigClassCThostFtdcErrExecOrderActionField.mark = 0; SwigClassCThostFtdcErrExecOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcErrExecOrderActionField; SwigClassCThostFtdcErrExecOrderActionField.trackObjects = 0; SwigClassCThostFtdcQryErrExecOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryErrExecOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryErrExecOrderActionField, (void *) &SwigClassCThostFtdcQryErrExecOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcQryErrExecOrderActionField.klass, _wrap_CThostFtdcQryErrExecOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcQryErrExecOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryErrExecOrderActionField), -1); rb_define_method(SwigClassCThostFtdcQryErrExecOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryErrExecOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryErrExecOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryErrExecOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryErrExecOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryErrExecOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryErrExecOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryErrExecOrderActionField_InvestorID_get), -1); SwigClassCThostFtdcQryErrExecOrderActionField.mark = 0; SwigClassCThostFtdcQryErrExecOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcQryErrExecOrderActionField; SwigClassCThostFtdcQryErrExecOrderActionField.trackObjects = 0; SwigClassCThostFtdcOptionInstrTradingRightField.klass = rb_define_class_under(mCtp, "CThostFtdcOptionInstrTradingRightField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcOptionInstrTradingRightField, (void *) &SwigClassCThostFtdcOptionInstrTradingRightField); rb_define_alloc_func(SwigClassCThostFtdcOptionInstrTradingRightField.klass, _wrap_CThostFtdcOptionInstrTradingRightField_allocate); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcOptionInstrTradingRightField), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "TradingRight=", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_TradingRight_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrTradingRightField.klass, "TradingRight", VALUEFUNC(_wrap_CThostFtdcOptionInstrTradingRightField_TradingRight_get), -1); SwigClassCThostFtdcOptionInstrTradingRightField.mark = 0; SwigClassCThostFtdcOptionInstrTradingRightField.destroy = (void (*)(void *)) free_CThostFtdcOptionInstrTradingRightField; SwigClassCThostFtdcOptionInstrTradingRightField.trackObjects = 0; SwigClassCThostFtdcQryOptionInstrTradingRightField.klass = rb_define_class_under(mCtp, "CThostFtdcQryOptionInstrTradingRightField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryOptionInstrTradingRightField, (void *) &SwigClassCThostFtdcQryOptionInstrTradingRightField); rb_define_alloc_func(SwigClassCThostFtdcQryOptionInstrTradingRightField.klass, _wrap_CThostFtdcQryOptionInstrTradingRightField_allocate); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradingRightField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryOptionInstrTradingRightField), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradingRightField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradingRightField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradingRightField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradingRightField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradingRightField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradingRightField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradingRightField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradingRightField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradingRightField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradingRightField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradingRightField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradingRightField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradingRightField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradingRightField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcQryOptionInstrTradingRightField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcQryOptionInstrTradingRightField_Direction_get), -1); SwigClassCThostFtdcQryOptionInstrTradingRightField.mark = 0; SwigClassCThostFtdcQryOptionInstrTradingRightField.destroy = (void (*)(void *)) free_CThostFtdcQryOptionInstrTradingRightField; SwigClassCThostFtdcQryOptionInstrTradingRightField.trackObjects = 0; SwigClassCThostFtdcInputForQuoteField.klass = rb_define_class_under(mCtp, "CThostFtdcInputForQuoteField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInputForQuoteField, (void *) &SwigClassCThostFtdcInputForQuoteField); rb_define_alloc_func(SwigClassCThostFtdcInputForQuoteField.klass, _wrap_CThostFtdcInputForQuoteField_allocate); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInputForQuoteField), -1); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInputForQuoteField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInputForQuoteField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInputForQuoteField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInputForQuoteField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInputForQuoteField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInputForQuoteField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "ForQuoteRef=", VALUEFUNC(_wrap_CThostFtdcInputForQuoteField_ForQuoteRef_set), -1); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "ForQuoteRef", VALUEFUNC(_wrap_CThostFtdcInputForQuoteField_ForQuoteRef_get), -1); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcInputForQuoteField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcInputForQuoteField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcInputForQuoteField_UserID_get), -1); SwigClassCThostFtdcInputForQuoteField.mark = 0; SwigClassCThostFtdcInputForQuoteField.destroy = (void (*)(void *)) free_CThostFtdcInputForQuoteField; SwigClassCThostFtdcInputForQuoteField.trackObjects = 0; SwigClassCThostFtdcForQuoteField.klass = rb_define_class_under(mCtp, "CThostFtdcForQuoteField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcForQuoteField, (void *) &SwigClassCThostFtdcForQuoteField); rb_define_alloc_func(SwigClassCThostFtdcForQuoteField.klass, _wrap_CThostFtdcForQuoteField_allocate); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcForQuoteField), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ForQuoteRef=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ForQuoteRef_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ForQuoteRef", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ForQuoteRef_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ForQuoteLocalID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ForQuoteLocalID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ForQuoteLocalID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ForQuoteLocalID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "InsertDate=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_InsertDate_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "InsertDate", VALUEFUNC(_wrap_CThostFtdcForQuoteField_InsertDate_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "InsertTime=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_InsertTime_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "InsertTime", VALUEFUNC(_wrap_CThostFtdcForQuoteField_InsertTime_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ForQuoteStatus=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ForQuoteStatus_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ForQuoteStatus", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ForQuoteStatus_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "StatusMsg=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_StatusMsg_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "StatusMsg", VALUEFUNC(_wrap_CThostFtdcForQuoteField_StatusMsg_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ActiveUserID=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ActiveUserID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "ActiveUserID", VALUEFUNC(_wrap_CThostFtdcForQuoteField_ActiveUserID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "BrokerForQutoSeq=", VALUEFUNC(_wrap_CThostFtdcForQuoteField_BrokerForQutoSeq_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteField.klass, "BrokerForQutoSeq", VALUEFUNC(_wrap_CThostFtdcForQuoteField_BrokerForQutoSeq_get), -1); SwigClassCThostFtdcForQuoteField.mark = 0; SwigClassCThostFtdcForQuoteField.destroy = (void (*)(void *)) free_CThostFtdcForQuoteField; SwigClassCThostFtdcForQuoteField.trackObjects = 0; SwigClassCThostFtdcQryForQuoteField.klass = rb_define_class_under(mCtp, "CThostFtdcQryForQuoteField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryForQuoteField, (void *) &SwigClassCThostFtdcQryForQuoteField); rb_define_alloc_func(SwigClassCThostFtdcQryForQuoteField.klass, _wrap_CThostFtdcQryForQuoteField_allocate); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryForQuoteField), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "InsertTimeStart=", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_InsertTimeStart_set), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "InsertTimeStart", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_InsertTimeStart_get), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "InsertTimeEnd=", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_InsertTimeEnd_set), -1); rb_define_method(SwigClassCThostFtdcQryForQuoteField.klass, "InsertTimeEnd", VALUEFUNC(_wrap_CThostFtdcQryForQuoteField_InsertTimeEnd_get), -1); SwigClassCThostFtdcQryForQuoteField.mark = 0; SwigClassCThostFtdcQryForQuoteField.destroy = (void (*)(void *)) free_CThostFtdcQryForQuoteField; SwigClassCThostFtdcQryForQuoteField.trackObjects = 0; SwigClassCThostFtdcExchangeForQuoteField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeForQuoteField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeForQuoteField, (void *) &SwigClassCThostFtdcExchangeForQuoteField); rb_define_alloc_func(SwigClassCThostFtdcExchangeForQuoteField.klass, _wrap_CThostFtdcExchangeForQuoteField_allocate); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeForQuoteField), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ForQuoteLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ForQuoteLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ForQuoteLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ForQuoteLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "InsertDate=", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_InsertDate_set), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "InsertDate", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_InsertDate_get), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "InsertTime=", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_InsertTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "InsertTime", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_InsertTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ForQuoteStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ForQuoteStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeForQuoteField.klass, "ForQuoteStatus", VALUEFUNC(_wrap_CThostFtdcExchangeForQuoteField_ForQuoteStatus_get), -1); SwigClassCThostFtdcExchangeForQuoteField.mark = 0; SwigClassCThostFtdcExchangeForQuoteField.destroy = (void (*)(void *)) free_CThostFtdcExchangeForQuoteField; SwigClassCThostFtdcExchangeForQuoteField.trackObjects = 0; SwigClassCThostFtdcQryExchangeForQuoteField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeForQuoteField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeForQuoteField, (void *) &SwigClassCThostFtdcQryExchangeForQuoteField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeForQuoteField.klass, _wrap_CThostFtdcQryExchangeForQuoteField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeForQuoteField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeForQuoteField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryExchangeForQuoteField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeForQuoteField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQryExchangeForQuoteField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeForQuoteField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcQryExchangeForQuoteField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeForQuoteField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExchangeForQuoteField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeForQuoteField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeForQuoteField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryExchangeForQuoteField_TraderID_get), -1); SwigClassCThostFtdcQryExchangeForQuoteField.mark = 0; SwigClassCThostFtdcQryExchangeForQuoteField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeForQuoteField; SwigClassCThostFtdcQryExchangeForQuoteField.trackObjects = 0; SwigClassCThostFtdcInputQuoteField.klass = rb_define_class_under(mCtp, "CThostFtdcInputQuoteField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInputQuoteField, (void *) &SwigClassCThostFtdcInputQuoteField); rb_define_alloc_func(SwigClassCThostFtdcInputQuoteField.klass, _wrap_CThostFtdcInputQuoteField_allocate); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInputQuoteField), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "QuoteRef=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_QuoteRef_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "QuoteRef", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_QuoteRef_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "AskPrice=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_AskPrice_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "AskPrice", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_AskPrice_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BidPrice=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BidPrice_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BidPrice", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BidPrice_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "AskVolume=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_AskVolume_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "AskVolume", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_AskVolume_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BidVolume=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BidVolume_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BidVolume", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BidVolume_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "AskOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_AskOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "AskOffsetFlag", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_AskOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BidOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BidOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BidOffsetFlag", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BidOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "AskHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_AskHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "AskHedgeFlag", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_AskHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BidHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BidHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BidHedgeFlag", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BidHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "AskOrderRef=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_AskOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "AskOrderRef", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_AskOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BidOrderRef=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BidOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "BidOrderRef", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_BidOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "ForQuoteSysID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_ForQuoteSysID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteField.klass, "ForQuoteSysID", VALUEFUNC(_wrap_CThostFtdcInputQuoteField_ForQuoteSysID_get), -1); SwigClassCThostFtdcInputQuoteField.mark = 0; SwigClassCThostFtdcInputQuoteField.destroy = (void (*)(void *)) free_CThostFtdcInputQuoteField; SwigClassCThostFtdcInputQuoteField.trackObjects = 0; SwigClassCThostFtdcInputQuoteActionField.klass = rb_define_class_under(mCtp, "CThostFtdcInputQuoteActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInputQuoteActionField, (void *) &SwigClassCThostFtdcInputQuoteActionField); rb_define_alloc_func(SwigClassCThostFtdcInputQuoteActionField.klass, _wrap_CThostFtdcInputQuoteActionField_allocate); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInputQuoteActionField), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "QuoteActionRef=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_QuoteActionRef_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "QuoteActionRef", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_QuoteActionRef_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "QuoteRef=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_QuoteRef_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "QuoteRef", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_QuoteRef_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "QuoteSysID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_QuoteSysID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "QuoteSysID", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_QuoteSysID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInputQuoteActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInputQuoteActionField_InstrumentID_get), -1); SwigClassCThostFtdcInputQuoteActionField.mark = 0; SwigClassCThostFtdcInputQuoteActionField.destroy = (void (*)(void *)) free_CThostFtdcInputQuoteActionField; SwigClassCThostFtdcInputQuoteActionField.trackObjects = 0; SwigClassCThostFtdcQuoteField.klass = rb_define_class_under(mCtp, "CThostFtdcQuoteField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQuoteField, (void *) &SwigClassCThostFtdcQuoteField); rb_define_alloc_func(SwigClassCThostFtdcQuoteField.klass, _wrap_CThostFtdcQuoteField_allocate); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQuoteField), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQuoteField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQuoteField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQuoteField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "QuoteRef=", VALUEFUNC(_wrap_CThostFtdcQuoteField_QuoteRef_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "QuoteRef", VALUEFUNC(_wrap_CThostFtdcQuoteField_QuoteRef_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcQuoteField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskPrice=", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskPrice_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskPrice", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskPrice_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidPrice=", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidPrice_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidPrice", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidPrice_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskVolume=", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskVolume_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskVolume", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskVolume_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidVolume=", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidVolume_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidVolume", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidVolume_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcQuoteField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcQuoteField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcQuoteField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskOffsetFlag", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidOffsetFlag", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskHedgeFlag", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidHedgeFlag", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "QuoteLocalID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_QuoteLocalID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "QuoteLocalID", VALUEFUNC(_wrap_CThostFtdcQuoteField_QuoteLocalID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQuoteField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQuoteField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQuoteField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcQuoteField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQuoteField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcQuoteField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "NotifySequence=", VALUEFUNC(_wrap_CThostFtdcQuoteField_NotifySequence_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "NotifySequence", VALUEFUNC(_wrap_CThostFtdcQuoteField_NotifySequence_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "OrderSubmitStatus=", VALUEFUNC(_wrap_CThostFtdcQuoteField_OrderSubmitStatus_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "OrderSubmitStatus", VALUEFUNC(_wrap_CThostFtdcQuoteField_OrderSubmitStatus_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcQuoteField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcQuoteField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcQuoteField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "QuoteSysID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_QuoteSysID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "QuoteSysID", VALUEFUNC(_wrap_CThostFtdcQuoteField_QuoteSysID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "InsertDate=", VALUEFUNC(_wrap_CThostFtdcQuoteField_InsertDate_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "InsertDate", VALUEFUNC(_wrap_CThostFtdcQuoteField_InsertDate_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "InsertTime=", VALUEFUNC(_wrap_CThostFtdcQuoteField_InsertTime_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "InsertTime", VALUEFUNC(_wrap_CThostFtdcQuoteField_InsertTime_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "CancelTime=", VALUEFUNC(_wrap_CThostFtdcQuoteField_CancelTime_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "CancelTime", VALUEFUNC(_wrap_CThostFtdcQuoteField_CancelTime_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "QuoteStatus=", VALUEFUNC(_wrap_CThostFtdcQuoteField_QuoteStatus_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "QuoteStatus", VALUEFUNC(_wrap_CThostFtdcQuoteField_QuoteStatus_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ClearingPartID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_ClearingPartID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ClearingPartID", VALUEFUNC(_wrap_CThostFtdcQuoteField_ClearingPartID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcQuoteField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcQuoteField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskOrderSysID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskOrderSysID", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidOrderSysID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidOrderSysID", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcQuoteField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcQuoteField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcQuoteField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcQuoteField_UserProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "StatusMsg=", VALUEFUNC(_wrap_CThostFtdcQuoteField_StatusMsg_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "StatusMsg", VALUEFUNC(_wrap_CThostFtdcQuoteField_StatusMsg_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ActiveUserID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_ActiveUserID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ActiveUserID", VALUEFUNC(_wrap_CThostFtdcQuoteField_ActiveUserID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BrokerQuoteSeq=", VALUEFUNC(_wrap_CThostFtdcQuoteField_BrokerQuoteSeq_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BrokerQuoteSeq", VALUEFUNC(_wrap_CThostFtdcQuoteField_BrokerQuoteSeq_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskOrderRef=", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "AskOrderRef", VALUEFUNC(_wrap_CThostFtdcQuoteField_AskOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidOrderRef=", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidOrderRef_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "BidOrderRef", VALUEFUNC(_wrap_CThostFtdcQuoteField_BidOrderRef_get), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ForQuoteSysID=", VALUEFUNC(_wrap_CThostFtdcQuoteField_ForQuoteSysID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteField.klass, "ForQuoteSysID", VALUEFUNC(_wrap_CThostFtdcQuoteField_ForQuoteSysID_get), -1); SwigClassCThostFtdcQuoteField.mark = 0; SwigClassCThostFtdcQuoteField.destroy = (void (*)(void *)) free_CThostFtdcQuoteField; SwigClassCThostFtdcQuoteField.trackObjects = 0; SwigClassCThostFtdcQuoteActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQuoteActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQuoteActionField, (void *) &SwigClassCThostFtdcQuoteActionField); rb_define_alloc_func(SwigClassCThostFtdcQuoteActionField.klass, _wrap_CThostFtdcQuoteActionField_allocate); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQuoteActionField), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "QuoteActionRef=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_QuoteActionRef_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "QuoteActionRef", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_QuoteActionRef_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "QuoteRef=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_QuoteRef_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "QuoteRef", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_QuoteRef_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "QuoteSysID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_QuoteSysID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "QuoteSysID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_QuoteSysID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ActionDate=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ActionDate_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ActionDate", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ActionDate_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ActionTime=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ActionTime_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ActionTime", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ActionTime_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "QuoteLocalID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_QuoteLocalID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "QuoteLocalID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_QuoteLocalID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ActionLocalID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ActionLocalID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ActionLocalID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ActionLocalID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "OrderActionStatus=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_OrderActionStatus_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "OrderActionStatus", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_OrderActionStatus_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "StatusMsg=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_StatusMsg_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "StatusMsg", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_StatusMsg_get), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQuoteActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQuoteActionField_InstrumentID_get), -1); SwigClassCThostFtdcQuoteActionField.mark = 0; SwigClassCThostFtdcQuoteActionField.destroy = (void (*)(void *)) free_CThostFtdcQuoteActionField; SwigClassCThostFtdcQuoteActionField.trackObjects = 0; SwigClassCThostFtdcQryQuoteField.klass = rb_define_class_under(mCtp, "CThostFtdcQryQuoteField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryQuoteField, (void *) &SwigClassCThostFtdcQryQuoteField); rb_define_alloc_func(SwigClassCThostFtdcQryQuoteField.klass, _wrap_CThostFtdcQryQuoteField_allocate); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryQuoteField), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "QuoteSysID=", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_QuoteSysID_set), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "QuoteSysID", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_QuoteSysID_get), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "InsertTimeStart=", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_InsertTimeStart_set), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "InsertTimeStart", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_InsertTimeStart_get), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "InsertTimeEnd=", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_InsertTimeEnd_set), -1); rb_define_method(SwigClassCThostFtdcQryQuoteField.klass, "InsertTimeEnd", VALUEFUNC(_wrap_CThostFtdcQryQuoteField_InsertTimeEnd_get), -1); SwigClassCThostFtdcQryQuoteField.mark = 0; SwigClassCThostFtdcQryQuoteField.destroy = (void (*)(void *)) free_CThostFtdcQryQuoteField; SwigClassCThostFtdcQryQuoteField.trackObjects = 0; SwigClassCThostFtdcExchangeQuoteField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeQuoteField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeQuoteField, (void *) &SwigClassCThostFtdcExchangeQuoteField); rb_define_alloc_func(SwigClassCThostFtdcExchangeQuoteField.klass, _wrap_CThostFtdcExchangeQuoteField_allocate); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeQuoteField), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "AskPrice=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_AskPrice_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "AskPrice", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_AskPrice_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BidPrice=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BidPrice_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BidPrice", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BidPrice_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "AskVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_AskVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "AskVolume", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_AskVolume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BidVolume=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BidVolume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BidVolume", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BidVolume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "AskOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_AskOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "AskOffsetFlag", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_AskOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BidOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BidOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BidOffsetFlag", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BidOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "AskHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_AskHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "AskHedgeFlag", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_AskHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BidHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BidHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BidHedgeFlag", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BidHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "QuoteLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_QuoteLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "QuoteLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_QuoteLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "NotifySequence=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_NotifySequence_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "NotifySequence", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_NotifySequence_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "OrderSubmitStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_OrderSubmitStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "OrderSubmitStatus", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_OrderSubmitStatus_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "QuoteSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_QuoteSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "QuoteSysID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_QuoteSysID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "InsertDate=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_InsertDate_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "InsertDate", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_InsertDate_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "InsertTime=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_InsertTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "InsertTime", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_InsertTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "CancelTime=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_CancelTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "CancelTime", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_CancelTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "QuoteStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_QuoteStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "QuoteStatus", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_QuoteStatus_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ClearingPartID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ClearingPartID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ClearingPartID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ClearingPartID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "AskOrderSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_AskOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "AskOrderSysID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_AskOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BidOrderSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BidOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "BidOrderSysID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_BidOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ForQuoteSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ForQuoteSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteField.klass, "ForQuoteSysID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteField_ForQuoteSysID_get), -1); SwigClassCThostFtdcExchangeQuoteField.mark = 0; SwigClassCThostFtdcExchangeQuoteField.destroy = (void (*)(void *)) free_CThostFtdcExchangeQuoteField; SwigClassCThostFtdcExchangeQuoteField.trackObjects = 0; SwigClassCThostFtdcQryExchangeQuoteField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeQuoteField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeQuoteField, (void *) &SwigClassCThostFtdcQryExchangeQuoteField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeQuoteField.klass, _wrap_CThostFtdcQryExchangeQuoteField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeQuoteField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteField_TraderID_get), -1); SwigClassCThostFtdcQryExchangeQuoteField.mark = 0; SwigClassCThostFtdcQryExchangeQuoteField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeQuoteField; SwigClassCThostFtdcQryExchangeQuoteField.trackObjects = 0; SwigClassCThostFtdcQryQuoteActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryQuoteActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryQuoteActionField, (void *) &SwigClassCThostFtdcQryQuoteActionField); rb_define_alloc_func(SwigClassCThostFtdcQryQuoteActionField.klass, _wrap_CThostFtdcQryQuoteActionField_allocate); rb_define_method(SwigClassCThostFtdcQryQuoteActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryQuoteActionField), -1); rb_define_method(SwigClassCThostFtdcQryQuoteActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryQuoteActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryQuoteActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryQuoteActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryQuoteActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryQuoteActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryQuoteActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryQuoteActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryQuoteActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryQuoteActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryQuoteActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryQuoteActionField_ExchangeID_get), -1); SwigClassCThostFtdcQryQuoteActionField.mark = 0; SwigClassCThostFtdcQryQuoteActionField.destroy = (void (*)(void *)) free_CThostFtdcQryQuoteActionField; SwigClassCThostFtdcQryQuoteActionField.trackObjects = 0; SwigClassCThostFtdcExchangeQuoteActionField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeQuoteActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeQuoteActionField, (void *) &SwigClassCThostFtdcExchangeQuoteActionField); rb_define_alloc_func(SwigClassCThostFtdcExchangeQuoteActionField.klass, _wrap_CThostFtdcExchangeQuoteActionField_allocate); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeQuoteActionField), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "QuoteSysID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_QuoteSysID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "QuoteSysID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_QuoteSysID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ActionDate=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ActionDate_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ActionDate", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ActionDate_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ActionTime=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ActionTime_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ActionTime", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ActionTime_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "QuoteLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_QuoteLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "QuoteLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_QuoteLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ActionLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ActionLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ActionLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ActionLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "OrderActionStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_OrderActionStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "OrderActionStatus", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_OrderActionStatus_get), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeQuoteActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcExchangeQuoteActionField_UserID_get), -1); SwigClassCThostFtdcExchangeQuoteActionField.mark = 0; SwigClassCThostFtdcExchangeQuoteActionField.destroy = (void (*)(void *)) free_CThostFtdcExchangeQuoteActionField; SwigClassCThostFtdcExchangeQuoteActionField.trackObjects = 0; SwigClassCThostFtdcQryExchangeQuoteActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeQuoteActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeQuoteActionField, (void *) &SwigClassCThostFtdcQryExchangeQuoteActionField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeQuoteActionField.klass, _wrap_CThostFtdcQryExchangeQuoteActionField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeQuoteActionField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeQuoteActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryExchangeQuoteActionField_TraderID_get), -1); SwigClassCThostFtdcQryExchangeQuoteActionField.mark = 0; SwigClassCThostFtdcQryExchangeQuoteActionField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeQuoteActionField; SwigClassCThostFtdcQryExchangeQuoteActionField.trackObjects = 0; SwigClassCThostFtdcOptionInstrDeltaField.klass = rb_define_class_under(mCtp, "CThostFtdcOptionInstrDeltaField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcOptionInstrDeltaField, (void *) &SwigClassCThostFtdcOptionInstrDeltaField); rb_define_alloc_func(SwigClassCThostFtdcOptionInstrDeltaField.klass, _wrap_CThostFtdcOptionInstrDeltaField_allocate); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcOptionInstrDeltaField), -1); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrDeltaField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcOptionInstrDeltaField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcOptionInstrDeltaField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcOptionInstrDeltaField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrDeltaField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcOptionInstrDeltaField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcOptionInstrDeltaField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcOptionInstrDeltaField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "Delta=", VALUEFUNC(_wrap_CThostFtdcOptionInstrDeltaField_Delta_set), -1); rb_define_method(SwigClassCThostFtdcOptionInstrDeltaField.klass, "Delta", VALUEFUNC(_wrap_CThostFtdcOptionInstrDeltaField_Delta_get), -1); SwigClassCThostFtdcOptionInstrDeltaField.mark = 0; SwigClassCThostFtdcOptionInstrDeltaField.destroy = (void (*)(void *)) free_CThostFtdcOptionInstrDeltaField; SwigClassCThostFtdcOptionInstrDeltaField.trackObjects = 0; SwigClassCThostFtdcForQuoteRspField.klass = rb_define_class_under(mCtp, "CThostFtdcForQuoteRspField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcForQuoteRspField, (void *) &SwigClassCThostFtdcForQuoteRspField); rb_define_alloc_func(SwigClassCThostFtdcForQuoteRspField.klass, _wrap_CThostFtdcForQuoteRspField_allocate); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcForQuoteRspField), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "ForQuoteSysID=", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_ForQuoteSysID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "ForQuoteSysID", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_ForQuoteSysID_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "ForQuoteTime=", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_ForQuoteTime_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "ForQuoteTime", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_ForQuoteTime_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "ActionDay=", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_ActionDay_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "ActionDay", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_ActionDay_get), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcForQuoteRspField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcForQuoteRspField_ExchangeID_get), -1); SwigClassCThostFtdcForQuoteRspField.mark = 0; SwigClassCThostFtdcForQuoteRspField.destroy = (void (*)(void *)) free_CThostFtdcForQuoteRspField; SwigClassCThostFtdcForQuoteRspField.trackObjects = 0; SwigClassCThostFtdcStrikeOffsetField.klass = rb_define_class_under(mCtp, "CThostFtdcStrikeOffsetField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcStrikeOffsetField, (void *) &SwigClassCThostFtdcStrikeOffsetField); rb_define_alloc_func(SwigClassCThostFtdcStrikeOffsetField.klass, _wrap_CThostFtdcStrikeOffsetField_allocate); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcStrikeOffsetField), -1); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcStrikeOffsetField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcStrikeOffsetField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcStrikeOffsetField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcStrikeOffsetField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcStrikeOffsetField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcStrikeOffsetField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcStrikeOffsetField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcStrikeOffsetField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "Offset=", VALUEFUNC(_wrap_CThostFtdcStrikeOffsetField_Offset_set), -1); rb_define_method(SwigClassCThostFtdcStrikeOffsetField.klass, "Offset", VALUEFUNC(_wrap_CThostFtdcStrikeOffsetField_Offset_get), -1); SwigClassCThostFtdcStrikeOffsetField.mark = 0; SwigClassCThostFtdcStrikeOffsetField.destroy = (void (*)(void *)) free_CThostFtdcStrikeOffsetField; SwigClassCThostFtdcStrikeOffsetField.trackObjects = 0; SwigClassCThostFtdcQryStrikeOffsetField.klass = rb_define_class_under(mCtp, "CThostFtdcQryStrikeOffsetField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryStrikeOffsetField, (void *) &SwigClassCThostFtdcQryStrikeOffsetField); rb_define_alloc_func(SwigClassCThostFtdcQryStrikeOffsetField.klass, _wrap_CThostFtdcQryStrikeOffsetField_allocate); rb_define_method(SwigClassCThostFtdcQryStrikeOffsetField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryStrikeOffsetField), -1); rb_define_method(SwigClassCThostFtdcQryStrikeOffsetField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryStrikeOffsetField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryStrikeOffsetField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryStrikeOffsetField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryStrikeOffsetField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryStrikeOffsetField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryStrikeOffsetField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryStrikeOffsetField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryStrikeOffsetField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryStrikeOffsetField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryStrikeOffsetField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryStrikeOffsetField_InstrumentID_get), -1); SwigClassCThostFtdcQryStrikeOffsetField.mark = 0; SwigClassCThostFtdcQryStrikeOffsetField.destroy = (void (*)(void *)) free_CThostFtdcQryStrikeOffsetField; SwigClassCThostFtdcQryStrikeOffsetField.trackObjects = 0; SwigClassCThostFtdcCombInstrumentGuardField.klass = rb_define_class_under(mCtp, "CThostFtdcCombInstrumentGuardField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCombInstrumentGuardField, (void *) &SwigClassCThostFtdcCombInstrumentGuardField); rb_define_alloc_func(SwigClassCThostFtdcCombInstrumentGuardField.klass, _wrap_CThostFtdcCombInstrumentGuardField_allocate); rb_define_method(SwigClassCThostFtdcCombInstrumentGuardField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCombInstrumentGuardField), -1); rb_define_method(SwigClassCThostFtdcCombInstrumentGuardField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcCombInstrumentGuardField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcCombInstrumentGuardField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcCombInstrumentGuardField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcCombInstrumentGuardField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcCombInstrumentGuardField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcCombInstrumentGuardField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcCombInstrumentGuardField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcCombInstrumentGuardField.klass, "GuarantRatio=", VALUEFUNC(_wrap_CThostFtdcCombInstrumentGuardField_GuarantRatio_set), -1); rb_define_method(SwigClassCThostFtdcCombInstrumentGuardField.klass, "GuarantRatio", VALUEFUNC(_wrap_CThostFtdcCombInstrumentGuardField_GuarantRatio_get), -1); SwigClassCThostFtdcCombInstrumentGuardField.mark = 0; SwigClassCThostFtdcCombInstrumentGuardField.destroy = (void (*)(void *)) free_CThostFtdcCombInstrumentGuardField; SwigClassCThostFtdcCombInstrumentGuardField.trackObjects = 0; SwigClassCThostFtdcQryCombInstrumentGuardField.klass = rb_define_class_under(mCtp, "CThostFtdcQryCombInstrumentGuardField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryCombInstrumentGuardField, (void *) &SwigClassCThostFtdcQryCombInstrumentGuardField); rb_define_alloc_func(SwigClassCThostFtdcQryCombInstrumentGuardField.klass, _wrap_CThostFtdcQryCombInstrumentGuardField_allocate); rb_define_method(SwigClassCThostFtdcQryCombInstrumentGuardField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryCombInstrumentGuardField), -1); rb_define_method(SwigClassCThostFtdcQryCombInstrumentGuardField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryCombInstrumentGuardField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryCombInstrumentGuardField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryCombInstrumentGuardField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryCombInstrumentGuardField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryCombInstrumentGuardField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryCombInstrumentGuardField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryCombInstrumentGuardField_InstrumentID_get), -1); SwigClassCThostFtdcQryCombInstrumentGuardField.mark = 0; SwigClassCThostFtdcQryCombInstrumentGuardField.destroy = (void (*)(void *)) free_CThostFtdcQryCombInstrumentGuardField; SwigClassCThostFtdcQryCombInstrumentGuardField.trackObjects = 0; SwigClassCThostFtdcInputCombActionField.klass = rb_define_class_under(mCtp, "CThostFtdcInputCombActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInputCombActionField, (void *) &SwigClassCThostFtdcInputCombActionField); rb_define_alloc_func(SwigClassCThostFtdcInputCombActionField.klass, _wrap_CThostFtdcInputCombActionField_allocate); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInputCombActionField), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "CombActionRef=", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_CombActionRef_set), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "CombActionRef", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_CombActionRef_get), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "CombDirection=", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_CombDirection_set), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "CombDirection", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_CombDirection_get), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInputCombActionField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcInputCombActionField_HedgeFlag_get), -1); SwigClassCThostFtdcInputCombActionField.mark = 0; SwigClassCThostFtdcInputCombActionField.destroy = (void (*)(void *)) free_CThostFtdcInputCombActionField; SwigClassCThostFtdcInputCombActionField.trackObjects = 0; SwigClassCThostFtdcCombActionField.klass = rb_define_class_under(mCtp, "CThostFtdcCombActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCombActionField, (void *) &SwigClassCThostFtdcCombActionField); rb_define_alloc_func(SwigClassCThostFtdcCombActionField.klass, _wrap_CThostFtdcCombActionField_allocate); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCombActionField), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcCombActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcCombActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcCombActionField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "CombActionRef=", VALUEFUNC(_wrap_CThostFtdcCombActionField_CombActionRef_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "CombActionRef", VALUEFUNC(_wrap_CThostFtdcCombActionField_CombActionRef_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcCombActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcCombActionField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcCombActionField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcCombActionField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcCombActionField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "CombDirection=", VALUEFUNC(_wrap_CThostFtdcCombActionField_CombDirection_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "CombDirection", VALUEFUNC(_wrap_CThostFtdcCombActionField_CombDirection_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcCombActionField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcCombActionField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ActionLocalID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_ActionLocalID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ActionLocalID", VALUEFUNC(_wrap_CThostFtdcCombActionField_ActionLocalID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcCombActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcCombActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcCombActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcCombActionField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcCombActionField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcCombActionField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ActionStatus=", VALUEFUNC(_wrap_CThostFtdcCombActionField_ActionStatus_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "ActionStatus", VALUEFUNC(_wrap_CThostFtdcCombActionField_ActionStatus_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "NotifySequence=", VALUEFUNC(_wrap_CThostFtdcCombActionField_NotifySequence_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "NotifySequence", VALUEFUNC(_wrap_CThostFtdcCombActionField_NotifySequence_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcCombActionField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcCombActionField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcCombActionField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcCombActionField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcCombActionField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcCombActionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcCombActionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcCombActionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcCombActionField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcCombActionField_UserProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "StatusMsg=", VALUEFUNC(_wrap_CThostFtdcCombActionField_StatusMsg_set), -1); rb_define_method(SwigClassCThostFtdcCombActionField.klass, "StatusMsg", VALUEFUNC(_wrap_CThostFtdcCombActionField_StatusMsg_get), -1); SwigClassCThostFtdcCombActionField.mark = 0; SwigClassCThostFtdcCombActionField.destroy = (void (*)(void *)) free_CThostFtdcCombActionField; SwigClassCThostFtdcCombActionField.trackObjects = 0; SwigClassCThostFtdcQryCombActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryCombActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryCombActionField, (void *) &SwigClassCThostFtdcQryCombActionField); rb_define_alloc_func(SwigClassCThostFtdcQryCombActionField.klass, _wrap_CThostFtdcQryCombActionField_allocate); rb_define_method(SwigClassCThostFtdcQryCombActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryCombActionField), -1); rb_define_method(SwigClassCThostFtdcQryCombActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryCombActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryCombActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryCombActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryCombActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryCombActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryCombActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryCombActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryCombActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryCombActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryCombActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryCombActionField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryCombActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryCombActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryCombActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryCombActionField_ExchangeID_get), -1); SwigClassCThostFtdcQryCombActionField.mark = 0; SwigClassCThostFtdcQryCombActionField.destroy = (void (*)(void *)) free_CThostFtdcQryCombActionField; SwigClassCThostFtdcQryCombActionField.trackObjects = 0; SwigClassCThostFtdcExchangeCombActionField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeCombActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeCombActionField, (void *) &SwigClassCThostFtdcExchangeCombActionField); rb_define_alloc_func(SwigClassCThostFtdcExchangeCombActionField.klass, _wrap_CThostFtdcExchangeCombActionField_allocate); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeCombActionField), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "CombDirection=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_CombDirection_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "CombDirection", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_CombDirection_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ActionLocalID=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ActionLocalID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ActionLocalID", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ActionLocalID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ActionStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ActionStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "ActionStatus", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_ActionStatus_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "NotifySequence=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_NotifySequence_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "NotifySequence", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_NotifySequence_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcExchangeCombActionField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcExchangeCombActionField_SequenceNo_get), -1); SwigClassCThostFtdcExchangeCombActionField.mark = 0; SwigClassCThostFtdcExchangeCombActionField.destroy = (void (*)(void *)) free_CThostFtdcExchangeCombActionField; SwigClassCThostFtdcExchangeCombActionField.trackObjects = 0; SwigClassCThostFtdcQryExchangeCombActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeCombActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeCombActionField, (void *) &SwigClassCThostFtdcQryExchangeCombActionField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeCombActionField.klass, _wrap_CThostFtdcQryExchangeCombActionField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeCombActionField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeCombActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryExchangeCombActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeCombActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcQryExchangeCombActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeCombActionField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcQryExchangeCombActionField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeCombActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExchangeCombActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeCombActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeCombActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryExchangeCombActionField_TraderID_get), -1); SwigClassCThostFtdcQryExchangeCombActionField.mark = 0; SwigClassCThostFtdcQryExchangeCombActionField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeCombActionField; SwigClassCThostFtdcQryExchangeCombActionField.trackObjects = 0; SwigClassCThostFtdcProductExchRateField.klass = rb_define_class_under(mCtp, "CThostFtdcProductExchRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcProductExchRateField, (void *) &SwigClassCThostFtdcProductExchRateField); rb_define_alloc_func(SwigClassCThostFtdcProductExchRateField.klass, _wrap_CThostFtdcProductExchRateField_allocate); rb_define_method(SwigClassCThostFtdcProductExchRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcProductExchRateField), -1); rb_define_method(SwigClassCThostFtdcProductExchRateField.klass, "ProductID=", VALUEFUNC(_wrap_CThostFtdcProductExchRateField_ProductID_set), -1); rb_define_method(SwigClassCThostFtdcProductExchRateField.klass, "ProductID", VALUEFUNC(_wrap_CThostFtdcProductExchRateField_ProductID_get), -1); rb_define_method(SwigClassCThostFtdcProductExchRateField.klass, "QuoteCurrencyID=", VALUEFUNC(_wrap_CThostFtdcProductExchRateField_QuoteCurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcProductExchRateField.klass, "QuoteCurrencyID", VALUEFUNC(_wrap_CThostFtdcProductExchRateField_QuoteCurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcProductExchRateField.klass, "ExchangeRate=", VALUEFUNC(_wrap_CThostFtdcProductExchRateField_ExchangeRate_set), -1); rb_define_method(SwigClassCThostFtdcProductExchRateField.klass, "ExchangeRate", VALUEFUNC(_wrap_CThostFtdcProductExchRateField_ExchangeRate_get), -1); SwigClassCThostFtdcProductExchRateField.mark = 0; SwigClassCThostFtdcProductExchRateField.destroy = (void (*)(void *)) free_CThostFtdcProductExchRateField; SwigClassCThostFtdcProductExchRateField.trackObjects = 0; SwigClassCThostFtdcQryProductExchRateField.klass = rb_define_class_under(mCtp, "CThostFtdcQryProductExchRateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryProductExchRateField, (void *) &SwigClassCThostFtdcQryProductExchRateField); rb_define_alloc_func(SwigClassCThostFtdcQryProductExchRateField.klass, _wrap_CThostFtdcQryProductExchRateField_allocate); rb_define_method(SwigClassCThostFtdcQryProductExchRateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryProductExchRateField), -1); rb_define_method(SwigClassCThostFtdcQryProductExchRateField.klass, "ProductID=", VALUEFUNC(_wrap_CThostFtdcQryProductExchRateField_ProductID_set), -1); rb_define_method(SwigClassCThostFtdcQryProductExchRateField.klass, "ProductID", VALUEFUNC(_wrap_CThostFtdcQryProductExchRateField_ProductID_get), -1); SwigClassCThostFtdcQryProductExchRateField.mark = 0; SwigClassCThostFtdcQryProductExchRateField.destroy = (void (*)(void *)) free_CThostFtdcQryProductExchRateField; SwigClassCThostFtdcQryProductExchRateField.trackObjects = 0; SwigClassCThostFtdcMarketDataField.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataField, (void *) &SwigClassCThostFtdcMarketDataField); rb_define_alloc_func(SwigClassCThostFtdcMarketDataField.klass, _wrap_CThostFtdcMarketDataField_allocate); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataField), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcMarketDataField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcMarketDataField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcMarketDataField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcMarketDataField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "LastPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_LastPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "LastPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataField_LastPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "PreSettlementPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_PreSettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "PreSettlementPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataField_PreSettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "PreClosePrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_PreClosePrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "PreClosePrice", VALUEFUNC(_wrap_CThostFtdcMarketDataField_PreClosePrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "PreOpenInterest=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_PreOpenInterest_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "PreOpenInterest", VALUEFUNC(_wrap_CThostFtdcMarketDataField_PreOpenInterest_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "OpenPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_OpenPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "OpenPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataField_OpenPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "HighestPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_HighestPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "HighestPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataField_HighestPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "LowestPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_LowestPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "LowestPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataField_LowestPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcMarketDataField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "Turnover=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_Turnover_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "Turnover", VALUEFUNC(_wrap_CThostFtdcMarketDataField_Turnover_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "OpenInterest=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_OpenInterest_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "OpenInterest", VALUEFUNC(_wrap_CThostFtdcMarketDataField_OpenInterest_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "ClosePrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_ClosePrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "ClosePrice", VALUEFUNC(_wrap_CThostFtdcMarketDataField_ClosePrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "SettlementPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_SettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "SettlementPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataField_SettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "UpperLimitPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_UpperLimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "UpperLimitPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataField_UpperLimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "LowerLimitPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_LowerLimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "LowerLimitPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataField_LowerLimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "PreDelta=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_PreDelta_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "PreDelta", VALUEFUNC(_wrap_CThostFtdcMarketDataField_PreDelta_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "CurrDelta=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_CurrDelta_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "CurrDelta", VALUEFUNC(_wrap_CThostFtdcMarketDataField_CurrDelta_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "UpdateTime=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_UpdateTime_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "UpdateTime", VALUEFUNC(_wrap_CThostFtdcMarketDataField_UpdateTime_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "UpdateMillisec=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_UpdateMillisec_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "UpdateMillisec", VALUEFUNC(_wrap_CThostFtdcMarketDataField_UpdateMillisec_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "ActionDay=", VALUEFUNC(_wrap_CThostFtdcMarketDataField_ActionDay_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataField.klass, "ActionDay", VALUEFUNC(_wrap_CThostFtdcMarketDataField_ActionDay_get), -1); SwigClassCThostFtdcMarketDataField.mark = 0; SwigClassCThostFtdcMarketDataField.destroy = (void (*)(void *)) free_CThostFtdcMarketDataField; SwigClassCThostFtdcMarketDataField.trackObjects = 0; SwigClassCThostFtdcMarketDataBaseField.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataBaseField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataBaseField, (void *) &SwigClassCThostFtdcMarketDataBaseField); rb_define_alloc_func(SwigClassCThostFtdcMarketDataBaseField.klass, _wrap_CThostFtdcMarketDataBaseField_allocate); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataBaseField), -1); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcMarketDataBaseField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcMarketDataBaseField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "PreSettlementPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataBaseField_PreSettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "PreSettlementPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataBaseField_PreSettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "PreClosePrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataBaseField_PreClosePrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "PreClosePrice", VALUEFUNC(_wrap_CThostFtdcMarketDataBaseField_PreClosePrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "PreOpenInterest=", VALUEFUNC(_wrap_CThostFtdcMarketDataBaseField_PreOpenInterest_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "PreOpenInterest", VALUEFUNC(_wrap_CThostFtdcMarketDataBaseField_PreOpenInterest_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "PreDelta=", VALUEFUNC(_wrap_CThostFtdcMarketDataBaseField_PreDelta_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBaseField.klass, "PreDelta", VALUEFUNC(_wrap_CThostFtdcMarketDataBaseField_PreDelta_get), -1); SwigClassCThostFtdcMarketDataBaseField.mark = 0; SwigClassCThostFtdcMarketDataBaseField.destroy = (void (*)(void *)) free_CThostFtdcMarketDataBaseField; SwigClassCThostFtdcMarketDataBaseField.trackObjects = 0; SwigClassCThostFtdcMarketDataStaticField.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataStaticField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataStaticField, (void *) &SwigClassCThostFtdcMarketDataStaticField); rb_define_alloc_func(SwigClassCThostFtdcMarketDataStaticField.klass, _wrap_CThostFtdcMarketDataStaticField_allocate); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataStaticField), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "OpenPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_OpenPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "OpenPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_OpenPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "HighestPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_HighestPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "HighestPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_HighestPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "LowestPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_LowestPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "LowestPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_LowestPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "ClosePrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_ClosePrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "ClosePrice", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_ClosePrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "UpperLimitPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_UpperLimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "UpperLimitPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_UpperLimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "LowerLimitPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_LowerLimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "LowerLimitPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_LowerLimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "SettlementPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_SettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "SettlementPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_SettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "CurrDelta=", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_CurrDelta_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataStaticField.klass, "CurrDelta", VALUEFUNC(_wrap_CThostFtdcMarketDataStaticField_CurrDelta_get), -1); SwigClassCThostFtdcMarketDataStaticField.mark = 0; SwigClassCThostFtdcMarketDataStaticField.destroy = (void (*)(void *)) free_CThostFtdcMarketDataStaticField; SwigClassCThostFtdcMarketDataStaticField.trackObjects = 0; SwigClassCThostFtdcMarketDataLastMatchField.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataLastMatchField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataLastMatchField, (void *) &SwigClassCThostFtdcMarketDataLastMatchField); rb_define_alloc_func(SwigClassCThostFtdcMarketDataLastMatchField.klass, _wrap_CThostFtdcMarketDataLastMatchField_allocate); rb_define_method(SwigClassCThostFtdcMarketDataLastMatchField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataLastMatchField), -1); rb_define_method(SwigClassCThostFtdcMarketDataLastMatchField.klass, "LastPrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataLastMatchField_LastPrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataLastMatchField.klass, "LastPrice", VALUEFUNC(_wrap_CThostFtdcMarketDataLastMatchField_LastPrice_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataLastMatchField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcMarketDataLastMatchField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataLastMatchField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcMarketDataLastMatchField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataLastMatchField.klass, "Turnover=", VALUEFUNC(_wrap_CThostFtdcMarketDataLastMatchField_Turnover_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataLastMatchField.klass, "Turnover", VALUEFUNC(_wrap_CThostFtdcMarketDataLastMatchField_Turnover_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataLastMatchField.klass, "OpenInterest=", VALUEFUNC(_wrap_CThostFtdcMarketDataLastMatchField_OpenInterest_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataLastMatchField.klass, "OpenInterest", VALUEFUNC(_wrap_CThostFtdcMarketDataLastMatchField_OpenInterest_get), -1); SwigClassCThostFtdcMarketDataLastMatchField.mark = 0; SwigClassCThostFtdcMarketDataLastMatchField.destroy = (void (*)(void *)) free_CThostFtdcMarketDataLastMatchField; SwigClassCThostFtdcMarketDataLastMatchField.trackObjects = 0; SwigClassCThostFtdcMarketDataBestPriceField.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataBestPriceField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataBestPriceField, (void *) &SwigClassCThostFtdcMarketDataBestPriceField); rb_define_alloc_func(SwigClassCThostFtdcMarketDataBestPriceField.klass, _wrap_CThostFtdcMarketDataBestPriceField_allocate); rb_define_method(SwigClassCThostFtdcMarketDataBestPriceField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataBestPriceField), -1); rb_define_method(SwigClassCThostFtdcMarketDataBestPriceField.klass, "BidPrice1=", VALUEFUNC(_wrap_CThostFtdcMarketDataBestPriceField_BidPrice1_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBestPriceField.klass, "BidPrice1", VALUEFUNC(_wrap_CThostFtdcMarketDataBestPriceField_BidPrice1_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBestPriceField.klass, "BidVolume1=", VALUEFUNC(_wrap_CThostFtdcMarketDataBestPriceField_BidVolume1_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBestPriceField.klass, "BidVolume1", VALUEFUNC(_wrap_CThostFtdcMarketDataBestPriceField_BidVolume1_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBestPriceField.klass, "AskPrice1=", VALUEFUNC(_wrap_CThostFtdcMarketDataBestPriceField_AskPrice1_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBestPriceField.klass, "AskPrice1", VALUEFUNC(_wrap_CThostFtdcMarketDataBestPriceField_AskPrice1_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBestPriceField.klass, "AskVolume1=", VALUEFUNC(_wrap_CThostFtdcMarketDataBestPriceField_AskVolume1_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBestPriceField.klass, "AskVolume1", VALUEFUNC(_wrap_CThostFtdcMarketDataBestPriceField_AskVolume1_get), -1); SwigClassCThostFtdcMarketDataBestPriceField.mark = 0; SwigClassCThostFtdcMarketDataBestPriceField.destroy = (void (*)(void *)) free_CThostFtdcMarketDataBestPriceField; SwigClassCThostFtdcMarketDataBestPriceField.trackObjects = 0; SwigClassCThostFtdcMarketDataBid23Field.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataBid23Field", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataBid23Field, (void *) &SwigClassCThostFtdcMarketDataBid23Field); rb_define_alloc_func(SwigClassCThostFtdcMarketDataBid23Field.klass, _wrap_CThostFtdcMarketDataBid23Field_allocate); rb_define_method(SwigClassCThostFtdcMarketDataBid23Field.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataBid23Field), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid23Field.klass, "BidPrice2=", VALUEFUNC(_wrap_CThostFtdcMarketDataBid23Field_BidPrice2_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid23Field.klass, "BidPrice2", VALUEFUNC(_wrap_CThostFtdcMarketDataBid23Field_BidPrice2_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid23Field.klass, "BidVolume2=", VALUEFUNC(_wrap_CThostFtdcMarketDataBid23Field_BidVolume2_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid23Field.klass, "BidVolume2", VALUEFUNC(_wrap_CThostFtdcMarketDataBid23Field_BidVolume2_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid23Field.klass, "BidPrice3=", VALUEFUNC(_wrap_CThostFtdcMarketDataBid23Field_BidPrice3_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid23Field.klass, "BidPrice3", VALUEFUNC(_wrap_CThostFtdcMarketDataBid23Field_BidPrice3_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid23Field.klass, "BidVolume3=", VALUEFUNC(_wrap_CThostFtdcMarketDataBid23Field_BidVolume3_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid23Field.klass, "BidVolume3", VALUEFUNC(_wrap_CThostFtdcMarketDataBid23Field_BidVolume3_get), -1); SwigClassCThostFtdcMarketDataBid23Field.mark = 0; SwigClassCThostFtdcMarketDataBid23Field.destroy = (void (*)(void *)) free_CThostFtdcMarketDataBid23Field; SwigClassCThostFtdcMarketDataBid23Field.trackObjects = 0; SwigClassCThostFtdcMarketDataAsk23Field.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataAsk23Field", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataAsk23Field, (void *) &SwigClassCThostFtdcMarketDataAsk23Field); rb_define_alloc_func(SwigClassCThostFtdcMarketDataAsk23Field.klass, _wrap_CThostFtdcMarketDataAsk23Field_allocate); rb_define_method(SwigClassCThostFtdcMarketDataAsk23Field.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataAsk23Field), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk23Field.klass, "AskPrice2=", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk23Field_AskPrice2_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk23Field.klass, "AskPrice2", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk23Field_AskPrice2_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk23Field.klass, "AskVolume2=", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk23Field_AskVolume2_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk23Field.klass, "AskVolume2", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk23Field_AskVolume2_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk23Field.klass, "AskPrice3=", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk23Field_AskPrice3_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk23Field.klass, "AskPrice3", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk23Field_AskPrice3_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk23Field.klass, "AskVolume3=", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk23Field_AskVolume3_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk23Field.klass, "AskVolume3", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk23Field_AskVolume3_get), -1); SwigClassCThostFtdcMarketDataAsk23Field.mark = 0; SwigClassCThostFtdcMarketDataAsk23Field.destroy = (void (*)(void *)) free_CThostFtdcMarketDataAsk23Field; SwigClassCThostFtdcMarketDataAsk23Field.trackObjects = 0; SwigClassCThostFtdcMarketDataBid45Field.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataBid45Field", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataBid45Field, (void *) &SwigClassCThostFtdcMarketDataBid45Field); rb_define_alloc_func(SwigClassCThostFtdcMarketDataBid45Field.klass, _wrap_CThostFtdcMarketDataBid45Field_allocate); rb_define_method(SwigClassCThostFtdcMarketDataBid45Field.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataBid45Field), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid45Field.klass, "BidPrice4=", VALUEFUNC(_wrap_CThostFtdcMarketDataBid45Field_BidPrice4_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid45Field.klass, "BidPrice4", VALUEFUNC(_wrap_CThostFtdcMarketDataBid45Field_BidPrice4_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid45Field.klass, "BidVolume4=", VALUEFUNC(_wrap_CThostFtdcMarketDataBid45Field_BidVolume4_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid45Field.klass, "BidVolume4", VALUEFUNC(_wrap_CThostFtdcMarketDataBid45Field_BidVolume4_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid45Field.klass, "BidPrice5=", VALUEFUNC(_wrap_CThostFtdcMarketDataBid45Field_BidPrice5_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid45Field.klass, "BidPrice5", VALUEFUNC(_wrap_CThostFtdcMarketDataBid45Field_BidPrice5_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid45Field.klass, "BidVolume5=", VALUEFUNC(_wrap_CThostFtdcMarketDataBid45Field_BidVolume5_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataBid45Field.klass, "BidVolume5", VALUEFUNC(_wrap_CThostFtdcMarketDataBid45Field_BidVolume5_get), -1); SwigClassCThostFtdcMarketDataBid45Field.mark = 0; SwigClassCThostFtdcMarketDataBid45Field.destroy = (void (*)(void *)) free_CThostFtdcMarketDataBid45Field; SwigClassCThostFtdcMarketDataBid45Field.trackObjects = 0; SwigClassCThostFtdcMarketDataAsk45Field.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataAsk45Field", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataAsk45Field, (void *) &SwigClassCThostFtdcMarketDataAsk45Field); rb_define_alloc_func(SwigClassCThostFtdcMarketDataAsk45Field.klass, _wrap_CThostFtdcMarketDataAsk45Field_allocate); rb_define_method(SwigClassCThostFtdcMarketDataAsk45Field.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataAsk45Field), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk45Field.klass, "AskPrice4=", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk45Field_AskPrice4_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk45Field.klass, "AskPrice4", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk45Field_AskPrice4_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk45Field.klass, "AskVolume4=", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk45Field_AskVolume4_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk45Field.klass, "AskVolume4", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk45Field_AskVolume4_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk45Field.klass, "AskPrice5=", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk45Field_AskPrice5_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk45Field.klass, "AskPrice5", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk45Field_AskPrice5_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk45Field.klass, "AskVolume5=", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk45Field_AskVolume5_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataAsk45Field.klass, "AskVolume5", VALUEFUNC(_wrap_CThostFtdcMarketDataAsk45Field_AskVolume5_get), -1); SwigClassCThostFtdcMarketDataAsk45Field.mark = 0; SwigClassCThostFtdcMarketDataAsk45Field.destroy = (void (*)(void *)) free_CThostFtdcMarketDataAsk45Field; SwigClassCThostFtdcMarketDataAsk45Field.trackObjects = 0; SwigClassCThostFtdcMarketDataUpdateTimeField.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataUpdateTimeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataUpdateTimeField, (void *) &SwigClassCThostFtdcMarketDataUpdateTimeField); rb_define_alloc_func(SwigClassCThostFtdcMarketDataUpdateTimeField.klass, _wrap_CThostFtdcMarketDataUpdateTimeField_allocate); rb_define_method(SwigClassCThostFtdcMarketDataUpdateTimeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataUpdateTimeField), -1); rb_define_method(SwigClassCThostFtdcMarketDataUpdateTimeField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcMarketDataUpdateTimeField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataUpdateTimeField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcMarketDataUpdateTimeField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataUpdateTimeField.klass, "UpdateTime=", VALUEFUNC(_wrap_CThostFtdcMarketDataUpdateTimeField_UpdateTime_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataUpdateTimeField.klass, "UpdateTime", VALUEFUNC(_wrap_CThostFtdcMarketDataUpdateTimeField_UpdateTime_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataUpdateTimeField.klass, "UpdateMillisec=", VALUEFUNC(_wrap_CThostFtdcMarketDataUpdateTimeField_UpdateMillisec_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataUpdateTimeField.klass, "UpdateMillisec", VALUEFUNC(_wrap_CThostFtdcMarketDataUpdateTimeField_UpdateMillisec_get), -1); rb_define_method(SwigClassCThostFtdcMarketDataUpdateTimeField.klass, "ActionDay=", VALUEFUNC(_wrap_CThostFtdcMarketDataUpdateTimeField_ActionDay_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataUpdateTimeField.klass, "ActionDay", VALUEFUNC(_wrap_CThostFtdcMarketDataUpdateTimeField_ActionDay_get), -1); SwigClassCThostFtdcMarketDataUpdateTimeField.mark = 0; SwigClassCThostFtdcMarketDataUpdateTimeField.destroy = (void (*)(void *)) free_CThostFtdcMarketDataUpdateTimeField; SwigClassCThostFtdcMarketDataUpdateTimeField.trackObjects = 0; SwigClassCThostFtdcMarketDataExchangeField.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataExchangeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataExchangeField, (void *) &SwigClassCThostFtdcMarketDataExchangeField); rb_define_alloc_func(SwigClassCThostFtdcMarketDataExchangeField.klass, _wrap_CThostFtdcMarketDataExchangeField_allocate); rb_define_method(SwigClassCThostFtdcMarketDataExchangeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataExchangeField), -1); rb_define_method(SwigClassCThostFtdcMarketDataExchangeField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcMarketDataExchangeField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataExchangeField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcMarketDataExchangeField_ExchangeID_get), -1); SwigClassCThostFtdcMarketDataExchangeField.mark = 0; SwigClassCThostFtdcMarketDataExchangeField.destroy = (void (*)(void *)) free_CThostFtdcMarketDataExchangeField; SwigClassCThostFtdcMarketDataExchangeField.trackObjects = 0; SwigClassCThostFtdcSpecificInstrumentField.klass = rb_define_class_under(mCtp, "CThostFtdcSpecificInstrumentField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSpecificInstrumentField, (void *) &SwigClassCThostFtdcSpecificInstrumentField); rb_define_alloc_func(SwigClassCThostFtdcSpecificInstrumentField.klass, _wrap_CThostFtdcSpecificInstrumentField_allocate); rb_define_method(SwigClassCThostFtdcSpecificInstrumentField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSpecificInstrumentField), -1); rb_define_method(SwigClassCThostFtdcSpecificInstrumentField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcSpecificInstrumentField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcSpecificInstrumentField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcSpecificInstrumentField_InstrumentID_get), -1); SwigClassCThostFtdcSpecificInstrumentField.mark = 0; SwigClassCThostFtdcSpecificInstrumentField.destroy = (void (*)(void *)) free_CThostFtdcSpecificInstrumentField; SwigClassCThostFtdcSpecificInstrumentField.trackObjects = 0; SwigClassCThostFtdcInstrumentStatusField.klass = rb_define_class_under(mCtp, "CThostFtdcInstrumentStatusField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInstrumentStatusField, (void *) &SwigClassCThostFtdcInstrumentStatusField); rb_define_alloc_func(SwigClassCThostFtdcInstrumentStatusField.klass, _wrap_CThostFtdcInstrumentStatusField_allocate); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInstrumentStatusField), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "SettlementGroupID=", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_SettlementGroupID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "SettlementGroupID", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_SettlementGroupID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "InstrumentStatus=", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_InstrumentStatus_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "InstrumentStatus", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_InstrumentStatus_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "TradingSegmentSN=", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_TradingSegmentSN_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "TradingSegmentSN", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_TradingSegmentSN_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "EnterTime=", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_EnterTime_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "EnterTime", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_EnterTime_get), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "EnterReason=", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_EnterReason_set), -1); rb_define_method(SwigClassCThostFtdcInstrumentStatusField.klass, "EnterReason", VALUEFUNC(_wrap_CThostFtdcInstrumentStatusField_EnterReason_get), -1); SwigClassCThostFtdcInstrumentStatusField.mark = 0; SwigClassCThostFtdcInstrumentStatusField.destroy = (void (*)(void *)) free_CThostFtdcInstrumentStatusField; SwigClassCThostFtdcInstrumentStatusField.trackObjects = 0; SwigClassCThostFtdcQryInstrumentStatusField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInstrumentStatusField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInstrumentStatusField, (void *) &SwigClassCThostFtdcQryInstrumentStatusField); rb_define_alloc_func(SwigClassCThostFtdcQryInstrumentStatusField.klass, _wrap_CThostFtdcQryInstrumentStatusField_allocate); rb_define_method(SwigClassCThostFtdcQryInstrumentStatusField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInstrumentStatusField), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentStatusField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentStatusField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentStatusField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentStatusField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentStatusField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcQryInstrumentStatusField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcQryInstrumentStatusField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcQryInstrumentStatusField_ExchangeInstID_get), -1); SwigClassCThostFtdcQryInstrumentStatusField.mark = 0; SwigClassCThostFtdcQryInstrumentStatusField.destroy = (void (*)(void *)) free_CThostFtdcQryInstrumentStatusField; SwigClassCThostFtdcQryInstrumentStatusField.trackObjects = 0; SwigClassCThostFtdcInvestorAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcInvestorAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInvestorAccountField, (void *) &SwigClassCThostFtdcInvestorAccountField); rb_define_alloc_func(SwigClassCThostFtdcInvestorAccountField.klass, _wrap_CThostFtdcInvestorAccountField_allocate); rb_define_method(SwigClassCThostFtdcInvestorAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInvestorAccountField), -1); rb_define_method(SwigClassCThostFtdcInvestorAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInvestorAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInvestorAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorAccountField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInvestorAccountField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorAccountField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInvestorAccountField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcInvestorAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcInvestorAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcInvestorAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcInvestorAccountField_CurrencyID_get), -1); SwigClassCThostFtdcInvestorAccountField.mark = 0; SwigClassCThostFtdcInvestorAccountField.destroy = (void (*)(void *)) free_CThostFtdcInvestorAccountField; SwigClassCThostFtdcInvestorAccountField.trackObjects = 0; SwigClassCThostFtdcPositionProfitAlgorithmField.klass = rb_define_class_under(mCtp, "CThostFtdcPositionProfitAlgorithmField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcPositionProfitAlgorithmField, (void *) &SwigClassCThostFtdcPositionProfitAlgorithmField); rb_define_alloc_func(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, _wrap_CThostFtdcPositionProfitAlgorithmField_allocate); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcPositionProfitAlgorithmField), -1); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcPositionProfitAlgorithmField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcPositionProfitAlgorithmField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcPositionProfitAlgorithmField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcPositionProfitAlgorithmField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "Algorithm=", VALUEFUNC(_wrap_CThostFtdcPositionProfitAlgorithmField_Algorithm_set), -1); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "Algorithm", VALUEFUNC(_wrap_CThostFtdcPositionProfitAlgorithmField_Algorithm_get), -1); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "Memo=", VALUEFUNC(_wrap_CThostFtdcPositionProfitAlgorithmField_Memo_set), -1); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "Memo", VALUEFUNC(_wrap_CThostFtdcPositionProfitAlgorithmField_Memo_get), -1); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcPositionProfitAlgorithmField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcPositionProfitAlgorithmField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcPositionProfitAlgorithmField_CurrencyID_get), -1); SwigClassCThostFtdcPositionProfitAlgorithmField.mark = 0; SwigClassCThostFtdcPositionProfitAlgorithmField.destroy = (void (*)(void *)) free_CThostFtdcPositionProfitAlgorithmField; SwigClassCThostFtdcPositionProfitAlgorithmField.trackObjects = 0; SwigClassCThostFtdcDiscountField.klass = rb_define_class_under(mCtp, "CThostFtdcDiscountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcDiscountField, (void *) &SwigClassCThostFtdcDiscountField); rb_define_alloc_func(SwigClassCThostFtdcDiscountField.klass, _wrap_CThostFtdcDiscountField_allocate); rb_define_method(SwigClassCThostFtdcDiscountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcDiscountField), -1); rb_define_method(SwigClassCThostFtdcDiscountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcDiscountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcDiscountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcDiscountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcDiscountField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcDiscountField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcDiscountField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcDiscountField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcDiscountField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcDiscountField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcDiscountField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcDiscountField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcDiscountField.klass, "Discount=", VALUEFUNC(_wrap_CThostFtdcDiscountField_Discount_set), -1); rb_define_method(SwigClassCThostFtdcDiscountField.klass, "Discount", VALUEFUNC(_wrap_CThostFtdcDiscountField_Discount_get), -1); SwigClassCThostFtdcDiscountField.mark = 0; SwigClassCThostFtdcDiscountField.destroy = (void (*)(void *)) free_CThostFtdcDiscountField; SwigClassCThostFtdcDiscountField.trackObjects = 0; SwigClassCThostFtdcQryTransferBankField.klass = rb_define_class_under(mCtp, "CThostFtdcQryTransferBankField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryTransferBankField, (void *) &SwigClassCThostFtdcQryTransferBankField); rb_define_alloc_func(SwigClassCThostFtdcQryTransferBankField.klass, _wrap_CThostFtdcQryTransferBankField_allocate); rb_define_method(SwigClassCThostFtdcQryTransferBankField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryTransferBankField), -1); rb_define_method(SwigClassCThostFtdcQryTransferBankField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcQryTransferBankField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcQryTransferBankField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcQryTransferBankField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcQryTransferBankField.klass, "BankBrchID=", VALUEFUNC(_wrap_CThostFtdcQryTransferBankField_BankBrchID_set), -1); rb_define_method(SwigClassCThostFtdcQryTransferBankField.klass, "BankBrchID", VALUEFUNC(_wrap_CThostFtdcQryTransferBankField_BankBrchID_get), -1); SwigClassCThostFtdcQryTransferBankField.mark = 0; SwigClassCThostFtdcQryTransferBankField.destroy = (void (*)(void *)) free_CThostFtdcQryTransferBankField; SwigClassCThostFtdcQryTransferBankField.trackObjects = 0; SwigClassCThostFtdcTransferBankField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferBankField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferBankField, (void *) &SwigClassCThostFtdcTransferBankField); rb_define_alloc_func(SwigClassCThostFtdcTransferBankField.klass, _wrap_CThostFtdcTransferBankField_allocate); rb_define_method(SwigClassCThostFtdcTransferBankField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferBankField), -1); rb_define_method(SwigClassCThostFtdcTransferBankField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcTransferBankField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcTransferBankField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankField.klass, "BankBrchID=", VALUEFUNC(_wrap_CThostFtdcTransferBankField_BankBrchID_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankField.klass, "BankBrchID", VALUEFUNC(_wrap_CThostFtdcTransferBankField_BankBrchID_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankField.klass, "BankName=", VALUEFUNC(_wrap_CThostFtdcTransferBankField_BankName_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankField.klass, "BankName", VALUEFUNC(_wrap_CThostFtdcTransferBankField_BankName_get), -1); rb_define_method(SwigClassCThostFtdcTransferBankField.klass, "IsActive=", VALUEFUNC(_wrap_CThostFtdcTransferBankField_IsActive_set), -1); rb_define_method(SwigClassCThostFtdcTransferBankField.klass, "IsActive", VALUEFUNC(_wrap_CThostFtdcTransferBankField_IsActive_get), -1); SwigClassCThostFtdcTransferBankField.mark = 0; SwigClassCThostFtdcTransferBankField.destroy = (void (*)(void *)) free_CThostFtdcTransferBankField; SwigClassCThostFtdcTransferBankField.trackObjects = 0; SwigClassCThostFtdcQryInvestorPositionDetailField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInvestorPositionDetailField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInvestorPositionDetailField, (void *) &SwigClassCThostFtdcQryInvestorPositionDetailField); rb_define_alloc_func(SwigClassCThostFtdcQryInvestorPositionDetailField.klass, _wrap_CThostFtdcQryInvestorPositionDetailField_allocate); rb_define_method(SwigClassCThostFtdcQryInvestorPositionDetailField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInvestorPositionDetailField), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionDetailField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionDetailField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionDetailField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionDetailField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionDetailField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionDetailField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionDetailField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionDetailField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionDetailField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionDetailField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionDetailField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionDetailField_InstrumentID_get), -1); SwigClassCThostFtdcQryInvestorPositionDetailField.mark = 0; SwigClassCThostFtdcQryInvestorPositionDetailField.destroy = (void (*)(void *)) free_CThostFtdcQryInvestorPositionDetailField; SwigClassCThostFtdcQryInvestorPositionDetailField.trackObjects = 0; SwigClassCThostFtdcInvestorPositionDetailField.klass = rb_define_class_under(mCtp, "CThostFtdcInvestorPositionDetailField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInvestorPositionDetailField, (void *) &SwigClassCThostFtdcInvestorPositionDetailField); rb_define_alloc_func(SwigClassCThostFtdcInvestorPositionDetailField.klass, _wrap_CThostFtdcInvestorPositionDetailField_allocate); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInvestorPositionDetailField), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "OpenDate=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_OpenDate_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "OpenDate", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_OpenDate_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "TradeID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_TradeID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "TradeID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_TradeID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_Volume_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "OpenPrice=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_OpenPrice_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "OpenPrice", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_OpenPrice_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "TradeType=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_TradeType_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "TradeType", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_TradeType_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "CombInstrumentID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_CombInstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "CombInstrumentID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_CombInstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "CloseProfitByDate=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_CloseProfitByDate_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "CloseProfitByDate", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_CloseProfitByDate_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "CloseProfitByTrade=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_CloseProfitByTrade_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "CloseProfitByTrade", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_CloseProfitByTrade_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "PositionProfitByDate=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_PositionProfitByDate_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "PositionProfitByDate", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_PositionProfitByDate_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "PositionProfitByTrade=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_PositionProfitByTrade_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "PositionProfitByTrade", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_PositionProfitByTrade_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "Margin=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_Margin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "Margin", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_Margin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "ExchMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_ExchMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "ExchMargin", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_ExchMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "MarginRateByMoney=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_MarginRateByMoney_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "MarginRateByMoney", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_MarginRateByMoney_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "MarginRateByVolume=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_MarginRateByVolume_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "MarginRateByVolume", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_MarginRateByVolume_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "LastSettlementPrice=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_LastSettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "LastSettlementPrice", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_LastSettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "SettlementPrice=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_SettlementPrice_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "SettlementPrice", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_SettlementPrice_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "CloseVolume=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_CloseVolume_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "CloseVolume", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_CloseVolume_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "CloseAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_CloseAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionDetailField.klass, "CloseAmount", VALUEFUNC(_wrap_CThostFtdcInvestorPositionDetailField_CloseAmount_get), -1); SwigClassCThostFtdcInvestorPositionDetailField.mark = 0; SwigClassCThostFtdcInvestorPositionDetailField.destroy = (void (*)(void *)) free_CThostFtdcInvestorPositionDetailField; SwigClassCThostFtdcInvestorPositionDetailField.trackObjects = 0; SwigClassCThostFtdcTradingAccountPasswordField.klass = rb_define_class_under(mCtp, "CThostFtdcTradingAccountPasswordField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTradingAccountPasswordField, (void *) &SwigClassCThostFtdcTradingAccountPasswordField); rb_define_alloc_func(SwigClassCThostFtdcTradingAccountPasswordField.klass, _wrap_CThostFtdcTradingAccountPasswordField_allocate); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTradingAccountPasswordField), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordField_Password_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordField_Password_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordField_CurrencyID_get), -1); SwigClassCThostFtdcTradingAccountPasswordField.mark = 0; SwigClassCThostFtdcTradingAccountPasswordField.destroy = (void (*)(void *)) free_CThostFtdcTradingAccountPasswordField; SwigClassCThostFtdcTradingAccountPasswordField.trackObjects = 0; SwigClassCThostFtdcMDTraderOfferField.klass = rb_define_class_under(mCtp, "CThostFtdcMDTraderOfferField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMDTraderOfferField, (void *) &SwigClassCThostFtdcMDTraderOfferField); rb_define_alloc_func(SwigClassCThostFtdcMDTraderOfferField.klass, _wrap_CThostFtdcMDTraderOfferField_allocate); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMDTraderOfferField), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_Password_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_Password_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "TraderConnectStatus=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_TraderConnectStatus_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "TraderConnectStatus", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_TraderConnectStatus_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ConnectRequestDate=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ConnectRequestDate_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ConnectRequestDate", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ConnectRequestDate_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ConnectRequestTime=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ConnectRequestTime_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ConnectRequestTime", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ConnectRequestTime_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "LastReportDate=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_LastReportDate_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "LastReportDate", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_LastReportDate_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "LastReportTime=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_LastReportTime_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "LastReportTime", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_LastReportTime_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ConnectDate=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ConnectDate_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ConnectDate", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ConnectDate_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ConnectTime=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ConnectTime_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "ConnectTime", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_ConnectTime_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "StartDate=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_StartDate_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "StartDate", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_StartDate_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "StartTime=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_StartTime_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "StartTime", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_StartTime_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "MaxTradeID=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_MaxTradeID_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "MaxTradeID", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_MaxTradeID_get), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "MaxOrderMessageReference=", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_MaxOrderMessageReference_set), -1); rb_define_method(SwigClassCThostFtdcMDTraderOfferField.klass, "MaxOrderMessageReference", VALUEFUNC(_wrap_CThostFtdcMDTraderOfferField_MaxOrderMessageReference_get), -1); SwigClassCThostFtdcMDTraderOfferField.mark = 0; SwigClassCThostFtdcMDTraderOfferField.destroy = (void (*)(void *)) free_CThostFtdcMDTraderOfferField; SwigClassCThostFtdcMDTraderOfferField.trackObjects = 0; SwigClassCThostFtdcQryMDTraderOfferField.klass = rb_define_class_under(mCtp, "CThostFtdcQryMDTraderOfferField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryMDTraderOfferField, (void *) &SwigClassCThostFtdcQryMDTraderOfferField); rb_define_alloc_func(SwigClassCThostFtdcQryMDTraderOfferField.klass, _wrap_CThostFtdcQryMDTraderOfferField_allocate); rb_define_method(SwigClassCThostFtdcQryMDTraderOfferField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryMDTraderOfferField), -1); rb_define_method(SwigClassCThostFtdcQryMDTraderOfferField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryMDTraderOfferField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryMDTraderOfferField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryMDTraderOfferField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryMDTraderOfferField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcQryMDTraderOfferField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcQryMDTraderOfferField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcQryMDTraderOfferField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcQryMDTraderOfferField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcQryMDTraderOfferField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcQryMDTraderOfferField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcQryMDTraderOfferField_TraderID_get), -1); SwigClassCThostFtdcQryMDTraderOfferField.mark = 0; SwigClassCThostFtdcQryMDTraderOfferField.destroy = (void (*)(void *)) free_CThostFtdcQryMDTraderOfferField; SwigClassCThostFtdcQryMDTraderOfferField.trackObjects = 0; SwigClassCThostFtdcQryNoticeField.klass = rb_define_class_under(mCtp, "CThostFtdcQryNoticeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryNoticeField, (void *) &SwigClassCThostFtdcQryNoticeField); rb_define_alloc_func(SwigClassCThostFtdcQryNoticeField.klass, _wrap_CThostFtdcQryNoticeField_allocate); rb_define_method(SwigClassCThostFtdcQryNoticeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryNoticeField), -1); rb_define_method(SwigClassCThostFtdcQryNoticeField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryNoticeField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryNoticeField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryNoticeField_BrokerID_get), -1); SwigClassCThostFtdcQryNoticeField.mark = 0; SwigClassCThostFtdcQryNoticeField.destroy = (void (*)(void *)) free_CThostFtdcQryNoticeField; SwigClassCThostFtdcQryNoticeField.trackObjects = 0; SwigClassCThostFtdcNoticeField.klass = rb_define_class_under(mCtp, "CThostFtdcNoticeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcNoticeField, (void *) &SwigClassCThostFtdcNoticeField); rb_define_alloc_func(SwigClassCThostFtdcNoticeField.klass, _wrap_CThostFtdcNoticeField_allocate); rb_define_method(SwigClassCThostFtdcNoticeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcNoticeField), -1); rb_define_method(SwigClassCThostFtdcNoticeField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcNoticeField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcNoticeField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcNoticeField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcNoticeField.klass, "Content=", VALUEFUNC(_wrap_CThostFtdcNoticeField_Content_set), -1); rb_define_method(SwigClassCThostFtdcNoticeField.klass, "Content", VALUEFUNC(_wrap_CThostFtdcNoticeField_Content_get), -1); rb_define_method(SwigClassCThostFtdcNoticeField.klass, "SequenceLabel=", VALUEFUNC(_wrap_CThostFtdcNoticeField_SequenceLabel_set), -1); rb_define_method(SwigClassCThostFtdcNoticeField.klass, "SequenceLabel", VALUEFUNC(_wrap_CThostFtdcNoticeField_SequenceLabel_get), -1); SwigClassCThostFtdcNoticeField.mark = 0; SwigClassCThostFtdcNoticeField.destroy = (void (*)(void *)) free_CThostFtdcNoticeField; SwigClassCThostFtdcNoticeField.trackObjects = 0; SwigClassCThostFtdcUserRightField.klass = rb_define_class_under(mCtp, "CThostFtdcUserRightField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcUserRightField, (void *) &SwigClassCThostFtdcUserRightField); rb_define_alloc_func(SwigClassCThostFtdcUserRightField.klass, _wrap_CThostFtdcUserRightField_allocate); rb_define_method(SwigClassCThostFtdcUserRightField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcUserRightField), -1); rb_define_method(SwigClassCThostFtdcUserRightField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcUserRightField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcUserRightField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcUserRightField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcUserRightField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcUserRightField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcUserRightField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcUserRightField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcUserRightField.klass, "UserRightType=", VALUEFUNC(_wrap_CThostFtdcUserRightField_UserRightType_set), -1); rb_define_method(SwigClassCThostFtdcUserRightField.klass, "UserRightType", VALUEFUNC(_wrap_CThostFtdcUserRightField_UserRightType_get), -1); rb_define_method(SwigClassCThostFtdcUserRightField.klass, "IsForbidden=", VALUEFUNC(_wrap_CThostFtdcUserRightField_IsForbidden_set), -1); rb_define_method(SwigClassCThostFtdcUserRightField.klass, "IsForbidden", VALUEFUNC(_wrap_CThostFtdcUserRightField_IsForbidden_get), -1); SwigClassCThostFtdcUserRightField.mark = 0; SwigClassCThostFtdcUserRightField.destroy = (void (*)(void *)) free_CThostFtdcUserRightField; SwigClassCThostFtdcUserRightField.trackObjects = 0; SwigClassCThostFtdcQrySettlementInfoConfirmField.klass = rb_define_class_under(mCtp, "CThostFtdcQrySettlementInfoConfirmField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQrySettlementInfoConfirmField, (void *) &SwigClassCThostFtdcQrySettlementInfoConfirmField); rb_define_alloc_func(SwigClassCThostFtdcQrySettlementInfoConfirmField.klass, _wrap_CThostFtdcQrySettlementInfoConfirmField_allocate); rb_define_method(SwigClassCThostFtdcQrySettlementInfoConfirmField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQrySettlementInfoConfirmField), -1); rb_define_method(SwigClassCThostFtdcQrySettlementInfoConfirmField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQrySettlementInfoConfirmField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQrySettlementInfoConfirmField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQrySettlementInfoConfirmField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQrySettlementInfoConfirmField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQrySettlementInfoConfirmField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQrySettlementInfoConfirmField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQrySettlementInfoConfirmField_InvestorID_get), -1); SwigClassCThostFtdcQrySettlementInfoConfirmField.mark = 0; SwigClassCThostFtdcQrySettlementInfoConfirmField.destroy = (void (*)(void *)) free_CThostFtdcQrySettlementInfoConfirmField; SwigClassCThostFtdcQrySettlementInfoConfirmField.trackObjects = 0; SwigClassCThostFtdcLoadSettlementInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcLoadSettlementInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcLoadSettlementInfoField, (void *) &SwigClassCThostFtdcLoadSettlementInfoField); rb_define_alloc_func(SwigClassCThostFtdcLoadSettlementInfoField.klass, _wrap_CThostFtdcLoadSettlementInfoField_allocate); rb_define_method(SwigClassCThostFtdcLoadSettlementInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcLoadSettlementInfoField), -1); rb_define_method(SwigClassCThostFtdcLoadSettlementInfoField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcLoadSettlementInfoField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcLoadSettlementInfoField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcLoadSettlementInfoField_BrokerID_get), -1); SwigClassCThostFtdcLoadSettlementInfoField.mark = 0; SwigClassCThostFtdcLoadSettlementInfoField.destroy = (void (*)(void *)) free_CThostFtdcLoadSettlementInfoField; SwigClassCThostFtdcLoadSettlementInfoField.trackObjects = 0; SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerWithdrawAlgorithmField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerWithdrawAlgorithmField, (void *) &SwigClassCThostFtdcBrokerWithdrawAlgorithmField); rb_define_alloc_func(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, _wrap_CThostFtdcBrokerWithdrawAlgorithmField_allocate); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerWithdrawAlgorithmField), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "WithdrawAlgorithm=", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_WithdrawAlgorithm_set), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "WithdrawAlgorithm", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_WithdrawAlgorithm_get), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "UsingRatio=", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_UsingRatio_set), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "UsingRatio", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_UsingRatio_get), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "IncludeCloseProfit=", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_IncludeCloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "IncludeCloseProfit", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_IncludeCloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "AllWithoutTrade=", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_AllWithoutTrade_set), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "AllWithoutTrade", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_AllWithoutTrade_get), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "AvailIncludeCloseProfit=", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_AvailIncludeCloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "AvailIncludeCloseProfit", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_AvailIncludeCloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "IsBrokerUserEvent=", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_IsBrokerUserEvent_set), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "IsBrokerUserEvent", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_IsBrokerUserEvent_get), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "FundMortgageRatio=", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_FundMortgageRatio_set), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "FundMortgageRatio", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_FundMortgageRatio_get), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "BalanceAlgorithm=", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_BalanceAlgorithm_set), -1); rb_define_method(SwigClassCThostFtdcBrokerWithdrawAlgorithmField.klass, "BalanceAlgorithm", VALUEFUNC(_wrap_CThostFtdcBrokerWithdrawAlgorithmField_BalanceAlgorithm_get), -1); SwigClassCThostFtdcBrokerWithdrawAlgorithmField.mark = 0; SwigClassCThostFtdcBrokerWithdrawAlgorithmField.destroy = (void (*)(void *)) free_CThostFtdcBrokerWithdrawAlgorithmField; SwigClassCThostFtdcBrokerWithdrawAlgorithmField.trackObjects = 0; SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass = rb_define_class_under(mCtp, "CThostFtdcTradingAccountPasswordUpdateV1Field", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTradingAccountPasswordUpdateV1Field, (void *) &SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field); rb_define_alloc_func(SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass, _wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_allocate); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTradingAccountPasswordUpdateV1Field), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass, "OldPassword=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_OldPassword_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass, "OldPassword", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_OldPassword_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass, "NewPassword=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_NewPassword_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.klass, "NewPassword", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateV1Field_NewPassword_get), -1); SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.mark = 0; SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.destroy = (void (*)(void *)) free_CThostFtdcTradingAccountPasswordUpdateV1Field; SwigClassCThostFtdcTradingAccountPasswordUpdateV1Field.trackObjects = 0; SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass = rb_define_class_under(mCtp, "CThostFtdcTradingAccountPasswordUpdateField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTradingAccountPasswordUpdateField, (void *) &SwigClassCThostFtdcTradingAccountPasswordUpdateField); rb_define_alloc_func(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, _wrap_CThostFtdcTradingAccountPasswordUpdateField_allocate); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTradingAccountPasswordUpdateField), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "OldPassword=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateField_OldPassword_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "OldPassword", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateField_OldPassword_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "NewPassword=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateField_NewPassword_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "NewPassword", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateField_NewPassword_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountPasswordUpdateField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcTradingAccountPasswordUpdateField_CurrencyID_get), -1); SwigClassCThostFtdcTradingAccountPasswordUpdateField.mark = 0; SwigClassCThostFtdcTradingAccountPasswordUpdateField.destroy = (void (*)(void *)) free_CThostFtdcTradingAccountPasswordUpdateField; SwigClassCThostFtdcTradingAccountPasswordUpdateField.trackObjects = 0; SwigClassCThostFtdcQryCombinationLegField.klass = rb_define_class_under(mCtp, "CThostFtdcQryCombinationLegField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryCombinationLegField, (void *) &SwigClassCThostFtdcQryCombinationLegField); rb_define_alloc_func(SwigClassCThostFtdcQryCombinationLegField.klass, _wrap_CThostFtdcQryCombinationLegField_allocate); rb_define_method(SwigClassCThostFtdcQryCombinationLegField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryCombinationLegField), -1); rb_define_method(SwigClassCThostFtdcQryCombinationLegField.klass, "CombInstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryCombinationLegField_CombInstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryCombinationLegField.klass, "CombInstrumentID", VALUEFUNC(_wrap_CThostFtdcQryCombinationLegField_CombInstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryCombinationLegField.klass, "LegID=", VALUEFUNC(_wrap_CThostFtdcQryCombinationLegField_LegID_set), -1); rb_define_method(SwigClassCThostFtdcQryCombinationLegField.klass, "LegID", VALUEFUNC(_wrap_CThostFtdcQryCombinationLegField_LegID_get), -1); rb_define_method(SwigClassCThostFtdcQryCombinationLegField.klass, "LegInstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryCombinationLegField_LegInstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryCombinationLegField.klass, "LegInstrumentID", VALUEFUNC(_wrap_CThostFtdcQryCombinationLegField_LegInstrumentID_get), -1); SwigClassCThostFtdcQryCombinationLegField.mark = 0; SwigClassCThostFtdcQryCombinationLegField.destroy = (void (*)(void *)) free_CThostFtdcQryCombinationLegField; SwigClassCThostFtdcQryCombinationLegField.trackObjects = 0; SwigClassCThostFtdcQrySyncStatusField.klass = rb_define_class_under(mCtp, "CThostFtdcQrySyncStatusField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQrySyncStatusField, (void *) &SwigClassCThostFtdcQrySyncStatusField); rb_define_alloc_func(SwigClassCThostFtdcQrySyncStatusField.klass, _wrap_CThostFtdcQrySyncStatusField_allocate); rb_define_method(SwigClassCThostFtdcQrySyncStatusField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQrySyncStatusField), -1); rb_define_method(SwigClassCThostFtdcQrySyncStatusField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcQrySyncStatusField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcQrySyncStatusField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcQrySyncStatusField_TradingDay_get), -1); SwigClassCThostFtdcQrySyncStatusField.mark = 0; SwigClassCThostFtdcQrySyncStatusField.destroy = (void (*)(void *)) free_CThostFtdcQrySyncStatusField; SwigClassCThostFtdcQrySyncStatusField.trackObjects = 0; SwigClassCThostFtdcCombinationLegField.klass = rb_define_class_under(mCtp, "CThostFtdcCombinationLegField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCombinationLegField, (void *) &SwigClassCThostFtdcCombinationLegField); rb_define_alloc_func(SwigClassCThostFtdcCombinationLegField.klass, _wrap_CThostFtdcCombinationLegField_allocate); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCombinationLegField), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "CombInstrumentID=", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_CombInstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "CombInstrumentID", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_CombInstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "LegID=", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_LegID_set), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "LegID", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_LegID_get), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "LegInstrumentID=", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_LegInstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "LegInstrumentID", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_LegInstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "LegMultiple=", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_LegMultiple_set), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "LegMultiple", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_LegMultiple_get), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "ImplyLevel=", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_ImplyLevel_set), -1); rb_define_method(SwigClassCThostFtdcCombinationLegField.klass, "ImplyLevel", VALUEFUNC(_wrap_CThostFtdcCombinationLegField_ImplyLevel_get), -1); SwigClassCThostFtdcCombinationLegField.mark = 0; SwigClassCThostFtdcCombinationLegField.destroy = (void (*)(void *)) free_CThostFtdcCombinationLegField; SwigClassCThostFtdcCombinationLegField.trackObjects = 0; SwigClassCThostFtdcSyncStatusField.klass = rb_define_class_under(mCtp, "CThostFtdcSyncStatusField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSyncStatusField, (void *) &SwigClassCThostFtdcSyncStatusField); rb_define_alloc_func(SwigClassCThostFtdcSyncStatusField.klass, _wrap_CThostFtdcSyncStatusField_allocate); rb_define_method(SwigClassCThostFtdcSyncStatusField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSyncStatusField), -1); rb_define_method(SwigClassCThostFtdcSyncStatusField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcSyncStatusField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcSyncStatusField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcSyncStatusField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcSyncStatusField.klass, "DataSyncStatus=", VALUEFUNC(_wrap_CThostFtdcSyncStatusField_DataSyncStatus_set), -1); rb_define_method(SwigClassCThostFtdcSyncStatusField.klass, "DataSyncStatus", VALUEFUNC(_wrap_CThostFtdcSyncStatusField_DataSyncStatus_get), -1); SwigClassCThostFtdcSyncStatusField.mark = 0; SwigClassCThostFtdcSyncStatusField.destroy = (void (*)(void *)) free_CThostFtdcSyncStatusField; SwigClassCThostFtdcSyncStatusField.trackObjects = 0; SwigClassCThostFtdcQryLinkManField.klass = rb_define_class_under(mCtp, "CThostFtdcQryLinkManField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryLinkManField, (void *) &SwigClassCThostFtdcQryLinkManField); rb_define_alloc_func(SwigClassCThostFtdcQryLinkManField.klass, _wrap_CThostFtdcQryLinkManField_allocate); rb_define_method(SwigClassCThostFtdcQryLinkManField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryLinkManField), -1); rb_define_method(SwigClassCThostFtdcQryLinkManField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryLinkManField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryLinkManField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryLinkManField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryLinkManField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryLinkManField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryLinkManField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryLinkManField_InvestorID_get), -1); SwigClassCThostFtdcQryLinkManField.mark = 0; SwigClassCThostFtdcQryLinkManField.destroy = (void (*)(void *)) free_CThostFtdcQryLinkManField; SwigClassCThostFtdcQryLinkManField.trackObjects = 0; SwigClassCThostFtdcLinkManField.klass = rb_define_class_under(mCtp, "CThostFtdcLinkManField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcLinkManField, (void *) &SwigClassCThostFtdcLinkManField); rb_define_alloc_func(SwigClassCThostFtdcLinkManField.klass, _wrap_CThostFtdcLinkManField_allocate); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcLinkManField), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcLinkManField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcLinkManField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcLinkManField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcLinkManField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "PersonType=", VALUEFUNC(_wrap_CThostFtdcLinkManField_PersonType_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "PersonType", VALUEFUNC(_wrap_CThostFtdcLinkManField_PersonType_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "IdentifiedCardType=", VALUEFUNC(_wrap_CThostFtdcLinkManField_IdentifiedCardType_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "IdentifiedCardType", VALUEFUNC(_wrap_CThostFtdcLinkManField_IdentifiedCardType_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcLinkManField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcLinkManField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "PersonName=", VALUEFUNC(_wrap_CThostFtdcLinkManField_PersonName_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "PersonName", VALUEFUNC(_wrap_CThostFtdcLinkManField_PersonName_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "Telephone=", VALUEFUNC(_wrap_CThostFtdcLinkManField_Telephone_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "Telephone", VALUEFUNC(_wrap_CThostFtdcLinkManField_Telephone_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "Address=", VALUEFUNC(_wrap_CThostFtdcLinkManField_Address_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "Address", VALUEFUNC(_wrap_CThostFtdcLinkManField_Address_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "ZipCode=", VALUEFUNC(_wrap_CThostFtdcLinkManField_ZipCode_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "ZipCode", VALUEFUNC(_wrap_CThostFtdcLinkManField_ZipCode_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "Priority=", VALUEFUNC(_wrap_CThostFtdcLinkManField_Priority_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "Priority", VALUEFUNC(_wrap_CThostFtdcLinkManField_Priority_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "UOAZipCode=", VALUEFUNC(_wrap_CThostFtdcLinkManField_UOAZipCode_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "UOAZipCode", VALUEFUNC(_wrap_CThostFtdcLinkManField_UOAZipCode_get), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "PersonFullName=", VALUEFUNC(_wrap_CThostFtdcLinkManField_PersonFullName_set), -1); rb_define_method(SwigClassCThostFtdcLinkManField.klass, "PersonFullName", VALUEFUNC(_wrap_CThostFtdcLinkManField_PersonFullName_get), -1); SwigClassCThostFtdcLinkManField.mark = 0; SwigClassCThostFtdcLinkManField.destroy = (void (*)(void *)) free_CThostFtdcLinkManField; SwigClassCThostFtdcLinkManField.trackObjects = 0; SwigClassCThostFtdcQryBrokerUserEventField.klass = rb_define_class_under(mCtp, "CThostFtdcQryBrokerUserEventField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryBrokerUserEventField, (void *) &SwigClassCThostFtdcQryBrokerUserEventField); rb_define_alloc_func(SwigClassCThostFtdcQryBrokerUserEventField.klass, _wrap_CThostFtdcQryBrokerUserEventField_allocate); rb_define_method(SwigClassCThostFtdcQryBrokerUserEventField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryBrokerUserEventField), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserEventField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserEventField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserEventField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserEventField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserEventField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserEventField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserEventField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserEventField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserEventField.klass, "UserEventType=", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserEventField_UserEventType_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerUserEventField.klass, "UserEventType", VALUEFUNC(_wrap_CThostFtdcQryBrokerUserEventField_UserEventType_get), -1); SwigClassCThostFtdcQryBrokerUserEventField.mark = 0; SwigClassCThostFtdcQryBrokerUserEventField.destroy = (void (*)(void *)) free_CThostFtdcQryBrokerUserEventField; SwigClassCThostFtdcQryBrokerUserEventField.trackObjects = 0; SwigClassCThostFtdcBrokerUserEventField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerUserEventField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerUserEventField, (void *) &SwigClassCThostFtdcBrokerUserEventField); rb_define_alloc_func(SwigClassCThostFtdcBrokerUserEventField.klass, _wrap_CThostFtdcBrokerUserEventField_allocate); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerUserEventField), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "UserEventType=", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_UserEventType_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "UserEventType", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_UserEventType_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "EventSequenceNo=", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_EventSequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "EventSequenceNo", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_EventSequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "EventDate=", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_EventDate_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "EventDate", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_EventDate_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "EventTime=", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_EventTime_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "EventTime", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_EventTime_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "UserEventInfo=", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_UserEventInfo_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "UserEventInfo", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_UserEventInfo_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserEventField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcBrokerUserEventField_InstrumentID_get), -1); SwigClassCThostFtdcBrokerUserEventField.mark = 0; SwigClassCThostFtdcBrokerUserEventField.destroy = (void (*)(void *)) free_CThostFtdcBrokerUserEventField; SwigClassCThostFtdcBrokerUserEventField.trackObjects = 0; SwigClassCThostFtdcQryContractBankField.klass = rb_define_class_under(mCtp, "CThostFtdcQryContractBankField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryContractBankField, (void *) &SwigClassCThostFtdcQryContractBankField); rb_define_alloc_func(SwigClassCThostFtdcQryContractBankField.klass, _wrap_CThostFtdcQryContractBankField_allocate); rb_define_method(SwigClassCThostFtdcQryContractBankField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryContractBankField), -1); rb_define_method(SwigClassCThostFtdcQryContractBankField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryContractBankField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryContractBankField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryContractBankField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryContractBankField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcQryContractBankField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcQryContractBankField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcQryContractBankField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcQryContractBankField.klass, "BankBrchID=", VALUEFUNC(_wrap_CThostFtdcQryContractBankField_BankBrchID_set), -1); rb_define_method(SwigClassCThostFtdcQryContractBankField.klass, "BankBrchID", VALUEFUNC(_wrap_CThostFtdcQryContractBankField_BankBrchID_get), -1); SwigClassCThostFtdcQryContractBankField.mark = 0; SwigClassCThostFtdcQryContractBankField.destroy = (void (*)(void *)) free_CThostFtdcQryContractBankField; SwigClassCThostFtdcQryContractBankField.trackObjects = 0; SwigClassCThostFtdcContractBankField.klass = rb_define_class_under(mCtp, "CThostFtdcContractBankField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcContractBankField, (void *) &SwigClassCThostFtdcContractBankField); rb_define_alloc_func(SwigClassCThostFtdcContractBankField.klass, _wrap_CThostFtdcContractBankField_allocate); rb_define_method(SwigClassCThostFtdcContractBankField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcContractBankField), -1); rb_define_method(SwigClassCThostFtdcContractBankField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcContractBankField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcContractBankField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcContractBankField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcContractBankField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcContractBankField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcContractBankField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcContractBankField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcContractBankField.klass, "BankBrchID=", VALUEFUNC(_wrap_CThostFtdcContractBankField_BankBrchID_set), -1); rb_define_method(SwigClassCThostFtdcContractBankField.klass, "BankBrchID", VALUEFUNC(_wrap_CThostFtdcContractBankField_BankBrchID_get), -1); rb_define_method(SwigClassCThostFtdcContractBankField.klass, "BankName=", VALUEFUNC(_wrap_CThostFtdcContractBankField_BankName_set), -1); rb_define_method(SwigClassCThostFtdcContractBankField.klass, "BankName", VALUEFUNC(_wrap_CThostFtdcContractBankField_BankName_get), -1); SwigClassCThostFtdcContractBankField.mark = 0; SwigClassCThostFtdcContractBankField.destroy = (void (*)(void *)) free_CThostFtdcContractBankField; SwigClassCThostFtdcContractBankField.trackObjects = 0; SwigClassCThostFtdcInvestorPositionCombineDetailField.klass = rb_define_class_under(mCtp, "CThostFtdcInvestorPositionCombineDetailField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInvestorPositionCombineDetailField, (void *) &SwigClassCThostFtdcInvestorPositionCombineDetailField); rb_define_alloc_func(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, _wrap_CThostFtdcInvestorPositionCombineDetailField_allocate); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInvestorPositionCombineDetailField), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "OpenDate=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_OpenDate_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "OpenDate", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_OpenDate_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "ComTradeID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_ComTradeID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "ComTradeID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_ComTradeID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "TradeID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_TradeID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "TradeID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_TradeID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "TotalAmt=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_TotalAmt_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "TotalAmt", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_TotalAmt_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "Margin=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_Margin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "Margin", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_Margin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "ExchMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_ExchMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "ExchMargin", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_ExchMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "MarginRateByMoney=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_MarginRateByMoney_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "MarginRateByMoney", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_MarginRateByMoney_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "MarginRateByVolume=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_MarginRateByVolume_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "MarginRateByVolume", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_MarginRateByVolume_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "LegID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_LegID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "LegID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_LegID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "LegMultiple=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_LegMultiple_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "LegMultiple", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_LegMultiple_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "CombInstrumentID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_CombInstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "CombInstrumentID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_CombInstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "TradeGroupID=", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_TradeGroupID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorPositionCombineDetailField.klass, "TradeGroupID", VALUEFUNC(_wrap_CThostFtdcInvestorPositionCombineDetailField_TradeGroupID_get), -1); SwigClassCThostFtdcInvestorPositionCombineDetailField.mark = 0; SwigClassCThostFtdcInvestorPositionCombineDetailField.destroy = (void (*)(void *)) free_CThostFtdcInvestorPositionCombineDetailField; SwigClassCThostFtdcInvestorPositionCombineDetailField.trackObjects = 0; SwigClassCThostFtdcParkedOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcParkedOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcParkedOrderField, (void *) &SwigClassCThostFtdcParkedOrderField); rb_define_alloc_func(SwigClassCThostFtdcParkedOrderField.klass, _wrap_CThostFtdcParkedOrderField_allocate); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcParkedOrderField), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "OrderRef=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_OrderRef_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "OrderRef", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_OrderRef_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "OrderPriceType=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_OrderPriceType_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "OrderPriceType", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_OrderPriceType_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "CombOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_CombOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "CombOffsetFlag", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_CombOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "CombHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_CombHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "CombHedgeFlag", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_CombHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "VolumeTotalOriginal=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_VolumeTotalOriginal_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "VolumeTotalOriginal", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_VolumeTotalOriginal_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "TimeCondition=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_TimeCondition_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "TimeCondition", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_TimeCondition_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "GTDDate=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_GTDDate_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "GTDDate", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_GTDDate_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "VolumeCondition=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_VolumeCondition_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "VolumeCondition", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_VolumeCondition_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "MinVolume=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_MinVolume_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "MinVolume", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_MinVolume_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ContingentCondition=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ContingentCondition_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ContingentCondition", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ContingentCondition_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "StopPrice=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_StopPrice_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "StopPrice", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_StopPrice_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ForceCloseReason=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ForceCloseReason_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ForceCloseReason", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ForceCloseReason_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "IsAutoSuspend=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_IsAutoSuspend_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "IsAutoSuspend", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_IsAutoSuspend_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "UserForceClose=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_UserForceClose_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "UserForceClose", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_UserForceClose_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ParkedOrderID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ParkedOrderID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ParkedOrderID", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ParkedOrderID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "UserType=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_UserType_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "UserType", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_UserType_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "Status=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_Status_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "Status", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_Status_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_ErrorMsg_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "IsSwapOrder=", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_IsSwapOrder_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderField.klass, "IsSwapOrder", VALUEFUNC(_wrap_CThostFtdcParkedOrderField_IsSwapOrder_get), -1); SwigClassCThostFtdcParkedOrderField.mark = 0; SwigClassCThostFtdcParkedOrderField.destroy = (void (*)(void *)) free_CThostFtdcParkedOrderField; SwigClassCThostFtdcParkedOrderField.trackObjects = 0; SwigClassCThostFtdcParkedOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcParkedOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcParkedOrderActionField, (void *) &SwigClassCThostFtdcParkedOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcParkedOrderActionField.klass, _wrap_CThostFtdcParkedOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcParkedOrderActionField), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "OrderActionRef=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_OrderActionRef_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "OrderActionRef", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_OrderActionRef_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "OrderRef=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_OrderRef_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "OrderRef", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_OrderRef_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "VolumeChange=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_VolumeChange_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "VolumeChange", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_VolumeChange_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "ParkedOrderActionID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_ParkedOrderActionID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "ParkedOrderActionID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_ParkedOrderActionID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "UserType=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_UserType_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "UserType", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_UserType_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "Status=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_Status_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "Status", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_Status_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcParkedOrderActionField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcParkedOrderActionField_ErrorMsg_get), -1); SwigClassCThostFtdcParkedOrderActionField.mark = 0; SwigClassCThostFtdcParkedOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcParkedOrderActionField; SwigClassCThostFtdcParkedOrderActionField.trackObjects = 0; SwigClassCThostFtdcQryParkedOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcQryParkedOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryParkedOrderField, (void *) &SwigClassCThostFtdcQryParkedOrderField); rb_define_alloc_func(SwigClassCThostFtdcQryParkedOrderField.klass, _wrap_CThostFtdcQryParkedOrderField_allocate); rb_define_method(SwigClassCThostFtdcQryParkedOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryParkedOrderField), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderField_ExchangeID_get), -1); SwigClassCThostFtdcQryParkedOrderField.mark = 0; SwigClassCThostFtdcQryParkedOrderField.destroy = (void (*)(void *)) free_CThostFtdcQryParkedOrderField; SwigClassCThostFtdcQryParkedOrderField.trackObjects = 0; SwigClassCThostFtdcQryParkedOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryParkedOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryParkedOrderActionField, (void *) &SwigClassCThostFtdcQryParkedOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcQryParkedOrderActionField.klass, _wrap_CThostFtdcQryParkedOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcQryParkedOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryParkedOrderActionField), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderActionField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryParkedOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryParkedOrderActionField_ExchangeID_get), -1); SwigClassCThostFtdcQryParkedOrderActionField.mark = 0; SwigClassCThostFtdcQryParkedOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcQryParkedOrderActionField; SwigClassCThostFtdcQryParkedOrderActionField.trackObjects = 0; SwigClassCThostFtdcRemoveParkedOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcRemoveParkedOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRemoveParkedOrderField, (void *) &SwigClassCThostFtdcRemoveParkedOrderField); rb_define_alloc_func(SwigClassCThostFtdcRemoveParkedOrderField.klass, _wrap_CThostFtdcRemoveParkedOrderField_allocate); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRemoveParkedOrderField), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderField.klass, "ParkedOrderID=", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderField_ParkedOrderID_set), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderField.klass, "ParkedOrderID", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderField_ParkedOrderID_get), -1); SwigClassCThostFtdcRemoveParkedOrderField.mark = 0; SwigClassCThostFtdcRemoveParkedOrderField.destroy = (void (*)(void *)) free_CThostFtdcRemoveParkedOrderField; SwigClassCThostFtdcRemoveParkedOrderField.trackObjects = 0; SwigClassCThostFtdcRemoveParkedOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcRemoveParkedOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRemoveParkedOrderActionField, (void *) &SwigClassCThostFtdcRemoveParkedOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcRemoveParkedOrderActionField.klass, _wrap_CThostFtdcRemoveParkedOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRemoveParkedOrderActionField), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderActionField.klass, "ParkedOrderActionID=", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderActionField_ParkedOrderActionID_set), -1); rb_define_method(SwigClassCThostFtdcRemoveParkedOrderActionField.klass, "ParkedOrderActionID", VALUEFUNC(_wrap_CThostFtdcRemoveParkedOrderActionField_ParkedOrderActionID_get), -1); SwigClassCThostFtdcRemoveParkedOrderActionField.mark = 0; SwigClassCThostFtdcRemoveParkedOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcRemoveParkedOrderActionField; SwigClassCThostFtdcRemoveParkedOrderActionField.trackObjects = 0; SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass = rb_define_class_under(mCtp, "CThostFtdcInvestorWithdrawAlgorithmField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInvestorWithdrawAlgorithmField, (void *) &SwigClassCThostFtdcInvestorWithdrawAlgorithmField); rb_define_alloc_func(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, _wrap_CThostFtdcInvestorWithdrawAlgorithmField_allocate); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInvestorWithdrawAlgorithmField), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "UsingRatio=", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_UsingRatio_set), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "UsingRatio", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_UsingRatio_get), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "FundMortgageRatio=", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_FundMortgageRatio_set), -1); rb_define_method(SwigClassCThostFtdcInvestorWithdrawAlgorithmField.klass, "FundMortgageRatio", VALUEFUNC(_wrap_CThostFtdcInvestorWithdrawAlgorithmField_FundMortgageRatio_get), -1); SwigClassCThostFtdcInvestorWithdrawAlgorithmField.mark = 0; SwigClassCThostFtdcInvestorWithdrawAlgorithmField.destroy = (void (*)(void *)) free_CThostFtdcInvestorWithdrawAlgorithmField; SwigClassCThostFtdcInvestorWithdrawAlgorithmField.trackObjects = 0; SwigClassCThostFtdcQryInvestorPositionCombineDetailField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInvestorPositionCombineDetailField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInvestorPositionCombineDetailField, (void *) &SwigClassCThostFtdcQryInvestorPositionCombineDetailField); rb_define_alloc_func(SwigClassCThostFtdcQryInvestorPositionCombineDetailField.klass, _wrap_CThostFtdcQryInvestorPositionCombineDetailField_allocate); rb_define_method(SwigClassCThostFtdcQryInvestorPositionCombineDetailField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInvestorPositionCombineDetailField), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionCombineDetailField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionCombineDetailField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionCombineDetailField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionCombineDetailField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionCombineDetailField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionCombineDetailField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionCombineDetailField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionCombineDetailField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionCombineDetailField.klass, "CombInstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionCombineDetailField_CombInstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorPositionCombineDetailField.klass, "CombInstrumentID", VALUEFUNC(_wrap_CThostFtdcQryInvestorPositionCombineDetailField_CombInstrumentID_get), -1); SwigClassCThostFtdcQryInvestorPositionCombineDetailField.mark = 0; SwigClassCThostFtdcQryInvestorPositionCombineDetailField.destroy = (void (*)(void *)) free_CThostFtdcQryInvestorPositionCombineDetailField; SwigClassCThostFtdcQryInvestorPositionCombineDetailField.trackObjects = 0; SwigClassCThostFtdcMarketDataAveragePriceField.klass = rb_define_class_under(mCtp, "CThostFtdcMarketDataAveragePriceField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarketDataAveragePriceField, (void *) &SwigClassCThostFtdcMarketDataAveragePriceField); rb_define_alloc_func(SwigClassCThostFtdcMarketDataAveragePriceField.klass, _wrap_CThostFtdcMarketDataAveragePriceField_allocate); rb_define_method(SwigClassCThostFtdcMarketDataAveragePriceField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarketDataAveragePriceField), -1); rb_define_method(SwigClassCThostFtdcMarketDataAveragePriceField.klass, "AveragePrice=", VALUEFUNC(_wrap_CThostFtdcMarketDataAveragePriceField_AveragePrice_set), -1); rb_define_method(SwigClassCThostFtdcMarketDataAveragePriceField.klass, "AveragePrice", VALUEFUNC(_wrap_CThostFtdcMarketDataAveragePriceField_AveragePrice_get), -1); SwigClassCThostFtdcMarketDataAveragePriceField.mark = 0; SwigClassCThostFtdcMarketDataAveragePriceField.destroy = (void (*)(void *)) free_CThostFtdcMarketDataAveragePriceField; SwigClassCThostFtdcMarketDataAveragePriceField.trackObjects = 0; SwigClassCThostFtdcVerifyInvestorPasswordField.klass = rb_define_class_under(mCtp, "CThostFtdcVerifyInvestorPasswordField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcVerifyInvestorPasswordField, (void *) &SwigClassCThostFtdcVerifyInvestorPasswordField); rb_define_alloc_func(SwigClassCThostFtdcVerifyInvestorPasswordField.klass, _wrap_CThostFtdcVerifyInvestorPasswordField_allocate); rb_define_method(SwigClassCThostFtdcVerifyInvestorPasswordField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcVerifyInvestorPasswordField), -1); rb_define_method(SwigClassCThostFtdcVerifyInvestorPasswordField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcVerifyInvestorPasswordField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyInvestorPasswordField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcVerifyInvestorPasswordField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyInvestorPasswordField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcVerifyInvestorPasswordField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyInvestorPasswordField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcVerifyInvestorPasswordField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyInvestorPasswordField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcVerifyInvestorPasswordField_Password_set), -1); rb_define_method(SwigClassCThostFtdcVerifyInvestorPasswordField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcVerifyInvestorPasswordField_Password_get), -1); SwigClassCThostFtdcVerifyInvestorPasswordField.mark = 0; SwigClassCThostFtdcVerifyInvestorPasswordField.destroy = (void (*)(void *)) free_CThostFtdcVerifyInvestorPasswordField; SwigClassCThostFtdcVerifyInvestorPasswordField.trackObjects = 0; SwigClassCThostFtdcUserIPField.klass = rb_define_class_under(mCtp, "CThostFtdcUserIPField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcUserIPField, (void *) &SwigClassCThostFtdcUserIPField); rb_define_alloc_func(SwigClassCThostFtdcUserIPField.klass, _wrap_CThostFtdcUserIPField_allocate); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcUserIPField), -1); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcUserIPField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcUserIPField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcUserIPField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcUserIPField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "IPAddress=", VALUEFUNC(_wrap_CThostFtdcUserIPField_IPAddress_set), -1); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "IPAddress", VALUEFUNC(_wrap_CThostFtdcUserIPField_IPAddress_get), -1); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "IPMask=", VALUEFUNC(_wrap_CThostFtdcUserIPField_IPMask_set), -1); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "IPMask", VALUEFUNC(_wrap_CThostFtdcUserIPField_IPMask_get), -1); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "MacAddress=", VALUEFUNC(_wrap_CThostFtdcUserIPField_MacAddress_set), -1); rb_define_method(SwigClassCThostFtdcUserIPField.klass, "MacAddress", VALUEFUNC(_wrap_CThostFtdcUserIPField_MacAddress_get), -1); SwigClassCThostFtdcUserIPField.mark = 0; SwigClassCThostFtdcUserIPField.destroy = (void (*)(void *)) free_CThostFtdcUserIPField; SwigClassCThostFtdcUserIPField.trackObjects = 0; SwigClassCThostFtdcTradingNoticeInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcTradingNoticeInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTradingNoticeInfoField, (void *) &SwigClassCThostFtdcTradingNoticeInfoField); rb_define_alloc_func(SwigClassCThostFtdcTradingNoticeInfoField.klass, _wrap_CThostFtdcTradingNoticeInfoField_allocate); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTradingNoticeInfoField), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "SendTime=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_SendTime_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "SendTime", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_SendTime_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "FieldContent=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_FieldContent_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "FieldContent", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_FieldContent_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "SequenceSeries=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_SequenceSeries_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "SequenceSeries", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_SequenceSeries_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeInfoField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcTradingNoticeInfoField_SequenceNo_get), -1); SwigClassCThostFtdcTradingNoticeInfoField.mark = 0; SwigClassCThostFtdcTradingNoticeInfoField.destroy = (void (*)(void *)) free_CThostFtdcTradingNoticeInfoField; SwigClassCThostFtdcTradingNoticeInfoField.trackObjects = 0; SwigClassCThostFtdcTradingNoticeField.klass = rb_define_class_under(mCtp, "CThostFtdcTradingNoticeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTradingNoticeField, (void *) &SwigClassCThostFtdcTradingNoticeField); rb_define_alloc_func(SwigClassCThostFtdcTradingNoticeField.klass, _wrap_CThostFtdcTradingNoticeField_allocate); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTradingNoticeField), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "InvestorRange=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_InvestorRange_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "InvestorRange", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_InvestorRange_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "SequenceSeries=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_SequenceSeries_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "SequenceSeries", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_SequenceSeries_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "SendTime=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_SendTime_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "SendTime", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_SendTime_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "FieldContent=", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_FieldContent_set), -1); rb_define_method(SwigClassCThostFtdcTradingNoticeField.klass, "FieldContent", VALUEFUNC(_wrap_CThostFtdcTradingNoticeField_FieldContent_get), -1); SwigClassCThostFtdcTradingNoticeField.mark = 0; SwigClassCThostFtdcTradingNoticeField.destroy = (void (*)(void *)) free_CThostFtdcTradingNoticeField; SwigClassCThostFtdcTradingNoticeField.trackObjects = 0; SwigClassCThostFtdcQryTradingNoticeField.klass = rb_define_class_under(mCtp, "CThostFtdcQryTradingNoticeField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryTradingNoticeField, (void *) &SwigClassCThostFtdcQryTradingNoticeField); rb_define_alloc_func(SwigClassCThostFtdcQryTradingNoticeField.klass, _wrap_CThostFtdcQryTradingNoticeField_allocate); rb_define_method(SwigClassCThostFtdcQryTradingNoticeField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryTradingNoticeField), -1); rb_define_method(SwigClassCThostFtdcQryTradingNoticeField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryTradingNoticeField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradingNoticeField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryTradingNoticeField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryTradingNoticeField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryTradingNoticeField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryTradingNoticeField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryTradingNoticeField_InvestorID_get), -1); SwigClassCThostFtdcQryTradingNoticeField.mark = 0; SwigClassCThostFtdcQryTradingNoticeField.destroy = (void (*)(void *)) free_CThostFtdcQryTradingNoticeField; SwigClassCThostFtdcQryTradingNoticeField.trackObjects = 0; SwigClassCThostFtdcQryErrOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcQryErrOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryErrOrderField, (void *) &SwigClassCThostFtdcQryErrOrderField); rb_define_alloc_func(SwigClassCThostFtdcQryErrOrderField.klass, _wrap_CThostFtdcQryErrOrderField_allocate); rb_define_method(SwigClassCThostFtdcQryErrOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryErrOrderField), -1); rb_define_method(SwigClassCThostFtdcQryErrOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryErrOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryErrOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryErrOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryErrOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryErrOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryErrOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryErrOrderField_InvestorID_get), -1); SwigClassCThostFtdcQryErrOrderField.mark = 0; SwigClassCThostFtdcQryErrOrderField.destroy = (void (*)(void *)) free_CThostFtdcQryErrOrderField; SwigClassCThostFtdcQryErrOrderField.trackObjects = 0; SwigClassCThostFtdcErrOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcErrOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcErrOrderField, (void *) &SwigClassCThostFtdcErrOrderField); rb_define_alloc_func(SwigClassCThostFtdcErrOrderField.klass, _wrap_CThostFtdcErrOrderField_allocate); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcErrOrderField), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcErrOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcErrOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcErrOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "OrderRef=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_OrderRef_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "OrderRef", VALUEFUNC(_wrap_CThostFtdcErrOrderField_OrderRef_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcErrOrderField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "OrderPriceType=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_OrderPriceType_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "OrderPriceType", VALUEFUNC(_wrap_CThostFtdcErrOrderField_OrderPriceType_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcErrOrderField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "CombOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_CombOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "CombOffsetFlag", VALUEFUNC(_wrap_CThostFtdcErrOrderField_CombOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "CombHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_CombHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "CombHedgeFlag", VALUEFUNC(_wrap_CThostFtdcErrOrderField_CombHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcErrOrderField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "VolumeTotalOriginal=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_VolumeTotalOriginal_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "VolumeTotalOriginal", VALUEFUNC(_wrap_CThostFtdcErrOrderField_VolumeTotalOriginal_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "TimeCondition=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_TimeCondition_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "TimeCondition", VALUEFUNC(_wrap_CThostFtdcErrOrderField_TimeCondition_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "GTDDate=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_GTDDate_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "GTDDate", VALUEFUNC(_wrap_CThostFtdcErrOrderField_GTDDate_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "VolumeCondition=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_VolumeCondition_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "VolumeCondition", VALUEFUNC(_wrap_CThostFtdcErrOrderField_VolumeCondition_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "MinVolume=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_MinVolume_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "MinVolume", VALUEFUNC(_wrap_CThostFtdcErrOrderField_MinVolume_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "ContingentCondition=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_ContingentCondition_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "ContingentCondition", VALUEFUNC(_wrap_CThostFtdcErrOrderField_ContingentCondition_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "StopPrice=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_StopPrice_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "StopPrice", VALUEFUNC(_wrap_CThostFtdcErrOrderField_StopPrice_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "ForceCloseReason=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_ForceCloseReason_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "ForceCloseReason", VALUEFUNC(_wrap_CThostFtdcErrOrderField_ForceCloseReason_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "IsAutoSuspend=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_IsAutoSuspend_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "IsAutoSuspend", VALUEFUNC(_wrap_CThostFtdcErrOrderField_IsAutoSuspend_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcErrOrderField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcErrOrderField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "UserForceClose=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_UserForceClose_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "UserForceClose", VALUEFUNC(_wrap_CThostFtdcErrOrderField_UserForceClose_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcErrOrderField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcErrOrderField_ErrorMsg_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "IsSwapOrder=", VALUEFUNC(_wrap_CThostFtdcErrOrderField_IsSwapOrder_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderField.klass, "IsSwapOrder", VALUEFUNC(_wrap_CThostFtdcErrOrderField_IsSwapOrder_get), -1); SwigClassCThostFtdcErrOrderField.mark = 0; SwigClassCThostFtdcErrOrderField.destroy = (void (*)(void *)) free_CThostFtdcErrOrderField; SwigClassCThostFtdcErrOrderField.trackObjects = 0; SwigClassCThostFtdcErrorConditionalOrderField.klass = rb_define_class_under(mCtp, "CThostFtdcErrorConditionalOrderField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcErrorConditionalOrderField, (void *) &SwigClassCThostFtdcErrorConditionalOrderField); rb_define_alloc_func(SwigClassCThostFtdcErrorConditionalOrderField.klass, _wrap_CThostFtdcErrorConditionalOrderField_allocate); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcErrorConditionalOrderField), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderRef=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderRef_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderRef", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderRef_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderPriceType=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderPriceType_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderPriceType", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderPriceType_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "CombOffsetFlag=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_CombOffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "CombOffsetFlag", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_CombOffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "CombHedgeFlag=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_CombHedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "CombHedgeFlag", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_CombHedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "VolumeTotalOriginal=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_VolumeTotalOriginal_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "VolumeTotalOriginal", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_VolumeTotalOriginal_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "TimeCondition=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_TimeCondition_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "TimeCondition", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_TimeCondition_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "GTDDate=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_GTDDate_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "GTDDate", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_GTDDate_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "VolumeCondition=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_VolumeCondition_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "VolumeCondition", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_VolumeCondition_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "MinVolume=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_MinVolume_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "MinVolume", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_MinVolume_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ContingentCondition=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ContingentCondition_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ContingentCondition", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ContingentCondition_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "StopPrice=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_StopPrice_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "StopPrice", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_StopPrice_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ForceCloseReason=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ForceCloseReason_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ForceCloseReason", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ForceCloseReason_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "IsAutoSuspend=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_IsAutoSuspend_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "IsAutoSuspend", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_IsAutoSuspend_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ExchangeInstID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ExchangeInstID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ExchangeInstID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ExchangeInstID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderSubmitStatus=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderSubmitStatus_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderSubmitStatus", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderSubmitStatus_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "NotifySequence=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_NotifySequence_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "NotifySequence", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_NotifySequence_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderSource=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderSource_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderSource", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderSource_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderStatus=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderStatus_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderStatus", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderStatus_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderType=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderType_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "OrderType", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_OrderType_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "VolumeTraded=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_VolumeTraded_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "VolumeTraded", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_VolumeTraded_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "VolumeTotal=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_VolumeTotal_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "VolumeTotal", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_VolumeTotal_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "InsertDate=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_InsertDate_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "InsertDate", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_InsertDate_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "InsertTime=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_InsertTime_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "InsertTime", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_InsertTime_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ActiveTime=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ActiveTime_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ActiveTime", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ActiveTime_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "SuspendTime=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_SuspendTime_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "SuspendTime", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_SuspendTime_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "UpdateTime=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_UpdateTime_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "UpdateTime", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_UpdateTime_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "CancelTime=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_CancelTime_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "CancelTime", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_CancelTime_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ActiveTraderID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ActiveTraderID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ActiveTraderID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ActiveTraderID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ClearingPartID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ClearingPartID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ClearingPartID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ClearingPartID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "UserProductInfo=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_UserProductInfo_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "UserProductInfo", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_UserProductInfo_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "StatusMsg=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_StatusMsg_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "StatusMsg", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_StatusMsg_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "UserForceClose=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_UserForceClose_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "UserForceClose", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_UserForceClose_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ActiveUserID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ActiveUserID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ActiveUserID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ActiveUserID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "BrokerOrderSeq=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_BrokerOrderSeq_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "BrokerOrderSeq", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_BrokerOrderSeq_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "RelativeOrderSysID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_RelativeOrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "RelativeOrderSysID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_RelativeOrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ZCETotalTradedVolume=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ZCETotalTradedVolume_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ZCETotalTradedVolume", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ZCETotalTradedVolume_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_ErrorMsg_get), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "IsSwapOrder=", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_IsSwapOrder_set), -1); rb_define_method(SwigClassCThostFtdcErrorConditionalOrderField.klass, "IsSwapOrder", VALUEFUNC(_wrap_CThostFtdcErrorConditionalOrderField_IsSwapOrder_get), -1); SwigClassCThostFtdcErrorConditionalOrderField.mark = 0; SwigClassCThostFtdcErrorConditionalOrderField.destroy = (void (*)(void *)) free_CThostFtdcErrorConditionalOrderField; SwigClassCThostFtdcErrorConditionalOrderField.trackObjects = 0; SwigClassCThostFtdcQryErrOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcQryErrOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryErrOrderActionField, (void *) &SwigClassCThostFtdcQryErrOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcQryErrOrderActionField.klass, _wrap_CThostFtdcQryErrOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcQryErrOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryErrOrderActionField), -1); rb_define_method(SwigClassCThostFtdcQryErrOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryErrOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryErrOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryErrOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryErrOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryErrOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryErrOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryErrOrderActionField_InvestorID_get), -1); SwigClassCThostFtdcQryErrOrderActionField.mark = 0; SwigClassCThostFtdcQryErrOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcQryErrOrderActionField; SwigClassCThostFtdcQryErrOrderActionField.trackObjects = 0; SwigClassCThostFtdcErrOrderActionField.klass = rb_define_class_under(mCtp, "CThostFtdcErrOrderActionField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcErrOrderActionField, (void *) &SwigClassCThostFtdcErrOrderActionField); rb_define_alloc_func(SwigClassCThostFtdcErrOrderActionField.klass, _wrap_CThostFtdcErrOrderActionField_allocate); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcErrOrderActionField), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "OrderActionRef=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_OrderActionRef_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "OrderActionRef", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_OrderActionRef_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "OrderRef=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_OrderRef_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "OrderRef", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_OrderRef_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "FrontID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_FrontID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "FrontID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_FrontID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "OrderSysID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_OrderSysID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "OrderSysID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_OrderSysID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ActionFlag=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ActionFlag_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ActionFlag", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ActionFlag_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "LimitPrice=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_LimitPrice_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "LimitPrice", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_LimitPrice_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "VolumeChange=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_VolumeChange_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "VolumeChange", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_VolumeChange_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ActionDate=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ActionDate_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ActionDate", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ActionDate_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ActionTime=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ActionTime_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ActionTime", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ActionTime_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "TraderID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_TraderID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "TraderID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_TraderID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "OrderLocalID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_OrderLocalID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "OrderLocalID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_OrderLocalID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ActionLocalID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ActionLocalID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ActionLocalID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ActionLocalID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ClientID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ClientID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ClientID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ClientID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "BusinessUnit=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_BusinessUnit_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "BusinessUnit", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_BusinessUnit_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "OrderActionStatus=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_OrderActionStatus_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "OrderActionStatus", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_OrderActionStatus_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "StatusMsg=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_StatusMsg_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "StatusMsg", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_StatusMsg_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcErrOrderActionField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcErrOrderActionField_ErrorMsg_get), -1); SwigClassCThostFtdcErrOrderActionField.mark = 0; SwigClassCThostFtdcErrOrderActionField.destroy = (void (*)(void *)) free_CThostFtdcErrOrderActionField; SwigClassCThostFtdcErrOrderActionField.trackObjects = 0; SwigClassCThostFtdcQryExchangeSequenceField.klass = rb_define_class_under(mCtp, "CThostFtdcQryExchangeSequenceField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryExchangeSequenceField, (void *) &SwigClassCThostFtdcQryExchangeSequenceField); rb_define_alloc_func(SwigClassCThostFtdcQryExchangeSequenceField.klass, _wrap_CThostFtdcQryExchangeSequenceField_allocate); rb_define_method(SwigClassCThostFtdcQryExchangeSequenceField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryExchangeSequenceField), -1); rb_define_method(SwigClassCThostFtdcQryExchangeSequenceField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryExchangeSequenceField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryExchangeSequenceField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryExchangeSequenceField_ExchangeID_get), -1); SwigClassCThostFtdcQryExchangeSequenceField.mark = 0; SwigClassCThostFtdcQryExchangeSequenceField.destroy = (void (*)(void *)) free_CThostFtdcQryExchangeSequenceField; SwigClassCThostFtdcQryExchangeSequenceField.trackObjects = 0; SwigClassCThostFtdcExchangeSequenceField.klass = rb_define_class_under(mCtp, "CThostFtdcExchangeSequenceField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcExchangeSequenceField, (void *) &SwigClassCThostFtdcExchangeSequenceField); rb_define_alloc_func(SwigClassCThostFtdcExchangeSequenceField.klass, _wrap_CThostFtdcExchangeSequenceField_allocate); rb_define_method(SwigClassCThostFtdcExchangeSequenceField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcExchangeSequenceField), -1); rb_define_method(SwigClassCThostFtdcExchangeSequenceField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcExchangeSequenceField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcExchangeSequenceField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcExchangeSequenceField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcExchangeSequenceField.klass, "SequenceNo=", VALUEFUNC(_wrap_CThostFtdcExchangeSequenceField_SequenceNo_set), -1); rb_define_method(SwigClassCThostFtdcExchangeSequenceField.klass, "SequenceNo", VALUEFUNC(_wrap_CThostFtdcExchangeSequenceField_SequenceNo_get), -1); rb_define_method(SwigClassCThostFtdcExchangeSequenceField.klass, "MarketStatus=", VALUEFUNC(_wrap_CThostFtdcExchangeSequenceField_MarketStatus_set), -1); rb_define_method(SwigClassCThostFtdcExchangeSequenceField.klass, "MarketStatus", VALUEFUNC(_wrap_CThostFtdcExchangeSequenceField_MarketStatus_get), -1); SwigClassCThostFtdcExchangeSequenceField.mark = 0; SwigClassCThostFtdcExchangeSequenceField.destroy = (void (*)(void *)) free_CThostFtdcExchangeSequenceField; SwigClassCThostFtdcExchangeSequenceField.trackObjects = 0; SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass = rb_define_class_under(mCtp, "CThostFtdcQueryMaxOrderVolumeWithPriceField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQueryMaxOrderVolumeWithPriceField, (void *) &SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField); rb_define_alloc_func(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, _wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_allocate); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQueryMaxOrderVolumeWithPriceField), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "OffsetFlag=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_OffsetFlag_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "OffsetFlag", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_OffsetFlag_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "MaxVolume=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_MaxVolume_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "MaxVolume", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_MaxVolume_get), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "Price=", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_Price_set), -1); rb_define_method(SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.klass, "Price", VALUEFUNC(_wrap_CThostFtdcQueryMaxOrderVolumeWithPriceField_Price_get), -1); SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.mark = 0; SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.destroy = (void (*)(void *)) free_CThostFtdcQueryMaxOrderVolumeWithPriceField; SwigClassCThostFtdcQueryMaxOrderVolumeWithPriceField.trackObjects = 0; SwigClassCThostFtdcQryBrokerTradingParamsField.klass = rb_define_class_under(mCtp, "CThostFtdcQryBrokerTradingParamsField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryBrokerTradingParamsField, (void *) &SwigClassCThostFtdcQryBrokerTradingParamsField); rb_define_alloc_func(SwigClassCThostFtdcQryBrokerTradingParamsField.klass, _wrap_CThostFtdcQryBrokerTradingParamsField_allocate); rb_define_method(SwigClassCThostFtdcQryBrokerTradingParamsField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryBrokerTradingParamsField), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingParamsField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingParamsField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingParamsField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingParamsField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingParamsField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingParamsField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingParamsField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingParamsField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingParamsField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingParamsField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingParamsField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingParamsField_CurrencyID_get), -1); SwigClassCThostFtdcQryBrokerTradingParamsField.mark = 0; SwigClassCThostFtdcQryBrokerTradingParamsField.destroy = (void (*)(void *)) free_CThostFtdcQryBrokerTradingParamsField; SwigClassCThostFtdcQryBrokerTradingParamsField.trackObjects = 0; SwigClassCThostFtdcBrokerTradingParamsField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerTradingParamsField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerTradingParamsField, (void *) &SwigClassCThostFtdcBrokerTradingParamsField); rb_define_alloc_func(SwigClassCThostFtdcBrokerTradingParamsField.klass, _wrap_CThostFtdcBrokerTradingParamsField_allocate); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerTradingParamsField), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "MarginPriceType=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_MarginPriceType_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "MarginPriceType", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_MarginPriceType_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "Algorithm=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_Algorithm_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "Algorithm", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_Algorithm_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "AvailIncludeCloseProfit=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_AvailIncludeCloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "AvailIncludeCloseProfit", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_AvailIncludeCloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "OptionRoyaltyPriceType=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_OptionRoyaltyPriceType_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingParamsField.klass, "OptionRoyaltyPriceType", VALUEFUNC(_wrap_CThostFtdcBrokerTradingParamsField_OptionRoyaltyPriceType_get), -1); SwigClassCThostFtdcBrokerTradingParamsField.mark = 0; SwigClassCThostFtdcBrokerTradingParamsField.destroy = (void (*)(void *)) free_CThostFtdcBrokerTradingParamsField; SwigClassCThostFtdcBrokerTradingParamsField.trackObjects = 0; SwigClassCThostFtdcQryBrokerTradingAlgosField.klass = rb_define_class_under(mCtp, "CThostFtdcQryBrokerTradingAlgosField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryBrokerTradingAlgosField, (void *) &SwigClassCThostFtdcQryBrokerTradingAlgosField); rb_define_alloc_func(SwigClassCThostFtdcQryBrokerTradingAlgosField.klass, _wrap_CThostFtdcQryBrokerTradingAlgosField_allocate); rb_define_method(SwigClassCThostFtdcQryBrokerTradingAlgosField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryBrokerTradingAlgosField), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingAlgosField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingAlgosField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingAlgosField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingAlgosField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingAlgosField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingAlgosField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingAlgosField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingAlgosField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingAlgosField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingAlgosField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryBrokerTradingAlgosField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryBrokerTradingAlgosField_InstrumentID_get), -1); SwigClassCThostFtdcQryBrokerTradingAlgosField.mark = 0; SwigClassCThostFtdcQryBrokerTradingAlgosField.destroy = (void (*)(void *)) free_CThostFtdcQryBrokerTradingAlgosField; SwigClassCThostFtdcQryBrokerTradingAlgosField.trackObjects = 0; SwigClassCThostFtdcBrokerTradingAlgosField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerTradingAlgosField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerTradingAlgosField, (void *) &SwigClassCThostFtdcBrokerTradingAlgosField); rb_define_alloc_func(SwigClassCThostFtdcBrokerTradingAlgosField.klass, _wrap_CThostFtdcBrokerTradingAlgosField_allocate); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerTradingAlgosField), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "HandlePositionAlgoID=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_HandlePositionAlgoID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "HandlePositionAlgoID", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_HandlePositionAlgoID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "FindMarginRateAlgoID=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_FindMarginRateAlgoID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "FindMarginRateAlgoID", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_FindMarginRateAlgoID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "HandleTradingAccountAlgoID=", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_HandleTradingAccountAlgoID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerTradingAlgosField.klass, "HandleTradingAccountAlgoID", VALUEFUNC(_wrap_CThostFtdcBrokerTradingAlgosField_HandleTradingAccountAlgoID_get), -1); SwigClassCThostFtdcBrokerTradingAlgosField.mark = 0; SwigClassCThostFtdcBrokerTradingAlgosField.destroy = (void (*)(void *)) free_CThostFtdcBrokerTradingAlgosField; SwigClassCThostFtdcBrokerTradingAlgosField.trackObjects = 0; SwigClassCThostFtdcQueryBrokerDepositField.klass = rb_define_class_under(mCtp, "CThostFtdcQueryBrokerDepositField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQueryBrokerDepositField, (void *) &SwigClassCThostFtdcQueryBrokerDepositField); rb_define_alloc_func(SwigClassCThostFtdcQueryBrokerDepositField.klass, _wrap_CThostFtdcQueryBrokerDepositField_allocate); rb_define_method(SwigClassCThostFtdcQueryBrokerDepositField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQueryBrokerDepositField), -1); rb_define_method(SwigClassCThostFtdcQueryBrokerDepositField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQueryBrokerDepositField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQueryBrokerDepositField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQueryBrokerDepositField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQueryBrokerDepositField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQueryBrokerDepositField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQueryBrokerDepositField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQueryBrokerDepositField_ExchangeID_get), -1); SwigClassCThostFtdcQueryBrokerDepositField.mark = 0; SwigClassCThostFtdcQueryBrokerDepositField.destroy = (void (*)(void *)) free_CThostFtdcQueryBrokerDepositField; SwigClassCThostFtdcQueryBrokerDepositField.trackObjects = 0; SwigClassCThostFtdcBrokerDepositField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerDepositField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerDepositField, (void *) &SwigClassCThostFtdcBrokerDepositField); rb_define_alloc_func(SwigClassCThostFtdcBrokerDepositField.klass, _wrap_CThostFtdcBrokerDepositField_allocate); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerDepositField), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "PreBalance=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_PreBalance_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "PreBalance", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_PreBalance_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "CurrMargin=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_CurrMargin_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "CurrMargin", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_CurrMargin_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "CloseProfit=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_CloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "CloseProfit", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_CloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "Balance=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_Balance_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "Balance", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_Balance_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "Deposit=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_Deposit_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "Deposit", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_Deposit_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "Withdraw=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_Withdraw_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "Withdraw", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_Withdraw_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "Available=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_Available_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "Available", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_Available_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "Reserve=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_Reserve_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "Reserve", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_Reserve_get), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "FrozenMargin=", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_FrozenMargin_set), -1); rb_define_method(SwigClassCThostFtdcBrokerDepositField.klass, "FrozenMargin", VALUEFUNC(_wrap_CThostFtdcBrokerDepositField_FrozenMargin_get), -1); SwigClassCThostFtdcBrokerDepositField.mark = 0; SwigClassCThostFtdcBrokerDepositField.destroy = (void (*)(void *)) free_CThostFtdcBrokerDepositField; SwigClassCThostFtdcBrokerDepositField.trackObjects = 0; SwigClassCThostFtdcQryCFMMCBrokerKeyField.klass = rb_define_class_under(mCtp, "CThostFtdcQryCFMMCBrokerKeyField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryCFMMCBrokerKeyField, (void *) &SwigClassCThostFtdcQryCFMMCBrokerKeyField); rb_define_alloc_func(SwigClassCThostFtdcQryCFMMCBrokerKeyField.klass, _wrap_CThostFtdcQryCFMMCBrokerKeyField_allocate); rb_define_method(SwigClassCThostFtdcQryCFMMCBrokerKeyField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryCFMMCBrokerKeyField), -1); rb_define_method(SwigClassCThostFtdcQryCFMMCBrokerKeyField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryCFMMCBrokerKeyField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryCFMMCBrokerKeyField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryCFMMCBrokerKeyField_BrokerID_get), -1); SwigClassCThostFtdcQryCFMMCBrokerKeyField.mark = 0; SwigClassCThostFtdcQryCFMMCBrokerKeyField.destroy = (void (*)(void *)) free_CThostFtdcQryCFMMCBrokerKeyField; SwigClassCThostFtdcQryCFMMCBrokerKeyField.trackObjects = 0; SwigClassCThostFtdcCFMMCBrokerKeyField.klass = rb_define_class_under(mCtp, "CThostFtdcCFMMCBrokerKeyField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCFMMCBrokerKeyField, (void *) &SwigClassCThostFtdcCFMMCBrokerKeyField); rb_define_alloc_func(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, _wrap_CThostFtdcCFMMCBrokerKeyField_allocate); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCFMMCBrokerKeyField), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "CreateDate=", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_CreateDate_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "CreateDate", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_CreateDate_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "CreateTime=", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_CreateTime_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "CreateTime", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_CreateTime_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "KeyID=", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_KeyID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "KeyID", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_KeyID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "CurrentKey=", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_CurrentKey_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "CurrentKey", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_CurrentKey_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "KeyKind=", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_KeyKind_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCBrokerKeyField.klass, "KeyKind", VALUEFUNC(_wrap_CThostFtdcCFMMCBrokerKeyField_KeyKind_get), -1); SwigClassCThostFtdcCFMMCBrokerKeyField.mark = 0; SwigClassCThostFtdcCFMMCBrokerKeyField.destroy = (void (*)(void *)) free_CThostFtdcCFMMCBrokerKeyField; SwigClassCThostFtdcCFMMCBrokerKeyField.trackObjects = 0; SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass = rb_define_class_under(mCtp, "CThostFtdcCFMMCTradingAccountKeyField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCFMMCTradingAccountKeyField, (void *) &SwigClassCThostFtdcCFMMCTradingAccountKeyField); rb_define_alloc_func(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, _wrap_CThostFtdcCFMMCTradingAccountKeyField_allocate); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCFMMCTradingAccountKeyField), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountKeyField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountKeyField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountKeyField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountKeyField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountKeyField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountKeyField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "KeyID=", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountKeyField_KeyID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "KeyID", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountKeyField_KeyID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "CurrentKey=", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountKeyField_CurrentKey_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountKeyField.klass, "CurrentKey", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountKeyField_CurrentKey_get), -1); SwigClassCThostFtdcCFMMCTradingAccountKeyField.mark = 0; SwigClassCThostFtdcCFMMCTradingAccountKeyField.destroy = (void (*)(void *)) free_CThostFtdcCFMMCTradingAccountKeyField; SwigClassCThostFtdcCFMMCTradingAccountKeyField.trackObjects = 0; SwigClassCThostFtdcQryCFMMCTradingAccountKeyField.klass = rb_define_class_under(mCtp, "CThostFtdcQryCFMMCTradingAccountKeyField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryCFMMCTradingAccountKeyField, (void *) &SwigClassCThostFtdcQryCFMMCTradingAccountKeyField); rb_define_alloc_func(SwigClassCThostFtdcQryCFMMCTradingAccountKeyField.klass, _wrap_CThostFtdcQryCFMMCTradingAccountKeyField_allocate); rb_define_method(SwigClassCThostFtdcQryCFMMCTradingAccountKeyField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryCFMMCTradingAccountKeyField), -1); rb_define_method(SwigClassCThostFtdcQryCFMMCTradingAccountKeyField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryCFMMCTradingAccountKeyField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryCFMMCTradingAccountKeyField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryCFMMCTradingAccountKeyField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryCFMMCTradingAccountKeyField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryCFMMCTradingAccountKeyField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryCFMMCTradingAccountKeyField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryCFMMCTradingAccountKeyField_InvestorID_get), -1); SwigClassCThostFtdcQryCFMMCTradingAccountKeyField.mark = 0; SwigClassCThostFtdcQryCFMMCTradingAccountKeyField.destroy = (void (*)(void *)) free_CThostFtdcQryCFMMCTradingAccountKeyField; SwigClassCThostFtdcQryCFMMCTradingAccountKeyField.trackObjects = 0; SwigClassCThostFtdcBrokerUserOTPParamField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerUserOTPParamField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerUserOTPParamField, (void *) &SwigClassCThostFtdcBrokerUserOTPParamField); rb_define_alloc_func(SwigClassCThostFtdcBrokerUserOTPParamField.klass, _wrap_CThostFtdcBrokerUserOTPParamField_allocate); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerUserOTPParamField), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "OTPVendorsID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_OTPVendorsID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "OTPVendorsID", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_OTPVendorsID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "SerialNumber=", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_SerialNumber_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "SerialNumber", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_SerialNumber_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "AuthKey=", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_AuthKey_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "AuthKey", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_AuthKey_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "LastDrift=", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_LastDrift_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "LastDrift", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_LastDrift_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "LastSuccess=", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_LastSuccess_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "LastSuccess", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_LastSuccess_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "OTPType=", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_OTPType_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserOTPParamField.klass, "OTPType", VALUEFUNC(_wrap_CThostFtdcBrokerUserOTPParamField_OTPType_get), -1); SwigClassCThostFtdcBrokerUserOTPParamField.mark = 0; SwigClassCThostFtdcBrokerUserOTPParamField.destroy = (void (*)(void *)) free_CThostFtdcBrokerUserOTPParamField; SwigClassCThostFtdcBrokerUserOTPParamField.trackObjects = 0; SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass = rb_define_class_under(mCtp, "CThostFtdcManualSyncBrokerUserOTPField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcManualSyncBrokerUserOTPField, (void *) &SwigClassCThostFtdcManualSyncBrokerUserOTPField); rb_define_alloc_func(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, _wrap_CThostFtdcManualSyncBrokerUserOTPField_allocate); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcManualSyncBrokerUserOTPField), -1); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcManualSyncBrokerUserOTPField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcManualSyncBrokerUserOTPField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcManualSyncBrokerUserOTPField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcManualSyncBrokerUserOTPField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "OTPType=", VALUEFUNC(_wrap_CThostFtdcManualSyncBrokerUserOTPField_OTPType_set), -1); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "OTPType", VALUEFUNC(_wrap_CThostFtdcManualSyncBrokerUserOTPField_OTPType_get), -1); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "FirstOTP=", VALUEFUNC(_wrap_CThostFtdcManualSyncBrokerUserOTPField_FirstOTP_set), -1); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "FirstOTP", VALUEFUNC(_wrap_CThostFtdcManualSyncBrokerUserOTPField_FirstOTP_get), -1); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "SecondOTP=", VALUEFUNC(_wrap_CThostFtdcManualSyncBrokerUserOTPField_SecondOTP_set), -1); rb_define_method(SwigClassCThostFtdcManualSyncBrokerUserOTPField.klass, "SecondOTP", VALUEFUNC(_wrap_CThostFtdcManualSyncBrokerUserOTPField_SecondOTP_get), -1); SwigClassCThostFtdcManualSyncBrokerUserOTPField.mark = 0; SwigClassCThostFtdcManualSyncBrokerUserOTPField.destroy = (void (*)(void *)) free_CThostFtdcManualSyncBrokerUserOTPField; SwigClassCThostFtdcManualSyncBrokerUserOTPField.trackObjects = 0; SwigClassCThostFtdcCommRateModelField.klass = rb_define_class_under(mCtp, "CThostFtdcCommRateModelField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCommRateModelField, (void *) &SwigClassCThostFtdcCommRateModelField); rb_define_alloc_func(SwigClassCThostFtdcCommRateModelField.klass, _wrap_CThostFtdcCommRateModelField_allocate); rb_define_method(SwigClassCThostFtdcCommRateModelField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCommRateModelField), -1); rb_define_method(SwigClassCThostFtdcCommRateModelField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcCommRateModelField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcCommRateModelField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcCommRateModelField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcCommRateModelField.klass, "CommModelID=", VALUEFUNC(_wrap_CThostFtdcCommRateModelField_CommModelID_set), -1); rb_define_method(SwigClassCThostFtdcCommRateModelField.klass, "CommModelID", VALUEFUNC(_wrap_CThostFtdcCommRateModelField_CommModelID_get), -1); rb_define_method(SwigClassCThostFtdcCommRateModelField.klass, "CommModelName=", VALUEFUNC(_wrap_CThostFtdcCommRateModelField_CommModelName_set), -1); rb_define_method(SwigClassCThostFtdcCommRateModelField.klass, "CommModelName", VALUEFUNC(_wrap_CThostFtdcCommRateModelField_CommModelName_get), -1); SwigClassCThostFtdcCommRateModelField.mark = 0; SwigClassCThostFtdcCommRateModelField.destroy = (void (*)(void *)) free_CThostFtdcCommRateModelField; SwigClassCThostFtdcCommRateModelField.trackObjects = 0; SwigClassCThostFtdcQryCommRateModelField.klass = rb_define_class_under(mCtp, "CThostFtdcQryCommRateModelField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryCommRateModelField, (void *) &SwigClassCThostFtdcQryCommRateModelField); rb_define_alloc_func(SwigClassCThostFtdcQryCommRateModelField.klass, _wrap_CThostFtdcQryCommRateModelField_allocate); rb_define_method(SwigClassCThostFtdcQryCommRateModelField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryCommRateModelField), -1); rb_define_method(SwigClassCThostFtdcQryCommRateModelField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryCommRateModelField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryCommRateModelField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryCommRateModelField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryCommRateModelField.klass, "CommModelID=", VALUEFUNC(_wrap_CThostFtdcQryCommRateModelField_CommModelID_set), -1); rb_define_method(SwigClassCThostFtdcQryCommRateModelField.klass, "CommModelID", VALUEFUNC(_wrap_CThostFtdcQryCommRateModelField_CommModelID_get), -1); SwigClassCThostFtdcQryCommRateModelField.mark = 0; SwigClassCThostFtdcQryCommRateModelField.destroy = (void (*)(void *)) free_CThostFtdcQryCommRateModelField; SwigClassCThostFtdcQryCommRateModelField.trackObjects = 0; SwigClassCThostFtdcMarginModelField.klass = rb_define_class_under(mCtp, "CThostFtdcMarginModelField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMarginModelField, (void *) &SwigClassCThostFtdcMarginModelField); rb_define_alloc_func(SwigClassCThostFtdcMarginModelField.klass, _wrap_CThostFtdcMarginModelField_allocate); rb_define_method(SwigClassCThostFtdcMarginModelField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMarginModelField), -1); rb_define_method(SwigClassCThostFtdcMarginModelField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcMarginModelField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcMarginModelField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcMarginModelField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcMarginModelField.klass, "MarginModelID=", VALUEFUNC(_wrap_CThostFtdcMarginModelField_MarginModelID_set), -1); rb_define_method(SwigClassCThostFtdcMarginModelField.klass, "MarginModelID", VALUEFUNC(_wrap_CThostFtdcMarginModelField_MarginModelID_get), -1); rb_define_method(SwigClassCThostFtdcMarginModelField.klass, "MarginModelName=", VALUEFUNC(_wrap_CThostFtdcMarginModelField_MarginModelName_set), -1); rb_define_method(SwigClassCThostFtdcMarginModelField.klass, "MarginModelName", VALUEFUNC(_wrap_CThostFtdcMarginModelField_MarginModelName_get), -1); SwigClassCThostFtdcMarginModelField.mark = 0; SwigClassCThostFtdcMarginModelField.destroy = (void (*)(void *)) free_CThostFtdcMarginModelField; SwigClassCThostFtdcMarginModelField.trackObjects = 0; SwigClassCThostFtdcQryMarginModelField.klass = rb_define_class_under(mCtp, "CThostFtdcQryMarginModelField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryMarginModelField, (void *) &SwigClassCThostFtdcQryMarginModelField); rb_define_alloc_func(SwigClassCThostFtdcQryMarginModelField.klass, _wrap_CThostFtdcQryMarginModelField_allocate); rb_define_method(SwigClassCThostFtdcQryMarginModelField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryMarginModelField), -1); rb_define_method(SwigClassCThostFtdcQryMarginModelField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryMarginModelField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryMarginModelField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryMarginModelField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryMarginModelField.klass, "MarginModelID=", VALUEFUNC(_wrap_CThostFtdcQryMarginModelField_MarginModelID_set), -1); rb_define_method(SwigClassCThostFtdcQryMarginModelField.klass, "MarginModelID", VALUEFUNC(_wrap_CThostFtdcQryMarginModelField_MarginModelID_get), -1); SwigClassCThostFtdcQryMarginModelField.mark = 0; SwigClassCThostFtdcQryMarginModelField.destroy = (void (*)(void *)) free_CThostFtdcQryMarginModelField; SwigClassCThostFtdcQryMarginModelField.trackObjects = 0; SwigClassCThostFtdcEWarrantOffsetField.klass = rb_define_class_under(mCtp, "CThostFtdcEWarrantOffsetField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcEWarrantOffsetField, (void *) &SwigClassCThostFtdcEWarrantOffsetField); rb_define_alloc_func(SwigClassCThostFtdcEWarrantOffsetField.klass, _wrap_CThostFtdcEWarrantOffsetField_allocate); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcEWarrantOffsetField), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_InstrumentID_get), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "Direction=", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_Direction_set), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "Direction", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_Direction_get), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_HedgeFlag_get), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "Volume=", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_Volume_set), -1); rb_define_method(SwigClassCThostFtdcEWarrantOffsetField.klass, "Volume", VALUEFUNC(_wrap_CThostFtdcEWarrantOffsetField_Volume_get), -1); SwigClassCThostFtdcEWarrantOffsetField.mark = 0; SwigClassCThostFtdcEWarrantOffsetField.destroy = (void (*)(void *)) free_CThostFtdcEWarrantOffsetField; SwigClassCThostFtdcEWarrantOffsetField.trackObjects = 0; SwigClassCThostFtdcQryEWarrantOffsetField.klass = rb_define_class_under(mCtp, "CThostFtdcQryEWarrantOffsetField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryEWarrantOffsetField, (void *) &SwigClassCThostFtdcQryEWarrantOffsetField); rb_define_alloc_func(SwigClassCThostFtdcQryEWarrantOffsetField.klass, _wrap_CThostFtdcQryEWarrantOffsetField_allocate); rb_define_method(SwigClassCThostFtdcQryEWarrantOffsetField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryEWarrantOffsetField), -1); rb_define_method(SwigClassCThostFtdcQryEWarrantOffsetField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryEWarrantOffsetField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryEWarrantOffsetField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryEWarrantOffsetField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryEWarrantOffsetField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryEWarrantOffsetField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryEWarrantOffsetField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryEWarrantOffsetField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryEWarrantOffsetField.klass, "ExchangeID=", VALUEFUNC(_wrap_CThostFtdcQryEWarrantOffsetField_ExchangeID_set), -1); rb_define_method(SwigClassCThostFtdcQryEWarrantOffsetField.klass, "ExchangeID", VALUEFUNC(_wrap_CThostFtdcQryEWarrantOffsetField_ExchangeID_get), -1); rb_define_method(SwigClassCThostFtdcQryEWarrantOffsetField.klass, "InstrumentID=", VALUEFUNC(_wrap_CThostFtdcQryEWarrantOffsetField_InstrumentID_set), -1); rb_define_method(SwigClassCThostFtdcQryEWarrantOffsetField.klass, "InstrumentID", VALUEFUNC(_wrap_CThostFtdcQryEWarrantOffsetField_InstrumentID_get), -1); SwigClassCThostFtdcQryEWarrantOffsetField.mark = 0; SwigClassCThostFtdcQryEWarrantOffsetField.destroy = (void (*)(void *)) free_CThostFtdcQryEWarrantOffsetField; SwigClassCThostFtdcQryEWarrantOffsetField.trackObjects = 0; SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass = rb_define_class_under(mCtp, "CThostFtdcQryInvestorProductGroupMarginField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryInvestorProductGroupMarginField, (void *) &SwigClassCThostFtdcQryInvestorProductGroupMarginField); rb_define_alloc_func(SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass, _wrap_CThostFtdcQryInvestorProductGroupMarginField_allocate); rb_define_method(SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryInvestorProductGroupMarginField), -1); rb_define_method(SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorProductGroupMarginField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryInvestorProductGroupMarginField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorProductGroupMarginField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQryInvestorProductGroupMarginField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass, "ProductGroupID=", VALUEFUNC(_wrap_CThostFtdcQryInvestorProductGroupMarginField_ProductGroupID_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass, "ProductGroupID", VALUEFUNC(_wrap_CThostFtdcQryInvestorProductGroupMarginField_ProductGroupID_get), -1); rb_define_method(SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcQryInvestorProductGroupMarginField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcQryInvestorProductGroupMarginField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcQryInvestorProductGroupMarginField_HedgeFlag_get), -1); SwigClassCThostFtdcQryInvestorProductGroupMarginField.mark = 0; SwigClassCThostFtdcQryInvestorProductGroupMarginField.destroy = (void (*)(void *)) free_CThostFtdcQryInvestorProductGroupMarginField; SwigClassCThostFtdcQryInvestorProductGroupMarginField.trackObjects = 0; SwigClassCThostFtdcInvestorProductGroupMarginField.klass = rb_define_class_under(mCtp, "CThostFtdcInvestorProductGroupMarginField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcInvestorProductGroupMarginField, (void *) &SwigClassCThostFtdcInvestorProductGroupMarginField); rb_define_alloc_func(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, _wrap_CThostFtdcInvestorProductGroupMarginField_allocate); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcInvestorProductGroupMarginField), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ProductGroupID=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ProductGroupID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ProductGroupID", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ProductGroupID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "SettlementID=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_SettlementID_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "SettlementID", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_SettlementID_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "FrozenMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_FrozenMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "FrozenMargin", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_FrozenMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "LongFrozenMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_LongFrozenMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "LongFrozenMargin", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_LongFrozenMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ShortFrozenMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ShortFrozenMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ShortFrozenMargin", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ShortFrozenMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "UseMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_UseMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "UseMargin", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_UseMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "LongUseMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_LongUseMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "LongUseMargin", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_LongUseMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ShortUseMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ShortUseMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ShortUseMargin", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ShortUseMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ExchMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ExchMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ExchMargin", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ExchMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "LongExchMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_LongExchMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "LongExchMargin", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_LongExchMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ShortExchMargin=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ShortExchMargin_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ShortExchMargin", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ShortExchMargin_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "CloseProfit=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_CloseProfit_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "CloseProfit", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_CloseProfit_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "FrozenCommission=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_FrozenCommission_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "FrozenCommission", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_FrozenCommission_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "Commission=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_Commission_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "Commission", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_Commission_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "FrozenCash=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_FrozenCash_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "FrozenCash", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_FrozenCash_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "CashIn=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_CashIn_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "CashIn", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_CashIn_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "PositionProfit=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_PositionProfit_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "PositionProfit", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_PositionProfit_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "OffsetAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_OffsetAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "OffsetAmount", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_OffsetAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "LongOffsetAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_LongOffsetAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "LongOffsetAmount", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_LongOffsetAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ShortOffsetAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ShortOffsetAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ShortOffsetAmount", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ShortOffsetAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ExchOffsetAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ExchOffsetAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ExchOffsetAmount", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ExchOffsetAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "LongExchOffsetAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_LongExchOffsetAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "LongExchOffsetAmount", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_LongExchOffsetAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ShortExchOffsetAmount=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ShortExchOffsetAmount_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "ShortExchOffsetAmount", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_ShortExchOffsetAmount_get), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "HedgeFlag=", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_HedgeFlag_set), -1); rb_define_method(SwigClassCThostFtdcInvestorProductGroupMarginField.klass, "HedgeFlag", VALUEFUNC(_wrap_CThostFtdcInvestorProductGroupMarginField_HedgeFlag_get), -1); SwigClassCThostFtdcInvestorProductGroupMarginField.mark = 0; SwigClassCThostFtdcInvestorProductGroupMarginField.destroy = (void (*)(void *)) free_CThostFtdcInvestorProductGroupMarginField; SwigClassCThostFtdcInvestorProductGroupMarginField.trackObjects = 0; SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField.klass = rb_define_class_under(mCtp, "CThostFtdcQueryCFMMCTradingAccountTokenField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQueryCFMMCTradingAccountTokenField, (void *) &SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField); rb_define_alloc_func(SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField.klass, _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_allocate); rb_define_method(SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQueryCFMMCTradingAccountTokenField), -1); rb_define_method(SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_InvestorID_get), -1); SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField.mark = 0; SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField.destroy = (void (*)(void *)) free_CThostFtdcQueryCFMMCTradingAccountTokenField; SwigClassCThostFtdcQueryCFMMCTradingAccountTokenField.trackObjects = 0; SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass = rb_define_class_under(mCtp, "CThostFtdcCFMMCTradingAccountTokenField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCFMMCTradingAccountTokenField, (void *) &SwigClassCThostFtdcCFMMCTradingAccountTokenField); rb_define_alloc_func(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, _wrap_CThostFtdcCFMMCTradingAccountTokenField_allocate); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCFMMCTradingAccountTokenField), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountTokenField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountTokenField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "ParticipantID=", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountTokenField_ParticipantID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "ParticipantID", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountTokenField_ParticipantID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountTokenField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountTokenField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "KeyID=", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountTokenField_KeyID_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "KeyID", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountTokenField_KeyID_get), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "Token=", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountTokenField_Token_set), -1); rb_define_method(SwigClassCThostFtdcCFMMCTradingAccountTokenField.klass, "Token", VALUEFUNC(_wrap_CThostFtdcCFMMCTradingAccountTokenField_Token_get), -1); SwigClassCThostFtdcCFMMCTradingAccountTokenField.mark = 0; SwigClassCThostFtdcCFMMCTradingAccountTokenField.destroy = (void (*)(void *)) free_CThostFtdcCFMMCTradingAccountTokenField; SwigClassCThostFtdcCFMMCTradingAccountTokenField.trackObjects = 0; SwigClassCThostFtdcReqOpenAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcReqOpenAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqOpenAccountField, (void *) &SwigClassCThostFtdcReqOpenAccountField); rb_define_alloc_func(SwigClassCThostFtdcReqOpenAccountField.klass, _wrap_CThostFtdcReqOpenAccountField_allocate); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqOpenAccountField), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Gender=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Gender_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Gender", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Gender_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "CountryCode=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_CountryCode_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "CountryCode", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_CountryCode_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Address=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Address_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Address", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Address_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "ZipCode=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_ZipCode_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "ZipCode", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_ZipCode_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Telephone=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Telephone_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Telephone", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Telephone_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "MobilePhone=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_MobilePhone_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "MobilePhone", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_MobilePhone_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Fax=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Fax_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Fax", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Fax_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "EMail=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_EMail_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "EMail", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_EMail_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "MoneyAccountStatus=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_MoneyAccountStatus_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "MoneyAccountStatus", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_MoneyAccountStatus_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Password_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Password_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "CashExchangeCode=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_CashExchangeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "CashExchangeCode", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_CashExchangeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_TID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_TID_get), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcReqOpenAccountField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcReqOpenAccountField_UserID_get), -1); SwigClassCThostFtdcReqOpenAccountField.mark = 0; SwigClassCThostFtdcReqOpenAccountField.destroy = (void (*)(void *)) free_CThostFtdcReqOpenAccountField; SwigClassCThostFtdcReqOpenAccountField.trackObjects = 0; SwigClassCThostFtdcReqCancelAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcReqCancelAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqCancelAccountField, (void *) &SwigClassCThostFtdcReqCancelAccountField); rb_define_alloc_func(SwigClassCThostFtdcReqCancelAccountField.klass, _wrap_CThostFtdcReqCancelAccountField_allocate); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqCancelAccountField), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Gender=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Gender_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Gender", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Gender_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "CountryCode=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_CountryCode_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "CountryCode", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_CountryCode_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Address=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Address_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Address", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Address_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "ZipCode=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_ZipCode_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "ZipCode", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_ZipCode_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Telephone=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Telephone_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Telephone", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Telephone_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "MobilePhone=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_MobilePhone_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "MobilePhone", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_MobilePhone_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Fax=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Fax_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Fax", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Fax_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "EMail=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_EMail_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "EMail", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_EMail_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "MoneyAccountStatus=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_MoneyAccountStatus_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "MoneyAccountStatus", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_MoneyAccountStatus_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Password_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Password_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "CashExchangeCode=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_CashExchangeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "CashExchangeCode", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_CashExchangeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_TID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_TID_get), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcReqCancelAccountField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcReqCancelAccountField_UserID_get), -1); SwigClassCThostFtdcReqCancelAccountField.mark = 0; SwigClassCThostFtdcReqCancelAccountField.destroy = (void (*)(void *)) free_CThostFtdcReqCancelAccountField; SwigClassCThostFtdcReqCancelAccountField.trackObjects = 0; SwigClassCThostFtdcReqChangeAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcReqChangeAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqChangeAccountField, (void *) &SwigClassCThostFtdcReqChangeAccountField); rb_define_alloc_func(SwigClassCThostFtdcReqChangeAccountField.klass, _wrap_CThostFtdcReqChangeAccountField_allocate); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqChangeAccountField), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Gender=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Gender_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Gender", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Gender_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "CountryCode=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_CountryCode_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "CountryCode", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_CountryCode_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Address=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Address_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Address", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Address_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "ZipCode=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_ZipCode_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "ZipCode", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_ZipCode_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Telephone=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Telephone_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Telephone", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Telephone_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "MobilePhone=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_MobilePhone_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "MobilePhone", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_MobilePhone_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Fax=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Fax_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Fax", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Fax_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "EMail=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_EMail_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "EMail", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_EMail_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "MoneyAccountStatus=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_MoneyAccountStatus_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "MoneyAccountStatus", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_MoneyAccountStatus_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "NewBankAccount=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_NewBankAccount_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "NewBankAccount", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_NewBankAccount_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "NewBankPassWord=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_NewBankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "NewBankPassWord", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_NewBankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Password_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Password_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_TID_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_TID_get), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcReqChangeAccountField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcReqChangeAccountField_Digest_get), -1); SwigClassCThostFtdcReqChangeAccountField.mark = 0; SwigClassCThostFtdcReqChangeAccountField.destroy = (void (*)(void *)) free_CThostFtdcReqChangeAccountField; SwigClassCThostFtdcReqChangeAccountField.trackObjects = 0; SwigClassCThostFtdcReqTransferField.klass = rb_define_class_under(mCtp, "CThostFtdcReqTransferField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqTransferField, (void *) &SwigClassCThostFtdcReqTransferField); rb_define_alloc_func(SwigClassCThostFtdcReqTransferField.klass, _wrap_CThostFtdcReqTransferField_allocate); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqTransferField), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcReqTransferField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcReqTransferField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcReqTransferField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcReqTransferField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcReqTransferField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcReqTransferField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_Password_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcReqTransferField_Password_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "FutureSerial=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_FutureSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "FutureSerial", VALUEFUNC(_wrap_CThostFtdcReqTransferField_FutureSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcReqTransferField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TradeAmount=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TradeAmount_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TradeAmount", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TradeAmount_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "FutureFetchAmount=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_FutureFetchAmount_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "FutureFetchAmount", VALUEFUNC(_wrap_CThostFtdcReqTransferField_FutureFetchAmount_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "FeePayFlag=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_FeePayFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "FeePayFlag", VALUEFUNC(_wrap_CThostFtdcReqTransferField_FeePayFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "CustFee=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_CustFee_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "CustFee", VALUEFUNC(_wrap_CThostFtdcReqTransferField_CustFee_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BrokerFee=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BrokerFee_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BrokerFee", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BrokerFee_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "Message=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_Message_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "Message", VALUEFUNC(_wrap_CThostFtdcReqTransferField_Message_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcReqTransferField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqTransferField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqTransferField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcReqTransferField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TID_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TID_get), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TransferStatus=", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TransferStatus_set), -1); rb_define_method(SwigClassCThostFtdcReqTransferField.klass, "TransferStatus", VALUEFUNC(_wrap_CThostFtdcReqTransferField_TransferStatus_get), -1); SwigClassCThostFtdcReqTransferField.mark = 0; SwigClassCThostFtdcReqTransferField.destroy = (void (*)(void *)) free_CThostFtdcReqTransferField; SwigClassCThostFtdcReqTransferField.trackObjects = 0; SwigClassCThostFtdcRspTransferField.klass = rb_define_class_under(mCtp, "CThostFtdcRspTransferField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRspTransferField, (void *) &SwigClassCThostFtdcRspTransferField); rb_define_alloc_func(SwigClassCThostFtdcRspTransferField.klass, _wrap_CThostFtdcRspTransferField_allocate); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRspTransferField), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcRspTransferField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcRspTransferField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcRspTransferField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcRspTransferField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcRspTransferField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcRspTransferField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_Password_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcRspTransferField_Password_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "FutureSerial=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_FutureSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "FutureSerial", VALUEFUNC(_wrap_CThostFtdcRspTransferField_FutureSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcRspTransferField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TradeAmount=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TradeAmount_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TradeAmount", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TradeAmount_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "FutureFetchAmount=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_FutureFetchAmount_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "FutureFetchAmount", VALUEFUNC(_wrap_CThostFtdcRspTransferField_FutureFetchAmount_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "FeePayFlag=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_FeePayFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "FeePayFlag", VALUEFUNC(_wrap_CThostFtdcRspTransferField_FeePayFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "CustFee=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_CustFee_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "CustFee", VALUEFUNC(_wrap_CThostFtdcRspTransferField_CustFee_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BrokerFee=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BrokerFee_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BrokerFee", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BrokerFee_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "Message=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_Message_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "Message", VALUEFUNC(_wrap_CThostFtdcRspTransferField_Message_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcRspTransferField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcRspTransferField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcRspTransferField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcRspTransferField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TransferStatus=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TransferStatus_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "TransferStatus", VALUEFUNC(_wrap_CThostFtdcRspTransferField_TransferStatus_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcRspTransferField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcRspTransferField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcRspTransferField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcRspTransferField_ErrorMsg_get), -1); SwigClassCThostFtdcRspTransferField.mark = 0; SwigClassCThostFtdcRspTransferField.destroy = (void (*)(void *)) free_CThostFtdcRspTransferField; SwigClassCThostFtdcRspTransferField.trackObjects = 0; SwigClassCThostFtdcReqRepealField.klass = rb_define_class_under(mCtp, "CThostFtdcReqRepealField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqRepealField, (void *) &SwigClassCThostFtdcReqRepealField); rb_define_alloc_func(SwigClassCThostFtdcReqRepealField.klass, _wrap_CThostFtdcReqRepealField_allocate); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqRepealField), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "RepealTimeInterval=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_RepealTimeInterval_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "RepealTimeInterval", VALUEFUNC(_wrap_CThostFtdcReqRepealField_RepealTimeInterval_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "RepealedTimes=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_RepealedTimes_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "RepealedTimes", VALUEFUNC(_wrap_CThostFtdcReqRepealField_RepealedTimes_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankRepealFlag=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankRepealFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankRepealFlag", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankRepealFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BrokerRepealFlag=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BrokerRepealFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BrokerRepealFlag", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BrokerRepealFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "PlateRepealSerial=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_PlateRepealSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "PlateRepealSerial", VALUEFUNC(_wrap_CThostFtdcReqRepealField_PlateRepealSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankRepealSerial=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankRepealSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankRepealSerial", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankRepealSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "FutureRepealSerial=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_FutureRepealSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "FutureRepealSerial", VALUEFUNC(_wrap_CThostFtdcReqRepealField_FutureRepealSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcReqRepealField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcReqRepealField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcReqRepealField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcReqRepealField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcReqRepealField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcReqRepealField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_Password_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcReqRepealField_Password_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "FutureSerial=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_FutureSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "FutureSerial", VALUEFUNC(_wrap_CThostFtdcReqRepealField_FutureSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcReqRepealField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TradeAmount=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TradeAmount_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TradeAmount", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TradeAmount_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "FutureFetchAmount=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_FutureFetchAmount_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "FutureFetchAmount", VALUEFUNC(_wrap_CThostFtdcReqRepealField_FutureFetchAmount_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "FeePayFlag=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_FeePayFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "FeePayFlag", VALUEFUNC(_wrap_CThostFtdcReqRepealField_FeePayFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "CustFee=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_CustFee_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "CustFee", VALUEFUNC(_wrap_CThostFtdcReqRepealField_CustFee_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BrokerFee=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BrokerFee_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BrokerFee", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BrokerFee_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "Message=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_Message_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "Message", VALUEFUNC(_wrap_CThostFtdcReqRepealField_Message_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcReqRepealField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqRepealField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqRepealField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcReqRepealField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TID_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TID_get), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TransferStatus=", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TransferStatus_set), -1); rb_define_method(SwigClassCThostFtdcReqRepealField.klass, "TransferStatus", VALUEFUNC(_wrap_CThostFtdcReqRepealField_TransferStatus_get), -1); SwigClassCThostFtdcReqRepealField.mark = 0; SwigClassCThostFtdcReqRepealField.destroy = (void (*)(void *)) free_CThostFtdcReqRepealField; SwigClassCThostFtdcReqRepealField.trackObjects = 0; SwigClassCThostFtdcRspRepealField.klass = rb_define_class_under(mCtp, "CThostFtdcRspRepealField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRspRepealField, (void *) &SwigClassCThostFtdcRspRepealField); rb_define_alloc_func(SwigClassCThostFtdcRspRepealField.klass, _wrap_CThostFtdcRspRepealField_allocate); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRspRepealField), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "RepealTimeInterval=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_RepealTimeInterval_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "RepealTimeInterval", VALUEFUNC(_wrap_CThostFtdcRspRepealField_RepealTimeInterval_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "RepealedTimes=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_RepealedTimes_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "RepealedTimes", VALUEFUNC(_wrap_CThostFtdcRspRepealField_RepealedTimes_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankRepealFlag=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankRepealFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankRepealFlag", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankRepealFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BrokerRepealFlag=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BrokerRepealFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BrokerRepealFlag", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BrokerRepealFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "PlateRepealSerial=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_PlateRepealSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "PlateRepealSerial", VALUEFUNC(_wrap_CThostFtdcRspRepealField_PlateRepealSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankRepealSerial=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankRepealSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankRepealSerial", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankRepealSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "FutureRepealSerial=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_FutureRepealSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "FutureRepealSerial", VALUEFUNC(_wrap_CThostFtdcRspRepealField_FutureRepealSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcRspRepealField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcRspRepealField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcRspRepealField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcRspRepealField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcRspRepealField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcRspRepealField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_Password_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcRspRepealField_Password_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "FutureSerial=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_FutureSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "FutureSerial", VALUEFUNC(_wrap_CThostFtdcRspRepealField_FutureSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcRspRepealField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TradeAmount=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TradeAmount_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TradeAmount", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TradeAmount_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "FutureFetchAmount=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_FutureFetchAmount_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "FutureFetchAmount", VALUEFUNC(_wrap_CThostFtdcRspRepealField_FutureFetchAmount_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "FeePayFlag=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_FeePayFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "FeePayFlag", VALUEFUNC(_wrap_CThostFtdcRspRepealField_FeePayFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "CustFee=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_CustFee_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "CustFee", VALUEFUNC(_wrap_CThostFtdcRspRepealField_CustFee_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BrokerFee=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BrokerFee_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BrokerFee", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BrokerFee_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "Message=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_Message_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "Message", VALUEFUNC(_wrap_CThostFtdcRspRepealField_Message_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcRspRepealField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcRspRepealField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcRspRepealField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcRspRepealField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TransferStatus=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TransferStatus_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "TransferStatus", VALUEFUNC(_wrap_CThostFtdcRspRepealField_TransferStatus_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcRspRepealField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcRspRepealField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcRspRepealField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcRspRepealField_ErrorMsg_get), -1); SwigClassCThostFtdcRspRepealField.mark = 0; SwigClassCThostFtdcRspRepealField.destroy = (void (*)(void *)) free_CThostFtdcRspRepealField; SwigClassCThostFtdcRspRepealField.trackObjects = 0; SwigClassCThostFtdcReqQueryAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcReqQueryAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqQueryAccountField, (void *) &SwigClassCThostFtdcReqQueryAccountField); rb_define_alloc_func(SwigClassCThostFtdcReqQueryAccountField.klass, _wrap_CThostFtdcReqQueryAccountField_allocate); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqQueryAccountField), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_Password_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_Password_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "FutureSerial=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_FutureSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "FutureSerial", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_FutureSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_TID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryAccountField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcReqQueryAccountField_TID_get), -1); SwigClassCThostFtdcReqQueryAccountField.mark = 0; SwigClassCThostFtdcReqQueryAccountField.destroy = (void (*)(void *)) free_CThostFtdcReqQueryAccountField; SwigClassCThostFtdcReqQueryAccountField.trackObjects = 0; SwigClassCThostFtdcRspQueryAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcRspQueryAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRspQueryAccountField, (void *) &SwigClassCThostFtdcRspQueryAccountField); rb_define_alloc_func(SwigClassCThostFtdcRspQueryAccountField.klass, _wrap_CThostFtdcRspQueryAccountField_allocate); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRspQueryAccountField), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_Password_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_Password_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "FutureSerial=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_FutureSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "FutureSerial", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_FutureSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_TID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_TID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankUseAmount=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankUseAmount_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankUseAmount", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankUseAmount_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankFetchAmount=", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankFetchAmount_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryAccountField.klass, "BankFetchAmount", VALUEFUNC(_wrap_CThostFtdcRspQueryAccountField_BankFetchAmount_get), -1); SwigClassCThostFtdcRspQueryAccountField.mark = 0; SwigClassCThostFtdcRspQueryAccountField.destroy = (void (*)(void *)) free_CThostFtdcRspQueryAccountField; SwigClassCThostFtdcRspQueryAccountField.trackObjects = 0; SwigClassCThostFtdcFutureSignIOField.klass = rb_define_class_under(mCtp, "CThostFtdcFutureSignIOField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcFutureSignIOField, (void *) &SwigClassCThostFtdcFutureSignIOField); rb_define_alloc_func(SwigClassCThostFtdcFutureSignIOField.klass, _wrap_CThostFtdcFutureSignIOField_allocate); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcFutureSignIOField), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_TID_set), -1); rb_define_method(SwigClassCThostFtdcFutureSignIOField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcFutureSignIOField_TID_get), -1); SwigClassCThostFtdcFutureSignIOField.mark = 0; SwigClassCThostFtdcFutureSignIOField.destroy = (void (*)(void *)) free_CThostFtdcFutureSignIOField; SwigClassCThostFtdcFutureSignIOField.trackObjects = 0; SwigClassCThostFtdcRspFutureSignInField.klass = rb_define_class_under(mCtp, "CThostFtdcRspFutureSignInField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRspFutureSignInField, (void *) &SwigClassCThostFtdcRspFutureSignInField); rb_define_alloc_func(SwigClassCThostFtdcRspFutureSignInField.klass, _wrap_CThostFtdcRspFutureSignInField_allocate); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRspFutureSignInField), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_TID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_TID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_ErrorMsg_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "PinKey=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_PinKey_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "PinKey", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_PinKey_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "MacKey=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_MacKey_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignInField.klass, "MacKey", VALUEFUNC(_wrap_CThostFtdcRspFutureSignInField_MacKey_get), -1); SwigClassCThostFtdcRspFutureSignInField.mark = 0; SwigClassCThostFtdcRspFutureSignInField.destroy = (void (*)(void *)) free_CThostFtdcRspFutureSignInField; SwigClassCThostFtdcRspFutureSignInField.trackObjects = 0; SwigClassCThostFtdcReqFutureSignOutField.klass = rb_define_class_under(mCtp, "CThostFtdcReqFutureSignOutField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqFutureSignOutField, (void *) &SwigClassCThostFtdcReqFutureSignOutField); rb_define_alloc_func(SwigClassCThostFtdcReqFutureSignOutField.klass, _wrap_CThostFtdcReqFutureSignOutField_allocate); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqFutureSignOutField), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_TID_set), -1); rb_define_method(SwigClassCThostFtdcReqFutureSignOutField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcReqFutureSignOutField_TID_get), -1); SwigClassCThostFtdcReqFutureSignOutField.mark = 0; SwigClassCThostFtdcReqFutureSignOutField.destroy = (void (*)(void *)) free_CThostFtdcReqFutureSignOutField; SwigClassCThostFtdcReqFutureSignOutField.trackObjects = 0; SwigClassCThostFtdcRspFutureSignOutField.klass = rb_define_class_under(mCtp, "CThostFtdcRspFutureSignOutField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRspFutureSignOutField, (void *) &SwigClassCThostFtdcRspFutureSignOutField); rb_define_alloc_func(SwigClassCThostFtdcRspFutureSignOutField.klass, _wrap_CThostFtdcRspFutureSignOutField_allocate); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRspFutureSignOutField), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_TID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_TID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcRspFutureSignOutField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcRspFutureSignOutField_ErrorMsg_get), -1); SwigClassCThostFtdcRspFutureSignOutField.mark = 0; SwigClassCThostFtdcRspFutureSignOutField.destroy = (void (*)(void *)) free_CThostFtdcRspFutureSignOutField; SwigClassCThostFtdcRspFutureSignOutField.trackObjects = 0; SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass = rb_define_class_under(mCtp, "CThostFtdcReqQueryTradeResultBySerialField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqQueryTradeResultBySerialField, (void *) &SwigClassCThostFtdcReqQueryTradeResultBySerialField); rb_define_alloc_func(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, _wrap_CThostFtdcReqQueryTradeResultBySerialField_allocate); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqQueryTradeResultBySerialField), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "Reference=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_Reference_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "Reference", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_Reference_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "RefrenceIssureType=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_RefrenceIssureType_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "RefrenceIssureType", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_RefrenceIssureType_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "RefrenceIssure=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_RefrenceIssure_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "RefrenceIssure", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_RefrenceIssure_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_Password_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_Password_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "TradeAmount=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeAmount_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "TradeAmount", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_TradeAmount_get), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcReqQueryTradeResultBySerialField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcReqQueryTradeResultBySerialField_Digest_get), -1); SwigClassCThostFtdcReqQueryTradeResultBySerialField.mark = 0; SwigClassCThostFtdcReqQueryTradeResultBySerialField.destroy = (void (*)(void *)) free_CThostFtdcReqQueryTradeResultBySerialField; SwigClassCThostFtdcReqQueryTradeResultBySerialField.trackObjects = 0; SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass = rb_define_class_under(mCtp, "CThostFtdcRspQueryTradeResultBySerialField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRspQueryTradeResultBySerialField, (void *) &SwigClassCThostFtdcRspQueryTradeResultBySerialField); rb_define_alloc_func(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, _wrap_CThostFtdcRspQueryTradeResultBySerialField_allocate); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRspQueryTradeResultBySerialField), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_ErrorMsg_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "Reference=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_Reference_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "Reference", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_Reference_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "RefrenceIssureType=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_RefrenceIssureType_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "RefrenceIssureType", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_RefrenceIssureType_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "RefrenceIssure=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_RefrenceIssure_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "RefrenceIssure", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_RefrenceIssure_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "OriginReturnCode=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_OriginReturnCode_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "OriginReturnCode", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_OriginReturnCode_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "OriginDescrInfoForReturnCode=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_OriginDescrInfoForReturnCode_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "OriginDescrInfoForReturnCode", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_OriginDescrInfoForReturnCode_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_Password_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_Password_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "TradeAmount=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeAmount_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "TradeAmount", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_TradeAmount_get), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcRspQueryTradeResultBySerialField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcRspQueryTradeResultBySerialField_Digest_get), -1); SwigClassCThostFtdcRspQueryTradeResultBySerialField.mark = 0; SwigClassCThostFtdcRspQueryTradeResultBySerialField.destroy = (void (*)(void *)) free_CThostFtdcRspQueryTradeResultBySerialField; SwigClassCThostFtdcRspQueryTradeResultBySerialField.trackObjects = 0; SwigClassCThostFtdcReqDayEndFileReadyField.klass = rb_define_class_under(mCtp, "CThostFtdcReqDayEndFileReadyField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqDayEndFileReadyField, (void *) &SwigClassCThostFtdcReqDayEndFileReadyField); rb_define_alloc_func(SwigClassCThostFtdcReqDayEndFileReadyField.klass, _wrap_CThostFtdcReqDayEndFileReadyField_allocate); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqDayEndFileReadyField), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "FileBusinessCode=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_FileBusinessCode_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "FileBusinessCode", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_FileBusinessCode_get), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcReqDayEndFileReadyField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcReqDayEndFileReadyField_Digest_get), -1); SwigClassCThostFtdcReqDayEndFileReadyField.mark = 0; SwigClassCThostFtdcReqDayEndFileReadyField.destroy = (void (*)(void *)) free_CThostFtdcReqDayEndFileReadyField; SwigClassCThostFtdcReqDayEndFileReadyField.trackObjects = 0; SwigClassCThostFtdcReturnResultField.klass = rb_define_class_under(mCtp, "CThostFtdcReturnResultField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReturnResultField, (void *) &SwigClassCThostFtdcReturnResultField); rb_define_alloc_func(SwigClassCThostFtdcReturnResultField.klass, _wrap_CThostFtdcReturnResultField_allocate); rb_define_method(SwigClassCThostFtdcReturnResultField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReturnResultField), -1); rb_define_method(SwigClassCThostFtdcReturnResultField.klass, "ReturnCode=", VALUEFUNC(_wrap_CThostFtdcReturnResultField_ReturnCode_set), -1); rb_define_method(SwigClassCThostFtdcReturnResultField.klass, "ReturnCode", VALUEFUNC(_wrap_CThostFtdcReturnResultField_ReturnCode_get), -1); rb_define_method(SwigClassCThostFtdcReturnResultField.klass, "DescrInfoForReturnCode=", VALUEFUNC(_wrap_CThostFtdcReturnResultField_DescrInfoForReturnCode_set), -1); rb_define_method(SwigClassCThostFtdcReturnResultField.klass, "DescrInfoForReturnCode", VALUEFUNC(_wrap_CThostFtdcReturnResultField_DescrInfoForReturnCode_get), -1); SwigClassCThostFtdcReturnResultField.mark = 0; SwigClassCThostFtdcReturnResultField.destroy = (void (*)(void *)) free_CThostFtdcReturnResultField; SwigClassCThostFtdcReturnResultField.trackObjects = 0; SwigClassCThostFtdcVerifyFuturePasswordField.klass = rb_define_class_under(mCtp, "CThostFtdcVerifyFuturePasswordField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcVerifyFuturePasswordField, (void *) &SwigClassCThostFtdcVerifyFuturePasswordField); rb_define_alloc_func(SwigClassCThostFtdcVerifyFuturePasswordField.klass, _wrap_CThostFtdcVerifyFuturePasswordField_allocate); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcVerifyFuturePasswordField), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_Password_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_Password_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_TID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_TID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordField_CurrencyID_get), -1); SwigClassCThostFtdcVerifyFuturePasswordField.mark = 0; SwigClassCThostFtdcVerifyFuturePasswordField.destroy = (void (*)(void *)) free_CThostFtdcVerifyFuturePasswordField; SwigClassCThostFtdcVerifyFuturePasswordField.trackObjects = 0; SwigClassCThostFtdcVerifyCustInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcVerifyCustInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcVerifyCustInfoField, (void *) &SwigClassCThostFtdcVerifyCustInfoField); rb_define_alloc_func(SwigClassCThostFtdcVerifyCustInfoField.klass, _wrap_CThostFtdcVerifyCustInfoField_allocate); rb_define_method(SwigClassCThostFtdcVerifyCustInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcVerifyCustInfoField), -1); rb_define_method(SwigClassCThostFtdcVerifyCustInfoField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcVerifyCustInfoField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcVerifyCustInfoField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcVerifyCustInfoField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcVerifyCustInfoField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcVerifyCustInfoField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcVerifyCustInfoField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcVerifyCustInfoField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcVerifyCustInfoField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcVerifyCustInfoField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcVerifyCustInfoField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcVerifyCustInfoField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcVerifyCustInfoField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcVerifyCustInfoField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcVerifyCustInfoField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcVerifyCustInfoField_CustType_get), -1); SwigClassCThostFtdcVerifyCustInfoField.mark = 0; SwigClassCThostFtdcVerifyCustInfoField.destroy = (void (*)(void *)) free_CThostFtdcVerifyCustInfoField; SwigClassCThostFtdcVerifyCustInfoField.trackObjects = 0; SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcVerifyFuturePasswordAndCustInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcVerifyFuturePasswordAndCustInfoField, (void *) &SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField); rb_define_alloc_func(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, _wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_allocate); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcVerifyFuturePasswordAndCustInfoField), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_Password_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_Password_get), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CurrencyID_get), -1); SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.mark = 0; SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.destroy = (void (*)(void *)) free_CThostFtdcVerifyFuturePasswordAndCustInfoField; SwigClassCThostFtdcVerifyFuturePasswordAndCustInfoField.trackObjects = 0; SwigClassCThostFtdcDepositResultInformField.klass = rb_define_class_under(mCtp, "CThostFtdcDepositResultInformField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcDepositResultInformField, (void *) &SwigClassCThostFtdcDepositResultInformField); rb_define_alloc_func(SwigClassCThostFtdcDepositResultInformField.klass, _wrap_CThostFtdcDepositResultInformField_allocate); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcDepositResultInformField), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "DepositSeqNo=", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_DepositSeqNo_set), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "DepositSeqNo", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_DepositSeqNo_get), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "Deposit=", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_Deposit_set), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "Deposit", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_Deposit_get), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "ReturnCode=", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_ReturnCode_set), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "ReturnCode", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_ReturnCode_get), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "DescrInfoForReturnCode=", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_DescrInfoForReturnCode_set), -1); rb_define_method(SwigClassCThostFtdcDepositResultInformField.klass, "DescrInfoForReturnCode", VALUEFUNC(_wrap_CThostFtdcDepositResultInformField_DescrInfoForReturnCode_get), -1); SwigClassCThostFtdcDepositResultInformField.mark = 0; SwigClassCThostFtdcDepositResultInformField.destroy = (void (*)(void *)) free_CThostFtdcDepositResultInformField; SwigClassCThostFtdcDepositResultInformField.trackObjects = 0; SwigClassCThostFtdcReqSyncKeyField.klass = rb_define_class_under(mCtp, "CThostFtdcReqSyncKeyField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcReqSyncKeyField, (void *) &SwigClassCThostFtdcReqSyncKeyField); rb_define_alloc_func(SwigClassCThostFtdcReqSyncKeyField.klass, _wrap_CThostFtdcReqSyncKeyField_allocate); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcReqSyncKeyField), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "Message=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_Message_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "Message", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_Message_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_TID_set), -1); rb_define_method(SwigClassCThostFtdcReqSyncKeyField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcReqSyncKeyField_TID_get), -1); SwigClassCThostFtdcReqSyncKeyField.mark = 0; SwigClassCThostFtdcReqSyncKeyField.destroy = (void (*)(void *)) free_CThostFtdcReqSyncKeyField; SwigClassCThostFtdcReqSyncKeyField.trackObjects = 0; SwigClassCThostFtdcRspSyncKeyField.klass = rb_define_class_under(mCtp, "CThostFtdcRspSyncKeyField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcRspSyncKeyField, (void *) &SwigClassCThostFtdcRspSyncKeyField); rb_define_alloc_func(SwigClassCThostFtdcRspSyncKeyField.klass, _wrap_CThostFtdcRspSyncKeyField_allocate); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcRspSyncKeyField), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "Message=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_Message_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "Message", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_Message_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_TID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_TID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcRspSyncKeyField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcRspSyncKeyField_ErrorMsg_get), -1); SwigClassCThostFtdcRspSyncKeyField.mark = 0; SwigClassCThostFtdcRspSyncKeyField.destroy = (void (*)(void *)) free_CThostFtdcRspSyncKeyField; SwigClassCThostFtdcRspSyncKeyField.trackObjects = 0; SwigClassCThostFtdcNotifyQueryAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcNotifyQueryAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcNotifyQueryAccountField, (void *) &SwigClassCThostFtdcNotifyQueryAccountField); rb_define_alloc_func(SwigClassCThostFtdcNotifyQueryAccountField.klass, _wrap_CThostFtdcNotifyQueryAccountField_allocate); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcNotifyQueryAccountField), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_Password_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_Password_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "FutureSerial=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_FutureSerial_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "FutureSerial", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_FutureSerial_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_TID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_TID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankUseAmount=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankUseAmount_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankUseAmount", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankUseAmount_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankFetchAmount=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankFetchAmount_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "BankFetchAmount", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_BankFetchAmount_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcNotifyQueryAccountField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcNotifyQueryAccountField_ErrorMsg_get), -1); SwigClassCThostFtdcNotifyQueryAccountField.mark = 0; SwigClassCThostFtdcNotifyQueryAccountField.destroy = (void (*)(void *)) free_CThostFtdcNotifyQueryAccountField; SwigClassCThostFtdcNotifyQueryAccountField.trackObjects = 0; SwigClassCThostFtdcTransferSerialField.klass = rb_define_class_under(mCtp, "CThostFtdcTransferSerialField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTransferSerialField, (void *) &SwigClassCThostFtdcTransferSerialField); rb_define_alloc_func(SwigClassCThostFtdcTransferSerialField.klass, _wrap_CThostFtdcTransferSerialField_allocate); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTransferSerialField), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "FutureAccType=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_FutureAccType_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "FutureAccType", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_FutureAccType_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "InvestorID=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_InvestorID_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "InvestorID", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_InvestorID_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "FutureSerial=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_FutureSerial_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "FutureSerial", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_FutureSerial_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "TradeAmount=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_TradeAmount_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "TradeAmount", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_TradeAmount_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "CustFee=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_CustFee_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "CustFee", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_CustFee_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BrokerFee=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BrokerFee_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BrokerFee", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BrokerFee_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "AvailabilityFlag=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_AvailabilityFlag_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "AvailabilityFlag", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_AvailabilityFlag_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "OperatorCode=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_OperatorCode_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "OperatorCode", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_OperatorCode_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankNewAccount=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankNewAccount_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "BankNewAccount", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_BankNewAccount_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcTransferSerialField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcTransferSerialField_ErrorMsg_get), -1); SwigClassCThostFtdcTransferSerialField.mark = 0; SwigClassCThostFtdcTransferSerialField.destroy = (void (*)(void *)) free_CThostFtdcTransferSerialField; SwigClassCThostFtdcTransferSerialField.trackObjects = 0; SwigClassCThostFtdcQryTransferSerialField.klass = rb_define_class_under(mCtp, "CThostFtdcQryTransferSerialField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryTransferSerialField, (void *) &SwigClassCThostFtdcQryTransferSerialField); rb_define_alloc_func(SwigClassCThostFtdcQryTransferSerialField.klass, _wrap_CThostFtdcQryTransferSerialField_allocate); rb_define_method(SwigClassCThostFtdcQryTransferSerialField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryTransferSerialField), -1); rb_define_method(SwigClassCThostFtdcQryTransferSerialField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryTransferSerialField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryTransferSerialField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryTransferSerialField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryTransferSerialField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcQryTransferSerialField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcQryTransferSerialField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcQryTransferSerialField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcQryTransferSerialField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcQryTransferSerialField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcQryTransferSerialField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcQryTransferSerialField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcQryTransferSerialField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcQryTransferSerialField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcQryTransferSerialField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcQryTransferSerialField_CurrencyID_get), -1); SwigClassCThostFtdcQryTransferSerialField.mark = 0; SwigClassCThostFtdcQryTransferSerialField.destroy = (void (*)(void *)) free_CThostFtdcQryTransferSerialField; SwigClassCThostFtdcQryTransferSerialField.trackObjects = 0; SwigClassCThostFtdcNotifyFutureSignInField.klass = rb_define_class_under(mCtp, "CThostFtdcNotifyFutureSignInField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcNotifyFutureSignInField, (void *) &SwigClassCThostFtdcNotifyFutureSignInField); rb_define_alloc_func(SwigClassCThostFtdcNotifyFutureSignInField.klass, _wrap_CThostFtdcNotifyFutureSignInField_allocate); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcNotifyFutureSignInField), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_TID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_TID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_ErrorMsg_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "PinKey=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_PinKey_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "PinKey", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_PinKey_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "MacKey=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_MacKey_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignInField.klass, "MacKey", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignInField_MacKey_get), -1); SwigClassCThostFtdcNotifyFutureSignInField.mark = 0; SwigClassCThostFtdcNotifyFutureSignInField.destroy = (void (*)(void *)) free_CThostFtdcNotifyFutureSignInField; SwigClassCThostFtdcNotifyFutureSignInField.trackObjects = 0; SwigClassCThostFtdcNotifyFutureSignOutField.klass = rb_define_class_under(mCtp, "CThostFtdcNotifyFutureSignOutField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcNotifyFutureSignOutField, (void *) &SwigClassCThostFtdcNotifyFutureSignOutField); rb_define_alloc_func(SwigClassCThostFtdcNotifyFutureSignOutField.klass, _wrap_CThostFtdcNotifyFutureSignOutField_allocate); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcNotifyFutureSignOutField), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_TID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_TID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcNotifyFutureSignOutField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcNotifyFutureSignOutField_ErrorMsg_get), -1); SwigClassCThostFtdcNotifyFutureSignOutField.mark = 0; SwigClassCThostFtdcNotifyFutureSignOutField.destroy = (void (*)(void *)) free_CThostFtdcNotifyFutureSignOutField; SwigClassCThostFtdcNotifyFutureSignOutField.trackObjects = 0; SwigClassCThostFtdcNotifySyncKeyField.klass = rb_define_class_under(mCtp, "CThostFtdcNotifySyncKeyField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcNotifySyncKeyField, (void *) &SwigClassCThostFtdcNotifySyncKeyField); rb_define_alloc_func(SwigClassCThostFtdcNotifySyncKeyField.klass, _wrap_CThostFtdcNotifySyncKeyField_allocate); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcNotifySyncKeyField), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "Message=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_Message_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "Message", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_Message_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "RequestID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_RequestID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "RequestID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_RequestID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_TID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_TID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcNotifySyncKeyField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcNotifySyncKeyField_ErrorMsg_get), -1); SwigClassCThostFtdcNotifySyncKeyField.mark = 0; SwigClassCThostFtdcNotifySyncKeyField.destroy = (void (*)(void *)) free_CThostFtdcNotifySyncKeyField; SwigClassCThostFtdcNotifySyncKeyField.trackObjects = 0; SwigClassCThostFtdcQryAccountregisterField.klass = rb_define_class_under(mCtp, "CThostFtdcQryAccountregisterField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryAccountregisterField, (void *) &SwigClassCThostFtdcQryAccountregisterField); rb_define_alloc_func(SwigClassCThostFtdcQryAccountregisterField.klass, _wrap_CThostFtdcQryAccountregisterField_allocate); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryAccountregisterField), -1); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryAccountregisterField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryAccountregisterField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcQryAccountregisterField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcQryAccountregisterField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcQryAccountregisterField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcQryAccountregisterField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcQryAccountregisterField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcQryAccountregisterField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcQryAccountregisterField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcQryAccountregisterField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcQryAccountregisterField_CurrencyID_get), -1); SwigClassCThostFtdcQryAccountregisterField.mark = 0; SwigClassCThostFtdcQryAccountregisterField.destroy = (void (*)(void *)) free_CThostFtdcQryAccountregisterField; SwigClassCThostFtdcQryAccountregisterField.trackObjects = 0; SwigClassCThostFtdcAccountregisterField.klass = rb_define_class_under(mCtp, "CThostFtdcAccountregisterField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcAccountregisterField, (void *) &SwigClassCThostFtdcAccountregisterField); rb_define_alloc_func(SwigClassCThostFtdcAccountregisterField.klass, _wrap_CThostFtdcAccountregisterField_allocate); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcAccountregisterField), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "TradeDay=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_TradeDay_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "TradeDay", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_TradeDay_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "OpenOrDestroy=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_OpenOrDestroy_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "OpenOrDestroy", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_OpenOrDestroy_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "RegDate=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_RegDate_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "RegDate", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_RegDate_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "OutDate=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_OutDate_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "OutDate", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_OutDate_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_TID_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_TID_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcAccountregisterField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcAccountregisterField_BankAccType_get), -1); SwigClassCThostFtdcAccountregisterField.mark = 0; SwigClassCThostFtdcAccountregisterField.destroy = (void (*)(void *)) free_CThostFtdcAccountregisterField; SwigClassCThostFtdcAccountregisterField.trackObjects = 0; SwigClassCThostFtdcOpenAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcOpenAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcOpenAccountField, (void *) &SwigClassCThostFtdcOpenAccountField); rb_define_alloc_func(SwigClassCThostFtdcOpenAccountField.klass, _wrap_CThostFtdcOpenAccountField_allocate); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcOpenAccountField), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Gender=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Gender_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Gender", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Gender_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "CountryCode=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_CountryCode_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "CountryCode", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_CountryCode_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Address=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Address_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Address", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Address_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "ZipCode=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_ZipCode_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "ZipCode", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_ZipCode_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Telephone=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Telephone_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Telephone", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Telephone_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "MobilePhone=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_MobilePhone_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "MobilePhone", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_MobilePhone_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Fax=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Fax_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Fax", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Fax_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "EMail=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_EMail_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "EMail", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_EMail_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "MoneyAccountStatus=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_MoneyAccountStatus_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "MoneyAccountStatus", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_MoneyAccountStatus_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Password_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Password_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "CashExchangeCode=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_CashExchangeCode_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "CashExchangeCode", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_CashExchangeCode_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_TID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_TID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcOpenAccountField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcOpenAccountField_ErrorMsg_get), -1); SwigClassCThostFtdcOpenAccountField.mark = 0; SwigClassCThostFtdcOpenAccountField.destroy = (void (*)(void *)) free_CThostFtdcOpenAccountField; SwigClassCThostFtdcOpenAccountField.trackObjects = 0; SwigClassCThostFtdcCancelAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcCancelAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCancelAccountField, (void *) &SwigClassCThostFtdcCancelAccountField); rb_define_alloc_func(SwigClassCThostFtdcCancelAccountField.klass, _wrap_CThostFtdcCancelAccountField_allocate); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCancelAccountField), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Gender=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Gender_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Gender", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Gender_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "CountryCode=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_CountryCode_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "CountryCode", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_CountryCode_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Address=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Address_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Address", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Address_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "ZipCode=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_ZipCode_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "ZipCode", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_ZipCode_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Telephone=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Telephone_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Telephone", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Telephone_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "MobilePhone=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_MobilePhone_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "MobilePhone", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_MobilePhone_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Fax=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Fax_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Fax", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Fax_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "EMail=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_EMail_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "EMail", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_EMail_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "MoneyAccountStatus=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_MoneyAccountStatus_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "MoneyAccountStatus", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_MoneyAccountStatus_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Password_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Password_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "CashExchangeCode=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_CashExchangeCode_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "CashExchangeCode", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_CashExchangeCode_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "DeviceID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_DeviceID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "DeviceID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_DeviceID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankSecuAccType=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankSecuAccType_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankSecuAccType", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankSecuAccType_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankSecuAcc=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankSecuAcc_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankSecuAcc", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankSecuAcc_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "OperNo=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_OperNo_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "OperNo", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_OperNo_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_TID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_TID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcCancelAccountField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcCancelAccountField_ErrorMsg_get), -1); SwigClassCThostFtdcCancelAccountField.mark = 0; SwigClassCThostFtdcCancelAccountField.destroy = (void (*)(void *)) free_CThostFtdcCancelAccountField; SwigClassCThostFtdcCancelAccountField.trackObjects = 0; SwigClassCThostFtdcChangeAccountField.klass = rb_define_class_under(mCtp, "CThostFtdcChangeAccountField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcChangeAccountField, (void *) &SwigClassCThostFtdcChangeAccountField); rb_define_alloc_func(SwigClassCThostFtdcChangeAccountField.klass, _wrap_CThostFtdcChangeAccountField_allocate); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcChangeAccountField), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "TradeCode=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_TradeCode_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "TradeCode", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_TradeCode_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankID=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankID_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankID", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankID_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankBranchID=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankBranchID_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankBranchID", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankBranchID_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BrokerBranchID=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BrokerBranchID_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BrokerBranchID", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BrokerBranchID_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "TradeDate=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_TradeDate_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "TradeDate", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_TradeDate_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "TradeTime=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_TradeTime_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "TradeTime", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_TradeTime_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankSerial=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankSerial_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankSerial", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankSerial_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "TradingDay=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_TradingDay_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "TradingDay", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_TradingDay_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "PlateSerial=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_PlateSerial_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "PlateSerial", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_PlateSerial_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "LastFragment=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_LastFragment_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "LastFragment", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_LastFragment_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "SessionID=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_SessionID_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "SessionID", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_SessionID_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "CustomerName=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_CustomerName_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "CustomerName", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_CustomerName_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "IdCardType=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_IdCardType_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "IdCardType", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_IdCardType_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "IdentifiedCardNo=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_IdentifiedCardNo_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "IdentifiedCardNo", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_IdentifiedCardNo_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Gender=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Gender_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Gender", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Gender_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "CountryCode=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_CountryCode_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "CountryCode", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_CountryCode_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "CustType=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_CustType_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "CustType", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_CustType_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Address=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Address_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Address", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Address_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "ZipCode=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_ZipCode_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "ZipCode", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_ZipCode_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Telephone=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Telephone_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Telephone", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Telephone_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "MobilePhone=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_MobilePhone_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "MobilePhone", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_MobilePhone_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Fax=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Fax_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Fax", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Fax_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "EMail=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_EMail_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "EMail", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_EMail_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "MoneyAccountStatus=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_MoneyAccountStatus_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "MoneyAccountStatus", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_MoneyAccountStatus_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankAccount=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankAccount_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankAccount", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankAccount_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankPassWord=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankPassWord", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "NewBankAccount=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_NewBankAccount_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "NewBankAccount", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_NewBankAccount_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "NewBankPassWord=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_NewBankPassWord_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "NewBankPassWord", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_NewBankPassWord_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Password=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Password_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Password", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Password_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankAccType=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankAccType_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankAccType", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankAccType_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "InstallID=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_InstallID_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "InstallID", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_InstallID_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "VerifyCertNoFlag=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_VerifyCertNoFlag_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "VerifyCertNoFlag", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_VerifyCertNoFlag_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BrokerIDByBank=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BrokerIDByBank_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BrokerIDByBank", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BrokerIDByBank_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankPwdFlag=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "BankPwdFlag", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_BankPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "SecuPwdFlag=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_SecuPwdFlag_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "SecuPwdFlag", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_SecuPwdFlag_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "TID=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_TID_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "TID", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_TID_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Digest=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Digest_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "Digest", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_Digest_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "ErrorID=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_ErrorID_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "ErrorID", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_ErrorID_get), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "ErrorMsg=", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_ErrorMsg_set), -1); rb_define_method(SwigClassCThostFtdcChangeAccountField.klass, "ErrorMsg", VALUEFUNC(_wrap_CThostFtdcChangeAccountField_ErrorMsg_get), -1); SwigClassCThostFtdcChangeAccountField.mark = 0; SwigClassCThostFtdcChangeAccountField.destroy = (void (*)(void *)) free_CThostFtdcChangeAccountField; SwigClassCThostFtdcChangeAccountField.trackObjects = 0; SwigClassCThostFtdcSecAgentACIDMapField.klass = rb_define_class_under(mCtp, "CThostFtdcSecAgentACIDMapField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcSecAgentACIDMapField, (void *) &SwigClassCThostFtdcSecAgentACIDMapField); rb_define_alloc_func(SwigClassCThostFtdcSecAgentACIDMapField.klass, _wrap_CThostFtdcSecAgentACIDMapField_allocate); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcSecAgentACIDMapField), -1); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcSecAgentACIDMapField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcSecAgentACIDMapField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcSecAgentACIDMapField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcSecAgentACIDMapField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcSecAgentACIDMapField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcSecAgentACIDMapField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcSecAgentACIDMapField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcSecAgentACIDMapField_CurrencyID_get), -1); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "BrokerSecAgentID=", VALUEFUNC(_wrap_CThostFtdcSecAgentACIDMapField_BrokerSecAgentID_set), -1); rb_define_method(SwigClassCThostFtdcSecAgentACIDMapField.klass, "BrokerSecAgentID", VALUEFUNC(_wrap_CThostFtdcSecAgentACIDMapField_BrokerSecAgentID_get), -1); SwigClassCThostFtdcSecAgentACIDMapField.mark = 0; SwigClassCThostFtdcSecAgentACIDMapField.destroy = (void (*)(void *)) free_CThostFtdcSecAgentACIDMapField; SwigClassCThostFtdcSecAgentACIDMapField.trackObjects = 0; SwigClassCThostFtdcQrySecAgentACIDMapField.klass = rb_define_class_under(mCtp, "CThostFtdcQrySecAgentACIDMapField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQrySecAgentACIDMapField, (void *) &SwigClassCThostFtdcQrySecAgentACIDMapField); rb_define_alloc_func(SwigClassCThostFtdcQrySecAgentACIDMapField.klass, _wrap_CThostFtdcQrySecAgentACIDMapField_allocate); rb_define_method(SwigClassCThostFtdcQrySecAgentACIDMapField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQrySecAgentACIDMapField), -1); rb_define_method(SwigClassCThostFtdcQrySecAgentACIDMapField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQrySecAgentACIDMapField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQrySecAgentACIDMapField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQrySecAgentACIDMapField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQrySecAgentACIDMapField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcQrySecAgentACIDMapField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcQrySecAgentACIDMapField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcQrySecAgentACIDMapField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcQrySecAgentACIDMapField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcQrySecAgentACIDMapField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcQrySecAgentACIDMapField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcQrySecAgentACIDMapField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcQrySecAgentACIDMapField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcQrySecAgentACIDMapField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcQrySecAgentACIDMapField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcQrySecAgentACIDMapField_CurrencyID_get), -1); SwigClassCThostFtdcQrySecAgentACIDMapField.mark = 0; SwigClassCThostFtdcQrySecAgentACIDMapField.destroy = (void (*)(void *)) free_CThostFtdcQrySecAgentACIDMapField; SwigClassCThostFtdcQrySecAgentACIDMapField.trackObjects = 0; SwigClassCThostFtdcUserRightsAssignField.klass = rb_define_class_under(mCtp, "CThostFtdcUserRightsAssignField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcUserRightsAssignField, (void *) &SwigClassCThostFtdcUserRightsAssignField); rb_define_alloc_func(SwigClassCThostFtdcUserRightsAssignField.klass, _wrap_CThostFtdcUserRightsAssignField_allocate); rb_define_method(SwigClassCThostFtdcUserRightsAssignField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcUserRightsAssignField), -1); rb_define_method(SwigClassCThostFtdcUserRightsAssignField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcUserRightsAssignField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcUserRightsAssignField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcUserRightsAssignField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcUserRightsAssignField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcUserRightsAssignField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcUserRightsAssignField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcUserRightsAssignField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcUserRightsAssignField.klass, "DRIdentityID=", VALUEFUNC(_wrap_CThostFtdcUserRightsAssignField_DRIdentityID_set), -1); rb_define_method(SwigClassCThostFtdcUserRightsAssignField.klass, "DRIdentityID", VALUEFUNC(_wrap_CThostFtdcUserRightsAssignField_DRIdentityID_get), -1); SwigClassCThostFtdcUserRightsAssignField.mark = 0; SwigClassCThostFtdcUserRightsAssignField.destroy = (void (*)(void *)) free_CThostFtdcUserRightsAssignField; SwigClassCThostFtdcUserRightsAssignField.trackObjects = 0; SwigClassCThostFtdcBrokerUserRightAssignField.klass = rb_define_class_under(mCtp, "CThostFtdcBrokerUserRightAssignField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcBrokerUserRightAssignField, (void *) &SwigClassCThostFtdcBrokerUserRightAssignField); rb_define_alloc_func(SwigClassCThostFtdcBrokerUserRightAssignField.klass, _wrap_CThostFtdcBrokerUserRightAssignField_allocate); rb_define_method(SwigClassCThostFtdcBrokerUserRightAssignField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcBrokerUserRightAssignField), -1); rb_define_method(SwigClassCThostFtdcBrokerUserRightAssignField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserRightAssignField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserRightAssignField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcBrokerUserRightAssignField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserRightAssignField.klass, "DRIdentityID=", VALUEFUNC(_wrap_CThostFtdcBrokerUserRightAssignField_DRIdentityID_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserRightAssignField.klass, "DRIdentityID", VALUEFUNC(_wrap_CThostFtdcBrokerUserRightAssignField_DRIdentityID_get), -1); rb_define_method(SwigClassCThostFtdcBrokerUserRightAssignField.klass, "Tradeable=", VALUEFUNC(_wrap_CThostFtdcBrokerUserRightAssignField_Tradeable_set), -1); rb_define_method(SwigClassCThostFtdcBrokerUserRightAssignField.klass, "Tradeable", VALUEFUNC(_wrap_CThostFtdcBrokerUserRightAssignField_Tradeable_get), -1); SwigClassCThostFtdcBrokerUserRightAssignField.mark = 0; SwigClassCThostFtdcBrokerUserRightAssignField.destroy = (void (*)(void *)) free_CThostFtdcBrokerUserRightAssignField; SwigClassCThostFtdcBrokerUserRightAssignField.trackObjects = 0; SwigClassCThostFtdcDRTransferField.klass = rb_define_class_under(mCtp, "CThostFtdcDRTransferField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcDRTransferField, (void *) &SwigClassCThostFtdcDRTransferField); rb_define_alloc_func(SwigClassCThostFtdcDRTransferField.klass, _wrap_CThostFtdcDRTransferField_allocate); rb_define_method(SwigClassCThostFtdcDRTransferField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcDRTransferField), -1); rb_define_method(SwigClassCThostFtdcDRTransferField.klass, "OrigDRIdentityID=", VALUEFUNC(_wrap_CThostFtdcDRTransferField_OrigDRIdentityID_set), -1); rb_define_method(SwigClassCThostFtdcDRTransferField.klass, "OrigDRIdentityID", VALUEFUNC(_wrap_CThostFtdcDRTransferField_OrigDRIdentityID_get), -1); rb_define_method(SwigClassCThostFtdcDRTransferField.klass, "DestDRIdentityID=", VALUEFUNC(_wrap_CThostFtdcDRTransferField_DestDRIdentityID_set), -1); rb_define_method(SwigClassCThostFtdcDRTransferField.klass, "DestDRIdentityID", VALUEFUNC(_wrap_CThostFtdcDRTransferField_DestDRIdentityID_get), -1); rb_define_method(SwigClassCThostFtdcDRTransferField.klass, "OrigBrokerID=", VALUEFUNC(_wrap_CThostFtdcDRTransferField_OrigBrokerID_set), -1); rb_define_method(SwigClassCThostFtdcDRTransferField.klass, "OrigBrokerID", VALUEFUNC(_wrap_CThostFtdcDRTransferField_OrigBrokerID_get), -1); rb_define_method(SwigClassCThostFtdcDRTransferField.klass, "DestBrokerID=", VALUEFUNC(_wrap_CThostFtdcDRTransferField_DestBrokerID_set), -1); rb_define_method(SwigClassCThostFtdcDRTransferField.klass, "DestBrokerID", VALUEFUNC(_wrap_CThostFtdcDRTransferField_DestBrokerID_get), -1); SwigClassCThostFtdcDRTransferField.mark = 0; SwigClassCThostFtdcDRTransferField.destroy = (void (*)(void *)) free_CThostFtdcDRTransferField; SwigClassCThostFtdcDRTransferField.trackObjects = 0; SwigClassCThostFtdcFensUserInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcFensUserInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcFensUserInfoField, (void *) &SwigClassCThostFtdcFensUserInfoField); rb_define_alloc_func(SwigClassCThostFtdcFensUserInfoField.klass, _wrap_CThostFtdcFensUserInfoField_allocate); rb_define_method(SwigClassCThostFtdcFensUserInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcFensUserInfoField), -1); rb_define_method(SwigClassCThostFtdcFensUserInfoField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcFensUserInfoField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcFensUserInfoField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcFensUserInfoField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcFensUserInfoField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcFensUserInfoField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcFensUserInfoField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcFensUserInfoField_UserID_get), -1); rb_define_method(SwigClassCThostFtdcFensUserInfoField.klass, "LoginMode=", VALUEFUNC(_wrap_CThostFtdcFensUserInfoField_LoginMode_set), -1); rb_define_method(SwigClassCThostFtdcFensUserInfoField.klass, "LoginMode", VALUEFUNC(_wrap_CThostFtdcFensUserInfoField_LoginMode_get), -1); SwigClassCThostFtdcFensUserInfoField.mark = 0; SwigClassCThostFtdcFensUserInfoField.destroy = (void (*)(void *)) free_CThostFtdcFensUserInfoField; SwigClassCThostFtdcFensUserInfoField.trackObjects = 0; SwigClassCThostFtdcCurrTransferIdentityField.klass = rb_define_class_under(mCtp, "CThostFtdcCurrTransferIdentityField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcCurrTransferIdentityField, (void *) &SwigClassCThostFtdcCurrTransferIdentityField); rb_define_alloc_func(SwigClassCThostFtdcCurrTransferIdentityField.klass, _wrap_CThostFtdcCurrTransferIdentityField_allocate); rb_define_method(SwigClassCThostFtdcCurrTransferIdentityField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcCurrTransferIdentityField), -1); rb_define_method(SwigClassCThostFtdcCurrTransferIdentityField.klass, "IdentityID=", VALUEFUNC(_wrap_CThostFtdcCurrTransferIdentityField_IdentityID_set), -1); rb_define_method(SwigClassCThostFtdcCurrTransferIdentityField.klass, "IdentityID", VALUEFUNC(_wrap_CThostFtdcCurrTransferIdentityField_IdentityID_get), -1); SwigClassCThostFtdcCurrTransferIdentityField.mark = 0; SwigClassCThostFtdcCurrTransferIdentityField.destroy = (void (*)(void *)) free_CThostFtdcCurrTransferIdentityField; SwigClassCThostFtdcCurrTransferIdentityField.trackObjects = 0; SwigClassCThostFtdcLoginForbiddenUserField.klass = rb_define_class_under(mCtp, "CThostFtdcLoginForbiddenUserField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcLoginForbiddenUserField, (void *) &SwigClassCThostFtdcLoginForbiddenUserField); rb_define_alloc_func(SwigClassCThostFtdcLoginForbiddenUserField.klass, _wrap_CThostFtdcLoginForbiddenUserField_allocate); rb_define_method(SwigClassCThostFtdcLoginForbiddenUserField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcLoginForbiddenUserField), -1); rb_define_method(SwigClassCThostFtdcLoginForbiddenUserField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcLoginForbiddenUserField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcLoginForbiddenUserField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcLoginForbiddenUserField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcLoginForbiddenUserField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcLoginForbiddenUserField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcLoginForbiddenUserField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcLoginForbiddenUserField_UserID_get), -1); SwigClassCThostFtdcLoginForbiddenUserField.mark = 0; SwigClassCThostFtdcLoginForbiddenUserField.destroy = (void (*)(void *)) free_CThostFtdcLoginForbiddenUserField; SwigClassCThostFtdcLoginForbiddenUserField.trackObjects = 0; SwigClassCThostFtdcQryLoginForbiddenUserField.klass = rb_define_class_under(mCtp, "CThostFtdcQryLoginForbiddenUserField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcQryLoginForbiddenUserField, (void *) &SwigClassCThostFtdcQryLoginForbiddenUserField); rb_define_alloc_func(SwigClassCThostFtdcQryLoginForbiddenUserField.klass, _wrap_CThostFtdcQryLoginForbiddenUserField_allocate); rb_define_method(SwigClassCThostFtdcQryLoginForbiddenUserField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcQryLoginForbiddenUserField), -1); rb_define_method(SwigClassCThostFtdcQryLoginForbiddenUserField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcQryLoginForbiddenUserField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcQryLoginForbiddenUserField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcQryLoginForbiddenUserField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcQryLoginForbiddenUserField.klass, "UserID=", VALUEFUNC(_wrap_CThostFtdcQryLoginForbiddenUserField_UserID_set), -1); rb_define_method(SwigClassCThostFtdcQryLoginForbiddenUserField.klass, "UserID", VALUEFUNC(_wrap_CThostFtdcQryLoginForbiddenUserField_UserID_get), -1); SwigClassCThostFtdcQryLoginForbiddenUserField.mark = 0; SwigClassCThostFtdcQryLoginForbiddenUserField.destroy = (void (*)(void *)) free_CThostFtdcQryLoginForbiddenUserField; SwigClassCThostFtdcQryLoginForbiddenUserField.trackObjects = 0; SwigClassCThostFtdcMulticastGroupInfoField.klass = rb_define_class_under(mCtp, "CThostFtdcMulticastGroupInfoField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMulticastGroupInfoField, (void *) &SwigClassCThostFtdcMulticastGroupInfoField); rb_define_alloc_func(SwigClassCThostFtdcMulticastGroupInfoField.klass, _wrap_CThostFtdcMulticastGroupInfoField_allocate); rb_define_method(SwigClassCThostFtdcMulticastGroupInfoField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMulticastGroupInfoField), -1); rb_define_method(SwigClassCThostFtdcMulticastGroupInfoField.klass, "GroupIP=", VALUEFUNC(_wrap_CThostFtdcMulticastGroupInfoField_GroupIP_set), -1); rb_define_method(SwigClassCThostFtdcMulticastGroupInfoField.klass, "GroupIP", VALUEFUNC(_wrap_CThostFtdcMulticastGroupInfoField_GroupIP_get), -1); rb_define_method(SwigClassCThostFtdcMulticastGroupInfoField.klass, "GroupPort=", VALUEFUNC(_wrap_CThostFtdcMulticastGroupInfoField_GroupPort_set), -1); rb_define_method(SwigClassCThostFtdcMulticastGroupInfoField.klass, "GroupPort", VALUEFUNC(_wrap_CThostFtdcMulticastGroupInfoField_GroupPort_get), -1); rb_define_method(SwigClassCThostFtdcMulticastGroupInfoField.klass, "SourceIP=", VALUEFUNC(_wrap_CThostFtdcMulticastGroupInfoField_SourceIP_set), -1); rb_define_method(SwigClassCThostFtdcMulticastGroupInfoField.klass, "SourceIP", VALUEFUNC(_wrap_CThostFtdcMulticastGroupInfoField_SourceIP_get), -1); SwigClassCThostFtdcMulticastGroupInfoField.mark = 0; SwigClassCThostFtdcMulticastGroupInfoField.destroy = (void (*)(void *)) free_CThostFtdcMulticastGroupInfoField; SwigClassCThostFtdcMulticastGroupInfoField.trackObjects = 0; SwigClassCThostFtdcTradingAccountReserveField.klass = rb_define_class_under(mCtp, "CThostFtdcTradingAccountReserveField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTradingAccountReserveField, (void *) &SwigClassCThostFtdcTradingAccountReserveField); rb_define_alloc_func(SwigClassCThostFtdcTradingAccountReserveField.klass, _wrap_CThostFtdcTradingAccountReserveField_allocate); rb_define_method(SwigClassCThostFtdcTradingAccountReserveField.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTradingAccountReserveField), -1); rb_define_method(SwigClassCThostFtdcTradingAccountReserveField.klass, "BrokerID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountReserveField_BrokerID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountReserveField.klass, "BrokerID", VALUEFUNC(_wrap_CThostFtdcTradingAccountReserveField_BrokerID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountReserveField.klass, "AccountID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountReserveField_AccountID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountReserveField.klass, "AccountID", VALUEFUNC(_wrap_CThostFtdcTradingAccountReserveField_AccountID_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountReserveField.klass, "Reserve=", VALUEFUNC(_wrap_CThostFtdcTradingAccountReserveField_Reserve_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountReserveField.klass, "Reserve", VALUEFUNC(_wrap_CThostFtdcTradingAccountReserveField_Reserve_get), -1); rb_define_method(SwigClassCThostFtdcTradingAccountReserveField.klass, "CurrencyID=", VALUEFUNC(_wrap_CThostFtdcTradingAccountReserveField_CurrencyID_set), -1); rb_define_method(SwigClassCThostFtdcTradingAccountReserveField.klass, "CurrencyID", VALUEFUNC(_wrap_CThostFtdcTradingAccountReserveField_CurrencyID_get), -1); SwigClassCThostFtdcTradingAccountReserveField.mark = 0; SwigClassCThostFtdcTradingAccountReserveField.destroy = (void (*)(void *)) free_CThostFtdcTradingAccountReserveField; SwigClassCThostFtdcTradingAccountReserveField.trackObjects = 0; rb_define_module_function(mCtp, "disown_CThostFtdcMdSpi", VALUEFUNC(_wrap_disown_CThostFtdcMdSpi), -1); SwigClassCThostFtdcMdSpi.klass = rb_define_class_under(mCtp, "CThostFtdcMdSpi", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMdSpi, (void *) &SwigClassCThostFtdcMdSpi); rb_define_alloc_func(SwigClassCThostFtdcMdSpi.klass, _wrap_CThostFtdcMdSpi_allocate); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcMdSpi), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnFrontConnected", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnFrontConnected), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnFrontDisconnected", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnFrontDisconnected), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnHeartBeatWarning", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnHeartBeatWarning), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnRspUserLogin", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnRspUserLogin), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnRspUserLogout", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnRspUserLogout), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnRspError", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnRspError), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnRspSubMarketData", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnRspSubMarketData), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnRspUnSubMarketData", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnRspUnSubMarketData), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnRspSubForQuoteRsp", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnRspSubForQuoteRsp), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnRspUnSubForQuoteRsp", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnRspUnSubForQuoteRsp), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnRtnDepthMarketData", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnRtnDepthMarketData), -1); rb_define_method(SwigClassCThostFtdcMdSpi.klass, "OnRtnForQuoteRsp", VALUEFUNC(_wrap_CThostFtdcMdSpi_OnRtnForQuoteRsp), -1); SwigClassCThostFtdcMdSpi.mark = 0; SwigClassCThostFtdcMdSpi.destroy = (void (*)(void *)) free_CThostFtdcMdSpi; SwigClassCThostFtdcMdSpi.trackObjects = 0; SwigClassCThostFtdcMdApi.klass = rb_define_class_under(mCtp, "CThostFtdcMdApi", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcMdApi, (void *) &SwigClassCThostFtdcMdApi); rb_undef_alloc_func(SwigClassCThostFtdcMdApi.klass); rb_define_singleton_method(SwigClassCThostFtdcMdApi.klass, "CreateFtdcMdApi", VALUEFUNC(_wrap_CThostFtdcMdApi_CreateFtdcMdApi), -1); rb_define_singleton_method(SwigClassCThostFtdcMdApi.klass, "GetApiVersion", VALUEFUNC(_wrap_CThostFtdcMdApi_GetApiVersion), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "Release", VALUEFUNC(_wrap_CThostFtdcMdApi_Release), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "Init", VALUEFUNC(_wrap_CThostFtdcMdApi_Init), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "Join", VALUEFUNC(_wrap_CThostFtdcMdApi_Join), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "GetTradingDay", VALUEFUNC(_wrap_CThostFtdcMdApi_GetTradingDay), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "RegisterFront", VALUEFUNC(_wrap_CThostFtdcMdApi_RegisterFront), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "RegisterNameServer", VALUEFUNC(_wrap_CThostFtdcMdApi_RegisterNameServer), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "RegisterFensUserInfo", VALUEFUNC(_wrap_CThostFtdcMdApi_RegisterFensUserInfo), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "RegisterSpi", VALUEFUNC(_wrap_CThostFtdcMdApi_RegisterSpi), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "SubscribeMarketData", VALUEFUNC(_wrap_CThostFtdcMdApi_SubscribeMarketData), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "UnSubscribeMarketData", VALUEFUNC(_wrap_CThostFtdcMdApi_UnSubscribeMarketData), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "SubscribeForQuoteRsp", VALUEFUNC(_wrap_CThostFtdcMdApi_SubscribeForQuoteRsp), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "UnSubscribeForQuoteRsp", VALUEFUNC(_wrap_CThostFtdcMdApi_UnSubscribeForQuoteRsp), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "ReqUserLogin", VALUEFUNC(_wrap_CThostFtdcMdApi_ReqUserLogin), -1); rb_define_method(SwigClassCThostFtdcMdApi.klass, "ReqUserLogout", VALUEFUNC(_wrap_CThostFtdcMdApi_ReqUserLogout), -1); SwigClassCThostFtdcMdApi.mark = 0; SwigClassCThostFtdcMdApi.trackObjects = 0; rb_define_module_function(mCtp, "disown_CThostFtdcTraderSpi", VALUEFUNC(_wrap_disown_CThostFtdcTraderSpi), -1); SwigClassCThostFtdcTraderSpi.klass = rb_define_class_under(mCtp, "CThostFtdcTraderSpi", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTraderSpi, (void *) &SwigClassCThostFtdcTraderSpi); rb_define_alloc_func(SwigClassCThostFtdcTraderSpi.klass, _wrap_CThostFtdcTraderSpi_allocate); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "initialize", VALUEFUNC(_wrap_new_CThostFtdcTraderSpi), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnFrontConnected", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnFrontConnected), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnFrontDisconnected", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnFrontDisconnected), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnHeartBeatWarning", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnHeartBeatWarning), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspAuthenticate", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspAuthenticate), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspUserLogin", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspUserLogin), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspUserLogout", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspUserLogout), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspUserPasswordUpdate", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspUserPasswordUpdate), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspTradingAccountPasswordUpdate", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspTradingAccountPasswordUpdate), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspOrderInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspOrderInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspParkedOrderInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspParkedOrderInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspParkedOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspParkedOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQueryMaxOrderVolume", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQueryMaxOrderVolume), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspSettlementInfoConfirm", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspSettlementInfoConfirm), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspRemoveParkedOrder", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspRemoveParkedOrder), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspRemoveParkedOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspRemoveParkedOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspExecOrderInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspExecOrderInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspExecOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspExecOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspForQuoteInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspForQuoteInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQuoteInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQuoteInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQuoteAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQuoteAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspCombActionInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspCombActionInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryOrder", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryOrder), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryTrade", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryTrade), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryInvestorPosition", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryInvestorPosition), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryTradingAccount", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryTradingAccount), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryInvestor", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryInvestor), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryTradingCode", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryTradingCode), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryInstrumentMarginRate", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryInstrumentMarginRate), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryInstrumentCommissionRate", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryInstrumentCommissionRate), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryExchange", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryExchange), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryProduct", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryProduct), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryInstrument", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryInstrument), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryDepthMarketData", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryDepthMarketData), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQrySettlementInfo", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQrySettlementInfo), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryTransferBank", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryTransferBank), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryInvestorPositionDetail", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryInvestorPositionDetail), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryNotice", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryNotice), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQrySettlementInfoConfirm", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQrySettlementInfoConfirm), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryInvestorPositionCombineDetail", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryInvestorPositionCombineDetail), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryCFMMCTradingAccountKey", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryCFMMCTradingAccountKey), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryEWarrantOffset", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryEWarrantOffset), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryInvestorProductGroupMargin", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryInvestorProductGroupMargin), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryExchangeMarginRate", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryExchangeMarginRate), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryExchangeMarginRateAdjust", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryExchangeMarginRateAdjust), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryExchangeRate", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryExchangeRate), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQrySecAgentACIDMap", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQrySecAgentACIDMap), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryProductExchRate", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryProductExchRate), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryOptionInstrTradeCost", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryOptionInstrTradeCost), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryOptionInstrCommRate", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryOptionInstrCommRate), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryExecOrder", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryExecOrder), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryForQuote", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryForQuote), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryQuote", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryQuote), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryCombInstrumentGuard", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryCombInstrumentGuard), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryCombAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryCombAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryTransferSerial", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryTransferSerial), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryAccountregister", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryAccountregister), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspError", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspError), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnOrder", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnOrder), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnTrade", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnTrade), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnOrderInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnOrderInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnInstrumentStatus", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnInstrumentStatus), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnTradingNotice", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnTradingNotice), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnErrorConditionalOrder", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnErrorConditionalOrder), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnExecOrder", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnExecOrder), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnExecOrderInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnExecOrderInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnExecOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnExecOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnForQuoteInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnForQuoteInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnQuote", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnQuote), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnQuoteInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnQuoteInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnQuoteAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnQuoteAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnForQuoteRsp", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnForQuoteRsp), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnCFMMCTradingAccountToken", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnCFMMCTradingAccountToken), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnCombAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnCombAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnCombActionInsert", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnCombActionInsert), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryContractBank", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryContractBank), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryParkedOrder", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryParkedOrder), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryParkedOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryParkedOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryTradingNotice", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryTradingNotice), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryBrokerTradingParams", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryBrokerTradingParams), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQryBrokerTradingAlgos", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQryBrokerTradingAlgos), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQueryCFMMCTradingAccountToken", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQueryCFMMCTradingAccountToken), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnFromBankToFutureByBank", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnFromBankToFutureByBank), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnFromFutureToBankByBank", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnFromFutureToBankByBank), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnRepealFromBankToFutureByBank", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnRepealFromBankToFutureByBank), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnRepealFromFutureToBankByBank", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnRepealFromFutureToBankByBank), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnFromBankToFutureByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnFromBankToFutureByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnFromFutureToBankByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnFromFutureToBankByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnRepealFromBankToFutureByFutureManual", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnRepealFromBankToFutureByFutureManual), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnRepealFromFutureToBankByFutureManual", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnRepealFromFutureToBankByFutureManual), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnQueryBankBalanceByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnQueryBankBalanceByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnBankToFutureByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnBankToFutureByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnFutureToBankByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnFutureToBankByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnRepealBankToFutureByFutureManual", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnRepealBankToFutureByFutureManual), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnRepealFutureToBankByFutureManual", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnRepealFutureToBankByFutureManual), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnErrRtnQueryBankBalanceByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnErrRtnQueryBankBalanceByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnRepealFromBankToFutureByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnRepealFromBankToFutureByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnRepealFromFutureToBankByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnRepealFromFutureToBankByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspFromBankToFutureByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspFromBankToFutureByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspFromFutureToBankByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspFromFutureToBankByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRspQueryBankAccountMoneyByFuture", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRspQueryBankAccountMoneyByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnOpenAccountByBank", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnOpenAccountByBank), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnCancelAccountByBank", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnCancelAccountByBank), -1); rb_define_method(SwigClassCThostFtdcTraderSpi.klass, "OnRtnChangeAccountByBank", VALUEFUNC(_wrap_CThostFtdcTraderSpi_OnRtnChangeAccountByBank), -1); SwigClassCThostFtdcTraderSpi.mark = 0; SwigClassCThostFtdcTraderSpi.destroy = (void (*)(void *)) free_CThostFtdcTraderSpi; SwigClassCThostFtdcTraderSpi.trackObjects = 0; SwigClassCThostFtdcTraderApi.klass = rb_define_class_under(mCtp, "CThostFtdcTraderApi", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CThostFtdcTraderApi, (void *) &SwigClassCThostFtdcTraderApi); rb_undef_alloc_func(SwigClassCThostFtdcTraderApi.klass); rb_define_singleton_method(SwigClassCThostFtdcTraderApi.klass, "CreateFtdcTraderApi", VALUEFUNC(_wrap_CThostFtdcTraderApi_CreateFtdcTraderApi), -1); rb_define_singleton_method(SwigClassCThostFtdcTraderApi.klass, "GetApiVersion", VALUEFUNC(_wrap_CThostFtdcTraderApi_GetApiVersion), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "Release", VALUEFUNC(_wrap_CThostFtdcTraderApi_Release), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "Init", VALUEFUNC(_wrap_CThostFtdcTraderApi_Init), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "Join", VALUEFUNC(_wrap_CThostFtdcTraderApi_Join), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "GetTradingDay", VALUEFUNC(_wrap_CThostFtdcTraderApi_GetTradingDay), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "RegisterFront", VALUEFUNC(_wrap_CThostFtdcTraderApi_RegisterFront), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "RegisterNameServer", VALUEFUNC(_wrap_CThostFtdcTraderApi_RegisterNameServer), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "RegisterFensUserInfo", VALUEFUNC(_wrap_CThostFtdcTraderApi_RegisterFensUserInfo), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "RegisterSpi", VALUEFUNC(_wrap_CThostFtdcTraderApi_RegisterSpi), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "SubscribePrivateTopic", VALUEFUNC(_wrap_CThostFtdcTraderApi_SubscribePrivateTopic), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "SubscribePublicTopic", VALUEFUNC(_wrap_CThostFtdcTraderApi_SubscribePublicTopic), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqAuthenticate", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqAuthenticate), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqUserLogin", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqUserLogin), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqUserLogout", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqUserLogout), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqUserPasswordUpdate", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqUserPasswordUpdate), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqTradingAccountPasswordUpdate", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqTradingAccountPasswordUpdate), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqOrderInsert", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqOrderInsert), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqParkedOrderInsert", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqParkedOrderInsert), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqParkedOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqParkedOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQueryMaxOrderVolume", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQueryMaxOrderVolume), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqSettlementInfoConfirm", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqSettlementInfoConfirm), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqRemoveParkedOrder", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqRemoveParkedOrder), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqRemoveParkedOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqRemoveParkedOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqExecOrderInsert", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqExecOrderInsert), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqExecOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqExecOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqForQuoteInsert", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqForQuoteInsert), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQuoteInsert", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQuoteInsert), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQuoteAction", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQuoteAction), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqCombActionInsert", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqCombActionInsert), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryOrder", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryOrder), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryTrade", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryTrade), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryInvestorPosition", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryInvestorPosition), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryTradingAccount", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryTradingAccount), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryInvestor", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryInvestor), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryTradingCode", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryTradingCode), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryInstrumentMarginRate", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryInstrumentMarginRate), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryInstrumentCommissionRate", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryInstrumentCommissionRate), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryExchange", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryExchange), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryProduct", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryProduct), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryInstrument", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryInstrument), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryDepthMarketData", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryDepthMarketData), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQrySettlementInfo", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQrySettlementInfo), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryTransferBank", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryTransferBank), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryInvestorPositionDetail", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryInvestorPositionDetail), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryNotice", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryNotice), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQrySettlementInfoConfirm", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQrySettlementInfoConfirm), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryInvestorPositionCombineDetail", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryInvestorPositionCombineDetail), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryCFMMCTradingAccountKey", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryCFMMCTradingAccountKey), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryEWarrantOffset", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryEWarrantOffset), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryInvestorProductGroupMargin", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryInvestorProductGroupMargin), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryExchangeMarginRate", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryExchangeMarginRate), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryExchangeMarginRateAdjust", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryExchangeMarginRateAdjust), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryExchangeRate", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryExchangeRate), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQrySecAgentACIDMap", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQrySecAgentACIDMap), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryProductExchRate", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryProductExchRate), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryOptionInstrTradeCost", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryOptionInstrTradeCost), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryOptionInstrCommRate", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryOptionInstrCommRate), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryExecOrder", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryExecOrder), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryForQuote", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryForQuote), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryQuote", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryQuote), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryCombInstrumentGuard", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryCombInstrumentGuard), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryCombAction", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryCombAction), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryTransferSerial", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryTransferSerial), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryAccountregister", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryAccountregister), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryContractBank", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryContractBank), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryParkedOrder", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryParkedOrder), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryParkedOrderAction", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryParkedOrderAction), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryTradingNotice", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryTradingNotice), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryBrokerTradingParams", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryBrokerTradingParams), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQryBrokerTradingAlgos", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQryBrokerTradingAlgos), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQueryCFMMCTradingAccountToken", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQueryCFMMCTradingAccountToken), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqFromBankToFutureByFuture", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqFromBankToFutureByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqFromFutureToBankByFuture", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqFromFutureToBankByFuture), -1); rb_define_method(SwigClassCThostFtdcTraderApi.klass, "ReqQueryBankAccountMoneyByFuture", VALUEFUNC(_wrap_CThostFtdcTraderApi_ReqQueryBankAccountMoneyByFuture), -1); SwigClassCThostFtdcTraderApi.mark = 0; SwigClassCThostFtdcTraderApi.trackObjects = 0; }