/* ================================================================= Copyright (C) 2014-2016 BizStation Corp All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ================================================================= */ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.2 * ----------------------------------------------------------------------------- */ #ifndef SWIGRUBY #define SWIGRUBY #endif #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 struct SWIG_CHAR { int alloc; char* str; SWIG_CHAR() :alloc(0), str(0){} ~SWIG_CHAR() { if (alloc) delete[] str; } }; /* ----------------------------------------------------------------------------- * 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 (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # 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 /* ----------------------------------------------------------------------------- * 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 (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # 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 /* ----------------------------------------------------------------------------- * 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 = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (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 /* 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 Ruby hash table to store Trackings from C/C++ structs to Ruby Objects. */ static VALUE swig_ruby_trackings = Qnil; /* Global variable that stores a reference to the ruby hash table delete function. */ static ID swig_ruby_hash_delete; /* Setup a Ruby hash table to store Trackings */ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) { /* Create a ruby 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. */ ID trackings_id = rb_intern( "@__trackings__" ); VALUE verbose = rb_gv_get("VERBOSE"); rb_gv_set("VERBOSE", Qfalse); swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id ); rb_gv_set("VERBOSE", verbose); /* No, it hasn't. Create one ourselves */ if ( swig_ruby_trackings == Qnil ) { swig_ruby_trackings = rb_hash_new(); rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings ); } /* Now store a reference to the hash table delete function so that we only have to look it up once.*/ swig_ruby_hash_delete = rb_intern("delete"); } /* Get a Ruby number to reference a pointer */ SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) { /* We cast the pointer to an unsigned long and then store a reference to it using a Ruby number object. */ /* Convert the pointer to a Ruby number */ return SWIG2NUM(ptr); } /* Get a Ruby number to reference an object */ SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) { /* We cast the object to an unsigned long and then store a reference to it using a Ruby number object. */ /* Convert the Object to a Ruby number */ return SWIG2NUM(object); } /* Get a Ruby object from a previously stored reference */ SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) { /* The provided Ruby number object is a reference to the Ruby object we want.*/ /* Convert the Ruby number to a Ruby object */ return NUM2SWIG(reference); } /* Add a Tracking from a C/C++ struct to a Ruby object */ SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) { /* In a Ruby hash table we store the pointer and the associated Ruby object. The trick here is that we cannot store the Ruby object directly - if we do then it cannot be garbage collected. So instead we typecast it as a unsigned long and convert it to a Ruby number object.*/ /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Get a reference to the Ruby object as a Ruby number */ VALUE value = SWIG_RubyObjectToReference(object); /* Store the mapping to the global hash table. */ rb_hash_aset(swig_ruby_trackings, key, value); } /* Get the Ruby object that owns the specified C/C++ struct */ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) { /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Now lookup the value stored in the global hash table */ VALUE value = rb_hash_aref(swig_ruby_trackings, key); if (value == Qnil) { /* No object exists - return nil. */ return Qnil; } else { /* Convert this value to Ruby object */ return SWIG_RubyReferenceToObject(value); } } /* 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) { /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Delete the object from the hash table by calling Ruby's do this we need to call the Hash.delete method.*/ rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key); } /* 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) { DATA_PTR(object) = 0; } } #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 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 { char klass_name[1024]; sprintf(klass_name, "TYPE%s", type->name); klass = rb_const_get(_mSWIG, rb_intern(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 void (*ruby_owntype)(void*); SWIGRUNTIME ruby_owntype SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) { if (obj) { ruby_owntype oldown = RDATA(obj)->dfree; RDATA(obj)->dfree = own; return oldown; } else { return 0; } } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own) { char *c; swig_cast_info *tc; void *vptr = 0; /* Grab the pointer */ if (NIL_P(obj)) { *ptr = 0; return SWIG_OK; } else { if (TYPE(obj) != T_DATA) { return SWIG_ERROR; } Data_Get_Struct(obj, void, vptr); } if (own) *own = RDATA(obj)->dfree; /* 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; } *ptr = vptr; return SWIG_OK; } } if ((c = SWIG_MangleStr(obj)) == NULL) { return SWIG_ERROR; } tc = SWIG_TypeCheck(c, ty); if (!tc) { return SWIG_ERROR; } else { int newmemory = 0; *ptr = SWIG_TypeCast(tc, vptr, &newmemory); assert(!newmemory); /* newmemory handling not yet implemented */ } } else { *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 #define SWIG_exception(code, msg) do { SWIG_Error(code, msg);; } while(0) /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_HWND swig_types[0] #define SWIGTYPE_p_boost__functionT_int_fbzs__db__protocol__tdap__client__fields_const_RF_t swig_types[1] #define SWIGTYPE_p_boost__shared_ptrT_bzs__database_t swig_types[2] #define SWIGTYPE_p_boost__shared_ptrT_bzs__filter_t swig_types[3] #define SWIGTYPE_p_boost__shared_ptrT_bzs__idatabaseManager_t swig_types[4] #define SWIGTYPE_p_boost__shared_ptrT_bzs__table_t swig_types[5] #define SWIGTYPE_p_boost__timer swig_types[6] #define SWIGTYPE_p_bzs__FLAGS swig_types[7] #define SWIGTYPE_p_bzs__btrDate swig_types[8] #define SWIGTYPE_p_bzs__btrDateTime swig_types[9] #define SWIGTYPE_p_bzs__btrTime swig_types[10] #define SWIGTYPE_p_bzs__btrTimeStamp swig_types[11] #define SWIGTYPE_p_bzs__btrVersion swig_types[12] #define SWIGTYPE_p_bzs__btrVersions swig_types[13] #define SWIGTYPE_p_bzs__activeTable swig_types[14] #define SWIGTYPE_p_bzs__autoMemory swig_types[15] #define SWIGTYPE_p_bzs__avg swig_types[16] #define SWIGTYPE_p_bzs__connectParams swig_types[17] #define SWIGTYPE_p_bzs__count swig_types[18] #define SWIGTYPE_p_bzs__database swig_types[19] #define SWIGTYPE_p_bzs__dbdef swig_types[20] #define SWIGTYPE_p_bzs__field swig_types[21] #define SWIGTYPE_p_bzs__fieldNames swig_types[22] #define SWIGTYPE_p_bzs__fieldShare swig_types[23] #define SWIGTYPE_p_bzs__fielddefs swig_types[24] #define SWIGTYPE_p_bzs__fields swig_types[25] #define SWIGTYPE_p_bzs__fieldsBase swig_types[26] #define SWIGTYPE_p_bzs__filterdIteratorT_bzs__tableIteratorT_indexFindNavi_t_t swig_types[27] #define SWIGTYPE_p_bzs__filterdIteratorT_bzs__tableIteratorT_indexNavi_t_t swig_types[28] #define SWIGTYPE_p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvFindNavi_t_t swig_types[29] #define SWIGTYPE_p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvNavi_t_t swig_types[30] #define SWIGTYPE_p_bzs__filterdIteratorT_bzs__tableIteratorT_stepNavi_t_t swig_types[31] #define SWIGTYPE_p_bzs__filterdIteratorT_bzs__tableIteratorT_stepRvNavi_t_t swig_types[32] #define SWIGTYPE_p_bzs__groupFuncBase swig_types[33] #define SWIGTYPE_p_bzs__groupQuery swig_types[34] #define SWIGTYPE_p_bzs__idatabaseManager swig_types[35] #define SWIGTYPE_p_bzs__max swig_types[36] #define SWIGTYPE_p_bzs__memoryRecord swig_types[37] #define SWIGTYPE_p_bzs__min swig_types[38] #define SWIGTYPE_p_bzs__nsdatabase swig_types[39] #define SWIGTYPE_p_bzs__nstable swig_types[40] #define SWIGTYPE_p_bzs__pooledDbManager swig_types[41] #define SWIGTYPE_p_bzs__preparedQuery swig_types[42] #define SWIGTYPE_p_bzs__query swig_types[43] #define SWIGTYPE_p_bzs__queryBase swig_types[44] #define SWIGTYPE_p_bzs__recordset swig_types[45] #define SWIGTYPE_p_bzs__recordsetQuery swig_types[46] #define SWIGTYPE_p_bzs__refarymem swig_types[47] #define SWIGTYPE_p_bzs__snapshotT_boost__shared_ptrT_bzs__database_t_t swig_types[48] #define SWIGTYPE_p_bzs__snapshotT_bzs__idatabaseManager_p_t swig_types[49] #define SWIGTYPE_p_bzs__sortFields swig_types[50] #define SWIGTYPE_p_bzs__sum swig_types[51] #define SWIGTYPE_p_bzs__table swig_types[52] #define SWIGTYPE_p_bzs__tableIteratorT_indexFindNavi_t swig_types[53] #define SWIGTYPE_p_bzs__tableIteratorT_indexNavi_t swig_types[54] #define SWIGTYPE_p_bzs__tableIteratorT_indexRvFindNavi_t swig_types[55] #define SWIGTYPE_p_bzs__tableIteratorT_indexRvNavi_t swig_types[56] #define SWIGTYPE_p_bzs__tableIteratorT_stepNavi_t swig_types[57] #define SWIGTYPE_p_bzs__tableIteratorT_stepRvNavi_t swig_types[58] #define SWIGTYPE_p_bzs__transactionT_boost__shared_ptrT_bzs__database_t_t swig_types[59] #define SWIGTYPE_p_bzs__transactionT_boost__shared_ptrT_bzs__idatabaseManager_t_t swig_types[60] #define SWIGTYPE_p_bzs__writableRecord swig_types[61] #define SWIGTYPE_p_bzs__fielddef swig_types[62] #define SWIGTYPE_p_bzs__fielddef_tT_20_t swig_types[63] #define SWIGTYPE_p_bzs__fielddef_tT_64_t swig_types[64] #define SWIGTYPE_p_bzs__keySegment swig_types[65] #define SWIGTYPE_p_bzs__keydef swig_types[66] #define SWIGTYPE_p_bzs__tabledef swig_types[67] #define SWIGTYPE_p_bzs__rtl__benchmark swig_types[68] #define SWIGTYPE_p_char swig_types[69] #define SWIGTYPE_p_f_unsigned_short_p_void_p_void_p_unsigned_int_p_void_unsigned_short_char_p_unsigned_char__short swig_types[70] #define SWIGTYPE_p_int swig_types[71] #define SWIGTYPE_p_iterator swig_types[72] #define SWIGTYPE_p_p_bzs__fields swig_types[73] #define SWIGTYPE_p_p_bzs__fieldsBase swig_types[74] #define SWIGTYPE_p_p_bzs__memoryRecord swig_types[75] #define SWIGTYPE_p_p_bzs__writableRecord swig_types[76] #define SWIGTYPE_p_preparedQuery swig_types[77] #define SWIGTYPE_p_short swig_types[78] #define SWIGTYPE_p_std___tstring swig_types[79] #define SWIGTYPE_p_std__vectorT_bzs__fieldsBase_p_t__iterator swig_types[80] #define SWIGTYPE_p_trdVersiton swig_types[81] #define SWIGTYPE_p_unsigned_char swig_types[82] #define SWIGTYPE_p_unsigned_int swig_types[83] #define SWIGTYPE_p_unsigned_short swig_types[84] #define SWIGTYPE_p_value_type swig_types[85] #define SWIGTYPE_p_void swig_types[86] #define SWIGTYPE_p_bzs__last swig_types[87] #define SWIGTYPE_p_bzs__first swig_types[88] #define SWIGTYPE_p_bzs__sortField swig_types[89] #define SWIGTYPE_p_BOOKMARK swig_types[90] #define SWIGTYPE_p_bzs__bitset swig_types[91] #define SWIGTYPE_p_bzs__binlogPos swig_types[92] #define SWIGTYPE_p_bzs__connMgr swig_types[93] #define SWIGTYPE_p_bzs__db__transactd__connection__record swig_types[94] #define SWIGTYPE_p_bzs__connMgr__records swig_types[95] static swig_type_info *swig_types[97]; static swig_module_info swig_module = {swig_types, 96, 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_transactd #define SWIG_name "Transactd" static VALUE mTransactd; #define SWIG_RUBY_THREAD_BEGIN_BLOCK #define SWIG_RUBY_THREAD_END_BLOCK #define SWIGVERSION 0x030002 #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 #if defined(__MINGW32__) && defined(__GNUC__) #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 5) #define _SYS_TIME_H_ #else # ifndef _GETTIMEOFDAY_DEFINED # define _GETTIMEOFDAY_DEFINED # endif #endif #endif #include "ruby/encoding.h" #undef stat #include #include #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 #include validatablePointerList g_vPtrList; #include #include #include #include #include #include #include #ifdef LINUX #include #include #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #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) return Qnil; if (size <= LONG_MAX) return rb_str_new(carray, static_cast< long >(size)); swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); return pchar_descriptor ? SWIG_NewPointerObj((void*)carray, pchar_descriptor, 0) : Qnil; } SWIGINTERNINLINE VALUE SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } 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; } size_t SWIG_strnlen(const char* s, size_t maxlen) { const char *p; for (p = s; maxlen-- && *p; p++) ; return p - s; } SWIGINTERN VALUE SWIG_ruby_failed(void) { return Qnil; } /*@SWIG:/usr/local/share/swig/3.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); unsigned long *res = (unsigned long *)(args[1]); *res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { unsigned long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, &v); if (SWIG_IsOK(res)) { if ((v > USHRT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned short >(v); } } return res; } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_long (unsigned long value) { return ULONG2NUM(value); } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_short (unsigned short value) { return SWIG_From_unsigned_SS_long (value); } SWIGINTERN int SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, &v); if (SWIG_IsOK(res)) { if ((v > UCHAR_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned char >(v); } } return res; } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_char (unsigned char value) { return SWIG_From_unsigned_SS_long (value); } /*@SWIG:/usr/local/share/swig/3.0.2/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_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_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_bool (bool value) { return value ? Qtrue : Qfalse; } /*@SWIG:/usr/local/share/swig/3.0.2/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 SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_int (unsigned int value) { return SWIG_From_unsigned_SS_long (value); } SWIGINTERNINLINE VALUE SWIG_From_short (short value) { return SWIG_From_long (value); } SWIGINTERN int SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, &v); if (SWIG_IsOK(res)) { if ((v > UINT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned int >(v); } } return res; } 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; } 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_long_SS_long (long long value) { return LL2NUM(value); } SWIGINTERNINLINE VALUE SWIG_From_float (float value) { return SWIG_From_double (value); } #include #include /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ #ifndef SWIG_isfinite # if defined(isfinite) # define SWIG_isfinite(X) (isfinite(X)) # elif defined(_MSC_VER) # define SWIG_isfinite(X) (_finite(X)) # elif defined(__sun) && defined(__SVR4) # include # define SWIG_isfinite(X) (finite(X)) # endif #endif /* Accept infinite as a valid float value unless we are unable to check if a value is finite */ #ifdef SWIG_isfinite # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X)) #else # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) #endif SWIGINTERN int SWIG_AsVal_float (VALUE obj, float *val) { double v; int res = SWIG_AsVal_double (obj, &v); if (SWIG_IsOK(res)) { if (SWIG_Float_Overflow_Check(v)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< float >(v); } } return res; } /*@SWIG:/usr/local/share/swig/3.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long long *res = (long long *)(args[1]); *res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_long_SS_long (VALUE obj, long long *val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { long long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERNINLINE int SWIG_AsVal_size_t (VALUE obj, size_t *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); return res; } /*@SWIG:/usr/local/share/swig/3.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long long *res = (long long *)(args[1]); *res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { unsigned long long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) { return ULL2NUM(value); } SWIGINTERNINLINE VALUE SWIG_From_size_t (size_t value) { return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); } /* -------- BizStataion Functions -------- */ using namespace bzs::db::protocol::tdap; using namespace bzs::db::protocol::tdap::client; using namespace bzs::db::protocol; #define NULLVALUE_MODE_RETURNNULL 0 #define NULLVALUE_MODE_NORETURNNULL 1 #define FIELD_VALUE_MODE_VALUE 0 #define FIELD_VALUE_MODE_OBJECT 1 /* row format type */ #define FETCH_VAL_NUM 1 #define FETCH_VAL_ASSOC 2 #define FETCH_VAL_BOTH 3 #define FETCH_OBJ 4 #define FETCH_USR_CLASS 8 #define FETCH_RECORD_INTO 16 static const VALUE g_id_fetchmode = rb_intern("@fetchmode"); static const VALUE g_id_fetchClass = rb_intern("@fetchClass"); static const VALUE g_id_ctorArgs = rb_intern("@ctorArgs"); static const VALUE g_id_fields = rb_intern("@fields"); static const VALUE g_id_field_ids = rb_intern("@field_ids"); static const VALUE g_id_accessor_initialized = rb_intern("@_accessor_initialized"); static const VALUE g_id_alias_map_val = rb_intern("@_alias_map"); static const VALUE g_id_transfer_map_val = rb_intern("@_transfer_map"); static const VALUE g_id_internal_transfer_map_val = rb_intern("@_internal_transfer_map"); static const VALUE g_id_nodefine_original_val = rb_intern("@_nodefine_original"); static const VALUE g_id_nodefine_original_method = rb_intern("nodefine_original"); static const VALUE g_id_new_record = rb_intern("@new_record"); static short g_nullValueMode = NULLVALUE_MODE_NORETURNNULL; static short g_fieldValueMode = FIELD_VALUE_MODE_OBJECT; static rb_encoding* utf8_enc=NULL; /* init at Init_transactd() */ referenceCounter g_refCounter; static void mark_activeTable(void* ptr) { g_refCounter.mark(); } short nullValueMode() { return g_nullValueMode; } void setNullValueMode(short mode) { g_nullValueMode = mode; } short fieldValueMode() { return g_fieldValueMode; } void setFieldValueMode(short mode) { g_fieldValueMode = mode; } // catch macro #define CATCH_BZS_AND_STD() catch (bzs::rtl::exception& e) { \ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError); \ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str()); \ } catch (std::exception &e) { \ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError); \ rb_raise(cpp_std_error, e.what()); \ } // param count check inline bool check_param_count(int argc, int n_min, int n_max) { if ((argc < n_min) || (argc > n_max)) { rb_raise(rb_eArgError, "wrong # of arguments(%d)", argc); return false; } return true; } // get c++ object from self template T* selfPtr(VALUE obj, T* /*ptr*/) { void *vptr = 0; if (!NIL_P(obj)) Data_Get_Struct(obj, void, vptr); return (T*)vptr; } inline unsigned __int64 NUM2NTV(VALUE v, unsigned __int64* ) { if (TYPE(v) == T_FIXNUM) return (unsigned __int64)NUM2ULONG(v); return (unsigned __int64)rb_big2ull(v); } inline __int64 NUM2NTV(VALUE v, __int64* ) { if (TYPE(v) == T_FIXNUM) return (__int64)NUM2LONG(v); return (__int64)rb_big2ll(v); } inline unsigned int NUM2NTV(VALUE v, unsigned int* ) {return (unsigned int)NUM2ULONG(v);} inline int NUM2NTV(VALUE v, int* ) {return (int)NUM2LONG(v);} inline unsigned short NUM2NTV(VALUE v, unsigned short* ) {return (unsigned short)NUM2UINT(v);} inline short NUM2NTV(VALUE v, short* ) {return (short)NUM2INT(v);} template bool obj2Integer(VALUE v, T& retVal) { int type = TYPE(v); if (type == T_FIXNUM || type == T_BIGNUM) { retVal = NUM2NTV(v, &retVal); return true; } rb_raise(rb_eArgError, "wrong arguments (not FIXNUM or BIGNUM)"); return false; } #ifndef _WIN32 template <> bool obj2Integer(VALUE v, size_t& retVal) { int type = TYPE(v); if (type == T_FIXNUM || type == T_BIGNUM) { retVal = NUM2NTV(v, (unsigned __int64*)&retVal); return true; } rb_raise(rb_eArgError, "wrong arguments (not FIXNUM or BIGNUM)"); return false; } #endif bool obj2Double(VALUE v, double& retVal) { int type = TYPE(v); if (type == T_FLOAT) { retVal = NUM2DBL(v); return true; } rb_raise(rb_eArgError, "wrong arguments (not FLOAT)"); return false; } bool obj2Bool(VALUE v, bool& retVal) { if (v == Qtrue) { retVal = true; return true; } else if (v == Qfalse) { retVal = false; return true; } else { int res = 0; int type = TYPE(v); if (type == T_FIXNUM || type == T_BIGNUM) { res = NUM2NTV(v, &res); retVal = (res != 0); return true; } } rb_raise(rb_eArgError, "wrong arguments (not FIXNUM or BIGNUM or BOOLEAN)"); return false; } bool obj2Bits64(VALUE v, __int64& i64) { if (TYPE(v) == T_DATA) {// bitset void *argp3; int res3 = 0; tdap::bitset *arg3 = 0; res3 = SWIG_ConvertPtr(v, &argp3, SWIGTYPE_p_bzs__bitset, 0); if (SWIG_IsOK(res3) && argp3) { arg3 = reinterpret_cast< tdap::bitset * >(argp3); i64 = arg3->internalValue(); return true; } } return false; } template inline void setValueImple(tdap::client::field& fd, T& v) { fd = v; } inline void setValueImple(tdap::client::field& fd, const char* p, int size) { fd.setBin(p, size); } inline void setBool(tdap::client::field& fd, bool v) { fd = ""; fd.setNull(v); } /* v‚ɇ‚킹‚½’l‚ð•Ô‚·B type‚É‚Í4‚‚̃^ƒCƒv‚ª•Ô‚é T_FIXNUM T_FLOAT T_STRING T_NIL */ bool getTypedValue(VALUE v, int& type, __int64& i64, double& d, char*& str) { if(v == Qfalse || v == Qtrue) { i64 = (v == Qfalse) ? 0 : 1; type = T_FIXNUM; return true; } switch(type) { case T_FIXNUM: case T_BIGNUM: type = T_FIXNUM; return obj2Integer(v, i64); case T_FLOAT: return obj2Double(v, d); case T_STRING: {// char* str = StringValuePtr(v); return true; } case T_NIL: return true; case T_DATA: {// bitset bool ret = obj2Bits64(v, i64); if (ret) type = T_FIXNUM; return ret; } } return false; } template bool setValue(VALUE v, T& fd, int size) { if(v == Qfalse || v == Qtrue) { int i = (v == Qfalse) ? 0 : 1; setValueImple(fd, i); return true; } int type = TYPE(v); switch(type) { case T_FIXNUM: case T_BIGNUM: {// long __int64 i64 = 0; obj2Integer(v, i64); setValueImple(fd, i64); break; } case T_FLOAT: {// double double val2 = 0; obj2Double(v, val2); setValueImple(fd, val2); break; } case T_STRING: {// char* switch(fd.type()) { case ft_string: case ft_lstring: case ft_myvarbinary: case ft_myblob: if (!size && fd.def()->charsetIndex() == CHARSET_BIN) size = RSTRING_LEN(v); break; } const char* p = StringValuePtr(v); if (size) setValueImple(fd, p, size); else setValueImple(fd, p); break; } case T_NIL: {// NULL setBool(fd, true); break; } case T_DATA: {// bitset __int64 i64 = 0; bool ret = obj2Bits64(v, i64); if (!ret) goto fail; setValueImple(fd, i64); break; } default: goto fail; } return true; fail: Ruby_Format_OverloadedError( 1, 2, "setValue", " TCHAR const *p)\n __int64 v)\n double v)\n"); return false; } bool field_setvalue(VALUE p, const tdap::client::field& arg1, int size) { tdap::client::field& fd = const_cast(arg1); return setValue(p, fd, size); } #if HAVE_RB_THREAD_CALL_WITHOUT_GVL || HAVE_RB_THREAD_BLOCKING_REGION #include #ifdef HAVE_RB_THREAD_CALL_WITHOUT_GVL #include #define TRANSACTD_RB_CALL_WITHOUT_GVL( func, arg ) \ rb_thread_call_without_gvl((void *(*)(void *))func, &arg, RUBY_UBF_IO, NULL) #else // use rb_thread_blocking_region only if rb_thread_call_without_gvl is not defined. #define TRANSACTD_RB_CALL_WITHOUT_GVL( func, arg ) \ rb_thread_blocking_region((rb_blocking_function_t*) func, &arg, RUBY_UBF_IO, NULL) #endif BTRCALLID_PTR MYTICALLID_ORIGINAL = NULL; BTRCALLID_PTR BTRVCALLID_ORIGINAL = NULL; void MYTICALLID_ArgumentWrapper(BTRCALLIDArgs* args) { args->result = MYTICALLID_ORIGINAL(args->op, args->pbk, args->data, args->datalen, args->keybuf, args->keylen, args->keyNum, args->cid); } short_td __STDCALL MYTICALLID_WITHOUT_GVL(ushort_td op, void* pbk, void* data, uint_td* datalen, void* keybuf, keylen_td keylen, char_td keyNum, uchar_td* cid) { BTRCALLIDArgs args; args.op = op; args.pbk = pbk; args.data = data; args.datalen = datalen; args.keybuf = keybuf; args.keylen = keylen; args.keyNum = keyNum; args.cid = cid; args.result = 0; TRANSACTD_RB_CALL_WITHOUT_GVL(MYTICALLID_ArgumentWrapper, args); return args.result; } void BTRCALLID_ArgumentWrapper(BTRCALLIDArgs* args) { args->result = BTRVCALLID_ORIGINAL(args->op, args->pbk, args->data, args->datalen, args->keybuf, args->keylen, args->keyNum, args->cid); } short_td __STDCALL BTRVCALLID_WITHOUT_GVL(ushort_td op, void* pbk, void* data, uint_td* datalen, void* keybuf, keylen_td keylen, char_td keyNum, uchar_td* cid) { BTRCALLIDArgs args; args.op = op; args.pbk = pbk; args.data = data; args.datalen = datalen; args.keybuf = keybuf; args.keylen = keylen; args.keyNum = keyNum; args.cid = cid; args.result = 0; TRANSACTD_RB_CALL_WITHOUT_GVL(BTRCALLID_ArgumentWrapper, args); return args.result; } #endif // HAVE_RB_THREAD_CALL_WITHOUT_GVL || HAVE_RB_THREAD_BLOCKING_REGION SWIGINTERN VALUE int_prop_set(int argc, VALUE *argv, VALUE self, const VALUE name, const char* CLASSNAME) { int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { VALUE v = (VALUE)name; SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int", StringValuePtr(v), 2, argv[0] )); } rb_ivar_set(self, name, INT2FIX(val2)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE int_prop_get(int argc, VALUE *argv, VALUE self, const VALUE name, const char* /*CLASSNAME*/) { int arg2 ; if (!check_param_count(argc, 0, 0)) return Qnil; return rb_ivar_get(self, name); } SWIGINTERN tdap::keySegment *bzs_keydef_segment(tdap::keydef *self,int const index){ return &(self->segments[index]); } SWIGINTERN char const *bzs_fielddef_name(tdap::fielddef const *self){ return self->name(); } SWIGINTERN char const *bzs_fielddef_defaultValue(tdap::fielddef const *self){ return self->defaultValue_str(); } SWIGINTERN tdap::fielddef *bzs_tabledef_fieldDef(tdap::tabledef *self,int const index){ return &(self->fieldDefs[index]); } SWIGINTERN tdap::keydef *bzs_tabledef_keyDef(tdap::tabledef *self,int const index){ return &(self->keyDefs[index]); } SWIGINTERN tdap::btrVersion *bzs_btrVersions_version(tdap::btrVersions *self,int const index){ return &(self->versions[index]); } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_databases(tdap::client::connMgr *self){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->databases(); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_tables(tdap::client::connMgr *self,_TCHAR const *dbname){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->tables(dbname); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_views(tdap::client::connMgr *self,_TCHAR const *dbname){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->views(dbname); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_schemaTables(tdap::client::connMgr *self,_TCHAR const *dbname){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->schemaTables(dbname); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_slaveStatus(tdap::client::connMgr *self,char const *channel){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->slaveStatus(channel); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_sysvars(tdap::client::connMgr *self){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->sysvars(); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_statusvars(tdap::client::connMgr *self){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->statusvars(); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_connections(tdap::client::connMgr *self){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->connections(); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_inUseDatabases(tdap::client::connMgr *self,__int64 connid){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->inUseDatabases(connid); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_inUseTables(tdap::client::connMgr *self,__int64 connid,int dbid){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->inUseTables(connid, dbid); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_channels(tdap::client::connMgr *self,bool withLock){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->channels(withLock); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_slaveHosts(tdap::client::connMgr *self){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->slaveHosts(); return p; } SWIGINTERN tdap::client::connMgr::records const *bzs_connMgr_extendedvars(tdap::client::connMgr *self){ tdap::client::connMgr::records* p = new tdap::client::connMgr::records(); *p = self->extendedvars(); return p; } SWIGINTERN tdap::client::connMgr *new_bzs_connMgr(tdap::client::database *db){ return tdap::client::connMgr::create(db); } SWIGINTERN _TCHAR const *bzs_table_keyValueDescription(tdap::client::table *self,_TCHAR *keyValueDescription_buf){ self->keyValueDescription(keyValueDescription_buf, 1024 * 8); return keyValueDescription_buf; } SWIGINTERN preparedQuery *bzs_table_prepare__SWIG_0(tdap::client::table *self,tdap::client::queryBase const *q,bool serverPrepare=false){ preparedQuery* p = new preparedQuery(self->setQuery(q, serverPrepare)); return p; } SWIGINTERN preparedQuery *bzs_table_setQuery__SWIG_0(tdap::client::table *self,tdap::client::queryBase const *q,bool serverPrepare=false){ preparedQuery* p = new preparedQuery(self->setQuery(q, serverPrepare)); return p; } SWIGINTERN void bzs_table_setPrepare(tdap::client::table *self,preparedQuery *q){ self->setPrepare(q->getFilter()); } SWIGINTERN void bzs_table_release(tdap::client::table *self){ if (tdap::client::nsdatabase::testTablePtr(self)) self->release(); } SWIGINTERN tdap::client::query *new_bzs_query(){ return tdap::client::query::create(); } SWIGINTERN tdap::client::database *new_bzs_database(){ return tdap::client::database::create(); } SWIGINTERN tdap::client::table *bzs_database_openTable__SWIG_0(tdap::client::database *self,_TCHAR const *tableName,short mode=0,bool autoCreate=true,_TCHAR const *ownerName=NULL,_TCHAR const *uri=NULL){ tdap::client::table* tb = self->openTable(tableName, mode, autoCreate, ownerName, uri); g_vPtrList.add(tb); return tb; } SWIGINTERN tdap::client::table *bzs_database_openTable__SWIG_5(tdap::client::database *self,short fileNum,short mode=TD_OPEN_NORMAL,bool autoCreate=true,_TCHAR const *ownerName=NULL,_TCHAR const *uri=NULL){ tdap::client::table* tb = self->openTable(fileNum, mode, autoCreate, ownerName, uri); g_vPtrList.add(tb); return tb; } SWIGINTERN tdap::client::fielddefs *new_bzs_fielddefs(){ return tdap::client::fielddefs::create(); } SWIGINTERN tdap::client::memoryRecord *new_bzs_memoryRecord(tdap::client::fielddefs &fds){ return tdap::client::memoryRecord::create(fds); } SWIGINTERN tdap::client::fieldNames *new_bzs_fieldNames(){ return tdap::client::fieldNames::create(); } SWIGINTERN tdap::client::recordsetQuery *new_bzs_recordsetQuery(){ return tdap::client::recordsetQuery::create(); } SWIGINTERN tdap::client::groupQuery *new_bzs_groupQuery(){ return tdap::client::groupQuery::create(); } SWIGINTERN tdap::client::sum *new_bzs_sum__SWIG_0(tdap::client::fieldNames const &targetNames,_TCHAR const *resultName=NULL){ return tdap::client::sum::create(targetNames, resultName); } SWIGINTERN tdap::client::count *new_bzs_count(_TCHAR const *resultName){ return tdap::client::count::create(resultName); } SWIGINTERN tdap::client::count *new_bzs_count_fns(tdap::client::fieldNames const &targetNames, _TCHAR const *resultName=NULL){ return tdap::client::count::create(targetNames, resultName); } SWIGINTERN tdap::client::avg *new_bzs_avg__SWIG_0(tdap::client::fieldNames const &targetNames,_TCHAR const *resultName=NULL){ return tdap::client::avg::create(targetNames, resultName); } SWIGINTERN tdap::client::min *new_bzs_min__SWIG_0(tdap::client::fieldNames const &targetNames,_TCHAR const *resultName=NULL){ return tdap::client::min::create(targetNames, resultName); } SWIGINTERN tdap::client::max *new_bzs_max__SWIG_0(tdap::client::fieldNames const &targetNames,_TCHAR const *resultName=NULL){ return tdap::client::max::create(targetNames, resultName); } SWIGINTERN tdap::client::last *new_bzs_last__SWIG_0(tdap::client::fieldNames const &targetNames,_TCHAR const *resultName=NULL){ return tdap::client::last::create(targetNames, resultName); } SWIGINTERN tdap::client::first *new_bzs_first__SWIG_0(tdap::client::fieldNames const &targetNames,_TCHAR const *resultName=NULL){ return tdap::client::first::create(targetNames, resultName); } SWIGINTERN tdap::client::recordset *new_bzs_recordset(){ return tdap::client::recordset::create(); } SWIGINTERN tdap::client::activeTable *new_bzs_activeTable__SWIG_0(tdap::client::idatabaseManager *mgr,_TCHAR const *tableName){ tdap::client::activeTable* p = tdap::client::activeTable::create(mgr, tableName); g_refCounter.add(p, mgr); g_vPtrList.add(p->table().get()); return p; } SWIGINTERN tdap::client::activeTable *new_bzs_activeTable__SWIG_1(tdap::client::database *db,_TCHAR const *tableName, short mode){ tdap::client::activeTable* p = tdap::client::activeTable::create(db, tableName, mode); g_refCounter.add(p, db); g_vPtrList.add(p->table().get()); return p; } SWIGINTERN void bzs_activeTable_release(tdap::client::activeTable *self){ self->releaseTable(); } SWIGINTERN tdap::client::table *bzs_activeTable_table(tdap::client::activeTable *self){ return self->table().get(); } SWIGINTERN tdap::client::table *bzs_pooledDbManager_table(tdap::client::pooledDbManager *self,_TCHAR const *name){ return self->table(name).get(); } SWIGINTERN VALUE _wrap_nullValueMode(int argc, VALUE *argv, VALUE self) { short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; result = (short)nullValueMode(); return SWIG_From_short(static_cast< short >(result)); } SWIGINTERN VALUE _wrap_setNullValueMode(int argc, VALUE *argv, VALUE self) { short arg1 ; short val1 ; int ecode1 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_short(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "short","setNullValueMode", 1, argv[0] )); } arg1 = static_cast< short >(val1); setNullValueMode(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fieldValueMode(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; short result = (short)fieldValueMode(); return SWIG_From_short(static_cast< short >(result)); } SWIGINTERN VALUE _wrap_setFieldValueMode(int argc, VALUE *argv, VALUE self) { short arg1 ; short val1 ; int ecode1 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_short(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "short","setFieldValueMode", 1, argv[0] )); } arg1 = static_cast< short >(val1); setFieldValueMode(arg1); return Qnil; fail: return Qnil; } static swig_class SwigClassBOOKMARK; #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_BOOKMARK_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_BOOKMARK_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_BOOKMARK); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_BOOKMARK(int argc, VALUE *argv, VALUE self) { BOOKMARK *result = 0; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (BOOKMARK *)new BOOKMARK(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_BOOKMARK_isEmpty(int argc, VALUE *argv, VALUE self) { BOOKMARK *arg1 = (BOOKMARK *)0; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)(arg1)->isEmpty(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN void free_BOOKMARK(BOOKMARK *arg1) { delete arg1; } static swig_class SwigClassFLAGS; SWIGINTERN VALUE _wrap_FLAGS_all_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","all", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->all = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_all_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","all", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->all); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit0_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit0", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bit0", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bit0 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit0_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit0", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bit0); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit1_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit1", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bit1", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bit1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit1_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit1", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bit1); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit2_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit2", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bit2", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bit2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit2_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit2", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bit2); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit3_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit3", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bit3", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bit3 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit3_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit3", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bit3); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit4_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit4", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bit4", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bit4 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit4_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit4", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bit4); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit5_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit5", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bit5", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bit5 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit5_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit5", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bit5); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit6_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit6", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bit6", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bit6 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit6_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit6", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bit6); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit7_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit7", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bit7", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bit7 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit7_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit7", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bit7); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit8_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit8", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bit8", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bit8 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit8_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit8", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bit8); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit9_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit9", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bit9", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bit9 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bit9_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bit9", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bit9); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitA_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitA", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bitA", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bitA = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitA_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitA", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bitA); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitB_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitB", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bitB", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bitB = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitB_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitB", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bitB); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitC_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitC", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bitC", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bitC = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitC_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitC", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bitC); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitD_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitD", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bitD", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bitD = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitD_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitD", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bitD); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitE_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitE", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bitE", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bitE = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitE_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitE", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bitE); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitF_set(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitF", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned short","bitF", 2, argv[0] )); } arg2 = static_cast< unsigned short >(val2); if (arg1) (arg1)->bitF = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FLAGS_bitF_get(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *arg1 = (tdap::FLAGS *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::FLAGS *","bitF", 1, self )); } arg1 = reinterpret_cast< tdap::FLAGS * >(argp1); result = (unsigned short) ((arg1)->bitF); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_FLAGS_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_FLAGS_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__FLAGS); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FLAGS(int argc, VALUE *argv, VALUE self) { tdap::FLAGS *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::FLAGS *)new tdap::FLAGS(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_FLAGS(tdap::FLAGS *arg1) { delete arg1; } static swig_class SwigClassKeySegment; SWIGINTERN VALUE _wrap_keySegment_fieldNum_set(int argc, VALUE *argv, VALUE self) { tdap::keySegment *arg1 = (tdap::keySegment *) 0 ; uchar_td arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","fieldNum", 2, argv[0] )); } arg2 = static_cast< uchar_td >(val2); if (arg1) (arg1)->fieldNum = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_keySegment_fieldNum_get(int argc, VALUE *argv, VALUE self) { tdap::keySegment *arg1 = (tdap::keySegment *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (uchar_td) ((arg1)->fieldNum); vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_keySegment_flags_set(int argc, VALUE *argv, VALUE self) { tdap::keySegment *arg1 = (tdap::keySegment *) 0 ; tdap::FLAGS *arg2 = (tdap::FLAGS *) 0 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::FLAGS *","flags", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::FLAGS * >(argp2); if (arg1) (arg1)->flags = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_keySegment_flags_get(int argc, VALUE *argv, VALUE self) { tdap::keySegment *arg1 = (tdap::keySegment *) 0 ; tdap::FLAGS *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (tdap::FLAGS *)& ((arg1)->flags); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_keySegment_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_keySegment_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__keySegment); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_keySegment(int argc, VALUE *argv, VALUE self) { tdap::keySegment *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::keySegment *)new tdap::keySegment(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_keySegment(tdap::keySegment *arg1) { delete arg1; } static swig_class SwigClassKeydef; SWIGINTERN VALUE _wrap_keydef_segmentCount_set(int argc, VALUE *argv, VALUE self) { tdap::keydef *arg1 = (tdap::keydef *) 0 ; uchar_td arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","segmentCount", 2, argv[0] )); } arg2 = static_cast< uchar_td >(val2); if (arg1) (arg1)->segmentCount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_keydef_segmentCount_get(int argc, VALUE *argv, VALUE self) { tdap::keydef *arg1 = (tdap::keydef *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (uchar_td) ((arg1)->segmentCount); vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_keydef_segments_set(int argc, VALUE *argv, VALUE self) { tdap::keydef *arg1 = (tdap::keydef *) 0 ; tdap::keySegment *arg2 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__keySegment, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::keySegment [8]","segments", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::keySegment * >(argp2); { if (arg2) { size_t ii = 0; for (; ii < (size_t)8; ++ii) *(tdap::keySegment *)&arg1->segments[ii] = *((tdap::keySegment *)arg2 + ii); } else { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""segments""' of type '""tdap::keySegment [8]""'"); } } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_keydef_segments_get(int argc, VALUE *argv, VALUE self) { tdap::keydef *arg1 = (tdap::keydef *) 0 ; tdap::keySegment *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (tdap::keySegment *)(tdap::keySegment *) ((arg1)->segments); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__keySegment, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_keydef_keyNumber_set(int argc, VALUE *argv, VALUE self) { tdap::keydef *arg1 = (tdap::keydef *) 0 ; uchar_td arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","keyNumber", 2, argv[0] )); } arg2 = static_cast< uchar_td >(val2); if (arg1) (arg1)->keyNumber = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_keydef_keyNumber_get(int argc, VALUE *argv, VALUE self) { tdap::keydef *arg1 = (tdap::keydef *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (uchar_td) ((arg1)->keyNumber); vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_keydef_segment(int argc, VALUE *argv, VALUE self) { tdap::keydef *arg1 = (tdap::keydef *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; tdap::keySegment *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","segment", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (tdap::keySegment *)bzs_keydef_segment(arg1,arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__keySegment, 0 | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_keydef_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_keydef_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__keydef); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_keydef(int argc, VALUE *argv, VALUE self) { tdap::keydef *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::keydef *)new tdap::keydef(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_keydef(tdap::keydef *arg1) { delete arg1; } SWIGINTERN VALUE _wrap_getTypeName(int argc, VALUE *argv, VALUE self) { short arg1 ; short val1 ; int ecode1 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_short(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "short","tdap::getTypeName", 1, argv[0] )); } arg1 = static_cast< short >(val1); { try { result = (_TCHAR *)tdap::getTypeName(arg1); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_getTypeAlign(int argc, VALUE *argv, VALUE self) { short arg1 ; short val1 ; int ecode1 = 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_short(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "short","tdap::getTypeAlign", 1, argv[0] )); } arg1 = static_cast< short >(val1); { try { result = (int)tdap::getTypeAlign(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_lenByCharnum(int argc, VALUE *argv, VALUE self) { uchar_td arg1 ; uchar_td arg2 ; ushort_td arg3 ; unsigned char val1 ; int ecode1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; unsigned short val3 ; int ecode3 = 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 3, 3)) return Qnil; ecode1 = SWIG_AsVal_unsigned_SS_char(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uchar_td","tdap::lenByCharnum", 1, argv[0] )); } arg1 = static_cast< uchar_td >(val1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","tdap::lenByCharnum", 2, argv[1] )); } arg2 = static_cast< uchar_td >(val2); ecode3 = SWIG_AsVal_unsigned_SS_short(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ushort_td","tdap::lenByCharnum", 3, argv[2] )); } arg3 = static_cast< ushort_td >(val3); { try { result = (ushort_td)tdap::lenByCharnum(arg1,arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_isStringType(int argc, VALUE *argv, VALUE self) { uchar_td arg1 ; unsigned char val1 ; int ecode1 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_unsigned_SS_char(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uchar_td","tdap::isStringType", 1, argv[0] )); } arg1 = static_cast< uchar_td >(val1); { try { result = (bool)tdap::isStringType(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } static swig_class SwigClassFielddef_t_my; SWIGINTERN VALUE _wrap_fielddef_t_my_type_set(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; uchar_td arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","type", 2, argv[0] )); } arg2 = static_cast< uchar_td >(val2); if (arg1) (arg1)->type = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_type_get(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (uchar_td) ((arg1)->type); vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_len_set(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","len", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->len = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_len_get(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->len); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_decimals_set(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; uchar_td arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","decimals", 2, argv[0] )); } arg2 = static_cast< uchar_td >(val2); if (arg1) (arg1)->decimals = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_decimals_get(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (uchar_td) ((arg1)->decimals); vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_max_set(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; double arg2 ; double val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","max", 2, argv[0] )); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->max = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_max_get(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; double result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (double) ((arg1)->max); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_min_set(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; double arg2 ; double val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","min", 2, argv[0] )); } arg2 = static_cast< double >(val2); if (arg1) (arg1)->min = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_min_get(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; double result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (double) ((arg1)->min); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_pos_set(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","pos", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->pos = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_pos_get(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->pos); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_ddfid_set(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","ddfid", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->ddfid = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_ddfid_get(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->ddfid); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_nullValue_set(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; uchar_td arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","nullValue", 2, argv[0] )); } arg2 = static_cast< uchar_td >(val2); if (arg1) (arg1)->nullValue = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_nullValue_get(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (uchar_td) ((arg1)->nullValue); vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_keylen_set(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","keylen", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->keylen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_t_my_keylen_get(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *arg1 = (tdap::fielddef_t< 64 > *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->keylen); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_fielddef_t_my_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_fielddef_t_my_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__fielddef_tT_64_t); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_fielddef_t_my(int argc, VALUE *argv, VALUE self) { tdap::fielddef_t< 64 > *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::fielddef_t< 64 > *)new tdap::fielddef_t< 64 >(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_fielddef_t_Sl_64_Sg_(tdap::fielddef_t< 64 > *arg1) { delete arg1; } static swig_class SwigClassFielddef; SWIGINTERN VALUE _wrap_fielddef_setName(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; char *arg2 = (char *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->setName((char const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_fielddef_typeName(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)((tdap::fielddef const *)arg1)->typeName(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_align(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::fielddef const *)arg1)->align(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_setLenByCharnum(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","setLenByCharnum", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); { try { (arg1)->setLenByCharnum(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_setDecimalDigits(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; int arg2 ; int arg3 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setDecimalDigits", 2, argv[0] )); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","setDecimalDigits", 3, argv[1] )); } arg3 = static_cast< int >(val3); { try { (arg1)->setDecimalDigits(arg2,arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_codePage(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (unsigned int)((tdap::fielddef const *)arg1)->codePage(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isStringType(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isStringType(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isPadCharType(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isPadCharType(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isIntegerType(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isIntegerType(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isNumericType(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isNumericType(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isDateTimeType(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isDateTimeType(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_charNum(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (unsigned int)((tdap::fielddef const *)arg1)->charNum(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isValidCharNum(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isValidCharNum(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_setCharsetIndex(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; uchar_td arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","setCharsetIndex", 2, argv[0] )); } arg2 = static_cast< uchar_td >(val2); { try { (arg1)->setCharsetIndex(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_charsetIndex(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (uchar_td)((tdap::fielddef const *)arg1)->charsetIndex(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_setPadCharSettings(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = 0 ; bool arg2 ; bool arg3 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setPadCharSettings", 2, argv[0] )); } arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","setPadCharSettings", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { (arg1)->setPadCharSettings(arg2, arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isUsePadChar(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isUsePadChar(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isTrimPadChar(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isTrimPadChar(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isNullable(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isNullable(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_setNullable__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool arg2 ; bool arg3 ; bool val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setNullable", 2, argv[0] )); } arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","setNullable", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { (arg1)->setNullable(arg2,arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_setNullable__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setNullable", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { (arg1)->setNullable(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_setNullable(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fielddef, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_fielddef_setNullable__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fielddef, 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_fielddef_setNullable__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "fielddef.setNullable", " void fielddef.setNullable(bool v, bool defaultNull)\n" " void fielddef.setNullable(bool v)\n"); return Qnil; } SWIGINTERN VALUE _wrap_fielddef_setDefaultValue(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; int alloc2 = 0; char *buf2 = 0; tdap::fielddef *arg1 = (tdap::fielddef *) 0; argc = nargs + 1; argv[0] = self; if ((argc < 2) || (argc > 2)) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } arg1 = selfPtr(self, arg1); // double { double val2; int res = SWIG_AsVal_double(argv[1], &val2); if (SWIG_IsOK(res)) { double arg2 = static_cast(val2); try { (arg1)->setDefaultValue(arg2); } CATCH_BZS_AND_STD() } } // __int64 { long long val2; int res = SWIG_AsVal_long_SS_long(argv[1], &val2); if (SWIG_IsOK(res)) { long long arg2 = static_cast(val2); try { (arg1)->setDefaultValue(arg2); } CATCH_BZS_AND_STD() } } // bitset { void *val2 = 0; int res = SWIG_ConvertPtr(argv[1], &val2, SWIGTYPE_p_bzs__bitset, 0); if (SWIG_IsOK(res)) { tdap::bitset *arg2 = reinterpret_cast(val2); try { (arg1)->setDefaultValue((tdap::bitset const &)*arg2); } CATCH_BZS_AND_STD() } } // char const * { int res = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (SWIG_IsOK(res)) { char *arg2 = reinterpret_cast(buf2); try { (arg1)->setDefaultValue(arg2); } CATCH_BZS_AND_STD() } } // NULL { VALUE type = TYPE(argv[1]); if (type == T_NIL) { try { (arg1)->setDefaultValue((const char*)NULL); } CATCH_BZS_AND_STD() } } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; Ruby_Format_OverloadedError( argc, 3, "fielddef.setDefaultValue", " void fielddef.setDefaultValue(char const *s)\n" " void fielddef.setDefaultValue(__int64 v)\n" " void fielddef.setDefaultValue(double v)\n" " void fielddef.setDefaultValue(tdap::bitset const &v)\n"); return Qnil; } SWIGINTERN VALUE _wrap_fielddef_setTimeStampOnUpdate(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setTimeStampOnUpdate", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { (arg1)->setTimeStampOnUpdate(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isTimeStampOnUpdate(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isTimeStampOnUpdate(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_isDefaultNull(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::fielddef const *)arg1)->isDefaultNull(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_name(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (char *)bzs_fielddef_name((tdap::fielddef const *)arg1); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddef_defaultValue(int argc, VALUE *argv, VALUE self) { tdap::fielddef *arg1 = (tdap::fielddef *) 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (char *)bzs_fielddef_defaultValue((tdap::fielddef const *)arg1); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_fielddef_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_fielddef_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__fielddef); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_fielddef(int argc, VALUE *argv, VALUE self) { tdap::fielddef *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::fielddef *)new tdap::fielddef(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_fielddef(tdap::fielddef *arg1) { delete arg1; } static swig_class SwigClassTabledef; #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_tabledef_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_tabledef_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__tabledef); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_tabledef(int argc, VALUE *argv, VALUE self) { tdap::tabledef *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::tabledef *)new tdap::tabledef(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_cleanup(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->cleanup(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_fileName(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (char *)((tdap::tabledef const *)arg1)->fileName(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_tableName(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (char *)((tdap::tabledef const *)arg1)->tableName(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_setFileName(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; char *arg2 = (char *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setFileName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->setFileName((char const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_tabledef_setTableName(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; char *arg2 = (char *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setTableName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->setTableName((char const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_tabledef_nullfields(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (uchar_td)((tdap::tabledef const *)arg1)->nullfields(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_inUse(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (uchar_td)((tdap::tabledef const *)arg1)->inUse(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } /* Document-method: Transactd::tabledef.size call-seq: size -> int Size or Length of the tabledef. */ SWIGINTERN VALUE _wrap_tabledef_size(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::tabledef const *)arg1)->size(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_fieldNumByName(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","fieldNumByName", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (short)((tdap::tabledef const *)arg1)->fieldNumByName((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_tabledef_recordlen(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (ushort_td)((tdap::tabledef const *)arg1)->recordlen(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_setValidationTarget(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; bool arg2 ; uchar_td arg3 ; bool val2 ; int ecode2 = 0 ; unsigned char val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setValidationTarget", 2, argv[0] )); } arg2 = static_cast< bool >(val2); ecode3 = SWIG_AsVal_unsigned_SS_char(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uchar_td","setValidationTarget", 3, argv[1] )); } arg3 = static_cast< uchar_td >(val3); { try { (arg1)->setValidationTarget(arg2,arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_isMysqlNullMode(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::tabledef const *)arg1)->isMysqlNullMode(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_id_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","id", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->id = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_id_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->id); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_pageSize_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","pageSize", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->pageSize = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_pageSize_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->pageSize); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_varSize_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","varSize", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->varSize = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_varSize_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->varSize); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_preAlloc_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","preAlloc", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->preAlloc = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_preAlloc_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->preAlloc); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_fieldCount_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","fieldCount", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->fieldCount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_fieldCount_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->fieldCount); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_keyCount_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; uchar_td arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","keyCount", 2, argv[0] )); } arg2 = static_cast< uchar_td >(val2); if (arg1) (arg1)->keyCount = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_keyCount_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (uchar_td) ((arg1)->keyCount); vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_version_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","version", 2, argv[0] )); } arg2 = static_cast< short >(val2); if (arg1) (arg1)->version = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_version_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (short) ((arg1)->version); vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_charsetIndex_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; uchar_td arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","charsetIndex", 2, argv[0] )); } arg2 = static_cast< uchar_td >(val2); if (arg1) (arg1)->charsetIndex = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_charsetIndex_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (uchar_td) ((arg1)->charsetIndex); vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_flags_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; tdap::FLAGS *arg2 = (tdap::FLAGS *) 0 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::FLAGS *","flags", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::FLAGS * >(argp2); if (arg1) (arg1)->flags = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_flags_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; tdap::FLAGS *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (tdap::FLAGS *)& ((arg1)->flags); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__FLAGS, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_primaryKeyNum_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; uchar_td arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uchar_td","primaryKeyNum", 2, argv[0] )); } arg2 = static_cast< uchar_td >(val2); if (arg1) (arg1)->primaryKeyNum = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_primaryKeyNum_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (uchar_td) ((arg1)->primaryKeyNum); vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_ddfid_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","ddfid", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->ddfid = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_ddfid_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->ddfid); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_fixedRecordLen_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","fixedRecordLen", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->fixedRecordLen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_fixedRecordLen_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->fixedRecordLen); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_schemaCodePage_set(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; uint_td arg2 ; unsigned int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint_td","schemaCodePage", 2, argv[0] )); } arg2 = static_cast< uint_td >(val2); if (arg1) (arg1)->schemaCodePage = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_schemaCodePage_get(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; uint_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (uint_td) ((arg1)->schemaCodePage); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_fieldDef(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; tdap::fielddef *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","fieldDef", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (tdap::fielddef *)bzs_tabledef_fieldDef(arg1,arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fielddef, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_tabledef_keyDef(int argc, VALUE *argv, VALUE self) { tdap::tabledef *arg1 = (tdap::tabledef *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; tdap::keydef *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","keyDef", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (tdap::keydef *)bzs_tabledef_keyDef(arg1,arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__keydef, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN void free_bzs_tabledef(tdap::tabledef *arg1) { delete arg1; } static swig_class SwigClassBtrVersion; SWIGINTERN VALUE _wrap_btrVersion_majorVersion_set(int argc, VALUE *argv, VALUE self) { tdap::btrVersion *arg1 = (tdap::btrVersion *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","majorVersion", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->majorVersion = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrVersion_majorVersion_get(int argc, VALUE *argv, VALUE self) { tdap::btrVersion *arg1 = (tdap::btrVersion *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->majorVersion); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrVersion_minorVersion_set(int argc, VALUE *argv, VALUE self) { tdap::btrVersion *arg1 = (tdap::btrVersion *) 0 ; ushort_td arg2 ; unsigned short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ushort_td","minorVersion", 2, argv[0] )); } arg2 = static_cast< ushort_td >(val2); if (arg1) (arg1)->minorVersion = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrVersion_minorVersion_get(int argc, VALUE *argv, VALUE self) { tdap::btrVersion *arg1 = (tdap::btrVersion *) 0 ; ushort_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (ushort_td) ((arg1)->minorVersion); vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrVersion_type_set(int argc, VALUE *argv, VALUE self) { tdap::btrVersion *arg1 = (tdap::btrVersion *) 0 ; unsigned char arg2 ; unsigned char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned char","type", 2, argv[0] )); } arg2 = static_cast< unsigned char >(val2); if (arg1) (arg1)->type = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrVersion_type_get(int argc, VALUE *argv, VALUE self) { tdap::btrVersion *arg1 = (tdap::btrVersion *) 0 ; unsigned char result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (unsigned char) ((arg1)->type); vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrVersion_moduleVersionShortString(int argc, VALUE *argv, VALUE self) { tdap::btrVersion *arg1 = (tdap::btrVersion *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR *","moduleVersionShortString", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (_TCHAR *)(arg1)->moduleVersionShortString(arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_btrVersion_moduleTypeString(int argc, VALUE *argv, VALUE self) { tdap::btrVersion *arg1 = (tdap::btrVersion *) 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)(arg1)->moduleTypeString(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_btrVersion_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_btrVersion_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__btrVersion); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_btrVersion(int argc, VALUE *argv, VALUE self) { tdap::btrVersion *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::btrVersion *)new tdap::btrVersion(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_btrVersion(tdap::btrVersion *arg1) { delete arg1; } static swig_class SwigClassBtrVersions; SWIGINTERN VALUE _wrap_btrVersions_versions_set(int argc, VALUE *argv, VALUE self) { tdap::btrVersions *arg1 = (tdap::btrVersions *) 0 ; tdap::btrVersion *arg2 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__btrVersion, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::btrVersion [4]","versions", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::btrVersion * >(argp2); { if (arg2) { size_t ii = 0; for (; ii < (size_t)4; ++ii) *(tdap::btrVersion *)&arg1->versions[ii] = *((tdap::btrVersion *)arg2 + ii); } else { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""versions""' of type '""tdap::btrVersion [4]""'"); } } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrVersions_versions_get(int argc, VALUE *argv, VALUE self) { tdap::btrVersions *arg1 = (tdap::btrVersions *) 0 ; tdap::btrVersion *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (tdap::btrVersion *)(tdap::btrVersion *) ((arg1)->versions); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__btrVersion, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrVersions_version(int argc, VALUE *argv, VALUE self) { tdap::btrVersions *arg1 = (tdap::btrVersions *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; tdap::btrVersion *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","version", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (tdap::btrVersion *)bzs_btrVersions_version(arg1,arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__btrVersion, 0 | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_btrVersions_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_btrVersions_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__btrVersions); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_btrVersions(int argc, VALUE *argv, VALUE self) { tdap::btrVersions *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::btrVersions *)new tdap::btrVersions(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_btrVersions(tdap::btrVersions *arg1) { delete arg1; } SWIGINTERN VALUE _wrap_getFilterLogicTypeCode(int argc, VALUE *argv, VALUE self) { _TCHAR *arg1 = (_TCHAR *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; uchar_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "_TCHAR const *","tdap::getFilterLogicTypeCode", 1, argv[0] )); } arg1 = reinterpret_cast< _TCHAR * >(buf1); { try { result = (uchar_td)tdap::getFilterLogicTypeCode((char const *)arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } static swig_class SwigClassNstable; SWIGINTERN VALUE _wrap_nstable_nsdb(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); nsdatabase* result = arg1->nsdb(); return SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__nsdatabase, 0 | 0 ); } SWIGINTERN VALUE _wrap_nstable_tableid(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); short result = arg1->tableid(); return SWIG_From_short(static_cast< short >(result)); } SWIGINTERN VALUE _wrap_nstable_setTableid(int argc, VALUE *argv, VALUE self) { short arg2 = 0; if (!check_param_count(argc, 1, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->setTableid(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_isOpen(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); bool result = arg1->isOpen(); return SWIG_From_bool(static_cast< bool >(result)); } SWIGINTERN VALUE _wrap_nstable_isUseTransactd(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); bool result = arg1->isUseTransactd(); return SWIG_From_bool(static_cast< bool >(result)); } SWIGINTERN VALUE _wrap_nstable_setAccessRights(int argc, VALUE *argv, VALUE self) { int arg2 = 0; if (!check_param_count(argc, 1, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->setAccessRights((unsigned char)arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_datalen(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); uint_td result = arg1->datalen(); return SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); } SWIGINTERN VALUE _wrap_nstable_stat(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); short_td result = arg1->stat(); return SWIG_From_short(static_cast< short >(result)); } SWIGINTERN VALUE _wrap_nstable_keyNum(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); char_td result = arg1->keyNum(); return SWIG_From_long(result); } SWIGINTERN VALUE _wrap_nstable_setKeyNum(int argc, VALUE *argv, VALUE self) { int arg2 = 0; if (!check_param_count(argc, 1, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->setKeyNum((char_td)arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_canRead(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); bool result = arg1->canRead(); return SWIG_From_bool(static_cast< bool >(result)); } SWIGINTERN VALUE _wrap_nstable_canWrite(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); bool result = arg1->canWrite(); return SWIG_From_bool(static_cast< bool >(result)); } SWIGINTERN VALUE _wrap_nstable_canInsert(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); bool result = arg1->canInsert(); return SWIG_From_bool(static_cast< bool >(result)); } SWIGINTERN VALUE _wrap_nstable_canDelete(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); bool result = arg1->canDelete(); return SWIG_From_bool(static_cast< bool >(result)); } SWIGINTERN VALUE _wrap_nstable_getWriteImageLen(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); uint_td result = (uint_td)(arg1)->getWriteImageLen(); return SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); } SWIGINTERN VALUE _wrap_nstable_close(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); arg1->close(); return Qnil; } SWIGINTERN VALUE _wrap_nstable_update(int argc, VALUE *argv, VALUE self) { nstable::eUpdateType arg2 = nstable::changeCurrentCc;// type=changeCurrentCc if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) { int at = 0; if (!obj2Integer(argv[0], at)) return Qnil; arg2 = (nstable::eUpdateType)at; } arg1->update(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_del(int argc, VALUE *argv, VALUE self) { bool arg2 = false;// in_key=false if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Bool(argv[0], arg2)) return Qnil; arg1->del(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_insert(int argc, VALUE *argv, VALUE self) { bool arg2 = false;// ncc=false if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Bool(argv[0], arg2)) return Qnil; arg1->insert(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_createIndex(int argc, VALUE *argv, VALUE self) { bool arg2 = false;// specifyKeyNum=false if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Bool(argv[0], arg2)) return Qnil; arg1->createIndex(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_dropIndex(int argc, VALUE *argv, VALUE self) { bool arg2 = false;// norenumber=false if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Bool(argv[0], arg2)) return Qnil; arg1->dropIndex(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_recordCount(int argc, VALUE *argv, VALUE self) { bool arg2 = true; //(bool estimate=true) bool arg3 = false;//(bool fromCurrent=false) if (!check_param_count(argc, 0, 2)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Bool(argv[0], arg2)) return Qnil; if (argc == 2) if (!obj2Bool(argv[1], arg3)) return Qnil; unsigned int result = arg1->recordCount(arg2, arg3); return SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); } SWIGINTERN VALUE _wrap_nstable_beginBulkInsert(int argc, VALUE *argv, VALUE self) { int arg2 = BULKBUFSIZE;//int maxBuflen=BULKBUFSIZE; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->beginBulkInsert(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_abortBulkInsert(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); arg1->abortBulkInsert(); return Qnil; } SWIGINTERN VALUE _wrap_nstable_commitBulkInsert(int argc, VALUE *argv, VALUE self) { bool arg2 = false;// autoCommit=false) if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Bool(argv[0], arg2)) return Qnil; unsigned short result = arg1->commitBulkInsert(arg2); return SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); } SWIGINTERN VALUE _wrap_nstable_seekFirst(int argc, VALUE *argv, VALUE self) { ushort_td arg2 = LOCK_BIAS_DEFAULT; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->seekFirst(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekLast(int argc, VALUE *argv, VALUE self) { ushort_td arg2 = LOCK_BIAS_DEFAULT; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->seekLast(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekPrev(int argc, VALUE *argv, VALUE self) { ushort_td arg2 = LOCK_BIAS_DEFAULT; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->seekPrev(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekNext(int argc, VALUE *argv, VALUE self) { ushort_td arg2 = LOCK_BIAS_DEFAULT; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->seekNext(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_seek(int argc, VALUE *argv, VALUE self) { ushort_td arg2 = LOCK_BIAS_DEFAULT; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->seek(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekGreater(int argc, VALUE *argv, VALUE self) { bool arg2; ushort_td arg3 = LOCK_BIAS_DEFAULT;//lockBias=LOCK_BIAS_DEFAULT if (!check_param_count(argc, 1, 2)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (!obj2Bool(argv[0], arg2)) return Qnil; if (argc == 2) if (!obj2Integer(argv[1], arg3)) return Qnil; arg1->seekGreater(arg2, arg3); return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekLessThan(int argc, VALUE *argv, VALUE self) { bool arg2; ushort_td arg3 = LOCK_BIAS_DEFAULT;//lockBias=LOCK_BIAS_DEFAULT if (!check_param_count(argc, 1, 2)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (!obj2Bool(argv[0], arg2)) return Qnil; if (argc == 2) if (!obj2Integer(argv[1], arg3)) return Qnil; arg1->seekLessThan(arg2, arg3); return Qnil; } SWIGINTERN VALUE _wrap_nstable_stepFirst(int argc, VALUE *argv, VALUE self) { unsigned short arg2 = (unsigned short)LOCK_BIAS_DEFAULT; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->stepFirst(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_stepLast(int argc, VALUE *argv, VALUE self) { unsigned short arg2 = (unsigned short)LOCK_BIAS_DEFAULT; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->stepLast(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_stepPrev(int argc, VALUE *argv, VALUE self) { unsigned short arg2 = (unsigned short)LOCK_BIAS_DEFAULT; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->stepPrev(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_stepNext(int argc, VALUE *argv, VALUE self) { unsigned short arg2 = (unsigned short)LOCK_BIAS_DEFAULT; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Integer(argv[0], arg2)) return Qnil; arg1->stepNext(arg2); return Qnil; } SWIGINTERN VALUE _wrap_nstable_bookmarkLen(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); ushort_td result = arg1->bookmarkLen(); return SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); } SWIGINTERN VALUE _wrap_nstable_bookmark(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); bookmark_td result = arg1->bookmark(); return SWIG_NewPointerObj((new bookmark_td(static_cast< const bookmark_td& >(result))), SWIGTYPE_p_BOOKMARK, SWIG_POINTER_OWN | 0); } SWIGINTERN VALUE _wrap_nstable_seekByBookmark__SWIG_2(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0; bookmark_td *arg2 = 0; ushort_td arg3; void *argp2 = 0; int res2 = 0; unsigned short val3; int ecode3 = 0; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "seekByBookmark", 2, argv[0])); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "seekByBookmark", 2, argv[0])); } arg2 = reinterpret_cast< bookmark_td * >(argp2); ecode3 = SWIG_AsVal_unsigned_SS_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError("", "ushort_td", "seekByBookmark", 3, argv[1])); } arg3 = static_cast< ushort_td >(val3); { try { (arg1)->seekByBookmark(*arg2, arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekByBookmark__SWIG_3(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0; bookmark_td *arg2 = 0; void *argp2 = 0; int res2 = 0; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "seekByBookmark", 2, argv[0])); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "seekByBookmark", 2, argv[0])); } arg2 = reinterpret_cast< bookmark_td * >(argp2); { try { (arg1)->seekByBookmark(*arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekByBookmark__SWIG_4(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); arg1->seekByBookmark(); return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekByBookmark(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii - 1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nstable, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_nstable_seekByBookmark__SWIG_4(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nstable, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_nstable_seekByBookmark__SWIG_3(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nstable, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_nstable_seekByBookmark__SWIG_2(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError(argc, 4, "nstable.seekByBookmark", " void nstable.seekByBookmark(bookmark_td &bm, ushort_td lockBias)\n" " void nstable.seekByBookmark(bookmark_td &bm)\n" " void nstable.seekByBookmark()\n"); return Qnil; } SWIGINTERN VALUE _wrap_nstable_getPercentage__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0; percentage_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (percentage_td)(arg1)->getPercentage(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_getPercentage__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0; bookmark_td *arg2 = 0; void *argp2 = 0; int res2 = 0; percentage_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "getPercentage", 2, argv[0])); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "getPercentage", 2, argv[0])); } arg2 = reinterpret_cast< bookmark_td * >(argp2); { try { result = (percentage_td)(arg1)->getPercentage(*arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_getPercentage(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii - 1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nstable, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_nstable_getPercentage__SWIG_0(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nstable, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_nstable_getPercentage__SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError(argc, 3, "nstable.getPercentage", " percentage_td nstable.getPercentage()\n" " percentage_td nstable.getPercentage(bookmark_td &bm)\n"); return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekByPercentage__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->seekByPercentage(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekByPercentage__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0 ; percentage_td arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "percentage_td","seekByPercentage", 2, argv[0] )); } arg2 = static_cast< percentage_td >(val2); { try { (arg1)->seekByPercentage(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_seekByPercentage(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nstable, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_nstable_seekByPercentage__SWIG_0(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nstable, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_nstable_seekByPercentage__SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "nstable.seekByPercentage", " void nstable.seekByPercentage()\n" " void nstable.seekByPercentage(percentage_td pc)\n"); return Qnil; } SWIGINTERN VALUE _wrap_nstable_setOwnerName(int argc, VALUE *argv, VALUE self) { _TCHAR *arg2 = (_TCHAR *) 0 ; char_td arg3 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; char val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 1, 2)) return Qnil; nstable* arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","setOwnerName", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); if (argc == 2) { ecode3 = SWIG_AsVal_char(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "char_td","setOwnerName", 3, argv[1] )); } arg3 = static_cast< char_td >(val3); arg1->setOwnerName(arg2, arg3); }else arg1->setOwnerName(arg2); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_nstable_clearOwnerName(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); (arg1)->clearOwnerName(); return Qnil; } SWIGINTERN VALUE _wrap_nstable_recordLength(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); unsigned short result = arg1->recordLength(); return SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); } SWIGINTERN VALUE _wrap_nstable_stats(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0 ; void *arg2 = (void *) 0 ; uint_td arg3 ; bool arg4 ; int res2 ; unsigned int val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; if (!check_param_count(argc, 2, 3)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","stats", 2, argv[0] )); } ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint_td","stats", 3, argv[1] )); } arg3 = static_cast< uint_td >(val3); if (argc == 3) { ecode4 = SWIG_AsVal_bool(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","stats", 4, argv[2] )); } arg4 = static_cast< bool >(val4); arg1->stats(arg2, arg3, arg4); }else arg1->stats(arg2, arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_getCreateSql(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; uint_td n = 65000; uint_td* n_p = &n; char* p = new char[n]; nstable* arg1 = selfPtr(self, arg1); char* result = arg1->getCreateSql(p, n_p); VALUE vresult = rb_enc_str_new(result, strlen(result), utf8_enc); delete [] p; return vresult; } SWIGINTERN VALUE _wrap_nstable_unlock(int argc, VALUE *argv, VALUE self) { bookmark_td *arg2 = 0; if (!check_param_count(argc, 0, 1)) return Qnil; nstable* arg1 = selfPtr(self, arg1); if (argc == 1) { void *argp2 = 0; int res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "unlock", 2, argv[0])); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "unlock", 2, argv[0])); } arg2 = reinterpret_cast< bookmark_td * >(argp2); } if (arg2) arg1->unlock(*arg2); else arg1->unlock(); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_mode(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; nstable* arg1 = selfPtr(self, arg1); char_td result = arg1->mode(); return SWIG_From_long(result); } SWIGINTERN VALUE _wrap_nstable_setTimestampMode(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setTimestampMode", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { (arg1)->setTimestampMode(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_setUpdateConflictCheck(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setUpdateConflictCheck", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { result = (bool)(arg1)->setUpdateConflictCheck(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_updateConflictCheck(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((bzs::db::protocol::tdap::client::nstable const *)arg1)->updateConflictCheck(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_getFileName(int argc, VALUE *argv, VALUE self) { _TCHAR *arg1 = (_TCHAR *) 0 ; _TCHAR arg2[1024] = {0} ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "_TCHAR const *","tdap::client::nstable::getFileName", 1, argv[0] )); } arg1 = reinterpret_cast< _TCHAR * >(buf1); { try { result = (_TCHAR *)tdap::client::nstable::getFileName((char const *)arg1,arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_nstable_statMsg(int argc, VALUE *argv, VALUE self) { tdap::client::nstable *arg1 = (tdap::client::nstable *) 0 ; _TCHAR arg2[1024] = {0}; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { arg1->tdapErr((HWND)0, arg2); result = arg2; } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nstable_getDirURI(int argc, VALUE *argv, VALUE self) { _TCHAR *arg1 = (_TCHAR *) 0 ; _TCHAR arg2[1024] = {0}; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "_TCHAR const *","tdap::client::nstable::getDirURI", 1, argv[0] )); } arg1 = reinterpret_cast< _TCHAR * >(buf1); { try { result = (_TCHAR *)tdap::client::nstable::getDirURI((char const *)arg1,arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_nstable_existsFile(int argc, VALUE *argv, VALUE self) { _TCHAR *arg1 = (_TCHAR *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "_TCHAR const *","tdap::client::nstable::existsFile", 1, argv[0] )); } arg1 = reinterpret_cast< _TCHAR * >(buf1); { try { result = (bool)tdap::client::nstable::existsFile((char const *)arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } static swig_class SwigClassConnRecord; SWIGINTERN VALUE _wrap_connRecord_conId_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; __int64 result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = ((arg1)->conId); vresult = SWIG_From_long_SS_long(static_cast< long long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_longValue_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; __int64 result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = ((arg1)->longValue); vresult = SWIG_From_long_SS_long(static_cast< long long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_delCount_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (unsigned int) ((arg1)->delCount); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_insCount_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (unsigned int) ((arg1)->insCount); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_id_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (unsigned int) ((arg1)->id); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_db_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (unsigned int) ((arg1)->db); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_readCount_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (unsigned int) ((arg1)->readCount); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_updCount_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (unsigned int) ((arg1)->updCount); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_type_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (unsigned int) ((arg1)->type); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_name_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char *)(char *) ((arg1)->name); { size_t size = SWIG_strnlen(result, 67); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_port_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (unsigned int) ((arg1)->port); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_value_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); if (arg1->type == 0) vresult = SWIG_From_long_SS_long(static_cast< long long >(arg1->longValue)); else if (arg1->type == 1) { size_t size = SWIG_strnlen(arg1->name, 67); vresult = SWIG_FromCharPtrAndSize(arg1->name, size); } else vresult = rb_enc_str_new((char *)arg1->longValue, strlen((char *)arg1->longValue), utf8_enc); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_inTransaction_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->inTransaction); if (result != 0) return Qtrue; return Qfalse; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_inSnapshot_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->inSnapshot); if (result != 0) return Qtrue; return Qfalse; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_openNormal_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->openNormal); if (result != 0) return Qtrue; return Qfalse; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_openReadOnly_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->openReadOnly); if (result != 0) return Qtrue; return Qfalse; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_openEx_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->openEx); if (result != 0) return Qtrue; return Qfalse; fail: return Qnil; } SWIGINTERN VALUE _wrap_connRecord_openReadOnlyEx_get(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->openReadOnlyEx); if (result != 0) return Qtrue; return Qfalse; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_connRecord_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_connRecord_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__db__transactd__connection__record); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_connRecord(int argc, VALUE *argv, VALUE self) { bzs::db::transactd::connection::record *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (bzs::db::transactd::connection::record *)new bzs::db::transactd::connection::record(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_db_transactd_connection_record(bzs::db::transactd::connection::record *arg1) { delete arg1; } static swig_class SwigClassConnRecords; SWIGINTERN VALUE _wrap_connRecords___getitem__(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr::records *arg1 = (tdap::client::connMgr::records *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; bzs::db::transactd::connection::record result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","operator []", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = ((tdap::client::connMgr::records const *)arg1)->operator [](arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj((new bzs::db::transactd::connection::record(static_cast< const bzs::db::transactd::connection::record& >(result))), SWIGTYPE_p_bzs__db__transactd__connection__record, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Transactd::connRecords.size call-seq: size -> size_t Size or Length of the connRecords. */ SWIGINTERN VALUE _wrap_connRecords_size(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr::records *arg1 = (tdap::client::connMgr::records *) 0 ; size_t result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = ((tdap::client::connMgr::records const *)arg1)->size(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_size_t(static_cast< size_t >(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_connRecords_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_connRecords_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__connMgr__records); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_connRecords(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr::records *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::connMgr::records *)new tdap::client::connMgr::records(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_connMg_records(tdap::client::connMgr::records *arg1) { delete arg1; } static swig_class SwigClassConnMgr; SWIGINTERN VALUE _wrap_connMgr_connect(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","connect", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (bool)(arg1)->connect((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_connMgr_disconnect(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->disconnect(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_channels(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; bool arg2 = false; bool val2 ; int ecode2 = 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 1)) return Qnil; arg1 = selfPtr(self, arg1); if (argc == 1) { ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","channels", 2, argv[0] )); } arg2 = static_cast< bool >(val2); } { try { result = (tdap::client::connMgr::records *)bzs_connMgr_channels(arg1,arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_slaveHosts(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_slaveHosts(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_extendedvars(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_extendedvars(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_statusvars(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_statusvars(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_postDisconnectOne(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; __int64 arg2 ; long long val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "__int64","postDisconnectOne", 2, argv[0] )); } arg2 = static_cast< __int64 >(val2); { try { (arg1)->postDisconnectOne(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_postDisconnectAll(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->postDisconnectAll(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_haLock(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)(arg1)->haLock(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_haUnlock(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->haUnlock(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_setRole(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setRole", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (bool)(arg1)->setRole(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_setTrxBlock(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setTrxBlock", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { result = (bool)(arg1)->setTrxBlock(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_setEnableFailover(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setEnableFailover", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { result = (bool)(arg1)->setEnableFailover(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_stat(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; short_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short_td)((tdap::client::connMgr const *)arg1)->stat(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_db(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; tdap::client::database *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::database *)((tdap::client::connMgr const *)arg1)->db(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__database, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_slaveStatusName(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = 0 ; uint_td arg2 ; unsigned int val2 ; int ecode2 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint_td","tdap::client::connMgr::slaveStatusName", 2, argv[0] )); } arg2 = static_cast< uint_td >(val2); { try { result = (_TCHAR *)arg1->slaveStatusName(arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_isOpen(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::connMgr const *)arg1)->isOpen(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_removeSystemDb(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr::records *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__connMgr__records, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::connMgr::records &","tdap::client::connMgr::removeSystemDb", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::connMgr::records &","tdap::client::connMgr::removeSystemDb", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::connMgr::records * >(argp1); { try { tdap::client::connMgr::removeSystemDb(*arg1); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_sysvarName(int argc, VALUE *argv, VALUE self) { uint_td arg1 ; unsigned int val1 ; int ecode1 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint_td","tdap::client::connMgr::sysvarName", 1, argv[0] )); } arg1 = static_cast< uint_td >(val1); { try { result = (_TCHAR *)tdap::client::connMgr::sysvarName(arg1); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_statusvarName(int argc, VALUE *argv, VALUE self) { uint_td arg1 ; unsigned int val1 ; int ecode1 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint_td","tdap::client::connMgr::statusvarName", 1, argv[0] )); } arg1 = static_cast< uint_td >(val1); { try { result = (_TCHAR *)tdap::client::connMgr::statusvarName(arg1); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_extendedVarName(int argc, VALUE *argv, VALUE self) { uint_td arg1 ; unsigned int val1 ; int ecode1 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint_td","tdap::client::connMgr::extendedVarName", 1, argv[0] )); } arg1 = static_cast< uint_td >(val1); { try { result = (_TCHAR *)tdap::client::connMgr::extendedVarName(arg1); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_databases(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_databases(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_tables(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","tables", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_tables(arg1,(char const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_connMgr_views(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","views", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_views(arg1,(char const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_connMgr_schemaTables(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","schemaTables", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_schemaTables(arg1,(char const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_connMgr_slaveStatus(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; char *arg2 = (char *) 0; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 1)) return Qnil; arg1 = selfPtr(self, arg1); if (argc == 1) { res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","slaveStatus", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); } { try { result = (tdap::client::connMgr::records *)bzs_connMgr_slaveStatus(arg1,(char const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_connMgr_sysvars(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_sysvars(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_connections(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_connections(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_inUseDatabases(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; __int64 arg2 ; long long val2 ; int ecode2 = 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "__int64","inUseDatabases", 2, argv[0] )); } arg2 = static_cast< __int64 >(val2); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_inUseDatabases(arg1,arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connMgr_inUseTables(int argc, VALUE *argv, VALUE self) { tdap::client::connMgr *arg1 = (tdap::client::connMgr *) 0 ; __int64 arg2 ; int arg3 ; long long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; tdap::client::connMgr::records *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "__int64","inUseTables", 2, argv[0] )); } arg2 = static_cast< __int64 >(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","inUseTables", 3, argv[1] )); } arg3 = static_cast< int >(val3); { try { result = (tdap::client::connMgr::records *)bzs_connMgr_inUseTables(arg1,arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__connMgr__records, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_connMgr_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_connMgr_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__connMgr); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_connMgr(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; void *argp1 = 0 ; int res1 = 0 ; tdap::client::connMgr *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_bzs__database, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::database *","connMgr", 1, argv[0] )); } arg1 = reinterpret_cast< tdap::client::database * >(argp1); { try { result = (tdap::client::connMgr *)new_bzs_connMgr(arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void delete_bzs_connMgr(tdap::client::connMgr *self){ tdap::client::releaseConnMgr(self); } SWIGINTERN void free_bzs_connMgr(tdap::client::connMgr *arg1) { delete_bzs_connMgr(arg1); } static swig_class SwigClassDbdef; SWIGINTERN VALUE _wrap_dbdef_tableCount(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)((tdap::client::dbdef const *)arg1)->tableCount(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_openMode(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)((tdap::client::dbdef const *)arg1)->openMode(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_tableDefs(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; tdap::tabledef *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","tableDefs", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (tdap::tabledef *)(arg1)->tableDefs(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__tabledef, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_setVersion(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setVersion", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { (arg1)->setVersion(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_version(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::client::dbdef const *)arg1)->version(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_stat(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short_td)((tdap::client::dbdef const *)arg1)->stat(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_validateTableDef(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0; short arg2; short val2; int ecode2 = 0; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "short", "validateTableDef", 2, argv[0])); } arg2 = static_cast< short >(val2); { try { result = (short)(arg1)->validateTableDef(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_updateTableDef__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; bool arg3 ; short val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","updateTableDef", 2, argv[0] )); } arg2 = static_cast< short >(val2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","updateTableDef", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { (arg1)->updateTableDef(arg2,arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_updateTableDef__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","updateTableDef", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { (arg1)->updateTableDef(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_updateTableDef(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__dbdef, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_dbdef_updateTableDef__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__dbdef, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(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_dbdef_updateTableDef__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "dbdef.updateTableDef", " void dbdef.updateTableDef(short tableIndex, bool forPsqlDdf)\n" " void dbdef.updateTableDef(short tableIndex)\n"); return Qnil; } SWIGINTERN VALUE _wrap_dbdef_insertField(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short arg3 ; short val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; tdap::fielddef *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","insertField", 2, argv[0] )); } arg2 = static_cast< short >(val2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","insertField", 3, argv[1] )); } arg3 = static_cast< short >(val3); { try { result = (tdap::fielddef *)(arg1)->insertField(arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fielddef, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_deleteField(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short arg3 ; short val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","deleteField", 2, argv[0] )); } arg2 = static_cast< short >(val2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","deleteField", 3, argv[1] )); } arg3 = static_cast< short >(val3); { try { (arg1)->deleteField(arg2,arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_insertKey(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short arg3 ; short val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; tdap::keydef *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","insertKey", 2, argv[0] )); } arg2 = static_cast< short >(val2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","insertKey", 3, argv[1] )); } arg3 = static_cast< short >(val3); { try { result = (tdap::keydef *)(arg1)->insertKey(arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__keydef, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_deleteKey(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short arg3 ; short val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","deleteKey", 2, argv[0] )); } arg2 = static_cast< short >(val2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","deleteKey", 3, argv[1] )); } arg3 = static_cast< short >(val3); { try { (arg1)->deleteKey(arg2,arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_insertTable(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; tdap::tabledef *arg2 = (tdap::tabledef *) 0 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__tabledef, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::tabledef *","insertTable", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::tabledef * >(argp2); { try { (arg1)->insertTable(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_deleteTable(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","deleteTable", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { (arg1)->deleteTable(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_renumberTable(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short arg3 ; short val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","renumberTable", 2, argv[0] )); } arg2 = static_cast< short >(val2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","renumberTable", 3, argv[1] )); } arg3 = static_cast< short >(val3); { try { (arg1)->renumberTable(arg2,arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_tableNumByName(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","tableNumByName", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (short)(arg1)->tableNumByName((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_dbdef_findKeynumByFieldNum(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short arg3 ; short val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","findKeynumByFieldNum", 2, argv[0] )); } arg2 = static_cast< short >(val2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","findKeynumByFieldNum", 3, argv[1] )); } arg3 = static_cast< short >(val3); { try { result = (short)(arg1)->findKeynumByFieldNum(arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_fieldNumByName(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; _TCHAR *arg3 = (_TCHAR *) 0 ; short val2 ; int ecode2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","fieldNumByName", 2, argv[0] )); } arg2 = static_cast< short >(val2); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","fieldNumByName", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3); { try { result = (short)(arg1)->fieldNumByName(arg2,(_TCHAR const *)arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return vresult; fail: if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; } SWIGINTERN VALUE _wrap_dbdef_fieldValidLength(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; tdap::client::eFieldQuery arg2 ; uchar_td arg3 ; int val2 ; int ecode2 = 0 ; unsigned char val3 ; int ecode3 = 0 ; uint_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "tdap::client::eFieldQuery","fieldValidLength", 2, argv[0] )); } arg2 = static_cast< tdap::client::eFieldQuery >(val2); ecode3 = SWIG_AsVal_unsigned_SS_char(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uchar_td","fieldValidLength", 3, argv[1] )); } arg3 = static_cast< uchar_td >(val3); { try { result = (uint_td)(arg1)->fieldValidLength(arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_pushBackup(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","pushBackup", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { (arg1)->pushBackup(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_popBackup(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","popBackup", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { (arg1)->popBackup(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_synchronizeSeverSchema(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","synchronizeSeverSchema", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { (arg1)->synchronizeSeverSchema(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_statMsg(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; _TCHAR arg2[1024] = {0}; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { arg1->tdapErr((HWND)0, arg2); result = arg2; } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_reopen__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; char_td arg2 ; char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char_td","reopen", 2, argv[0] )); } arg2 = static_cast< char_td >(val2); { try { (arg1)->reopen(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_reopen__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->reopen(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_dbdef_reopen(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__dbdef, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_dbdef_reopen__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__dbdef, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_char(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_dbdef_reopen__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "dbdef.reopen", " void dbdef.reopen(char_td mode)\n" " void dbdef.reopen()\n"); return Qnil; } SWIGINTERN VALUE _wrap_dbdef_mode(int argc, VALUE *argv, VALUE self) { tdap::client::dbdef *arg1 = (tdap::client::dbdef *) 0 ; char_td result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (char_td)((tdap::client::dbdef const *)arg1)->mode(); } CATCH_BZS_AND_STD() } return SWIG_From_long(result); fail: return Qnil; } static swig_class SwigClassBitset; #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_bitset_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_bitset_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__bitset); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_bitset(int argc, VALUE *argv, VALUE self) { tdap::bitset *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::bitset *)new tdap::bitset(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_bitset_set(int argc, VALUE *argv, VALUE self) { tdap::bitset *arg1 = (tdap::bitset *) 0 ; int arg2 ; bool arg3 ; int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","set", 2, argv[0] )); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","set", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { (arg1)->set(arg2,arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_bitset_get(int argc, VALUE *argv, VALUE self) { tdap::bitset *arg1 = (tdap::bitset *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","get", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (bool)((tdap::bitset const *)arg1)->get(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } /* Document-method: Transactd::bitset.equals call-seq: equals(r) -> bool Equality comparison operator. */ SWIGINTERN VALUE _wrap_bitset_equals(int argc, VALUE *argv, VALUE self) { tdap::bitset *arg1 = (tdap::bitset *) 0 ; tdap::bitset *arg2 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__bitset, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::bitset const &","operator ==", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::bitset const &","operator ==", 2, argv[0])); } arg2 = reinterpret_cast< tdap::bitset * >(argp2); { try { result = (bool)((tdap::bitset const *)arg1)->operator ==((tdap::bitset const &)*arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_bitset_contains__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::bitset *arg1 = (tdap::bitset *) 0 ; tdap::bitset *arg2 = 0 ; bool arg3 ; void *argp2 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__bitset, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::bitset const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::bitset const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< tdap::bitset * >(argp2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","contains", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { result = (bool)((tdap::bitset const *)arg1)->contains((tdap::bitset const &)*arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_bitset_contains__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::bitset *arg1 = (tdap::bitset *) 0 ; tdap::bitset *arg2 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__bitset, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::bitset const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::bitset const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< tdap::bitset * >(argp2); { try { result = (bool)((tdap::bitset const *)arg1)->contains((tdap::bitset const &)*arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_bitset_contains(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__bitset, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_bzs__bitset, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_bitset_contains__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__bitset, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_bzs__bitset, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_bitset_contains__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "bitset.contains", " bool bitset.contains(tdap::bitset const &r, bool all)\n" " bool bitset.contains(tdap::bitset const &r)\n"); return Qnil; } SWIGINTERN void free_bzs_bitset(tdap::bitset *arg1) { delete arg1; } static swig_class SwigClassTable; SWIGINTERN VALUE _wrap_table_tableDef(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; tdap::tabledef *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::tabledef *)((tdap::client::table const *)arg1)->tableDef(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__tabledef, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_valiableFormatType(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::table const *)arg1)->valiableFormatType(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_blobFieldUsed(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::table const *)arg1)->blobFieldUsed(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_logicalToString(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::table const *)arg1)->logicalToString(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_setLogicalToString(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setLogicalToString", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { (arg1)->setLogicalToString(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_optionalData(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; void *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (void *)((tdap::client::table const *)arg1)->optionalData(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_setOptionalData(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; void *arg2 = (void *) 0 ; int res2 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","setOptionalData", 2, argv[0] )); } { try { (arg1)->setOptionalData(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_myDateTimeValueByBtrv(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::table const *)arg1)->myDateTimeValueByBtrv(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_bookmarksCount(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; table* arg1 = selfPtr(self, arg1); int result = (int)((tdap::client::table const *)arg1)->bookmarksCount(); return SWIG_From_int(static_cast< int >(result)); } SWIGINTERN VALUE _wrap_table_moveBookmarks(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; long arg2 ; long val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","moveBookmarks", 2, argv[0] )); } arg2 = static_cast< long >(val2); { try { (arg1)->moveBookmarks(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_bookmarks(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0; unsigned int arg2; unsigned int val2; int ecode2 = 0; bookmark_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "unsigned int", "bookmarks", 2, argv[0])); } arg2 = static_cast< unsigned int >(val2); { try { result = ((tdap::client::table const *)arg1)->bookmarks(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj((new bookmark_td(static_cast< const bookmark_td& >(result))), SWIGTYPE_p_BOOKMARK, SWIG_POINTER_OWN | 0); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_clearBuffer(int argc, VALUE *argv, VALUE self) { tdap::client::table::eNullReset arg2 = tdap::client::table::defaultNull; if (!check_param_count(argc, 0, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); if (argc == 1) { int a2 = 0; if (!obj2Integer(argv[0], a2)) return Qnil; arg2 = (table::eNullReset)a2; } arg1->clearBuffer(arg2); return Qnil; } SWIGINTERN VALUE _wrap_table_getRecordHash(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; table* arg1 = selfPtr(self, arg1); unsigned int result = arg1->getRecordHash(); return SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); } SWIGINTERN VALUE _wrap_table_smartUpdate(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; table* arg1 = selfPtr(self, arg1); arg1->smartUpdate(); return Qnil; } SWIGINTERN VALUE _wrap_table_fetchmode_set(int argc, VALUE *argv, VALUE self) { return int_prop_set(argc, argv, self, g_id_fetchmode, "table"); } SWIGINTERN VALUE _wrap_table_fetchmode_get(int argc, VALUE *argv, VALUE self) { return int_prop_get(argc, argv, self, g_id_fetchmode, "table"); } SWIGINTERN VALUE _wrap_table_find(int argc, VALUE *argv, VALUE self) { table::eFindType arg2 = table::findForword; if (!check_param_count(argc, 0, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); if (argc == 1) { int a2 = 0; if (!obj2Integer(argv[0], a2)) return Qnil; arg2 = (table::eFindType)a2; } arg1->find(arg2); return Qnil; } SWIGINTERN VALUE _wrap_table_findFirst(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; table* arg1 = selfPtr(self, arg1); arg1->findFirst(); return Qnil; } SWIGINTERN VALUE _wrap_table_findLast(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; table* arg1 = selfPtr(self, arg1); arg1->findLast(); return Qnil; } SWIGINTERN VALUE _wrap_table_findNext(int argc, VALUE *argv, VALUE self) { bool arg2 = true; if (!check_param_count(argc, 0, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Bool(argv[0], arg2)) return Qnil; arg1->findNext(arg2); return Qnil; } SWIGINTERN VALUE _wrap_table_findPrev(int argc, VALUE *argv, VALUE self) { bool arg2 = true; if (!check_param_count(argc, 0, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); if (argc == 1) if (!obj2Bool(argv[0], arg2)) return Qnil; arg1->findPrev(arg2); return Qnil; } #if (RUBY_API_VERSION_MAJOR > 2 || (RUBY_API_VERSION_MAJOR == 2 && RUBY_API_VERSION_MINOR >= 2)) #define RB_SYM2STR_WRAP rb_sym2str #define RB_TO_SYMBOL_WRAP rb_to_symbol #else #define RB_SYM2STR_WRAP rb_sym_to_s #define RB_TO_SYMBOL_WRAP rb_str_intern #endif ID toMemberId(const char* name) { char c_name[256] = "@"; strcat_s(c_name, 256, name); return rb_intern_str(rb_enc_str_new(c_name, strlen(c_name), utf8_enc)); } ID toMemberId(VALUE name_sym) { if (TYPE(name_sym) == T_SYMBOL) name_sym = RB_SYM2STR_WRAP(name_sym); if (TYPE(name_sym) != T_STRING) return Qnil; return toMemberId(StringValuePtr(name_sym)); } VALUE getFieldsArray(const tdap::client::fielddefs& fds) { int size = (int)fds.size(); VALUE fields = rb_ary_new2(size); for (size_t i = 0; i < size; ++i) { const char* name = fds[i].name(); rb_ary_store(fields, i, rb_enc_str_new(name, strlen(name), utf8_enc)); } return fields; } VALUE getFieldIdsArray(const tdap::client::fielddefs& fds) { int size = (int)fds.size(); VALUE fields = rb_ary_new2(size); for (size_t i = 0; i < size; ++i) rb_ary_store(fields, i, toMemberId(fds[i].name())); return fields; } VALUE getFieldsCache(VALUE vrs, const tdap::client::fielddefs& fds) { VALUE fields = rb_ivar_get(vrs, g_id_fields); if (fields == Qnil) { fields = getFieldsArray(fds); rb_ivar_set(vrs, g_id_fields, fields); } return fields; } VALUE getFieldIdsCache(VALUE vrs, const tdap::client::fielddefs& fds) { VALUE fields = rb_ivar_get(vrs, g_id_field_ids); if (fields == Qnil) { fields = getFieldIdsArray(fds); rb_ivar_set(vrs, g_id_field_ids, fields); } return fields; } void clearFieldsCache(VALUE vrs) { rb_ivar_set(vrs, g_id_fields, Qnil); rb_ivar_set(vrs, g_id_field_ids, Qnil); } VALUE getFieldValue(const tdap::client::field& f) { if (fieldValueMode() != FIELD_VALUE_MODE_VALUE) return SWIG_NewPointerObj(new tdap::client::field(f), SWIGTYPE_p_bzs__field, SWIG_POINTER_OWN | 0 ); if (nullValueMode() == NULLVALUE_MODE_RETURNNULL && f.isNull()) return Qnil; switch (f.type()) { case ft_integer: case ft_uinteger: case ft_autoinc: case ft_autoIncUnsigned: case ft_logical: case ft_bit: return SWIG_From_long_SS_long(static_cast< long long >(f.i64())); case ft_float: case ft_decimal: case ft_money: case ft_numeric: case ft_bfloat: case ft_numericsts: case ft_numericsa: case ft_currency: return SWIG_From_double(static_cast< double >(f.d())); //case ft_note: //case ft_wstring: //case ft_zstring: //case ft_wzstring: //case ft_mychar: //case ft_myvarchar: //case ft_mywchar: //case ft_mywvarchar: //case ft_mytext: //case ft_mywvarbinary: case ft_string: case ft_lstring: case ft_myvarbinary: case ft_myblob: if (f.def()->charsetIndex() == CHARSET_BIN) { uint_td size; void* val = f.getBin(size); return rb_str_new((const char*)val, size); } /* pass through */ } const _TCHAR* tmp_c_str = f.c_str(); return rb_enc_str_new(tmp_c_str, strlen(tmp_c_str), utf8_enc); } inline VALUE getAliasMap(VALUE& obj) { VALUE ret = rb_ivar_get(obj, g_id_alias_map_val); if (TYPE(ret) == T_HASH) return ret; return Qnil; } int doFixTransferMap(VALUE key, VALUE val, VALUE dest_hash) { if (TYPE(key) != T_SYMBOL && TYPE(key) != T_STRING) return ST_CONTINUE; ID id_key = toMemberId(key); if (TYPE(val) == T_SYMBOL || TYPE(val) == T_STRING) { rb_hash_aset(dest_hash, id_key, toMemberId(val)); return ST_CONTINUE; } if (TYPE(val) == T_ARRAY) { int arr_len = RARRAY_LEN(val); VALUE val_arr = rb_ary_new2(arr_len); for (int i = 0; i < arr_len; ++i) { VALUE v = rb_ary_entry(val, i); if (TYPE(v) == T_SYMBOL || TYPE(v) == T_STRING) rb_ary_store(val_arr, i, toMemberId(v)); else return ST_CONTINUE; } rb_hash_aset(dest_hash, id_key, val_arr); } return ST_CONTINUE; } VALUE fixTransferMap(VALUE org_hash) { if (TYPE(org_hash) != T_HASH) return Qnil; VALUE vresult = rb_hash_new(); rb_hash_foreach(org_hash, (int (*)(...))doFixTransferMap, vresult); return vresult; } inline VALUE getTransferMap(VALUE& obj) { VALUE h = rb_ivar_get(obj, g_id_internal_transfer_map_val); if (TYPE(h) == T_HASH) return h; h = rb_ivar_get(obj, g_id_transfer_map_val); if (TYPE(h) != T_HASH) return Qnil; h = fixTransferMap(h); rb_ivar_set(obj, g_id_internal_transfer_map_val, h); return h; } VALUE getChildObjectRecursive(VALUE obj, VALUE /*ID|Array[ID]*/ transfer_to) { if (TYPE(transfer_to) == T_ARRAY) { int arr_len = RARRAY_LEN(transfer_to); VALUE c_obj = obj; for (int i = 0; i < arr_len; ++i) { VALUE c_id = rb_ary_entry(transfer_to, i); c_obj = rb_ivar_get(c_obj, c_id); if (c_obj == Qnil) break; } return c_obj; } else { return rb_ivar_get(obj, transfer_to); } } void setValuesFromObject(const tdap::client::fieldsBase *rec, VALUE obj, VALUE /* id array */ fieldIds, // @field_name format ids VALUE /* class */ klass) { VALUE transfer_map = getTransferMap(klass); // Qnil|Hash{ID,ID|Array[ID]} const fielddefs* def = rec->fieldDefs(); for (int i = 0; i < def->size(); ++i) { ID id; const char* field_name = 0; if (fieldIds == Qnil) { field_name = (*def)[i].name(); id = toMemberId(field_name); } else { id = rb_ary_entry(fieldIds, i); } // if field name is in transfer_map, transfer value if (transfer_map != Qnil) { VALUE transfer_to = rb_hash_lookup2(transfer_map, id, Qnil); if (transfer_to != Qnil) { VALUE child = getChildObjectRecursive(obj, transfer_to); if (child != Qnil) { if (rb_ivar_defined(child, id)) field_setvalue(rb_ivar_get(child, id), (*rec)[i], 0); } continue; } } if (rb_ivar_defined(obj, id)) field_setvalue(rb_ivar_get(obj, id), (*rec)[i], 0); } } inline void setKeyValueFromObject(table* tb, VALUE obj, VALUE /* id array */ fieldIds, // @field_name format ids VALUE /* class */ klass) { VALUE transfer_map = getTransferMap(klass); // Qnil|Hash{ID,ID|Array[ID]} tb->setStat(0); char key = tb->keyNum(); if (key < 0 || key >= tb->tableDef()->keyCount) { tb->setStat(STATUS_INVALID_KEYNUM); return; } tdap::keydef kd = tb->tableDef()->keyDefs[key]; const int segments_count = kd.segmentCount; client::fieldsBase* rec = &(tb->fields()); for (int i = 0; i < segments_count; ++i) { const char* name = 0; ID id; if (fieldIds == Qnil) { name = tb->fields()[kd.segments[i].fieldNum].def()->name(); id = toMemberId(name); } else { id = rb_ary_entry(fieldIds, i); } if (transfer_map != Qnil) { VALUE transfer_to = rb_hash_lookup2(transfer_map, id, Qnil); if (transfer_to != Qnil) { VALUE child = getChildObjectRecursive(obj, transfer_to); if (child != Qnil) { if (rb_ivar_defined(child, id)) field_setvalue(rb_ivar_get(child, id), (*rec)[i], 0); } continue; } } if (rb_ivar_defined(obj, id)) field_setvalue(rb_ivar_get(obj, id), (*rec)[i], 0); } } void setValuesToObject(const fieldsBase& rec, VALUE obj, VALUE /* id array */ fieldIds, // @field_name format ids VALUE /* class */ klass) { VALUE child; size_t size = rec.size(); VALUE transfer_map = getTransferMap(klass); // Qnil|Hash{ID,ID|Array[ID]} for (size_t i = 0; i < size; ++i) { ID id = rb_ary_entry(fieldIds, i); // if field name is in transfer_map, transfer value if (transfer_map != Qnil) { VALUE transfer_to = rb_hash_lookup2(transfer_map, id, Qnil); if (transfer_to != Qnil) { child = getChildObjectRecursive(obj, transfer_to); if (child != Qnil) rb_ivar_set(child, id, getFieldValue(rec[i])); continue; } } rb_ivar_set(obj, id, getFieldValue(rec[i])); } rb_ivar_set(obj, g_id_new_record, Qfalse); } SWIGINTERN VALUE _wrap_table_save_by_object(int argc, VALUE *argv, VALUE self) { tdap::client::table *tb = (tdap::client::table *) 0; tdap::client::fieldsBase *rec = (tdap::client::fieldsBase *) 0; VALUE fieldIds; if (!check_param_count(argc, 1, 1)) return Qnil; tb = selfPtr(self, tb); if (TYPE(argv[0]) != T_OBJECT) rb_raise(rb_eArgError, "param 1, object is not specified."); tb->clearBuffer(); rec = &(tb->fields()); fieldIds = getFieldIdsCache(self, *(rec->fieldDefs())); setValuesFromObject(rec, argv[0], fieldIds, CLASS_OF(argv[0])); tb->insert(); if (tb->stat() != STATUS_SUCCESS) { tb->update(tdap::client::table::changeInKey); } if (tb->stat() != STATUS_SUCCESS) return Qfalse; setValuesToObject(*rec, argv[0], fieldIds, CLASS_OF(argv[0])); return Qtrue; } inline char getPrimaryKeynum(table* tb) { if (tb->tableDef()->primaryKeyNum == 0xff) rb_raise(rb_eRuntimeError, "The table has no primary key"); return tb->tableDef()->primaryKeyNum; } SWIGINTERN VALUE _wrap_table_insert_by_object(int argc, VALUE *argv, VALUE self) { VALUE fieldIds; bool ncc = false; if (!check_param_count(argc, 1, 2)) return Qnil; client::table* tb = selfPtr(self, tb); if (TYPE(argv[0]) != T_OBJECT) rb_raise(rb_eArgError, "param 1, object is not specified."); if (argc == 2) { if (!obj2Bool(argv[1], ncc)) return Qnil; } tb->clearBuffer(); client::fieldsBase* rec = &(tb->fields()); fieldIds = getFieldIdsCache(self, *(rec->fieldDefs())); setValuesFromObject(rec, argv[0], fieldIds, CLASS_OF(argv[0])); tb->insert(ncc); if (tb->stat() == STATUS_SUCCESS) { setValuesToObject(*rec, argv[0], fieldIds, CLASS_OF(argv[0])); return Qtrue; } return Qfalse; } SWIGINTERN VALUE _wrap_table_update_by_object(int argc, VALUE *argv, VALUE self) { VALUE fieldIds; if (!check_param_count(argc, 1, 2)) return Qnil; tdap::client::table* tb = selfPtr(self, tb); if (TYPE(argv[0]) != T_OBJECT) rb_raise(rb_eArgError, "param 1, object is not specified."); int type = (int)client::nstable::changeInKey; if (argc == 2) { if (!obj2Integer(argv[1], type)) return Qnil; } tb->clearBuffer(); if (type == (int)nstable::changeInKey) tb->setKeyNum(getPrimaryKeynum(tb)); tdap::client::fieldsBase* rec = &(tb->fields()); fieldIds = getFieldIdsCache(self, *(rec->fieldDefs())); setValuesFromObject(rec, argv[0], fieldIds, CLASS_OF(argv[0])); tb->update((nstable::eUpdateType)type); if (tb->stat() == STATUS_SUCCESS) return Qtrue; return Qfalse; } SWIGINTERN VALUE _wrap_table_delete_by_object(int argc, VALUE *argv, VALUE self) { VALUE fieldIds; if (!check_param_count(argc, 1, 2)) return Qnil; tdap::client::table* tb = selfPtr(self, tb); if (TYPE(argv[0]) != T_OBJECT) rb_raise(rb_eArgError, "param 1, object is not specified."); bool inKey = true; if (argc == 2) { if (!obj2Bool(argv[1], inKey)) return Qnil; } tb->clearBuffer(); fieldIds = getFieldIdsCache(self, *(tb->fields().fieldDefs())); if (inKey) tb->setKeyNum(getPrimaryKeynum(tb)); if (tb->updateConflictCheck()) setValuesFromObject(&tb->fields(), argv[0], fieldIds, CLASS_OF(argv[0])); else setKeyValueFromObject(tb, argv[0], fieldIds, CLASS_OF(argv[0])); if (tb->stat() == STATUS_SUCCESS) tb->del(inKey); if (tb->stat() == STATUS_SUCCESS) return Qtrue; return Qfalse; } SWIGINTERN VALUE _wrap_table_read_by_object(int argc, VALUE *argv, VALUE self) { VALUE fieldIds; if (!check_param_count(argc, 1, 2)) return Qnil; client::table* tb = selfPtr(self, tb); if (TYPE(argv[0]) != T_OBJECT) rb_raise(rb_eArgError, "param 1, object is not specified."); short keyNum = getPrimaryKeynum(tb); if (argc == 2) { if (!obj2Integer(argv[1], keyNum)) return Qnil; } fieldIds = getFieldIdsCache(self, *(tb->fields().fieldDefs())); tb->setKeyNum(keyNum); setKeyValueFromObject(tb, argv[0], fieldIds, CLASS_OF(argv[0])); if (tb->stat() == STATUS_SUCCESS) tb->seek(); if (tb->stat() == STATUS_SUCCESS) { setValuesToObject(tb->fields(), argv[0], fieldIds, CLASS_OF(argv[0])); return Qtrue; } return Qfalse; } SWIGINTERN VALUE _wrap_table_seek_key_value(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 8)) return Qnil; // Max 8 segment client::table* tb = selfPtr(self, tb); const tdap::tabledef* td = tb->tableDef(); if (tb->keyNum() >= td->keyCount || tb->keyNum() < 0) rb_raise(rb_eArgError, "Invalid key number."); const tdap::keydef* kd = &td->keyDefs[tb->keyNum()]; tb->clearBuffer(); client::fieldsBase* fds = &tb->fields(); for (int i = 0; i < argc; ++i) { if (i >= kd->segmentCount) break; ushort_td fnum = kd->segments[i].fieldNum; client::field fd = (*fds)[fnum]; if (! setValue(argv[i], fd, 0)) return Qfalse; } tb->seek(); if (tb->stat() == STATUS_SUCCESS) return Qtrue; return Qfalse; } static const VALUE g_id_method_defined = rb_intern("method_defined?"); static const VALUE g_id_private_method_defined = rb_intern("private_method_defined?"); bool hasMethod(VALUE klass, VALUE name) { return (rb_funcall(klass, g_id_method_defined, 1, name) == Qtrue) || (rb_funcall(klass, g_id_private_method_defined, 1, name) == Qtrue); } void appendMethod(VALUE klass, VALUE v_name) { const char* name = StringValuePtr(v_name); char buf[1024]; sprintf_s(buf, 1024, "%s=", name); VALUE setterName = rb_enc_str_new(buf, strlen(buf), utf8_enc); int read = (int)!hasMethod(klass, v_name); int write = (int)!hasMethod(klass, setterName); if (read == 0 && write == 0) return; rb_attr(klass, rb_to_id(v_name), read, write, true); } void appendMethodAlias(VALUE klass, VALUE origin_field_name, VALUE name) { char buf[1024]; sprintf_s(buf, 1024, "%s=", StringValuePtr(name)); VALUE name_setter = rb_enc_str_new(buf, strlen(buf), utf8_enc); sprintf_s(buf, 1024, "%s=", StringValuePtr(origin_field_name)); VALUE origin_name_setter = rb_enc_str_new(buf, strlen(buf), utf8_enc); rb_alias(klass, rb_intern_str(name), rb_intern_str(origin_field_name)); rb_alias(klass, rb_intern_str(name_setter), rb_intern_str(origin_name_setter)); } inline bool isAccessorInitialized(VALUE& obj) { VALUE ai = rb_ivar_get(obj, g_id_accessor_initialized); return (ai == Qtrue); } inline bool isNodefineOriginal(VALUE& obj) { VALUE ret = rb_ivar_get(obj, g_id_nodefine_original_val); if (ret != Qnil) return ret == Qtrue; if (rb_respond_to(obj, g_id_nodefine_original_method)) return rb_funcall(obj, g_id_nodefine_original_method, 0, Qnil) == Qtrue; return true; } void defineFieldAccessor(VALUE/*class*/ klass, VALUE/*string array*/ fields, VALUE /* id array */ fieldIds // @field_name format ids ) { if (isAccessorInitialized(klass)) return;// check static klass::accessor_initialized int length = RARRAY_LEN(fields); bool nodef_orign = isNodefineOriginal(klass);// For transacd::model::base VALUE aliases; if (! nodef_orign) { aliases = getAliasMap(klass); if (aliases == Qnil) nodef_orign = true; } VALUE transfer_map = getTransferMap(klass); // Qnil|Hash{ID,ID|Array[ID]} for (int i = 0; i < length; ++i) { // get method name VALUE /* string */ name = rb_ary_entry(fields, i); if (transfer_map != Qnil) { ID id = rb_ary_entry(fieldIds, i); VALUE transfer_to = rb_hash_lookup2(transfer_map, id, Qnil); // if the name is in transfer_map, do not define the name and its alias. if (transfer_to != Qnil) continue; } // append accessor appendMethod(klass, name); // if original name is needed, append it if (! nodef_orign) { // Important! origin_field_name will be new alias name VALUE origin_field_name = rb_hash_lookup2(aliases, RB_TO_SYMBOL_WRAP(name), Qnil); if (origin_field_name != Qnil) appendMethodAlias(klass, name, origin_field_name); } } rb_ivar_set(klass, g_id_accessor_initialized, Qtrue); } VALUE recordToRubyArray(const fieldsBase& rec, int fetchmode, VALUE fields) { size_t size = rec.size(); if (fetchmode == FETCH_VAL_NUM) { VALUE vresult = rb_ary_new2(size); for (size_t i = 0; i < size; ++i) rb_ary_store(vresult, i, getFieldValue(rec[i])); return vresult; } VALUE vresult = rb_hash_new(); for (size_t i = 0; i < size; ++i) { VALUE val = getFieldValue(rec[i]); if (fetchmode & FETCH_VAL_NUM) rb_hash_aset(vresult, INT2FIX(i), val); rb_hash_aset(vresult, rb_ary_entry(fields, i), val); } return vresult; } VALUE recordToRubyClass(const fieldsBase& rec, VALUE klass, VALUE ctorArgs, VALUE fieldIds) { if (rec.isInvalidRecord()) return Qnil; VALUE* ctorArgsPtr = NULL; int ctorArgs_size = 0; if (ctorArgs != Qnil && (TYPE(ctorArgs) == T_ARRAY)) { ctorArgs_size = RARRAY_LEN(ctorArgs); ctorArgsPtr = RARRAY_PTR(ctorArgs); } VALUE vresult = rb_class_new_instance(ctorArgs_size, ctorArgsPtr, klass); setValuesToObject(rec, vresult, fieldIds, klass); return vresult; } inline int getFetchMode(VALUE& obj, int defautVelue = FETCH_RECORD_INTO) { VALUE fetchmode = rb_ivar_get(obj, g_id_fetchmode); if (fetchmode == Qnil) { fetchmode = INT2FIX(defautVelue); rb_ivar_set(obj, g_id_fetchmode, fetchmode); } return FIX2INT(fetchmode); } inline VALUE getFetchClass(VALUE& obj) { VALUE fetchClass = rb_ivar_get(obj, g_id_fetchClass); if (TYPE(fetchClass) == T_CLASS) return fetchClass; return Qnil; } SWIGINTERN VALUE _wrap_RecordsetOrTable_fetchClass_set(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; VALUE v_klass = Qnil; if (TYPE(argv[0]) == T_CLASS) v_klass = argv[0]; else if (TYPE(argv[0]) == T_STRING) { VALUE id_klass = rb_intern_str(argv[0]); if (rb_const_defined(rb_cObject, id_klass)) v_klass = rb_const_get(rb_cObject, id_klass); } if (v_klass != Qnil) { rb_ivar_set(self, g_id_fetchClass, v_klass); // clear field id cache (because if fetchClass changed, alias_map will be changed) clearFieldsCache(self); return v_klass; } rb_raise(rb_eArgError, "wrong arguments (not Class or not found such class name)"); return Qnil; } inline VALUE getCtorArgs(VALUE& obj) { VALUE ctorArgs = rb_ivar_get(obj, g_id_ctorArgs); if (TYPE(ctorArgs) == T_ARRAY) return ctorArgs; return Qnil; } SWIGINTERN VALUE _wrap_RecordsetOrTable_ctorArgs_set(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; if (TYPE(argv[0]) != T_ARRAY) { rb_raise(rb_eArgError, "wrong arguments (not array)"); } rb_ivar_set(self, g_id_ctorArgs, argv[0]); return argv[0]; } SWIGINTERN VALUE _wrap_table_setAlias(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 2, 2)) return Qnil; table* tb = selfPtr(self, tb); if (TYPE(argv[0]) != T_STRING || TYPE(argv[1]) != T_STRING) rb_raise(rb_eArgError, "param is not string."); tb->setAlias(StringValuePtr(argv[0]), StringValuePtr(argv[1])); clearFieldsCache(self); return Qnil; } SWIGINTERN VALUE _wrap_table_defineORMapMethod(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; table* tb = selfPtr(self, tb); if (TYPE(argv[0]) != T_CLASS) rb_raise(rb_eArgError, "param 1 class is not specified."); const fielddefs* fds = tb->fields().fieldDefs(); if (! isAccessorInitialized(argv[0])) { VALUE fields = getFieldsCache(self, *fds); VALUE fieldIds = getFieldIdsCache(self, *fds); defineFieldAccessor(argv[0], fields, fieldIds); } } SWIGINTERN VALUE _wrap_table_findAll(int argc, VALUE *argv, VALUE self) { table::eFindType arg2 = table::findForword; VALUE vresult; VALUE fields, fieldIds; VALUE fetchClass; VALUE ctorArgs; if (!check_param_count(argc, 0, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); if (argc == 1) { int val2 ; if (!obj2Integer(argv[0], val2)) return Qnil; arg2 = (table::eFindType)val2; } int fetchMode = getFetchMode(self, FETCH_VAL_ASSOC); if (fetchMode == FETCH_RECORD_INTO) fetchMode = FETCH_VAL_BOTH; if (fetchMode == FETCH_USR_CLASS) { fetchClass = getFetchClass(self); if (fetchClass == Qnil) rb_raise(rb_eArgError, "FETCH_USR_CLASS is specified but fetchClass is not specified."); ctorArgs = getCtorArgs(self); } else if (fetchMode == FETCH_OBJ) fetchClass = rb_class_new(rb_cObject); vresult = rb_ary_new(); try { fieldsBase& rec = arg1->fields(); if (fetchMode == FETCH_VAL_ASSOC || fetchMode == FETCH_VAL_BOTH) fields = getFieldsCache(self, *rec.fieldDefs()); if (fetchMode == FETCH_OBJ || fetchMode == FETCH_USR_CLASS) { fieldIds = getFieldIdsCache(self, *rec.fieldDefs()); if (!isAccessorInitialized(fetchClass)) { fields = getFieldsCache(self, *rec.fieldDefs()); defineFieldAccessor(fetchClass, fields, fieldIds); } } arg1->find(arg2); while (arg1->stat() == 0 || (arg1->stat() == STATUS_NOT_FOUND_TI && arg1->fields().isInvalidRecord())) { if (fetchMode == FETCH_OBJ || fetchMode == FETCH_USR_CLASS) rb_ary_push(vresult, recordToRubyClass(rec, fetchClass, ctorArgs, fieldIds)); else rb_ary_push(vresult, recordToRubyArray(rec, fetchMode, fields)); if (arg2 == table::findForword) arg1->findNext(); else arg1->findPrev(); } return vresult; } CATCH_BZS_AND_STD() fail: return vresult; } SWIGINTERN VALUE _wrap_table_lastFindDirection(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = 0 ; short_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short_td)((tdap::client::table const *)arg1)->lastFindDirection(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_statReasonOfFind(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = 0 ; short_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short_td)((tdap::client::table const *)arg1)->statReasonOfFind(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_bookmarkFindCurrent(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; bookmark_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); try { result = (bookmark_td)((tdap::client::table const *)arg1)->bookmarkFindCurrent(); } CATCH_BZS_AND_STD() vresult = SWIG_NewPointerObj((new bookmark_td(static_cast< const bookmark_td& >(result))), SWIGTYPE_p_BOOKMARK, SWIG_POINTER_OWN | 0); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_setFilter(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; ushort_td arg3 ; ushort_td arg4 ; bool arg5 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned short val3 ; int ecode3 = 0 ; unsigned short val4 ; int ecode4 = 0 ; bool val5 = true; int ecode5 = 0 ; if (!check_param_count(argc, 3, 4)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","setFilter", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); ecode3 = SWIG_AsVal_unsigned_SS_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ushort_td","setFilter", 3, argv[1] )); } arg3 = static_cast< ushort_td >(val3); ecode4 = SWIG_AsVal_unsigned_SS_short(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "ushort_td","setFilter", 4, argv[2] )); } arg4 = static_cast< ushort_td >(val4); if (argc == 4) { ecode5 = SWIG_AsVal_bool(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","setFilter", 5, argv[3] )); } arg5 = static_cast< bool >(val5); } { try { (arg1)->setFilter((_TCHAR const *)arg2,arg3,arg4,arg5); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } short getFieldIndex(table* tb, VALUE& v) { VALUE type = TYPE(v); if (type == T_STRING) return tb->fieldNumByName(StringValuePtr(v)); else if (type == T_FIXNUM) return NUM2LONG(v);// T_FIXNUM = MAX 31bit return -1; } short getFieldIndex(fieldsBase* fds, VALUE& v) { VALUE type = TYPE(v); if (type == T_STRING) return fds->indexByName(StringValuePtr(v)); else if (type == T_FIXNUM) return NUM2LONG(v);// T_FIXNUM = MAX 31bit return -1; } SWIGINTERN VALUE _wrap_table_fieldNumByName(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); short result = getFieldIndex(arg1, argv[0]); return SWIG_From_short(static_cast< short >(result)); } SWIGINTERN VALUE _wrap_table_getFVint(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); short index = getFieldIndex(arg1, argv[0]); int result = (int)(arg1)->getFVint(index); return SWIG_From_int(static_cast< int >(result)); } SWIGINTERN VALUE _wrap_table_getFV64(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); short index = getFieldIndex(arg1, argv[0]); __int64 result = (arg1)->getFV64(index); return SWIG_From_long_SS_long(static_cast< long long >(result)); } SWIGINTERN VALUE _wrap_table_getFVdbl(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); short index = getFieldIndex(arg1, argv[0]); double result = (double)(arg1)->getFVdbl(index); return SWIG_From_double(static_cast< double >(result)); } SWIGINTERN VALUE _wrap_table_getFVNull(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); short arg2 = getFieldIndex(arg1, argv[0]); bool result = arg1->getFVNull(arg2); return SWIG_From_bool(static_cast< bool >(result)); } SWIGINTERN VALUE _wrap_table_setFVNull(int argc, VALUE *argv, VALUE self) { bool arg3 ; if (!check_param_count(argc, 2, 2)) return Qnil; table* arg1 = selfPtr(self, arg1); short arg2 = getFieldIndex(arg1, argv[0]); if (!obj2Bool(argv[1], arg3)) return Qnil; arg1->setFVNull(arg2,arg3); return Qnil; } SWIGINTERN VALUE _wrap_table_getFVstr(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); short arg2 = getFieldIndex(arg1, argv[0]); const char* result = arg1->getFVstr(arg2); return rb_enc_str_new(result, strlen(result), utf8_enc); } SWIGINTERN VALUE _wrap_table_fields(int argc, VALUE *argv, VALUE self) { VALUE fields, fieldIds; VALUE fetchClass = Qnil; VALUE ctorArgs = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; table* arg1 = selfPtr(self, arg1); tdap::client::fields* result = &(arg1->fields()); int fetchMode = getFetchMode(self); if (fetchMode == FETCH_VAL_ASSOC || fetchMode == FETCH_VAL_BOTH) fields = getFieldsCache(self, *(result->fieldDefs())); if (fetchMode == FETCH_OBJ || fetchMode == FETCH_USR_CLASS) { if (fetchMode == FETCH_USR_CLASS) { fetchClass = getFetchClass(self); if (fetchClass == Qnil) rb_raise(rb_eArgError, "FETCH_USR_CLASS is specified but fetchClass is not specified."); ctorArgs = getCtorArgs(self); }else if (fetchMode == FETCH_OBJ) fetchClass = rb_class_new(rb_cObject); fieldIds = getFieldIdsCache(self, *(result->fieldDefs())); if (! isAccessorInitialized(fetchClass)) { fields = getFieldsCache(self, *(result->fieldDefs())); defineFieldAccessor(fetchClass, fields, fieldIds); } } switch (fetchMode) { case FETCH_RECORD_INTO: return SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fieldsBase, 0 | 0 ); case FETCH_OBJ: case FETCH_USR_CLASS: return recordToRubyClass(*result, fetchClass, ctorArgs, fieldIds); default: return recordToRubyArray(*result, fetchMode, fields); } } SWIGINTERN VALUE _wrap_table_getRecord(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; table* arg1 = selfPtr(self, arg1); try { tdap::client::fields* result = &(arg1->fields()); return SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fieldsBase, 0 | 0 ); } CATCH_BZS_AND_STD() fail: return Qnil; } /* The size parameter is required if set to binary data, */ SWIGINTERN VALUE _wrap_table_setFV(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 2, 3)) return Qnil; table* arg1 = selfPtr(self, arg1); short index = getFieldIndex(arg1, argv[0]); try { field fd = arg1->fields()[index]; int size = 0; if (argc == 3) if (!obj2Integer(argv[2], size)) return Qnil; setValue(argv[1], fd, size); } CATCH_BZS_AND_STD() return Qnil; } SWIGINTERN VALUE _wrap_table_getFVbin(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; table* arg1 = selfPtr(self, arg1); short index = getFieldIndex(arg1, argv[0]); uint_td size = 0; void * result = arg1->getFVbin(index, size); return rb_str_new((const char *)result, size); } SWIGINTERN VALUE _wrap_table_keyValueDescription(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR tmpbuf2[1024*8] ; _TCHAR *result = 0 ; VALUE vresult = Qnil; arg2 = tmpbuf2; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)bzs_table_keyValueDescription(arg1,arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_prepare(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; tdap::client::queryBase *arg2 = (tdap::client::queryBase *) 0 ; bool arg3 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 = false; int ecode3 = 0 ; preparedQuery *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__queryBase, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::queryBase const *","prepare", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::client::queryBase * >(argp2); if (argc == 2) { ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","prepare", 3, argv[1] )); } arg3 = static_cast< bool >(val3); } { try { result = (preparedQuery *)bzs_table_prepare__SWIG_0(arg1,(tdap::client::queryBase const *)arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_preparedQuery, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_setQuery(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; tdap::client::queryBase *arg2 = (tdap::client::queryBase *) 0 ; bool arg3 = false; void *argp2 = 0 ; int res2 = 0 ; bool val3 = false; int ecode3 = 0 ; preparedQuery *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__queryBase, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::queryBase const *","setQuery", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::client::queryBase * >(argp2); if (argc == 2) { ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","setQuery", 3, argv[1] )); } arg3 = static_cast< bool >(val3); } { try { result = (preparedQuery *)bzs_table_setQuery__SWIG_0(arg1,(tdap::client::queryBase const *)arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_preparedQuery, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_setPrepare(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; preparedQuery *arg2 = (preparedQuery *) 0 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_preparedQuery, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "preparedQuery *","setPrepare", 2, argv[0] )); } arg2 = reinterpret_cast< preparedQuery * >(argp2); { try { bzs_table_setPrepare(arg1,arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_table_getFVbits(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = 0x00; short index = -1; tdap::bitset *result = 0; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); index = getFieldIndex(arg1, argv[0]); { try { result = new bitset(arg1->getFV64(index)); } CATCH_BZS_AND_STD() vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__bitset, SWIG_POINTER_OWN); return vresult; } fail: Ruby_Format_OverloadedError( argc, 3, "getFVbits", " tdap::bitset * getFVbits(short index)\n" " tdap::bitset * getFVbits(_TCHAR const *fieldName)\n"); return Qnil; } SWIGINTERN VALUE _wrap_table_release(int argc, VALUE *argv, VALUE self) { tdap::client::table *arg1 = (tdap::client::table *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { bzs_table_release(arg1); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN void delete_bzs_table(tdap::client::table *self){ if (!g_vPtrList.remove(self)) { if (tdap::client::nsdatabase::testTablePtr(self)) self->release(); } } SWIGINTERN void free_bzs_table(tdap::client::table *arg1) { delete_bzs_table(arg1); } static swig_class SwigClassQueryBase; SWIGINTERN VALUE _wrap_queryBase_clearSeekKeyValues(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->clearSeekKeyValues(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_clearSelectFields(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->clearSelectFields(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_addSeekKeyValue(int nargs, VALUE *args, VALUE self) { long long lv = 0; double dv = 0; int res = 0; bool reset = false; SWIG_CHAR buf; tdap::client::queryBase *q = 0; if (!check_param_count(nargs, 1, 2)) return Qnil; q = selfPtr(self, q); try { VALUE type = TYPE(args[0]); if ((type == T_FIXNUM) || (type == T_BIGNUM)){ res = SWIG_AsVal_long_SS_long(args[0], &lv); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "__int64", "addSeekKeyValue", 2, args[0])); } } else if (type == T_STRING){ res = SWIG_AsCharPtrAndSize(args[0], &buf.str, NULL, &buf.alloc); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "char *const", "addSeekKeyValue", 2, args[0])); } } else if (type == T_FLOAT){ res = SWIG_AsVal_double(args[0], &dv); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "double", "addSeekKeyValue", 2, args[0])); } } else goto fail2; if (nargs > 1) { res = SWIG_AsVal_bool(args[1], &reset); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bool", "addSeekKeyValue", 3, args[1])); } } if ((type == T_FIXNUM) || (type == T_BIGNUM)) q->addSeekKeyValue(lexical_cast(lv).c_str(), reset); else if (type == T_STRING) q->addSeekKeyValue(buf.str, reset); else if (type == T_FLOAT) q->addSeekKeyValue(lexical_cast(dv).c_str(), reset); } CATCH_BZS_AND_STD() return Qnil; fail: return Qnil; fail2: Ruby_Format_OverloadedError(nargs + 1, 5, "queryBase.addSeekKeyValue", " void queryBase.addSeekKeyValue(const T value, bool reset)\n" " void queryBase.addSeekKeyValue(const T value)\n"); return Qnil; } SWIGINTERN VALUE _wrap_queryBase_addSeekBookmark(int nargs, VALUE *args, VALUE self) { bookmark_td *bm = 0; int len = 0; int res; bool reset = false; tdap::client::queryBase *q = 0; if (!check_param_count(nargs, 2, 3)) return Qnil; q = selfPtr(self, q); try { void* bm_tmp = 0; res = SWIG_ConvertPtr(args[0], &bm_tmp, SWIGTYPE_p_BOOKMARK, 0); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bookmark_td *", "addSeekBookmark", 2, args[0])); } bm = reinterpret_cast< bookmark_td* >(bm_tmp); res = SWIG_AsVal_int(args[1], &len); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "int", "addSeekBookmark", 3, args[1])); } if (nargs > 2) { res = SWIG_AsVal_bool(args[2], &reset); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bool", "addSeekBookmark", 4, args[2])); } } q->addSeekBookmark(*bm, len, reset); } CATCH_BZS_AND_STD() return Qnil; fail: return Qnil; fail2: Ruby_Format_OverloadedError(nargs + 1, 5, "queryBase.addSeekBookmark", " void queryBase.addSeekBookmark(const T value, bool reset)\n" " void queryBase.addSeekBookmark(const T value)\n"); return Qnil; } SWIGINTERN VALUE _wrap_queryBase_reserveSeekKeyValueSize(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; size_t arg2 ; size_t val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_size_t(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","reserveSeekKeyValueSize", 2, argv[0] )); } arg2 = static_cast< size_t >(val2); { try { (arg1)->reserveSeekKeyValueSize(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_queryString__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; bool arg3 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","queryString", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","queryString", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { arg1->queryString((_TCHAR const *)arg2,arg3); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_queryBase_queryString__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","queryString", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { arg1->queryString((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_queryBase_queryString(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__queryBase, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_queryBase_queryString__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__queryBase, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_queryBase_queryString__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "queryBase.queryString", " tdap::client::queryBase & queryBase.queryString(_TCHAR const *str, bool autoEscape)\n" " tdap::client::queryBase & queryBase.queryString(_TCHAR const *str)\n"); return Qnil; } /* Document-method: Transactd::queryBase.reject call-seq: reject(v) -> queryBase Iterate thru each element in the queryBase and reject those that fail a condition returning a new queryBase. A block must be provided. */ SWIGINTERN VALUE _wrap_queryBase_reject(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","reject", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { arg1->reject(arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_limit(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","limit", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { arg1->limit(arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_direction(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; tdap::client::table::eFindType arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "tdap::client::table::eFindType","direction", 2, argv[0] )); } arg2 = static_cast< tdap::client::table::eFindType >(val2); { try { arg1->direction(arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_all(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { arg1->all(); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_optimize(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; tdap::client::queryBase::eOptimize arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "tdap::client::queryBase::eOptimize","optimize", 2, argv[0] )); } arg2 = static_cast< tdap::client::queryBase::eOptimize >(val2); { try { arg1->optimize(arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_bookmarkAlso(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","bookmarkAlso", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { arg1->bookmarkAlso(arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_toString(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)((tdap::client::queryBase const *)arg1)->toString(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_getDirection(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; tdap::client::table::eFindType result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::table::eFindType)((tdap::client::queryBase const *)arg1)->getDirection(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_getReject(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::client::queryBase const *)arg1)->getReject(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_getLimit(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::client::queryBase const *)arg1)->getLimit(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_isAll(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::queryBase const *)arg1)->isAll(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_getJoinKeySize(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::client::queryBase const *)arg1)->getJoinKeySize(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_getOptimize(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; tdap::client::queryBase::eOptimize result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::queryBase::eOptimize)((tdap::client::queryBase const *)arg1)->getOptimize(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_isBookmarkAlso(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::queryBase const *)arg1)->isBookmarkAlso(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_selectCount(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)((tdap::client::queryBase const *)arg1)->selectCount(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_getSelect(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","getSelect", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { result = (_TCHAR *)((tdap::client::queryBase const *)arg1)->getSelect(arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_whereTokens(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)((tdap::client::queryBase const *)arg1)->whereTokens(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_getWhereToken(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","getWhereToken", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { result = (_TCHAR *)((tdap::client::queryBase const *)arg1)->getWhereToken(arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_setWhereToken(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; short arg2 ; _TCHAR *arg3 = (_TCHAR *) 0 ; short val2 ; int ecode2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","setWhereToken", 2, argv[0] )); } arg2 = static_cast< short >(val2); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","setWhereToken", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3); { try { (arg1)->setWhereToken(arg2,(_TCHAR const *)arg3); } CATCH_BZS_AND_STD() } if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; fail: if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; } SWIGINTERN VALUE _wrap_queryBase_reverseAliasName(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","reverseAliasName", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","reverseAliasName", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3); { try { (arg1)->reverseAliasName((_TCHAR const *)arg2,(_TCHAR const *)arg3); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; } SWIGINTERN VALUE _wrap_queryBase_joinKeySize(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; tdap::client::queryBase *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","joinKeySize", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (tdap::client::queryBase *) &(arg1)->joinKeySize(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__queryBase, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_stopAtLimit(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","stopAtLimit", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { arg1->stopAtLimit(arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_isStopAtLimit(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::queryBase const *)arg1)->isStopAtLimit(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_queryBase_isSeekByBookmarks(int argc, VALUE *argv, VALUE self) { tdap::client::queryBase *arg1 = (tdap::client::queryBase *) 0; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::queryBase const *)arg1)->isSeekByBookmarks(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } static swig_class SwigClassQuery; SWIGINTERN VALUE _wrap_query_reset(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { arg1->reset(); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_query_select(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = 0x00; const _TCHAR* fdn[11]={0}; if (!check_param_count(argc, 0, 12)) return Qnil; arg1 = selfPtr(self, arg1); //Get key field names { int alloc = 0; char* buf = NULL; for (int i=0;i(buf); } } { try { arg1->select(fdn[0], fdn[1], fdn[2], fdn[3], fdn[4], fdn[5], fdn[6], fdn[7], fdn[8], fdn[9], fdn[10]); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_query_whereIsNull(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","whereIsNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::query *) &(arg1)->whereIsNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_query_whereIsNotNull(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","whereIsNotNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::query *) &(arg1)->whereIsNotNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_query_andIsNull(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","andIsNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::query *) &(arg1)->andIsNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_query_andIsNotNull(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","andIsNotNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::query *) &(arg1)->andIsNotNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_query_orIsNull(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","orIsNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::query *) &(arg1)->orIsNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_query_orIsNotNull(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","orIsNotNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::query *) &(arg1)->orIsNotNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_query_segmentsForInValue(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; tdap::client::query *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","segmentsForInValue", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (tdap::client::query *) &(arg1)->segmentsForInValue(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__query, 0 | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_query_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_query_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__query); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_query(int argc, VALUE *argv, VALUE self) { tdap::client::query *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::query *)new_bzs_query(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void delete_bzs_query(tdap::client::query *self){ self->release(); } SWIGINTERN void free_bzs_query(tdap::client::query *arg1) { delete_bzs_query(arg1); } SWIGINTERN VALUE _wrap_query_where(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; char *arg4 = (char *) 0 ; int res2 ; int res3; SWIG_CHAR buf2; SWIG_CHAR buf3; if (!check_param_count(argc, 3, 3)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","where<(p._TCHAR)>", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2.str); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","where<(p._TCHAR)>", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3.str); { try { VALUE type = TYPE(argv[2]); if ((type == T_FIXNUM) || (type == T_BIGNUM)){ long long v = 0; int ecode = SWIG_AsVal_long_SS_long(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","where", 3, argv[2])); } arg1->where(arg2, arg3, v); } else if (type == T_STRING){ SWIG_CHAR buf4; int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc); if (!SWIG_IsOK(ret)) { SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","where", 3, argv[2])); } arg1->where(arg2, arg3, buf4.str); } else if (type == T_FLOAT){ double v = 0; int ecode = SWIG_AsVal_double(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","where", 3, argv[2])); } arg1->where(arg2, arg3, v); } else{ SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "", "__int64 or char *const or double","where", 3, argv[2])); } } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_query_and_(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; char *arg4 = (char *) 0 ; int res2 ; int res3 ; SWIG_CHAR buf2; SWIG_CHAR buf3; if (!check_param_count(argc, 3, 3)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","and_<(p._TCHAR)>", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2.str); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","and_<(p._TCHAR)>", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3.str); { try { VALUE type = TYPE(argv[2]); if ((type == T_FIXNUM) || (type == T_BIGNUM)){ long long v = 0; int ecode = SWIG_AsVal_long_SS_long(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","and_", 3, argv[2])); } arg1->and_(arg2, arg3, v); } else if (type == T_STRING){ SWIG_CHAR buf4; int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc); if (!SWIG_IsOK(ret)) { SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","and_", 3, argv[2])); } arg1->and_(arg2, arg3, buf4.str); } else if (type == T_FLOAT){ double v = 0; int ecode = SWIG_AsVal_double(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","and_", 3, argv[2])); } arg1->and_(arg2, arg3, v); } else{ SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "", "__int64 or char *const or double","and_", 3, argv[2])); } } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_query_or_(int argc, VALUE *argv, VALUE self) { tdap::client::query *arg1 = (tdap::client::query *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; char *arg4 = (char *) 0 ; int res2 ; int res3; SWIG_CHAR buf2; SWIG_CHAR buf3; if (!check_param_count(argc, 3, 3)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","or_<(p._TCHAR)>", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2.str); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","or_<(p._TCHAR)>", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3.str); { try { VALUE type = TYPE(argv[2]); if ((type == T_FIXNUM) || (type == T_BIGNUM)){ long long v = 0; int ecode = SWIG_AsVal_long_SS_long(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","or_", 3, argv[2])); } arg1->or_(arg2, arg3, v); } else if (type == T_STRING){ SWIG_CHAR buf4; int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc); if (!SWIG_IsOK(ret)) { SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","or_", 3, argv[2])); } arg1->or_(arg2, arg3, buf4.str); } else if (type == T_FLOAT){ double v = 0; int ecode = SWIG_AsVal_double(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","or_", 3, argv[2])); } arg1->or_(arg2, arg3, v); } else{ SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "", "__int64 or char *const or double","or_", 3, argv[2])); } } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_query_in(int nargs, VALUE *args, VALUE self) { tdap::client::query *arg1 = 0x00 ; if (!check_param_count(nargs, 0, 8)) return Qnil; arg1 = selfPtr(self, arg1); // addSeekKeyValues { for (int i = 0; i < nargs; ++i){ VALUE type = TYPE(args[i]); if ((type == T_FIXNUM) || (type == T_BIGNUM)){ long long v = 0; int ecode = SWIG_AsVal_long_SS_long(args[i], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","in", i+1, args[i])); } arg1->addSeekKeyValue(lexical_cast(v).c_str()); } else if (type == T_STRING){ SWIG_CHAR buf; int ret = SWIG_AsCharPtrAndSize(args[i], &buf.str, NULL, &buf.alloc); if (!SWIG_IsOK(ret)) { SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","in", i+1, args[i])); } arg1->addSeekKeyValue(buf.str); } else if (type == T_FLOAT){ double v = 0; int ecode = SWIG_AsVal_double(args[i], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","in", i+1, args[i])); } arg1->addSeekKeyValue(lexical_cast(v).c_str()); } else{ SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "", "__int64 or char *const or double","in", i+1, args[i])); } } } return self; fail: return Qnil; } static swig_class SwigClassBinlogPos; SWIGINTERN VALUE _wrap_binlogPos_filename_get(int argc, VALUE *argv, VALUE self) { tdap::client::binlogPos *arg1 = (tdap::client::binlogPos *) 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char *) ((arg1)->filename); { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_binlogPos_gtid_set(int argc, VALUE *argv, VALUE self) { tdap::client::binlogPos *arg1 = (tdap::client::binlogPos *) 0 ; char *arg2 = (char *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","gtid", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->setGtid((char const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_binlogPos_gtid_get(int argc, VALUE *argv, VALUE self) { tdap::client::binlogPos *arg1 = (tdap::client::binlogPos *) 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char *) ((arg1)->gtid); { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_binlogPos_pos_get(int argc, VALUE *argv, VALUE self) { tdap::client::binlogPos *arg1 = (tdap::client::binlogPos *) 0 ; unsigned long long result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (unsigned long long) ((arg1)->pos); vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_binlogPos_type_get(int argc, VALUE *argv, VALUE self) { tdap::client::binlogPos *arg1 = (tdap::client::binlogPos *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (short) ((arg1)->type); vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_binlogPos_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_binlogPos_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__binlogPos); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_binlogPos(int argc, VALUE *argv, VALUE self) { tdap::client::binlogPos *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::binlogPos *)new tdap::client::binlogPos(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_binlogPos(tdap::client::binlogPos *arg1) { delete arg1; } static swig_class SwigClassNsdatabase; #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_nsdatabase_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_nsdatabase_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__nsdatabase); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_nsdatabase(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::nsdatabase *)new tdap::client::nsdatabase(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_enableTrn(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::client::nsdatabase const *)arg1)->enableTrn(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_stat(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)((tdap::client::nsdatabase const *)arg1)->stat(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_clientID(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; uchar_td *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (uchar_td *)((tdap::client::nsdatabase const *)arg1)->clientID(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_openTableCount(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)((tdap::client::nsdatabase const *)arg1)->openTableCount(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_uri(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)((tdap::client::nsdatabase const *)arg1)->uri(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_uriMode(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::nsdatabase const *)arg1)->uriMode(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_lockWaitCount(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)((tdap::client::nsdatabase const *)arg1)->lockWaitCount(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_lockWaitTime(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)((tdap::client::nsdatabase const *)arg1)->lockWaitTime(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_setLockWaitCount(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","setLockWaitCount", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { (arg1)->setLockWaitCount(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_setLockWaitTime(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","setLockWaitTime", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { (arg1)->setLockWaitTime(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_setLocalSharing(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setLocalSharing", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { (arg1)->setLocalSharing(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_dropTable(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","dropTable", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (arg1)->dropTable((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_rename(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","rename", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","rename", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3); { try { (arg1)->rename((_TCHAR const *)arg2,(_TCHAR const *)arg3); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_swapTablename(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","swapTablename", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","swapTablename", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3); { try { (arg1)->swapTablename((_TCHAR const *)arg2,(_TCHAR const *)arg3); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_beginTrn__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","beginTrn", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { (arg1)->beginTrn(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_beginTrn__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->beginTrn(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_beginTrn(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nsdatabase, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_nsdatabase_beginTrn__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nsdatabase, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_nsdatabase_beginTrn__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "nsdatabase.beginTrn", " void nsdatabase.beginTrn(short bias)\n" " void nsdatabase.beginTrn()\n"); return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_endTrn(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->endTrn(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_abortTrn(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->abortTrn(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_beginSnapshot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; tdap::client::nsdatabase *arg1 = 0x00; short arg2; short val2; binlogPos* bpos = new binlogPos(); int _v; void *vptr = 0; int res; VALUE vresult = Qnil; argc = nargs + 1; argv[0] = self; if (argc > 3 || argc < 1) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } // check arg1 (nsdatabase) res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nsdatabase, 0); _v = SWIG_CheckState(res); if (! _v) SWIG_fail; if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "tdap::client::nsdatabase *","beginSnapshot", 1, argv[0] )); } // cast arg1 arg1 = reinterpret_cast< tdap::client::nsdatabase * >(vptr); // call beginSnapshot() if (argc == 1) { try { (arg1)->beginSnapshot(); } CATCH_BZS_AND_STD() vresult = SWIG_NewPointerObj(SWIG_as_voidptr(bpos), SWIGTYPE_p_bzs__binlogPos, 0 | 0 ); return vresult; } // check arg2 if (argc == 2) { int res = SWIG_AsVal_short(argv[1], &val2); _v = SWIG_CheckState(res); if (! _v) SWIG_fail; if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "short","beginSnapshot", 2, argv[1] )); } // cast arg2 arg2 = static_cast< short >(val2); // call beginSnapshot(short bias) try { if (arg2 == CONSISTENT_READ_WITH_BINLOG_POS) (arg1)->beginSnapshot(arg2, bpos); else (arg1)->beginSnapshot(arg2, NULL); } CATCH_BZS_AND_STD() vresult = SWIG_NewPointerObj(SWIG_as_voidptr(bpos), SWIGTYPE_p_bzs__binlogPos, 0 | 0 ); return vresult; } fail: Ruby_Format_OverloadedError( argc, 3, "nsdatabase.beginSnapshot", " void nsdatabase.beginSnapshot(short bias)\n" " void nsdatabase.beginSnapshot()\n"); return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_endSnapshot(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->endSnapshot(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_trxIsolationServer(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = arg1->trxIsolationServer(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_long(result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_trxLockWaitTimeoutServer(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = arg1->trxLockWaitTimeoutServer(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_long(result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_statMsg(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR arg2[1024] = {0}; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { arg1->tdapErr((HWND)0, arg2); result = arg2; } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_useLongFilename(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)(arg1)->useLongFilename(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_setUseLongFilename(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setUseLongFilename", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { (arg1)->setUseLongFilename(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_setUseTransactd(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)(arg1)->setUseTransactd(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_isTransactdUri(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","isTransactdUri", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (bool)(arg1)->isTransactdUri((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_isUseTransactd(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)(arg1)->isUseTransactd(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_readDatabaseDirectory(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR arg2[255] = {0} ; uchar_td arg3 = 255 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->readDatabaseDirectory(arg2, arg3); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(arg2, strlen(arg2), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_connect__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; bool arg3 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool val3 ; int ecode3 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","connect", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","connect", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { result = (bool)(arg1)->connect((_TCHAR const *)arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_connect__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","connect", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (bool)(arg1)->connect((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_connect(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nsdatabase, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_nsdatabase_connect__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nsdatabase, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_nsdatabase_connect__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "nsdatabase.connect", " bool nsdatabase.connect(_TCHAR const *uri, bool newConnection)\n" " bool nsdatabase.connect(_TCHAR const *uri)\n"); return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_disconnect__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","disconnect", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (bool)(arg1)->disconnect((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_disconnect__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)(arg1)->disconnect(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_disconnect(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nsdatabase, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_nsdatabase_disconnect__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__nsdatabase, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_nsdatabase_disconnect__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "nsdatabase.disconnect", " bool nsdatabase.disconnect(_TCHAR const *uri)\n" " bool nsdatabase.disconnect()\n"); return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_disconnectForReconnectTest(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)(arg1)->disconnectForReconnectTest(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_reconnect(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)(arg1)->reconnect(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_isAssociate(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::nsdatabase const *)arg1)->isAssociate(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_getCreateViewSql(int argc, VALUE *argv, VALUE self) { tdap::client::nsdatabase *arg1 = (tdap::client::nsdatabase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; uint_td n = 65000; char* p = new char[n]; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","getCreateViewSql", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (char *)(arg1)->getCreateViewSql((_TCHAR const *)arg2,p,&n); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; delete [] p; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; delete [] p; return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_trnsactionFlushWaitStatus(int argc, VALUE *argv, VALUE self) { bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (bool)tdap::client::nsdatabase::trnsactionFlushWaitStatus(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_setExecCodePage(int argc, VALUE *argv, VALUE self) { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","tdap::client::nsdatabase::setExecCodePage", 1, argv[0] )); } arg1 = static_cast< unsigned int >(val1); { try { tdap::client::nsdatabase::setExecCodePage(arg1); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_execCodePage(int argc, VALUE *argv, VALUE self) { unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (unsigned int)tdap::client::nsdatabase::execCodePage(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_enableAutoReconnect(int argc, VALUE *argv, VALUE self) { bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (bool)tdap::client::nsdatabase::enableAutoReconnect(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_setEnableAutoReconnect(int argc, VALUE *argv, VALUE self) { bool arg1 ; bool val1 ; int ecode1 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_bool(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "bool","tdap::client::nsdatabase::setEnableAutoReconnect", 1, argv[0] )); } arg1 = static_cast< bool >(val1); { try { tdap::client::nsdatabase::setEnableAutoReconnect(arg1); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_nsdatabase_setCheckTablePtr(int argc, VALUE *argv, VALUE self) { bool arg1 ; bool val1 ; int ecode1 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_bool(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "bool","tdap::client::nsdatabase::setCheckTablePtr", 1, argv[0] )); } arg1 = static_cast< bool >(val1); { try { tdap::client::nsdatabase::setCheckTablePtr(arg1); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } static swig_class SwigClassDatabase; SWIGINTERN VALUE _wrap_database_dbDef(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; tdap::client::dbdef *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::dbdef *)((tdap::client::database const *)arg1)->dbDef(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__dbdef, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_rootDir(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)((tdap::client::database const *)arg1)->rootDir(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_setRootDir(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","setRootDir", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (arg1)->setRootDir((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_database_optionalData(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; void *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (void *)((tdap::client::database const *)arg1)->optionalData(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_setOptionalData(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; void *arg2 = (void *) 0 ; int res2 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","setOptionalData", 2, argv[0] )); } { try { (arg1)->setOptionalData(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_tableReadOnly(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::database const *)arg1)->tableReadOnly(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_setTableReadOnly(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setTableReadOnly", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { (arg1)->setTableReadOnly(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_open__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; short arg3 ; short arg4 ; _TCHAR *arg5 = (_TCHAR *) 0 ; _TCHAR *arg6 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; short val3 ; int ecode3 = 0 ; short val4 ; int ecode4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; int res6 ; char *buf6 = 0 ; int alloc6 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 5, 5)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","open", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","open", 3, argv[1] )); } arg3 = static_cast< short >(val3); ecode4 = SWIG_AsVal_short(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "short","open", 4, argv[2] )); } arg4 = static_cast< short >(val4); res5 = SWIG_AsCharPtrAndSize(argv[3], &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "_TCHAR const *","open", 5, argv[3] )); } arg5 = reinterpret_cast< _TCHAR * >(buf5); res6 = SWIG_AsCharPtrAndSize(argv[4], &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "_TCHAR const *","open", 6, argv[4] )); } arg6 = reinterpret_cast< _TCHAR * >(buf6); { try { result = (bool)(arg1)->open((_TCHAR const *)arg2,arg3,arg4,(_TCHAR const *)arg5,(_TCHAR const *)arg6); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc5 == SWIG_NEWOBJ) delete[] buf5; if (alloc6 == SWIG_NEWOBJ) delete[] buf6; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc5 == SWIG_NEWOBJ) delete[] buf5; if (alloc6 == SWIG_NEWOBJ) delete[] buf6; return Qnil; } SWIGINTERN VALUE _wrap_database_open__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; short arg3 ; short arg4 ; _TCHAR *arg5 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; short val3 ; int ecode3 = 0 ; short val4 ; int ecode4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 4, 4)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","open", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","open", 3, argv[1] )); } arg3 = static_cast< short >(val3); ecode4 = SWIG_AsVal_short(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "short","open", 4, argv[2] )); } arg4 = static_cast< short >(val4); res5 = SWIG_AsCharPtrAndSize(argv[3], &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "_TCHAR const *","open", 5, argv[3] )); } arg5 = reinterpret_cast< _TCHAR * >(buf5); { try { result = (bool)(arg1)->open((_TCHAR const *)arg2,arg3,arg4,(_TCHAR const *)arg5); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc5 == SWIG_NEWOBJ) delete[] buf5; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc5 == SWIG_NEWOBJ) delete[] buf5; return Qnil; } SWIGINTERN VALUE _wrap_database_open__SWIG_2(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; short arg3 ; short arg4 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; short val3 ; int ecode3 = 0 ; short val4 ; int ecode4 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 3, 3)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","open", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","open", 3, argv[1] )); } arg3 = static_cast< short >(val3); ecode4 = SWIG_AsVal_short(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "short","open", 4, argv[2] )); } arg4 = static_cast< short >(val4); { try { result = (bool)(arg1)->open((_TCHAR const *)arg2,arg3,arg4); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_database_open__SWIG_3(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; short arg3 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; short val3 ; int ecode3 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","open", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","open", 3, argv[1] )); } arg3 = static_cast< short >(val3); { try { result = (bool)(arg1)->open((_TCHAR const *)arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_database_open__SWIG_4(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","open", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (bool)(arg1)->open((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_database_open(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[7]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 7) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_database_open__SWIG_4(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_database_open__SWIG_3(nargs, args, self); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_short(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_database_open__SWIG_2(nargs, args, self); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_short(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_database_open__SWIG_1(nargs, args, self); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_short(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[5], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_database_open__SWIG_0(nargs, args, self); } } } } } } } fail: Ruby_Format_OverloadedError( argc, 7, "database.open", " bool database.open(_TCHAR const *uri, short schemaType, short mode, _TCHAR const *dir, _TCHAR const *ownerName)\n" " bool database.open(_TCHAR const *uri, short schemaType, short mode, _TCHAR const *dir)\n" " bool database.open(_TCHAR const *uri, short schemaType, short mode)\n" " bool database.open(_TCHAR const *uri, short schemaType)\n" " bool database.open(_TCHAR const *uri)\n"); return Qnil; } /* Document-method: Transactd::database.clone call-seq: clone -> database Create a duplicate of the class. */ SWIGINTERN VALUE _wrap_database_clone(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; tdap::client::database *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::database *)(arg1)->clone(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__database, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_createTable(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; char *arg2 = (char *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","createTable", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); { try { result = (bool)(arg1)->createTable((char const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_database_execSql(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; char *arg2 = (char *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","execSql", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); { try { result = (bool)(arg1)->execSql((char const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_database_getSqlStringForCreateTable(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; uint_td n = 65000; char* p = new char[n]; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","getSqlStringForCreateTable", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (char *)(arg1)->getSqlStringForCreateTable((_TCHAR const *)arg2, p, &n); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; delete [] p; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; delete [] p; return Qnil; } SWIGINTERN VALUE _wrap_database_create__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; short arg3 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; short val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","create", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","create", 3, argv[1] )); } arg3 = static_cast< short >(val3); { try { (arg1)->create((_TCHAR const *)arg2,arg3); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_database_create__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","create", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (arg1)->create((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_database_create(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_database_create__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_database_create__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "create.new", " create.new(_TCHAR const *uri, short type)\n" " create.new(_TCHAR const *uri)\n"); return Qnil; } SWIGINTERN VALUE _wrap_database_drop(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 0, 1)) return Qnil; arg1 = selfPtr(self, arg1); if (argc == 1) { res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","drop", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); } { try { (arg1)->drop(arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_database_dropTable(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","dropTable", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (arg1)->dropTable((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_database_close__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0; bool arg2; bool val2; int ecode2 = 0; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "bool", "close", 2, argv[0])); } arg2 = static_cast< bool >(val2); { try { (arg1)->close(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_close__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->close(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_close(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii - 1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_database_close__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_database_close__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError(argc, 3, "database.close", " void database.close(bool withDropDefaultSchema)\n" " void database.close()\n"); return Qnil; } SWIGINTERN VALUE _wrap_database_aclReload(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)arg1->aclReload(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_continuous__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; char_td arg2 ; bool arg3 ; char val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char_td","continuous", 2, argv[0] )); } arg2 = static_cast< char_td >(val2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","continuous", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { result = (short)(arg1)->continuous(arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_continuous__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; char_td arg2 ; char val2 ; int ecode2 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char_td","continuous", 2, argv[0] )); } arg2 = static_cast< char_td >(val2); { try { result = (short)(arg1)->continuous(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_continuous__SWIG_2(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)(arg1)->continuous(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_continuous(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_database_continuous__SWIG_2(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_char(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_database_continuous__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_char(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_database_continuous__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "database.continuous", " short database.continuous(char_td op, bool inclideRepfile)\n" " short database.continuous(char_td op)\n" " short database.continuous()\n"); return Qnil; } SWIGINTERN VALUE _wrap_database_assignSchemaData(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; tdap::client::dbdef *arg2 = (tdap::client::dbdef *) 0 ; void *argp2 = 0 ; int res2 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__dbdef, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::dbdef *","assignSchemaData", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::client::dbdef * >(argp2); { try { result = (short)(arg1)->assignSchemaData(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_copyTableData__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; tdap::client::table *arg2 = (tdap::client::table *) 0 ; tdap::client::table *arg3 = (tdap::client::table *) 0 ; bool arg4 ; short arg5 ; int arg6 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; short val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 5, 5)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__table, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::table *","copyTableData", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::client::table * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_bzs__table, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "tdap::client::table *","copyTableData", 3, argv[1] )); } arg3 = reinterpret_cast< tdap::client::table * >(argp3); ecode4 = SWIG_AsVal_bool(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","copyTableData", 4, argv[2] )); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_short(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "short","copyTableData", 5, argv[3] )); } arg5 = static_cast< short >(val5); ecode6 = SWIG_AsVal_int(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","copyTableData", 6, argv[4] )); } arg6 = static_cast< int >(val6); { try { result = (short)(arg1)->copyTableData(arg2,arg3,arg4,arg5,arg6); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_copyTableData__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; tdap::client::table *arg2 = (tdap::client::table *) 0 ; tdap::client::table *arg3 = (tdap::client::table *) 0 ; bool arg4 ; short arg5 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; short val5 ; int ecode5 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 4, 4)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__table, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::table *","copyTableData", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::client::table * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_bzs__table, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "tdap::client::table *","copyTableData", 3, argv[1] )); } arg3 = reinterpret_cast< tdap::client::table * >(argp3); ecode4 = SWIG_AsVal_bool(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","copyTableData", 4, argv[2] )); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_short(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "short","copyTableData", 5, argv[3] )); } arg5 = static_cast< short >(val5); { try { result = (short)(arg1)->copyTableData(arg2,arg3,arg4,arg5); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_copyTableData__SWIG_2(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; tdap::client::table *arg2 = (tdap::client::table *) 0 ; tdap::client::table *arg3 = (tdap::client::table *) 0 ; bool arg4 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 3, 3)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__table, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::table *","copyTableData", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::client::table * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_bzs__table, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "tdap::client::table *","copyTableData", 3, argv[1] )); } arg3 = reinterpret_cast< tdap::client::table * >(argp3); ecode4 = SWIG_AsVal_bool(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","copyTableData", 4, argv[2] )); } arg4 = static_cast< bool >(val4); { try { result = (short)(arg1)->copyTableData(arg2,arg3,arg4); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_copyTableData(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[7]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 7) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_bzs__table, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_bzs__table, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_database_copyTableData__SWIG_2(nargs, args, self); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_bzs__table, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_bzs__table, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_short(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_database_copyTableData__SWIG_1(nargs, args, self); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_bzs__table, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_bzs__table, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_short(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_database_copyTableData__SWIG_0(nargs, args, self); } } } } } } } fail: Ruby_Format_OverloadedError( argc, 7, "database.copyTableData", " short database.copyTableData(tdap::client::table *dest, tdap::client::table *src, bool turbo, short keyNum, int maxSkip)\n" " short database.copyTableData(tdap::client::table *dest, tdap::client::table *src, bool turbo, short keyNum)\n" " short database.copyTableData(tdap::client::table *dest, tdap::client::table *src, bool turbo)\n"); return Qnil; } SWIGINTERN VALUE _wrap_database_convertTable__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; short arg2 ; bool arg3 ; _TCHAR *arg4 = (_TCHAR *) 0 ; short val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; if (!check_param_count(argc, 3, 3)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","convertTable", 2, argv[0] )); } arg2 = static_cast< short >(val2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","convertTable", 3, argv[1] )); } arg3 = static_cast< bool >(val3); res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "_TCHAR const *","convertTable", 4, argv[2] )); } arg4 = reinterpret_cast< _TCHAR * >(buf4); { try { (arg1)->convertTable(arg2,arg3,(_TCHAR const *)arg4); } CATCH_BZS_AND_STD() } if (alloc4 == SWIG_NEWOBJ) delete[] buf4; return Qnil; fail: if (alloc4 == SWIG_NEWOBJ) delete[] buf4; return Qnil; } SWIGINTERN VALUE _wrap_database_convertTable__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; short arg2 ; bool arg3 ; short val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","convertTable", 2, argv[0] )); } arg2 = static_cast< short >(val2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","convertTable", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { (arg1)->convertTable(arg2,arg3); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_convertTable(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(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_database_convertTable__SWIG_1(nargs, args, self); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_database_convertTable__SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "database.convertTable", " void database.convertTable(short tableIndex, bool turbo, _TCHAR const *ownerName)\n" " void database.convertTable(short tableIndex, bool turbo)\n"); return Qnil; } SWIGINTERN VALUE _wrap_database_existsTableFile__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; short arg2 ; _TCHAR *arg3 = (_TCHAR *) 0 ; short val2 ; int ecode2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","existsTableFile", 2, argv[0] )); } arg2 = static_cast< short >(val2); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","existsTableFile", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3); { try { result = (bool)(arg1)->existsTableFile(arg2,(_TCHAR const *)arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return vresult; fail: if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; } SWIGINTERN VALUE _wrap_database_existsTableFile__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","existsTableFile", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { result = (bool)(arg1)->existsTableFile(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_existsTableFile(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_database_existsTableFile__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_database_existsTableFile__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "database.existsTableFile", " bool database.existsTableFile(short tableIndex, _TCHAR const *ownerName)\n" " bool database.existsTableFile(short tableIndex)\n"); return Qnil; } SWIGINTERN VALUE _wrap_database_getBtrVersion(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; tdap::btrVersions *arg2 = (tdap::btrVersions *) 0 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__btrVersions, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::btrVersions *","getBtrVersion", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::btrVersions * >(argp2); { try { (arg1)->getBtrVersion(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_isOpened(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::database const *)arg1)->isOpened(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_mode(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; char_td result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (char_td)((tdap::client::database const *)arg1)->mode(); } CATCH_BZS_AND_STD() } return SWIG_From_long(result); fail: return Qnil; } SWIGINTERN VALUE _wrap_database_autoSchemaUseNullkey(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::database const *)arg1)->autoSchemaUseNullkey(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_setAutoSchemaUseNullkey(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setAutoSchemaUseNullkey", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { (arg1)->setAutoSchemaUseNullkey(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_createAssociate(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; tdap::client::database *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::database *)(arg1)->createAssociate(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__database, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_setCompatibleMode(int argc, VALUE *argv, VALUE self) { int arg1 ; int val1 ; int ecode1 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","tdap::client::database::setCompatibleMode", 1, argv[0] )); } arg1 = static_cast< int >(val1); { try { tdap::client::database::setCompatibleMode(arg1); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_database_compatibleMode(int argc, VALUE *argv, VALUE self) { int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (int)tdap::client::database::compatibleMode(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_database_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_database_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__database); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_database(int argc, VALUE *argv, VALUE self) { tdap::client::database *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::database *)new_bzs_database(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void delete_bzs_database(tdap::client::database *self){ self->release(); } SWIGINTERN void free_bzs_database(tdap::client::database *arg1) { delete_bzs_database(arg1); } SWIGINTERN VALUE _wrap_database_openTable(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; short arg2_i = -1; // index; short arg3 =0 ; // mode bool arg4 = true;//autoCreate=true _TCHAR *arg5 = 0;//ownerName=NULL _TCHAR *arg6 = 0;// const _TCHAR *uri=NULL int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; short val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; int res6 ; char *buf6 = 0 ; int alloc6 = 0 ; tdap::client::table *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 5)) return Qnil; arg1 = selfPtr(self, arg1); if (TYPE(argv[0]) == T_STRING) { res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","openTable", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); }else { SWIG_AsVal_short(argv[0], &arg2_i); } if (argc >= 2) { ecode3 = SWIG_AsVal_short(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "short","openTable", 3, argv[1] )); } arg3 = static_cast< short >(val3); } if (argc >= 3) { ecode4 = SWIG_AsVal_bool(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","openTable", 4, argv[2] )); } arg4 = static_cast< bool >(val4); } if (argc >= 4) { res5 = SWIG_AsCharPtrAndSize(argv[3], &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "_TCHAR const *","openTable", 5, argv[3] )); } arg5 = reinterpret_cast< _TCHAR * >(buf5); } if (argc == 5) { res6 = SWIG_AsCharPtrAndSize(argv[4], &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "_TCHAR const *","openTable", 6, argv[4] )); } arg6 = reinterpret_cast< _TCHAR * >(buf6); } { try { if (arg2_i != -1) result = (tdap::client::table *)bzs_database_openTable__SWIG_5(arg1,arg2_i,arg3,arg4,(char const *)arg5,(char const *)arg6); else result = (tdap::client::table *)bzs_database_openTable__SWIG_0(arg1,(char const *)arg2,arg3,arg4,(char const *)arg5,(char const *)arg6); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__table, SWIG_POINTER_OWN | 0 ); if (arg1->stat() == 0 && result) rb_ivar_set(vresult, g_id_fetchmode, INT2FIX(FETCH_VAL_ASSOC)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc5 == SWIG_NEWOBJ) delete[] buf5; if (alloc6 == SWIG_NEWOBJ) delete[] buf6; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc5 == SWIG_NEWOBJ) delete[] buf5; if (alloc6 == SWIG_NEWOBJ) delete[] buf6; return Qnil; } static swig_class SwigClassBenchmark; SWIGINTERN VALUE _wrap_benchmark_start(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; { try { bzs::rtl::benchmark::start(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_benchmark_stop(int argc, VALUE *argv, VALUE self) { int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (int)bzs::rtl::benchmark::stop(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_benchmark_showTimes(int argc, VALUE *argv, VALUE self) { int arg1 ; char *arg2 = (char *) 0 ; int val1 ; int ecode1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","bzs::rtl::benchmark::showTimes", 1, argv[0] )); } arg1 = static_cast< int >(val1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","bzs::rtl::benchmark::showTimes", 2, argv[1] )); } arg2 = reinterpret_cast< char * >(buf2); { try { bzs::rtl::benchmark::showTimes(arg1,(char const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_benchmark_showTimeSec(int argc, VALUE *argv, VALUE self) { bool arg1 ; char *arg2 = (char *) 0 ; bool val1 ; int ecode1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; ecode1 = SWIG_AsVal_bool(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "bool","bzs::rtl::benchmark::showTimeSec", 1, argv[0] )); } arg1 = static_cast< bool >(val1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","bzs::rtl::benchmark::showTimeSec", 2, argv[1] )); } arg2 = reinterpret_cast< char * >(buf2); { try { bzs::rtl::benchmark::showTimeSec(arg1,(char const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_benchmark_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_benchmark_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__rtl__benchmark); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_benchmark(int argc, VALUE *argv, VALUE self) { bzs::rtl::benchmark *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (bzs::rtl::benchmark *)new bzs::rtl::benchmark(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_rtl_benchmark(bzs::rtl::benchmark *arg1) { delete arg1; } SWIGINTERN VALUE _wrap_charsize(int argc, VALUE *argv, VALUE self) { int arg1 ; int val1 ; int ecode1 = 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","tdap::mysql::charsize", 1, argv[0] )); } arg1 = static_cast< int >(val1); { try { result = (unsigned int)tdap::mysql::charsize(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_charsetName(int argc, VALUE *argv, VALUE self) { int arg1 ; int val1 ; int ecode1 = 0 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","tdap::mysql::charsetName", 1, argv[0] )); } arg1 = static_cast< int >(val1); { try { result = (char *)tdap::mysql::charsetName(arg1); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_charsetIndex__SWIG_0(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","tdap::mysql::charsetIndex", 1, argv[0] )); } arg1 = reinterpret_cast< char * >(buf1); { try { result = (unsigned int)tdap::mysql::charsetIndex((char const *)arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_charsetIndex__SWIG_1(int argc, VALUE *argv, VALUE self) { unsigned short arg1 ; unsigned short val1 ; int ecode1 = 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_unsigned_SS_short(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned short","tdap::mysql::charsetIndex", 1, argv[0] )); } arg1 = static_cast< unsigned short >(val1); { try { result = (unsigned int)tdap::mysql::charsetIndex(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_charsetIndex(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 == 1) { int _v; { int res = SWIG_AsVal_unsigned_SS_short(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_charsetIndex__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_charsetIndex__SWIG_0(nargs, args, self); } } fail: Ruby_Format_OverloadedError( argc, 1, "charsetIndex", " unsigned int charsetIndex(char const *name)\n" " unsigned int charsetIndex(unsigned short codePage)\n"); return Qnil; } SWIGINTERN VALUE _wrap_codePage(int argc, VALUE *argv, VALUE self) { unsigned short arg1 ; unsigned short val1 ; int ecode1 = 0 ; unsigned int result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_unsigned_SS_short(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned short","tdap::mysql::codePage", 1, argv[0] )); } arg1 = static_cast< unsigned short >(val1); { try { result = (unsigned int)tdap::mysql::codePage(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } static swig_class SwigClassBtrDate; SWIGINTERN VALUE _wrap_btrDate_dd_set(int argc, VALUE *argv, VALUE self) { tdap::btrDate *arg1 = (tdap::btrDate *) 0 ; char arg2 ; char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char","dd", 2, argv[0] )); } arg2 = static_cast< char >(val2); if (arg1) (arg1)->dd = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDate_dd_get(int argc, VALUE *argv, VALUE self) { tdap::btrDate *arg1 = (tdap::btrDate *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->dd); return SWIG_From_long(result); fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDate_mm_set(int argc, VALUE *argv, VALUE self) { tdap::btrDate *arg1 = (tdap::btrDate *) 0 ; char arg2 ; char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char","mm", 2, argv[0] )); } arg2 = static_cast< char >(val2); if (arg1) (arg1)->mm = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDate_mm_get(int argc, VALUE *argv, VALUE self) { tdap::btrDate *arg1 = (tdap::btrDate *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->mm); return SWIG_From_long(result); fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDate_yy_set(int argc, VALUE *argv, VALUE self) { tdap::btrDate *arg1 = (tdap::btrDate *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","yy", 2, argv[0] )); } arg2 = static_cast< short >(val2); if (arg1) (arg1)->yy = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDate_yy_get(int argc, VALUE *argv, VALUE self) { tdap::btrDate *arg1 = (tdap::btrDate *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (short) ((arg1)->yy); vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDate_i_set(int argc, VALUE *argv, VALUE self) { tdap::btrDate *arg1 = (tdap::btrDate *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","i", 2, argv[0] )); } arg2 = static_cast< int >(val2); if (arg1) (arg1)->i = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDate_i_get(int argc, VALUE *argv, VALUE self) { tdap::btrDate *arg1 = (tdap::btrDate *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (int) ((arg1)->i); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_btrDate_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_btrDate_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__btrDate); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_btrDate(int argc, VALUE *argv, VALUE self) { tdap::btrDate *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::btrDate *)new tdap::btrDate(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_btrDate(tdap::btrDate *arg1) { delete arg1; } static swig_class SwigClassBtrTime; SWIGINTERN VALUE _wrap_btrTime_uu_set(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = (tdap::btrTime *) 0 ; char arg2 ; char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char","uu", 2, argv[0] )); } arg2 = static_cast< char >(val2); if (arg1) (arg1)->uu = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTime_uu_get(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = (tdap::btrTime *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->uu); return SWIG_From_long(result); fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTime_ss_set(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = (tdap::btrTime *) 0 ; char arg2 ; char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char","ss", 2, argv[0] )); } arg2 = static_cast< char >(val2); if (arg1) (arg1)->ss = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTime_ss_get(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = (tdap::btrTime *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->ss); return SWIG_From_long(result); fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTime_nn_set(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = (tdap::btrTime *) 0 ; char arg2 ; char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char","nn", 2, argv[0] )); } arg2 = static_cast< char >(val2); if (arg1) (arg1)->nn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTime_nn_get(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = (tdap::btrTime *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->nn); return SWIG_From_long(result); fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTime_hh_set(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = (tdap::btrTime *) 0 ; char arg2 ; char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char","hh", 2, argv[0] )); } arg2 = static_cast< char >(val2); if (arg1) (arg1)->hh = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTime_hh_get(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = (tdap::btrTime *) 0 ; char result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (char) ((arg1)->hh); return SWIG_From_long(result); fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTime_i_set(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = (tdap::btrTime *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","i", 2, argv[0] )); } arg2 = static_cast< int >(val2); if (arg1) (arg1)->i = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTime_i_get(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = (tdap::btrTime *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (int) ((arg1)->i); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_btrTime_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_btrTime_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__btrTime); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_btrTime(int argc, VALUE *argv, VALUE self) { tdap::btrTime *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::btrTime *)new tdap::btrTime(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_btrTime(tdap::btrTime *arg1) { delete arg1; } static swig_class SwigClassBtrDateTime; SWIGINTERN VALUE _wrap_btrDateTime_time_set(int argc, VALUE *argv, VALUE self) { tdap::btrDateTime *arg1 = (tdap::btrDateTime *) 0 ; tdap::btrTime *arg2 = (tdap::btrTime *) 0 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__btrTime, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::btrTime *","time", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::btrTime * >(argp2); if (arg1) (arg1)->time = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDateTime_time_get(int argc, VALUE *argv, VALUE self) { tdap::btrDateTime *arg1 = (tdap::btrDateTime *) 0 ; tdap::btrTime *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (tdap::btrTime *)& ((arg1)->time); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__btrTime, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDateTime_date_set(int argc, VALUE *argv, VALUE self) { tdap::btrDateTime *arg1 = (tdap::btrDateTime *) 0 ; tdap::btrDate *arg2 = (tdap::btrDate *) 0 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__btrDate, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::btrDate *","date", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::btrDate * >(argp2); if (arg1) (arg1)->date = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDateTime_date_get(int argc, VALUE *argv, VALUE self) { tdap::btrDateTime *arg1 = (tdap::btrDateTime *) 0 ; tdap::btrDate *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (tdap::btrDate *)& ((arg1)->date); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__btrDate, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDateTime_i64_set(int argc, VALUE *argv, VALUE self) { tdap::btrDateTime *arg1 = (tdap::btrDateTime *) 0 ; __int64 arg2 ; long long val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "__int64","i64", 2, argv[0] )); } arg2 = static_cast< __int64 >(val2); if (arg1) (arg1)->i64 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrDateTime_i64_get(int argc, VALUE *argv, VALUE self) { tdap::btrDateTime *arg1 = (tdap::btrDateTime *) 0 ; __int64 result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = ((arg1)->i64); vresult = SWIG_From_long_SS_long(static_cast< long long >(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_btrDateTime_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_btrDateTime_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__btrDateTime); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_btrDateTime(int argc, VALUE *argv, VALUE self) { tdap::btrDateTime *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::btrDateTime *)new tdap::btrDateTime(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_btrDateTime(tdap::btrDateTime *arg1) { delete arg1; } static swig_class SwigClassBtrTimeStamp; SWIGINTERN VALUE _wrap_btrTimeStamp_i64_set(int argc, VALUE *argv, VALUE self) { tdap::btrTimeStamp *arg1 = (tdap::btrTimeStamp *) 0 ; unsigned __int64 arg2 ; unsigned long long val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned __int64","i64", 2, argv[0] )); } arg2 = static_cast< unsigned __int64 >(val2); if (arg1) (arg1)->i64 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTimeStamp_i64_get(int argc, VALUE *argv, VALUE self) { tdap::btrTimeStamp *arg1 = (tdap::btrTimeStamp *) 0 ; unsigned __int64 result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = ((arg1)->i64); vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_btrTimeStamp__SWIG_0(int argc, VALUE *argv, VALUE self) { unsigned __int64 arg1 ; unsigned long long val1 ; int ecode1 = 0 ; tdap::btrTimeStamp *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned __int64","btrTimeStamp", 1, argv[0] )); } arg1 = static_cast< unsigned __int64 >(val1); { try { result = (tdap::btrTimeStamp *)new tdap::btrTimeStamp(arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_btrTimeStamp__SWIG_1(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; tdap::btrTimeStamp *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","btrTimeStamp", 1, argv[0] )); } arg1 = reinterpret_cast< char * >(buf1); { try { result = (tdap::btrTimeStamp *)new tdap::btrTimeStamp((char const *)arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return self; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_btrTimeStamp_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_btrTimeStamp_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__btrTimeStamp); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_btrTimeStamp__SWIG_2(int argc, VALUE *argv, VALUE self) { tdap::btrDate arg1 ; tdap::btrTime arg2 ; void *argp1 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; tdap::btrTimeStamp *result = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; { res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__btrDate, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::btrDate","btrTimeStamp", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::btrDate","btrTimeStamp", 1, argv[0])); } else { arg1 = *(reinterpret_cast< tdap::btrDate * >(argp1)); } } { res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_bzs__btrTime, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::btrTime","btrTimeStamp", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::btrTime","btrTimeStamp", 2, argv[1])); } else { arg2 = *(reinterpret_cast< tdap::btrTime * >(argp2)); } } { try { result = (tdap::btrTimeStamp *)new tdap::btrTimeStamp(arg1,arg2); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_btrTimeStamp(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; { int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_btrTimeStamp__SWIG_0(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_new_btrTimeStamp__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__btrDate, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_bzs__btrTime, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_btrTimeStamp__SWIG_2(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "btrTimeStamp.new", " btrTimeStamp.new(unsigned __int64 i)\n" " btrTimeStamp.new(char const *p)\n" " btrTimeStamp.new(tdap::btrDate d, tdap::btrTime t)\n"); return Qnil; } SWIGINTERN VALUE _wrap_btrTimeStamp_toString(int argc, VALUE *argv, VALUE self) { tdap::btrTimeStamp *arg1 = (tdap::btrTimeStamp *) 0 ; char tmpbuf2[255] ; char *arg2 = tmpbuf2 ; char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (char *)(arg1)->toString(arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrTimeStamp_fromString(int argc, VALUE *argv, VALUE self) { tdap::btrTimeStamp *arg1 = (tdap::btrTimeStamp *) 0 ; char *arg2 = (char *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","fromString", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(buf2); { try { (arg1)->fromString((char const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN void free_bzs_btrTimeStamp(tdap::btrTimeStamp *arg1) { delete arg1; } SWIGINTERN VALUE _wrap_atobtrd(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; tdap::btrDate result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","tdap::atobtrd", 1, argv[0] )); } arg1 = reinterpret_cast< char * >(buf1); { try { result = tdap::atobtrd((char const *)arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj((new tdap::btrDate(static_cast< const tdap::btrDate& >(result))), SWIGTYPE_p_bzs__btrDate, SWIG_POINTER_OWN | 0 ); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_btrdtoa__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::btrDate *arg1 = 0 ; char *arg2 = (char *) 0 ; bool arg3 ; void *argp1 ; int res1 = 0 ; char tmpbuf2[255] ; bool val3 ; int ecode3 = 0 ; char *result = 0 ; VALUE vresult = Qnil; { arg2=tmpbuf2; } if (!check_param_count(argc, 2, 2)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__btrDate, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::btrDate const &","tdap::btrdtoa", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::btrDate const &","tdap::btrdtoa", 1, argv[0])); } arg1 = reinterpret_cast< tdap::btrDate * >(argp1); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","tdap::btrdtoa", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { result = (char *)tdap::btrdtoa((tdap::btrDate const &)*arg1,arg2,arg3); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrdtoa__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::btrDate *arg1 = 0 ; char *arg2 = (char *) 0 ; void *argp1 ; int res1 = 0 ; char tmpbuf2[255] ; char *result = 0 ; VALUE vresult = Qnil; { arg2=tmpbuf2; } if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__btrDate, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::btrDate const &","tdap::btrdtoa", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::btrDate const &","tdap::btrdtoa", 1, argv[0])); } arg1 = reinterpret_cast< tdap::btrDate * >(argp1); { try { result = (char *)tdap::btrdtoa((tdap::btrDate const &)*arg1,arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_atobtrt(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; tdap::btrTime result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","tdap::atobtrt", 1, argv[0] )); } arg1 = reinterpret_cast< char * >(buf1); { try { result = tdap::atobtrt((char const *)arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj((new tdap::btrTime(static_cast< const tdap::btrTime& >(result))), SWIGTYPE_p_bzs__btrTime, SWIG_POINTER_OWN | 0 ); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_btrdtoa__SWIG_2(int argc, VALUE *argv, VALUE self) { int arg1 ; char *arg2 = (char *) 0 ; bool arg3 ; int val1 ; int ecode1 = 0 ; char tmpbuf2[255] ; bool val3 ; int ecode3 = 0 ; char *result = 0 ; VALUE vresult = Qnil; { arg2=tmpbuf2; } if (!check_param_count(argc, 2, 2)) return Qnil; ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","tdap::btrdtoa", 1, argv[0] )); } arg1 = static_cast< int >(val1); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","tdap::btrdtoa", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { result = (char *)tdap::btrdtoa(arg1,arg2,arg3); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrdtoa__SWIG_3(int argc, VALUE *argv, VALUE self) { int arg1 ; char *arg2 = (char *) 0 ; int val1 ; int ecode1 = 0 ; char tmpbuf2[255] ; char *result = 0 ; VALUE vresult = Qnil; { arg2=tmpbuf2; } if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","tdap::btrdtoa", 1, argv[0] )); } arg1 = static_cast< int >(val1); { try { result = (char *)tdap::btrdtoa(arg1,arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrdtoa(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__btrDate, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_btrdtoa__SWIG_1(nargs, args, self); } } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_btrdtoa__SWIG_3(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__btrDate, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_btrdtoa__SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_btrdtoa__SWIG_2(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "btrdtoa", " char const * btrdtoa(tdap::btrDate const &d, char *retbuf, bool w3_format)\n" " char const * btrdtoa(tdap::btrDate const &d, char *retbuf)\n" " char const * btrdtoa(int date, char *retbuf, bool w3_format)\n" " char const * btrdtoa(int date, char *retbuf)\n"); return Qnil; } SWIGINTERN VALUE _wrap_btrttoa__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::btrTime *arg1 = 0 ; char *arg2 = (char *) 0 ; void *argp1 ; int res1 = 0 ; char tmpbuf2[255] ; char *result = 0 ; VALUE vresult = Qnil; { arg2=tmpbuf2; } if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__btrTime, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::btrTime const &","tdap::btrttoa", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::btrTime const &","tdap::btrttoa", 1, argv[0])); } arg1 = reinterpret_cast< tdap::btrTime * >(argp1); { try { result = (char *)tdap::btrttoa((tdap::btrTime const &)*arg1,arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrttoa__SWIG_1(int argc, VALUE *argv, VALUE self) { int arg1 ; char *arg2 = (char *) 0 ; int val1 ; int ecode1 = 0 ; char tmpbuf2[255] ; char *result = 0 ; VALUE vresult = Qnil; { arg2=tmpbuf2; } if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","tdap::btrttoa", 1, argv[0] )); } arg1 = static_cast< int >(val1); { try { result = (char *)tdap::btrttoa(arg1,arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrttoa(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 == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__btrTime, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_btrttoa__SWIG_0(nargs, args, self); } } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_btrttoa__SWIG_1(nargs, args, self); } } fail: Ruby_Format_OverloadedError( argc, 1, "btrttoa", " char const * btrttoa(tdap::btrTime const &t, char *retbuf)\n" " char const * btrttoa(int time, char *retbuf)\n"); return Qnil; } SWIGINTERN VALUE _wrap_btrstoa__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::btrDateTime *arg1 = 0 ; char *arg2 = (char *) 0 ; bool arg3 ; void *argp1 ; int res1 = 0 ; char tmpbuf2[255] ; bool val3 ; int ecode3 = 0 ; char *result = 0 ; VALUE vresult = Qnil; { arg2=tmpbuf2; } if (!check_param_count(argc, 2, 2)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__btrDateTime, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::btrDateTime const &","tdap::btrstoa", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::btrDateTime const &","tdap::btrstoa", 1, argv[0])); } arg1 = reinterpret_cast< tdap::btrDateTime * >(argp1); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","tdap::btrstoa", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { result = (char *)tdap::btrstoa((tdap::btrDateTime const &)*arg1,arg2,arg3); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrstoa__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::btrDateTime *arg1 = 0 ; char *arg2 = (char *) 0 ; void *argp1 ; int res1 = 0 ; char tmpbuf2[255] ; char *result = 0 ; VALUE vresult = Qnil; { arg2=tmpbuf2; } if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__btrDateTime, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::btrDateTime const &","tdap::btrstoa", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::btrDateTime const &","tdap::btrstoa", 1, argv[0])); } arg1 = reinterpret_cast< tdap::btrDateTime * >(argp1); { try { result = (char *)tdap::btrstoa((tdap::btrDateTime const &)*arg1,arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrstoa__SWIG_2(int argc, VALUE *argv, VALUE self) { __int64 arg1 ; char *arg2 = (char *) 0 ; bool arg3 ; long long val1 ; int ecode1 = 0 ; char tmpbuf2[255] ; bool val3 ; int ecode3 = 0 ; char *result = 0 ; VALUE vresult = Qnil; { arg2=tmpbuf2; } if (!check_param_count(argc, 2, 2)) return Qnil; ecode1 = SWIG_AsVal_long_SS_long(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "__int64","tdap::btrstoa", 1, argv[0] )); } arg1 = static_cast< __int64 >(val1); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","tdap::btrstoa", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { result = (char *)tdap::btrstoa(arg1,arg2,arg3); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrstoa__SWIG_3(int argc, VALUE *argv, VALUE self) { __int64 arg1 ; char *arg2 = (char *) 0 ; long long val1 ; int ecode1 = 0 ; char tmpbuf2[255] ; char *result = 0 ; VALUE vresult = Qnil; { arg2=tmpbuf2; } if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_long_SS_long(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "__int64","tdap::btrstoa", 1, argv[0] )); } arg1 = static_cast< __int64 >(val1); { try { result = (char *)tdap::btrstoa(arg1,arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_btrstoa(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__btrDateTime, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_btrstoa__SWIG_1(nargs, args, self); } } if (argc == 1) { int _v; { int res = SWIG_AsVal_long_SS_long(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_btrstoa__SWIG_3(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__btrDateTime, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_btrstoa__SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; { int res = SWIG_AsVal_long_SS_long(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_btrstoa__SWIG_2(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "btrstoa", " char const * btrstoa(tdap::btrDateTime const &d, char *retbuf, bool w3_format)\n" " char const * btrstoa(tdap::btrDateTime const &d, char *retbuf)\n" " char const * btrstoa(__int64 datetime, char *retbuf, bool w3_format)\n" " char const * btrstoa(__int64 datetime, char *retbuf)\n"); return Qnil; } SWIGINTERN VALUE _wrap_atobtrs(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; tdap::btrDateTime result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","tdap::atobtrs", 1, argv[0] )); } arg1 = reinterpret_cast< char * >(buf1); { try { result = tdap::atobtrs((char const *)arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj((new tdap::btrDateTime(static_cast< const tdap::btrDateTime& >(result))), SWIGTYPE_p_bzs__btrDateTime, SWIG_POINTER_OWN | 0 ); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_getNowDate(int argc, VALUE *argv, VALUE self) { int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (int)tdap::getNowDate(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_getNowTime(int argc, VALUE *argv, VALUE self) { int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (int)tdap::getNowTime(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } static swig_class SwigClassFielddefs; /* Document-method: Transactd::fielddefs.clone call-seq: clone -> fielddefs Create a duplicate of the class. */ SWIGINTERN VALUE _wrap_fielddefs_clone(int argc, VALUE *argv, VALUE self) { tdap::client::fielddefs *arg1 = (tdap::client::fielddefs *) 0 ; tdap::client::fielddefs *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::fielddefs *)((tdap::client::fielddefs const *)arg1)->clone(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fielddefs, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddefs_indexByName(int argc, VALUE *argv, VALUE self) { tdap::client::fielddefs *arg1 = (tdap::client::fielddefs *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; void *argp2 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); if (TYPE(argv[0]) == T_STRING) arg2 = StringValuePtr(argv[0]); else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), Ruby_Format_TypeError( "", "_TCHAR const *","indexByName", 2, argv[0] )); } { try { std::_tstring s = arg2; result = (int)((tdap::client::fielddefs const *)arg1)->indexByName(s); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddefs___getitem____SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::fielddefs *arg1 = (tdap::client::fielddefs *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; tdap::fielddef *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","operator []", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (tdap::fielddef *) &((tdap::client::fielddefs const *)arg1)->operator [](arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fielddef, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddefs___getitem____SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::fielddefs *arg1 = (tdap::client::fielddefs *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::fielddef *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","operator []", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::fielddef *) &((tdap::client::fielddefs const *)arg1)->operator []((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fielddef, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_fielddefs___getitem__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fielddefs, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_fielddefs___getitem____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fielddefs, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_fielddefs___getitem____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "fielddefs.__getitem__", " tdap::fielddef const & fielddefs.__getitem__(int index)\n" " tdap::fielddef const & fielddefs.__getitem__(_TCHAR const *name)\n"); return Qnil; } SWIGINTERN VALUE _wrap_fielddefs_checkIndex(int argc, VALUE *argv, VALUE self) { tdap::client::fielddefs *arg1 = (tdap::client::fielddefs *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","checkIndex", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (bool)((tdap::client::fielddefs const *)arg1)->checkIndex(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } /* Document-method: Transactd::fielddefs.size call-seq: size -> size_t Size or Length of the fielddefs. */ SWIGINTERN VALUE _wrap_fielddefs_size(int argc, VALUE *argv, VALUE self) { tdap::client::fielddefs *arg1 = (tdap::client::fielddefs *) 0 ; size_t result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = ((tdap::client::fielddefs const *)arg1)->size(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_size_t(static_cast< size_t >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fielddefs_to_a(int argc, VALUE *argv, VALUE self) { tdap::client::fielddefs *arg1 = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); try { return getFieldsArray(*arg1); } CATCH_BZS_AND_STD() fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_fielddefs_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_fielddefs_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__fielddefs); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_fielddefs(int argc, VALUE *argv, VALUE self) { tdap::client::fielddefs *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::fielddefs *)new_bzs_fielddefs(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void delete_bzs_fielddefs(tdap::client::fielddefs *self){ self->release(); } SWIGINTERN void free_bzs_fielddefs(tdap::client::fielddefs *arg1) { delete_bzs_fielddefs(arg1); } static swig_class SwigClassField; SWIGINTERN VALUE _wrap_new_field__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::field *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::field *)new tdap::client::field(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_field__SWIG_1(int argc, VALUE *argv, VALUE self) { unsigned char *arg1 = (unsigned char *) 0 ; tdap::fielddef *arg2 = 0 ; tdap::client::fielddefs *arg3 = (tdap::client::fielddefs *) 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; tdap::client::field *result = 0 ; if (!check_param_count(argc, 3, 3)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_bzs__fielddef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::fielddef const &","field", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::fielddef const &","field", 2, argv[1])); } arg2 = reinterpret_cast< tdap::fielddef * >(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_bzs__fielddefs, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "tdap::client::fielddefs *","field", 3, argv[2] )); } arg3 = reinterpret_cast< tdap::client::fielddefs * >(argp3); { try { result = (tdap::client::field *)new tdap::client::field(arg1,(tdap::fielddef const &)*arg2,arg3); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_field_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_field_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__field); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_field__SWIG_2(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = 0 ; tdap::client::field *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::field *)new tdap::client::field((tdap::client::field const &)*arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_field(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_new_field__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__field, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_field__SWIG_2(nargs, args, self); } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_bzs__fielddef, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_bzs__fielddefs, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_field__SWIG_1(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 3, "field.new", " field.new()\n" " field.new(unsigned char *ptr, tdap::fielddef const &fd, tdap::client::fielddefs *fds)\n" " field.new(tdap::client::field const &r)\n"); return Qnil; } SWIGINTERN VALUE _wrap_field_type(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; unsigned char result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (unsigned char)((tdap::client::field const *)arg1)->type(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_field_len(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; unsigned short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (unsigned short)((tdap::client::field const *)arg1)->len(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_field_str(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)((tdap::client::field const *)arg1)->c_str(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_field_i(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::client::field const *)arg1)->i(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_field_i64(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; __int64 result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = ((tdap::client::field const *)arg1)->i64(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_long_SS_long(static_cast< long long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_field_d(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; double result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (double)((tdap::client::field const *)arg1)->d(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_field_isNull(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::field const *)arg1)->isNull(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_field_setNull(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setNull", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { (arg1)->setNull(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_field_setvalue_(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; tdap::client::field* arg1 = selfPtr(self, arg1); if (field_setvalue(argv[0], *arg1, 0)) return self; return Qnil; } /* The size parameter is required if set to binary data, */ SWIGINTERN VALUE _wrap_field_setBin(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 2)) return Qnil; tdap::client::field* arg1 = selfPtr(self, arg1); int size = 0; if (argc == 1) { if (TYPE(argv[0]) == T_STRING) size = StringValueLen(argv[0]); else rb_raise(rb_eTypeError, "Size parameter is required."); } else if (!obj2Integer(argv[1], size)) return Qnil; if (field_setvalue(argv[0], *arg1, size)) return self; return Qnil; } SWIGINTERN VALUE _wrap_field_getBin(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; uint_td arg2 = 0 ; void *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); try { result = (void *)(arg1)->getBin(arg2); } CATCH_BZS_AND_STD() return rb_str_new((const char *)result, arg2); fail: return Qnil; } SWIGINTERN VALUE _wrap_field_comp__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; tdap::client::field *arg2 = 0 ; char arg3 ; void *argp2 ; int res2 = 0 ; char val3 ; int ecode3 = 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__field, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::field const &","comp", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::field const &","comp", 2, argv[0])); } arg2 = reinterpret_cast< tdap::client::field * >(argp2); ecode3 = SWIG_AsVal_char(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "char","comp", 3, argv[1] )); } arg3 = static_cast< char >(val3); { try { result = (int)((tdap::client::field const *)arg1)->comp((tdap::client::field const &)*arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_field_comp__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; tdap::client::field *arg2 = 0 ; void *argp2 ; int res2 = 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__field, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::field const &","comp", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::field const &","comp", 2, argv[0])); } arg2 = reinterpret_cast< tdap::client::field * >(argp2); { try { result = (int)((tdap::client::field const *)arg1)->comp((tdap::client::field const &)*arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_field_comp(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__field, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_bzs__field, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_field_comp__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__field, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_bzs__field, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_char(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_field_comp__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "field.comp", " int field.comp(tdap::client::field const &r, char logType)\n" " int field.comp(tdap::client::field const &r)\n"); return Qnil; } SWIGINTERN VALUE _wrap_field_getBits(int argc, VALUE *argv, VALUE self) { tdap::client::field *arg1 = (tdap::client::field *) 0 ; tdap::bitset *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::bitset *) new bitset(arg1->i64()); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__bitset, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN void free_bzs_field(tdap::client::field *arg1) { delete arg1; } static swig_class SwigClassRecord; SWIGINTERN void free_bzs_fieldsBase(tdap::client::fieldsBase *arg1) { delete arg1; } SWIGINTERN VALUE _wrap_Record_isInvalidRecord(int argc, VALUE *argv, VALUE self) { tdap::client::fieldsBase *arg1 = (tdap::client::fieldsBase *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::fieldsBase const *)arg1)->isInvalidRecord(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Record_getField(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; tdap::client::fieldsBase* arg1 = selfPtr(self, arg1); try { short index = getFieldIndex(arg1, argv[0]); const tdap::client::field& result = (*arg1)[index]; return SWIG_NewPointerObj(new tdap::client::field(result), SWIGTYPE_p_bzs__field, SWIG_POINTER_OWN | 0 ); } CATCH_BZS_AND_STD() return Qnil; } /* Document-method: Transactd::Record.size call-seq: size -> size_t Size or Length of the Record. */ SWIGINTERN VALUE _wrap_Record_size(int argc, VALUE *argv, VALUE self) { tdap::client::fieldsBase *arg1 = (tdap::client::fieldsBase *) 0 ; size_t result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = ((tdap::client::fieldsBase const *)arg1)->size(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_size_t(static_cast< size_t >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Record_indexByName(int argc, VALUE *argv, VALUE self) { tdap::client::fieldsBase *arg1 = (tdap::client::fieldsBase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; short result; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); if (TYPE(argv[0]) == T_STRING) arg2 = StringValuePtr(argv[0]); else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), Ruby_Format_TypeError( "", "_TCHAR const *","indexByName", 2, argv[0] )); } try { result = (short)((tdap::client::fieldsBase const *)arg1)->indexByName((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() return SWIG_From_short(static_cast< short >(result)); fail: return Qnil; } SWIGINTERN VALUE _wrap_Record_fieldDefs(int argc, VALUE *argv, VALUE self) { tdap::client::fieldsBase *arg1 = (tdap::client::fieldsBase *) 0 ; tdap::client::fielddefs *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::fielddefs *)((tdap::client::fieldsBase const *)arg1)->fieldDefs(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fielddefs, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Record_clear(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; tdap::client::fieldsBase* arg1 = selfPtr(self, arg1); try { (arg1)->clear(); } CATCH_BZS_AND_STD() return Qnil; } /* Document-method: Transactd::Record.[] call-seq: [](fieldsBase_getitem_index) [](fieldsBase_getitem_index) Element accessor/slicing. */ SWIGINTERN VALUE _wrap_Record___getitem__(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; tdap::client::fieldsBase* fds = 0; fds = selfPtr(self, fds); try { short index = getFieldIndex(fds, argv[0]); return getFieldValue((*fds)[index]); } CATCH_BZS_AND_STD() return Qnil; } SWIGINTERN VALUE _wrap_Record_getFieldByRef(int argc, VALUE *argv, VALUE self) { tdap::client::fieldsBase *arg1 = (tdap::client::fieldsBase *) 0 ; tdap::client::field *arg3 = 0 ; short val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); short index = getFieldIndex(arg1, argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_bzs__field, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "tdap::client::field &","getFieldByIndexRef", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::field &","getFieldByIndexRef", 3, argv[1])); } arg3 = reinterpret_cast< tdap::client::field * >(argp3); { try { *arg3 = (*arg1)[index]; } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_Record_setValue(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 1)) return Qnil; VALUE obj = argv[0]; if (TYPE(obj) != T_OBJECT) rb_raise(rb_eArgError, "param 1, object is not specified."); tdap::client::fieldsBase* rec = selfPtr(self, rec); setValuesFromObject(rec, obj, Qnil, CLASS_OF(obj)); return Qnil; } SWIGINTERN VALUE _wrap_Record___setitem__(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 2, 2)) return Qnil; tdap::client::fieldsBase* arg1 = selfPtr(self, arg1); short index = getFieldIndex(arg1, argv[0]); try { field_setvalue(argv[1], (*arg1)[index], 0); } CATCH_BZS_AND_STD(); return Qnil; } static swig_class SwigClassWritableRecord; SWIGINTERN VALUE _wrap_writableRecord_read(int argc, VALUE *argv, VALUE self) { tdap::client::writableRecord *arg1 = (tdap::client::writableRecord *) 0; bool arg2 = false; // KeysetAlrady bool val2; int ecode2 = 0; bool result; bookmark_td *bm = 0; if (!check_param_count(argc, 0, 1)) return Qnil; arg1 = selfPtr(self, arg1); if (argc == 1) { if (TYPE(argv[0]) == T_DATA) { void *argp2 = 0; int res2 = 0; res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "read", 2, argv[0])); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "read", 2, argv[0])); } bm = reinterpret_cast< bookmark_td * >(argp2); }else { ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "bool", "read", 2, argv[0])); } arg2 = static_cast< bool >(val2); } } try { if (bm) result = (bool)(arg1)->read(*bm); else result = (bool)(arg1)->read(arg2); } CATCH_BZS_AND_STD() return SWIG_From_bool(static_cast< bool >(result)); fail: return Qnil; } /* Document-method: Transactd::writableRecord.insert call-seq: insert Insert one or more new elements in the writableRecord. */ SWIGINTERN VALUE _wrap_writableRecord_insert(int argc, VALUE *argv, VALUE self) { tdap::client::writableRecord *arg1 = (tdap::client::writableRecord *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->insert(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_writableRecord_del__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::writableRecord *arg1 = (tdap::client::writableRecord *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","del", 2, argv[0] )); } arg2 = static_cast< bool >(val2); { try { (arg1)->del(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_writableRecord_del__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::writableRecord *arg1 = (tdap::client::writableRecord *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->del(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_writableRecord_del(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__writableRecord, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_writableRecord_del__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__writableRecord, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_writableRecord_del__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "writableRecord.del", " void writableRecord.del(bool KeysetAlrady)\n" " void writableRecord.del()\n"); return Qnil; } SWIGINTERN VALUE _wrap_writableRecord_update(int argc, VALUE *argv, VALUE self) { tdap::client::writableRecord *arg1 = (tdap::client::writableRecord *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->update(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_writableRecord_save(int argc, VALUE *argv, VALUE self) { tdap::client::writableRecord *arg1 = (tdap::client::writableRecord *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->save(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } static swig_class SwigClassConnectParams; SWIGINTERN VALUE _wrap_new_connectParams__SWIG_0(int argc, VALUE *argv, VALUE self) { _TCHAR *arg1 = (_TCHAR *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; _TCHAR *arg4 = (_TCHAR *) 0 ; _TCHAR *arg5 = (_TCHAR *) 0 ; _TCHAR *arg6 = (_TCHAR *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; int res6 ; char *buf6 = 0 ; int alloc6 = 0 ; tdap::client::connectParams *result = 0 ; if (!check_param_count(argc, 4, 6)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "_TCHAR const *","connectParams", 1, argv[0] )); } arg1 = reinterpret_cast< _TCHAR * >(buf1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","connectParams", 2, argv[1] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","connectParams", 3, argv[2] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "_TCHAR const *","connectParams", 4, argv[3] )); } arg4 = reinterpret_cast< _TCHAR * >(buf4); if (argc > 4) { res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "_TCHAR const *","connectParams", 5, argv[4] )); } arg5 = reinterpret_cast< _TCHAR * >(buf5); } if (argc > 5) { res6 = SWIG_AsCharPtrAndSize(argv[5], &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "_TCHAR const *","connectParams", 6, argv[5] )); } arg6 = reinterpret_cast< _TCHAR * >(buf6); } { try { result = (tdap::client::connectParams *)new tdap::client::connectParams((_TCHAR const *)arg1,(_TCHAR const *)arg2,(_TCHAR const *)arg3,(_TCHAR const *)arg4,(_TCHAR const *)arg5,(_TCHAR const *)arg6); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } /*if (alloc1 == SWIG_NEWOBJ) delete[] buf1; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; if (alloc4 == SWIG_NEWOBJ) delete[] buf4; if (alloc5 == SWIG_NEWOBJ) delete[] buf5; if (alloc6 == SWIG_NEWOBJ) delete[] buf6;*/ return self; fail: /*if (alloc1 == SWIG_NEWOBJ) delete[] buf1; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; if (alloc4 == SWIG_NEWOBJ) delete[] buf4; if (alloc5 == SWIG_NEWOBJ) delete[] buf5; if (alloc6 == SWIG_NEWOBJ) delete[] buf6;*/ return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_connectParams_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_connectParams_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__connectParams); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_connectParams__SWIG_1(int argc, VALUE *argv, VALUE self) { _TCHAR *arg1 = (_TCHAR *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; tdap::client::connectParams *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "_TCHAR const *","connectParams", 1, argv[0] )); } arg1 = reinterpret_cast< _TCHAR * >(buf1); { try { result = (tdap::client::connectParams *)new tdap::client::connectParams((_TCHAR const *)arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return self; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_new_connectParams(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs; if (argc > 6) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_connectParams__SWIG_1(nargs, args, self); } } if (argc >= 4) { int _v; int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v && (argc > 4)) { int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); _v = SWIG_CheckState(res); } if (_v && (argc > 5)) { int res = SWIG_AsCharPtrAndSize(argv[5], 0, NULL, 0); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_connectParams__SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "connectParams.new", " connectParams.new(_TCHAR const *protocol, _TCHAR const *hostOrIp, _TCHAR const *dbname, _TCHAR const *schemaTable)\n" " connectParams.new(_TCHAR const *uri)\n"); return Qnil; } SWIGINTERN VALUE _wrap_connectParams_setMode(int argc, VALUE *argv, VALUE self) { tdap::client::connectParams *arg1 = (tdap::client::connectParams *) 0 ; char_td arg2 ; char val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char_td","setMode", 2, argv[0] )); } arg2 = static_cast< char_td >(val2); { try { (arg1)->setMode(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_connectParams_setType(int argc, VALUE *argv, VALUE self) { tdap::client::connectParams *arg1 = (tdap::client::connectParams *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","setType", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { (arg1)->setType(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_connectParams_uri(int argc, VALUE *argv, VALUE self) { tdap::client::connectParams *arg1 = (tdap::client::connectParams *) 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)((tdap::client::connectParams const *)arg1)->uri(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_connectParams_mode(int argc, VALUE *argv, VALUE self) { tdap::client::connectParams *arg1 = (tdap::client::connectParams *) 0 ; char_td result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (char_td)((tdap::client::connectParams const *)arg1)->mode(); } CATCH_BZS_AND_STD() } return SWIG_From_long(result); fail: return Qnil; } SWIGINTERN VALUE _wrap_connectParams_type(int argc, VALUE *argv, VALUE self) { tdap::client::connectParams *arg1 = (tdap::client::connectParams *) 0 ; short result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short)((tdap::client::connectParams const *)arg1)->type(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN void free_bzs_connectParams(tdap::client::connectParams *arg1) { delete arg1; } static swig_class SwigClassFieldNames; SWIGINTERN VALUE _wrap_fieldNames_reset(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = (tdap::client::fieldNames *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { arg1->reset(); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_fieldNames_keyField(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0x00 ; const char* fdn[11] = {0}; if (!check_param_count(argc, 0, 11)) return Qnil; arg1 = selfPtr(self, arg1); //Get key field names { int alloc = 0; char* buf = NULL; for (int i=0;i(buf); } } { try { arg1->keyField(fdn[0], fdn[1], fdn[2], fdn[3], fdn[4], fdn[5], fdn[6], fdn[7], fdn[8], fdn[9], fdn[10]); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_fieldNames_count(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = (tdap::client::fieldNames *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::client::fieldNames const *)arg1)->count(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fieldNames___getitem__(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = (tdap::client::fieldNames *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","operator []", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (_TCHAR *)((tdap::client::fieldNames const *)arg1)->operator [](arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fieldNames_getValue(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = (tdap::client::fieldNames *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","getValue", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (_TCHAR *)((tdap::client::fieldNames const *)arg1)->getValue(arg2); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_fieldNames_addValue(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = (tdap::client::fieldNames *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","addValue", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (arg1)->addValue((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_fieldNames_addValues(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = (tdap::client::fieldNames *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","addValues", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","addValues", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3); { try { (arg1)->addValues((_TCHAR const *)arg2,(_TCHAR const *)arg3); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_fieldNames_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_fieldNames_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__fieldNames); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_fieldNames(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::fieldNames *)new_bzs_fieldNames(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void delete_bzs_fieldNames(tdap::client::fieldNames *self){ self->release(); } SWIGINTERN void free_bzs_fieldNames(tdap::client::fieldNames *arg1) { delete_bzs_fieldNames(arg1); } static swig_class SwigClassSortField; SWIGINTERN VALUE _wrap_sortField_name_set(int argc, VALUE *argv, VALUE self) { tdap::client::sortField *arg1 = (tdap::client::sortField *) 0 ; std::_tstring arg2 ; void *argp2 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_std___tstring, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::_tstring","name", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::_tstring","name", 2, argv[0])); } else { arg2 = *(reinterpret_cast< std::_tstring * >(argp2)); } } if (arg1) (arg1)->name = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_sortField_name_get(int argc, VALUE *argv, VALUE self) { tdap::client::sortField *arg1 = (tdap::client::sortField *) 0 ; std::_tstring result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = ((arg1)->name); vresult = SWIG_NewPointerObj((new std::_tstring(static_cast< const std::_tstring& >(result))), SWIGTYPE_p_std___tstring, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_sortField_asc_set(int argc, VALUE *argv, VALUE self) { tdap::client::sortField *arg1 = (tdap::client::sortField *) 0 ; bool arg2 ; bool val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","asc", 2, argv[0] )); } arg2 = static_cast< bool >(val2); if (arg1) (arg1)->asc = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_sortField_asc_get(int argc, VALUE *argv, VALUE self) { tdap::client::sortField *arg1 = (tdap::client::sortField *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); result = (bool) ((arg1)->asc); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_sortField_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_sortField_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__sortField); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_sortField(int argc, VALUE *argv, VALUE self) { tdap::client::sortField *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::sortField *)new tdap::client::sortField(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_sortField(tdap::client::sortField *arg1) { delete arg1; } static swig_class SwigClassSortFields; SWIGINTERN VALUE _wrap_sortFields_add(int argc, VALUE *argv, VALUE self) { tdap::client::sortFields *arg1 = (tdap::client::sortFields *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; bool arg3 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool val3 ; int ecode3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","add", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","add", 3, argv[1] )); } arg3 = static_cast< bool >(val3); { try { (arg1)->add((_TCHAR const *)arg2,arg3); } CATCH_BZS_AND_STD() } return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } /* Document-method: Transactd::sortFields.size call-seq: size -> size_t Size or Length of the sortFields. */ SWIGINTERN VALUE _wrap_sortFields_size(int argc, VALUE *argv, VALUE self) { tdap::client::sortFields *arg1 = (tdap::client::sortFields *) 0 ; size_t result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = ((tdap::client::sortFields const *)arg1)->size(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_size_t(static_cast< size_t >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_sortFields___getitem__(int argc, VALUE *argv, VALUE self) { tdap::client::sortFields *arg1 = (tdap::client::sortFields *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; tdap::client::sortField *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","operator []", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (tdap::client::sortField *) &((tdap::client::sortFields const *)arg1)->operator [](arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__sortField, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_sortFields_clear(int argc, VALUE *argv, VALUE self) { tdap::client::sortFields *arg1 = (tdap::client::sortFields *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->clear(); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_sortFields_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_sortFields_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__sortFields); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_sortFields(int argc, VALUE *argv, VALUE self) { tdap::client::sortFields *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::sortFields *)new tdap::client::sortFields(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void free_bzs_sortFields(tdap::client::sortFields *arg1) { delete arg1; } static swig_class SwigClassRecordsetQuery; SWIGINTERN VALUE _wrap_recordsetQuery_reset(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { arg1->reset(); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_recordsetQuery_whenIsNull(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","whenIsNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::recordsetQuery *) &(arg1)->whenIsNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_recordsetQuery_whenIsNotNull(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","whenIsNotNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::recordsetQuery *) &(arg1)->whenIsNotNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_recordsetQuery_andIsNull(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","andIsNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::recordsetQuery *) &(arg1)->andIsNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_recordsetQuery_andIsNotNull(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","andIsNotNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::recordsetQuery *) &(arg1)->andIsNotNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_recordsetQuery_orIsNull(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","orIsNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::recordsetQuery *) &(arg1)->orIsNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_recordsetQuery_orIsNotNull(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","orIsNotNull", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (tdap::client::recordsetQuery *) &(arg1)->orIsNotNull((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_recordsetQuery_toString(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)((tdap::client::recordsetQuery const *)arg1)->toString(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_recordsetQuery_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_recordsetQuery_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__recordsetQuery); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_recordsetQuery(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::recordsetQuery *)new_bzs_recordsetQuery(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void delete_bzs_recordsetQuery(tdap::client::recordsetQuery *self){ self->release(); } SWIGINTERN void free_bzs_recordsetQuery(tdap::client::recordsetQuery *arg1) { delete_bzs_recordsetQuery(arg1); } SWIGINTERN VALUE _wrap_recordsetQuery_when(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; char *arg4 = (char *) 0 ; int res2 ; int res3; SWIG_CHAR buf2; SWIG_CHAR buf3; if (!check_param_count(argc, 3, 3)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","when<(p._TCHAR)>", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2.str); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","when<(p._TCHAR)>", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3.str); { try { VALUE type = TYPE(argv[2]); if ((type == T_FIXNUM) || (type == T_BIGNUM)){ long long v = 0; int ecode = SWIG_AsVal_long_SS_long(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","when", 3, argv[2])); } arg1->when(arg2, arg3, v); } else if (type == T_STRING){ SWIG_CHAR buf4; int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc); if (!SWIG_IsOK(ret)) { SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","when", 3, argv[2])); } arg1->when(arg2, arg3, buf4.str); } else if (type == T_FLOAT){ double v = 0; int ecode = SWIG_AsVal_double(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","when", 3, argv[2])); } arg1->when(arg2, arg3, v); } else{ SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "", "__int64 or char *const or double","when", 3, argv[2])); } } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_recordsetQuery_and_(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; char *arg4 = (char *) 0 ; int res2 ; int res3; SWIG_CHAR buf2; SWIG_CHAR buf3; if (!check_param_count(argc, 3, 3)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","and_<(p._TCHAR)>", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2.str); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","and_<(p._TCHAR)>", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3.str); { try { VALUE type = TYPE(argv[2]); if ((type == T_FIXNUM) || (type == T_BIGNUM)){ long long v = 0; int ecode = SWIG_AsVal_long_SS_long(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","and_", 3, argv[2])); } arg1->and_(arg2, arg3, v); } else if (type == T_STRING){ SWIG_CHAR buf4; int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc); if (!SWIG_IsOK(ret)) { SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","and_", 3, argv[2])); } arg1->and_(arg2, arg3, buf4.str); } else if (type == T_FLOAT){ double v = 0; int ecode = SWIG_AsVal_double(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","and_", 3, argv[2])); } arg1->and_(arg2, arg3, v); } else{ SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "", "__int64 or char *const or double","and_", 3, argv[2])); } } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_recordsetQuery_or_(int argc, VALUE *argv, VALUE self) { tdap::client::recordsetQuery *arg1 = (tdap::client::recordsetQuery *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; _TCHAR *arg3 = (_TCHAR *) 0 ; char *arg4 = (char *) 0 ; int res2 ; int res3; SWIG_CHAR buf2; SWIG_CHAR buf3; if (!check_param_count(argc, 3, 3)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","or_<(p._TCHAR)>", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2.str); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","or_<(p._TCHAR)>", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3.str); { try { VALUE type = TYPE(argv[2]); if ((type == T_FIXNUM) || (type == T_BIGNUM)){ long long v = 0; int ecode = SWIG_AsVal_long_SS_long(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","or_", 3, argv[2])); } arg1->or_(arg2, arg3, v); } else if (type == T_STRING){ SWIG_CHAR buf4; int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc); if (!SWIG_IsOK(ret)) { SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","or_", 3, argv[2])); } arg1->or_(arg2, arg3, buf4.str); } else if (type == T_FLOAT){ double v = 0; int ecode = SWIG_AsVal_double(argv[2], &v); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","or_", 3, argv[2])); } arg1->or_(arg2, arg3, v); } else{ SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "", "__int64 or char *const or double","or_", 3, argv[2])); } } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } static swig_class SwigClassGroupFuncBase; SWIGINTERN void free_bzs_groupFuncBase(tdap::client::groupFuncBase *arg1) { delete arg1; } SWIGINTERN VALUE _wrap_groupFuncBase_targetNames(int argc, VALUE *argv, VALUE self) { tdap::client::groupFuncBase *arg1 = (tdap::client::groupFuncBase *) 0 ; tdap::client::fieldNames *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::fieldNames *) &((tdap::client::groupFuncBase const *)arg1)->targetNames(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fieldNames, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_groupFuncBase_resultName(int argc, VALUE *argv, VALUE self) { tdap::client::groupFuncBase *arg1 = (tdap::client::groupFuncBase *) 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)((tdap::client::groupFuncBase const *)arg1)->resultName(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_groupFuncBase_setResultName(int argc, VALUE *argv, VALUE self) { tdap::client::groupFuncBase *arg1 = (tdap::client::groupFuncBase *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","setResultName", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { (arg1)->setResultName((_TCHAR const *)arg2); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_groupFuncBase_resultKey(int argc, VALUE *argv, VALUE self) { tdap::client::groupFuncBase *arg1 = (tdap::client::groupFuncBase *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::client::groupFuncBase const *)arg1)->resultKey(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_groupFuncBase_reset(int argc, VALUE *argv, VALUE self) { tdap::client::groupFuncBase *arg1 = (tdap::client::groupFuncBase *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->reset(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } /* Document-method: Transactd::groupFuncBase.clone call-seq: clone -> groupFuncBase Create a duplicate of the class. */ SWIGINTERN VALUE _wrap_groupFuncBase_clone(int argc, VALUE *argv, VALUE self) { tdap::client::groupFuncBase *arg1 = (tdap::client::groupFuncBase *) 0 ; tdap::client::groupFuncBase *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::groupFuncBase *)(arg1)->clone(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__groupFuncBase, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassGroupQuery; SWIGINTERN VALUE _wrap_groupQuery_reset(int argc, VALUE *argv, VALUE self) { tdap::client::groupQuery *arg1 = (tdap::client::groupQuery *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { arg1->reset(); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_groupQuery_addFunction(int argc, VALUE *argv, VALUE self) { tdap::client::groupQuery *arg1 = (tdap::client::groupQuery *) 0 ; tdap::client::groupFuncBase *arg2 = (tdap::client::groupFuncBase *) 0 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__groupFuncBase, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::groupFuncBase *","addFunction", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::client::groupFuncBase * >(argp2); { try { arg1->addFunction(arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_groupQuery_keyField(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 1, 11)) return Qnil; const char* fdn[11] = {0}; groupQuery* arg1 = selfPtr(self, arg1); for (int i = 0; i < argc; ++i) { if (TYPE(argv[i]) != T_STRING) { SWIG_exception_fail(rb_eArgError, Ruby_Format_TypeError( "", "_TCHAR const *","keyField", i+1, argv[i] )); } fdn[i] = StringValuePtr(argv[i]); } try { arg1->keyField(fdn[0], fdn[1], fdn[2], fdn[3], fdn[4], fdn[5], fdn[6], fdn[7], fdn[8], fdn[9], fdn[10]); } CATCH_BZS_AND_STD() return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_groupQuery_getKeyFields(int argc, VALUE *argv, VALUE self) { tdap::client::groupQuery *arg1 = (tdap::client::groupQuery *) 0 ; tdap::client::fieldNames *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::fieldNames *) &((tdap::client::groupQuery const *)arg1)->getKeyFields(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fieldNames, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_groupQuery_getFunction(int argc, VALUE *argv, VALUE self) { tdap::client::groupQuery *arg1 = (tdap::client::groupQuery *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; tdap::client::groupFuncBase *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","getFunction", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { result = (tdap::client::groupFuncBase *)((tdap::client::groupQuery const *)arg1)->getFunction(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__groupFuncBase, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_groupQuery_functionCount(int argc, VALUE *argv, VALUE self) { tdap::client::groupQuery *arg1 = (tdap::client::groupQuery *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::client::groupQuery const *)arg1)->functionCount(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_groupQuery_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_groupQuery_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__groupQuery); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_groupQuery(int argc, VALUE *argv, VALUE self) { tdap::client::groupQuery *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::groupQuery *)new_bzs_groupQuery(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void delete_bzs_groupQuery(tdap::client::groupQuery *self){ self->release(); } SWIGINTERN void free_bzs_groupQuery(tdap::client::groupQuery *arg1) { delete_bzs_groupQuery(arg1); } static swig_class SwigClassSum; SWIGINTERN VALUE _wrap_new_sum__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; void *argp1 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::sum *result = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","sum", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","sum", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","sum", 2, argv[1] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::sum *)new_bzs_sum__SWIG_0((tdap::client::fieldNames const &)*arg1,(char const *)arg2); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_sum_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_sum_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__sum); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_sum__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; void *argp1 ; int res1 = 0 ; tdap::client::sum *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","sum", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","sum", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); { try { result = (tdap::client::sum *)new_bzs_sum__SWIG_0((tdap::client::fieldNames const &)*arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_sum(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_sum__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_sum__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "sum.new", " sum.new(tdap::client::fieldNames const &targetNames, _TCHAR const *resultName)\n" " sum.new(tdap::client::fieldNames const &targetNames)\n"); return Qnil; } SWIGINTERN void delete_bzs_sum(tdap::client::sum *self){ self->release(); } SWIGINTERN void free_bzs_sum(tdap::client::sum *arg1) { delete_bzs_sum(arg1); } static swig_class SwigClassCount; #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_count_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_count_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__count); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } // Count.new("alias_name") // Count.new(objFieldNames) // Count.new(objFieldNames, "alias_name") SWIGINTERN VALUE _wrap_new_count(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg_fns = 0 ; void *argp_fns; _TCHAR *arg_str = (_TCHAR *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; tdap::client::count *result = 0 ; if (!check_param_count(argc, 1, 2)) return Qnil; // check first argument res1 = SWIG_ConvertPtr(argv[0], &argp_fns, SWIGTYPE_p_bzs__fieldNames, 0); // objFieldNames ? if (!SWIG_IsOK(res1)) { // Count.new("alias_name") res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); // "alias_name" ? if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "tdap::client::fieldNames const & or _TCHAR const *","count", 1, argv[0])); } arg_str = reinterpret_cast< _TCHAR * >(buf1); try { result = (tdap::client::count *)new_bzs_count((char const *)arg_str); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } else { if (!argp_fns) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","count", 1, argv[0])); } arg_fns = reinterpret_cast< tdap::client::fieldNames * >(argp_fns); if (argc == 2 && argv[1] != Qnil) { // Count.new(objFieldNames, "alias_name") res1 = SWIG_AsCharPtrAndSize(argv[1], &buf1, NULL, &alloc1); // "alias_name" ? if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "_TCHAR const *","count", 2, argv[1])); } arg_str = reinterpret_cast< _TCHAR * >(buf1); try { result = (tdap::client::count *)new_bzs_count_fns((tdap::client::fieldNames const &)*arg_fns, (char const *)arg_str); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } else { // Count.new(objFieldNames) try { result = (tdap::client::count *)new_bzs_count_fns((tdap::client::fieldNames const &)*arg_fns); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } } if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return self; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN void delete_bzs_count(tdap::client::count *self){ self->release(); } SWIGINTERN void free_bzs_count(tdap::client::count *arg1) { delete_bzs_count(arg1); } static swig_class SwigClassFirst; SWIGINTERN VALUE _wrap_new_first__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; void *argp1 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::first *result = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","first", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","first", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","first", 2, argv[1] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::first *)new_bzs_first__SWIG_0((tdap::client::fieldNames const &)*arg1,(char const *)arg2); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_first_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_first_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__first); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_first__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; void *argp1 ; int res1 = 0 ; tdap::client::first *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","first", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","first", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); { try { result = (tdap::client::first *)new_bzs_first__SWIG_0((tdap::client::fieldNames const &)*arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_first(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_first__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_first__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "first.new", " first.new(tdap::client::fieldNames const &targetNames, _TCHAR const *resultName)\n" " first.new(tdap::client::fieldNames const &targetNames)\n"); return Qnil; } SWIGINTERN void delete_bzs_first(tdap::client::first *self){ self->release(); } SWIGINTERN void free_bzs_first(tdap::client::first *arg1) { delete_bzs_first(arg1); } static swig_class SwigClassLast; SWIGINTERN VALUE _wrap_new_last__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; void *argp1 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::last *result = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","last", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","last", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","last", 2, argv[1] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::last *)new_bzs_last__SWIG_0((tdap::client::fieldNames const &)*arg1,(char const *)arg2); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_last_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_last_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__last); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_last__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; void *argp1 ; int res1 = 0 ; tdap::client::last *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","last", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","last", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); { try { result = (tdap::client::last *)new_bzs_last__SWIG_0((tdap::client::fieldNames const &)*arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_last(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_last__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_last__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "last.new", " last.new(tdap::client::fieldNames const &targetNames, _TCHAR const *resultName)\n" " last.new(tdap::client::fieldNames const &targetNames)\n"); return Qnil; } SWIGINTERN void delete_bzs_last(tdap::client::last *self){ self->release(); } SWIGINTERN void free_bzs_last(tdap::client::last *arg1) { delete_bzs_last(arg1); } static swig_class SwigClassAvg; SWIGINTERN VALUE _wrap_new_avg__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; void *argp1 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::avg *result = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","avg", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","avg", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","avg", 2, argv[1] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::avg *)new_bzs_avg__SWIG_0((tdap::client::fieldNames const &)*arg1,(char const *)arg2); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_avg_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_avg_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__avg); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_avg__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; void *argp1 ; int res1 = 0 ; tdap::client::avg *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","avg", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","avg", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); { try { result = (tdap::client::avg *)new_bzs_avg__SWIG_0((tdap::client::fieldNames const &)*arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_avg(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_avg__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_avg__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "avg.new", " avg.new(tdap::client::fieldNames const &targetNames, _TCHAR const *resultName)\n" " avg.new(tdap::client::fieldNames const &targetNames)\n"); return Qnil; } SWIGINTERN void delete_bzs_avg(tdap::client::avg *self){ self->release(); } SWIGINTERN void free_bzs_avg(tdap::client::avg *arg1) { delete_bzs_avg(arg1); } static swig_class SwigClassMin; SWIGINTERN VALUE _wrap_new_min__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; void *argp1 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::min *result = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","min", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","min", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","min", 2, argv[1] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::min *)new_bzs_min__SWIG_0((tdap::client::fieldNames const &)*arg1,(char const *)arg2); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_min_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_min_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__min); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_min__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; void *argp1 ; int res1 = 0 ; tdap::client::min *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","min", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","min", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); { try { result = (tdap::client::min *)new_bzs_min__SWIG_0((tdap::client::fieldNames const &)*arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_min(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_min__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_min__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "min.new", " min.new(tdap::client::fieldNames const &targetNames, _TCHAR const *resultName)\n" " min.new(tdap::client::fieldNames const &targetNames)\n"); return Qnil; } SWIGINTERN void delete_bzs_min(tdap::client::min *self){ self->release(); } SWIGINTERN void free_bzs_min(tdap::client::min *arg1) { delete_bzs_min(arg1); } static swig_class SwigClassMax; SWIGINTERN VALUE _wrap_new_max__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; void *argp1 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::max *result = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","max", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","max", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","max", 2, argv[1] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::max *)new_bzs_max__SWIG_0((tdap::client::fieldNames const &)*arg1,(char const *)arg2); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_max_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_max_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__max); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_max__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::fieldNames *arg1 = 0 ; void *argp1 ; int res1 = 0 ; tdap::client::max *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__fieldNames, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::fieldNames const &","max", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::fieldNames const &","max", 1, argv[0])); } arg1 = reinterpret_cast< tdap::client::fieldNames * >(argp1); { try { result = (tdap::client::max *)new_bzs_max__SWIG_0((tdap::client::fieldNames const &)*arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_max(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_max__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__fieldNames, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_max__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "max.new", " max.new(tdap::client::fieldNames const &targetNames, _TCHAR const *resultName)\n" " max.new(tdap::client::fieldNames const &targetNames)\n"); return Qnil; } SWIGINTERN void delete_bzs_max(tdap::client::max *self){ self->release(); } SWIGINTERN void free_bzs_max(tdap::client::max *arg1) { delete_bzs_max(arg1); } static swig_class SwigClassRecordset; SWIGINTERN VALUE _wrap_Recordset_clone(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; tdap::client::recordset *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::recordset *)((tdap::client::recordset const *)arg1)->clone(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__recordset, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_first(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; tdap::client::row *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::row *) &((tdap::client::recordset const *)arg1)->first(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fieldsBase, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_last(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; tdap::client::row *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::row *) &((tdap::client::recordset const *)arg1)->last(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fieldsBase, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_size(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; size_t result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = ((tdap::client::recordset const *)arg1)->size(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_size_t(static_cast< size_t >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_count(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; size_t result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = ((tdap::client::recordset const *)arg1)->count(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_size_t(static_cast< size_t >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_clearRecords(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->clearRecords(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_fieldDefs(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; tdap::client::fielddefs *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::fielddefs *)((tdap::client::recordset const *)arg1)->fieldDefs(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__fielddefs, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_clear(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->clear(); clearFieldsCache(self); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_top(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; tdap::client::recordset *arg2 = 0 ; int arg3 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; tdap::client::recordset *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__recordset, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::recordset &","top", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::recordset &","top", 2, argv[0])); } arg2 = reinterpret_cast< tdap::client::recordset * >(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","top", 3, argv[1] )); } arg3 = static_cast< int >(val3); { try { result = (tdap::client::recordset *) &((tdap::client::recordset const *)arg1)->top(*arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__recordset, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_erase__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; size_t arg2 ; size_t val2 ; int ecode2 = 0 ; SwigValueWrapper< std::vector< tdap::client::fieldsBase * >::iterator > result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_size_t(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","erase", 2, argv[0] )); } arg2 = static_cast< size_t >(val2); { try { result = (arg1)->erase(arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj((new tdap::client::recordset::iterator(static_cast< const tdap::client::recordset::iterator& >(result))), SWIGTYPE_p_std__vectorT_bzs__fieldsBase_p_t__iterator, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_erase__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; tdap::client::recordset::iterator *arg2 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< std::vector< tdap::client::fieldsBase * >::iterator > result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_std__vectorT_bzs__fieldsBase_p_t__iterator, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::recordset::iterator const &","erase", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::recordset::iterator const &","erase", 2, argv[0])); } arg2 = reinterpret_cast< tdap::client::recordset::iterator * >(argp2); { try { result = (arg1)->erase((tdap::client::recordset::iterator const &)*arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj((new tdap::client::recordset::iterator(static_cast< const tdap::client::recordset::iterator& >(result))), SWIGTYPE_p_std__vectorT_bzs__fieldsBase_p_t__iterator, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_erase(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__recordset, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__vectorT_bzs__fieldsBase_p_t__iterator, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Recordset_erase__SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__recordset, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Recordset_erase__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "Recordset.erase", " tdap::client::recordset::iterator Recordset.erase(size_t index)\n" " tdap::client::recordset::iterator Recordset.erase(tdap::client::recordset::iterator const &it)\n"); return Qnil; } SWIGINTERN VALUE _wrap_Recordset_removeField(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","removeField", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { (arg1)->removeField(arg2); clearFieldsCache(self); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_join(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = 0 ; tdap::client::recordset *arg2 = 0 ; tdap::client::recordsetQuery *arg3 = 0 ; void *argp2 = 0 ; void *argp3 = 0 ; int res2 = 0 ; int res3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__recordset, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::recordset &","join", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::recordset &","join", 1, argv[0])); } res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_bzs__recordsetQuery, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "tdap::client::recordsetQuery &","join", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::recordsetQuery &","join", 2, argv[1])); } arg2 = reinterpret_cast< tdap::client::recordset * >(argp2); arg3 = reinterpret_cast< tdap::client::recordsetQuery * >(argp3); { try { arg1->join(*arg2, *arg3); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_outerJoin(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = 0 ; tdap::client::recordset *arg2 = 0 ; tdap::client::recordsetQuery *arg3 = 0 ; void *argp2 = 0 ; void *argp3 = 0 ; int res2 = 0 ; int res3 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__recordset, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::recordset &","outerJoin", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::recordset &","outerJoin", 1, argv[0])); } res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_bzs__recordsetQuery, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "tdap::client::recordsetQuery &","outerJoin", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::recordsetQuery &","outerJoin", 2, argv[1])); } arg2 = reinterpret_cast< tdap::client::recordset * >(argp2); arg3 = reinterpret_cast< tdap::client::recordsetQuery * >(argp3); { try { arg1->outerJoin(*arg2, *arg3); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_matchBy(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; tdap::client::recordsetQuery *arg2 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__recordsetQuery, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::recordsetQuery &","matchBy", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::recordsetQuery &","matchBy", 2, argv[0])); } arg2 = reinterpret_cast< tdap::client::recordsetQuery * >(argp2); { try { arg1->matchBy(*arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_groupBy(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; tdap::client::groupQuery *arg2 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__groupQuery, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::groupQuery &","groupBy", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::groupQuery &","groupBy", 2, argv[0])); } arg2 = reinterpret_cast< tdap::client::groupQuery * >(argp2); { try { arg1->groupBy(*arg2); clearFieldsCache(self); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_orderBy(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = 0x00; tdap::client::sortFields *arg2 = 0x00; void *argp2 ; int res2 = 0 ; const char* fdn[8] = {0}; if (!check_param_count(argc, 1, 8)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__sortFields, 0 ); if (SWIG_IsOK(res2)) { if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::sortFields const &","orderBy", 2, argv[0])); } arg2 = reinterpret_cast< tdap::client::sortFields * >(argp2); }else { //Get key field names int alloc = 0; char* buf = NULL; for (int i=0;i(buf); } } { try { if (arg2) arg1->orderBy(*arg2); else arg1->orderBy(fdn[0], fdn[1], fdn[2], fdn[3], fdn[4], fdn[5], fdn[6], fdn[7]); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_reverse(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { arg1->reverse(); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_appendField(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; tdap::fielddef *fd = 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; void *argp2 ; int arg3 ; short arg4 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val3 ; int ecode3 = 0 ; short val4 ; int ecode4 = 0 ; if (!check_param_count(argc, 1, 3)) return Qnil; arg1 = selfPtr(self, arg1); if (TYPE(argv[0]) == T_STRING) { res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","appendField", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","appendField", 3, argv[1] )); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_short(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "short","appendField", 4, argv[2] )); } arg4 = static_cast< short >(val4); } else { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__fielddef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::fielddef*","appendField", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::fielddef*","appendField", 2, argv[0])); } fd = reinterpret_cast< tdap::fielddef * >(argp2); } { try { if (fd) (arg1)->appendField(*fd); else (arg1)->appendField((_TCHAR const *)arg2,arg3,arg4); clearFieldsCache(self); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_Recordset_unionRecordset(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *arg1 = (tdap::client::recordset *) 0 ; tdap::client::recordset *arg2 = 0 ; void *argp2 ; int res2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__recordset, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::recordset const &","operator +=", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::recordset const &","operator +=", 2, argv[0])); } arg2 = reinterpret_cast< tdap::client::recordset * >(argp2); { try { arg1->operator +=((tdap::client::recordset const &)*arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset___getitem__(int argc, VALUE *argv, VALUE self) { VALUE fields, fieldIds; VALUE fetchClass = Qnil; VALUE ctorArgs = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; tdap::client::recordset* rs = selfPtr(self, rs); size_t index = -1; if (!obj2Integer(argv[0], index)) return Qnil; int fetchMode = getFetchMode(self); if (fetchMode == FETCH_VAL_ASSOC || fetchMode == FETCH_VAL_BOTH) fields = getFieldsCache(self, *rs->fieldDefs()); if (fetchMode == FETCH_OBJ || fetchMode == FETCH_USR_CLASS) { if (fetchMode == FETCH_USR_CLASS) { fetchClass = getFetchClass(self); if (fetchClass == Qnil) rb_raise(rb_eArgError, "FETCH_USR_CLASS is specified but fetchClass is not specified."); ctorArgs = getCtorArgs(self); }else if (fetchMode == FETCH_OBJ) fetchClass = rb_class_new(rb_cObject); fieldIds = getFieldIdsCache(self, *rs->fieldDefs()); if (! isAccessorInitialized(fetchClass)) { fields = getFieldsCache(self, *rs->fieldDefs()); defineFieldAccessor(fetchClass, fields, fieldIds); } } try { switch (fetchMode) { case FETCH_RECORD_INTO: return SWIG_NewPointerObj((void*)&((*rs)[index]), SWIGTYPE_p_bzs__fieldsBase, 0 | 0); case FETCH_OBJ: case FETCH_USR_CLASS: return recordToRubyClass((*rs)[index], fetchClass, ctorArgs, fieldIds); default: return recordToRubyArray((*rs)[index], fetchMode, fields); } } CATCH_BZS_AND_STD() fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_getRecord(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *rs = (tdap::client::recordset *) 0 ; size_t index ; size_t val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; rs = selfPtr(self, rs); ecode2 = SWIG_AsVal_size_t(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","getRecord", 2, argv[0] )); } index = static_cast< size_t >(val2); try { return SWIG_NewPointerObj((void*)&((*rs)[index]), SWIGTYPE_p_bzs__fieldsBase, 0 | 0 ); } CATCH_BZS_AND_STD() fail: return Qnil; } SWIGINTERN VALUE _wrap_Recordset_fetchmode_set(int argc, VALUE *argv, VALUE self) { return int_prop_set(argc, argv, self, g_id_fetchmode, "recordset"); } SWIGINTERN VALUE _wrap_Recordset_fetchmode_get(int argc, VALUE *argv, VALUE self) { return int_prop_get(argc, argv, self, g_id_fetchmode, "recordset"); } /* SWIGINTERN VALUE _wrap_Recordset_each(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *rs = (tdap::client::recordset *) 0 ; VALUE fetchmode = Qnil; int fetchMode = 0; VALUE fields = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; rs = selfPtr(self, rs); if (rs->size() == 0) { return self; } fetchmode = rb_ivar_get(self, g_id_fetchmode); if (fetchmode == Qnil) { fetchmode = INT2FIX(FETCH_RECORD_INTO); rb_ivar_set(self, g_id_fetchmode, fetchmode); } fetchMode = FIX2INT(fetchmode); if (fetchMode == FETCH_VAL_BOTH || fetchMode == FETCH_VAL_ASSOC) { fields = getFieldsCache(self, rs); } try { for (size_t index = 0; index < rs->size(); ++index) { rb_yield(recordToRubyArray((*rs)[index], fetchMode, fields)); } return self; } CATCH_BZS_AND_STD() fail: return Qnil; } */ SWIGINTERN VALUE _wrap_Recordset_to_a(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *rs = 0 ; VALUE fields, fieldIds; VALUE vresult = Qnil; VALUE fetchClass = Qnil; VALUE ctorArgs = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; rs = selfPtr(self, rs); if (rs->size() == 0) return rb_ary_new(); int fetchMode = getFetchMode(self); if (fetchMode == FETCH_RECORD_INTO) fetchMode = FETCH_VAL_BOTH; if (fetchMode == FETCH_VAL_ASSOC || fetchMode == FETCH_VAL_BOTH) fields = getFieldsCache(self, *rs->fieldDefs()); if (fetchMode == FETCH_OBJ || fetchMode == FETCH_USR_CLASS) { if (fetchMode == FETCH_USR_CLASS) { fetchClass = getFetchClass(self); if (fetchClass == Qnil) rb_raise(rb_eArgError, "FETCH_USR_CLASS is specified but fetchClass is not specified."); ctorArgs = getCtorArgs(self); }else if (fetchMode == FETCH_OBJ) fetchClass = rb_class_new(rb_cObject); fieldIds = getFieldIdsCache(self, *rs->fieldDefs()); if (! isAccessorInitialized(fetchClass)) { fields = getFieldsCache(self, *rs->fieldDefs()); defineFieldAccessor(fetchClass, fields, fieldIds); } } try { size_t size = rs->size(); vresult = rb_ary_new2(size); for (size_t index = 0; index < size; ++index) { if (fetchMode == FETCH_OBJ || fetchMode == FETCH_USR_CLASS) rb_ary_store(vresult, index, recordToRubyClass((*rs)[index], fetchClass, ctorArgs, fieldIds)); else rb_ary_store(vresult, index, recordToRubyArray((*rs)[index], fetchMode, fields)); } return vresult; } CATCH_BZS_AND_STD() fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_Recordset_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_Recordset_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__recordset); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_Recordset(int argc, VALUE *argv, VALUE self) { tdap::client::recordset *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::recordset *)new_bzs_recordset(); DATA_PTR(self) = result; rb_ivar_set(self, g_id_fetchmode, INT2FIX(FETCH_RECORD_INTO)); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN void delete_bzs_recordset(tdap::client::recordset *self){ self->release(); } SWIGINTERN void free_bzs_recordset(tdap::client::recordset *arg1) { delete_bzs_recordset(arg1); } static swig_class SwigClassPreparedQuery; #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_preparedQuery_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_preparedQuery_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__preparedQuery); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_preparedQuery(int argc, VALUE *argv, VALUE self) { tdap::client::pq_handle arg1 ; void *argp1 ; int res1 = 0 ; tdap::client::preparedQuery *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; { res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_boost__shared_ptrT_bzs__filter_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::pq_handle","preparedQuery", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::pq_handle","preparedQuery", 1, argv[0])); } else { arg1 = *(reinterpret_cast< tdap::client::pq_handle * >(argp1)); } } { try { result = (tdap::client::preparedQuery *)new tdap::client::preparedQuery(arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_preparedQuery_supplyValue__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::preparedQuery *arg1 = (tdap::client::preparedQuery *) 0 ; int arg2 ; _TCHAR *arg3 = (_TCHAR *) 0 ; int val2 ; int ecode2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","supplyValue", 2, argv[0] )); } arg2 = static_cast< int >(val2); res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","supplyValue", 3, argv[1] )); } arg3 = reinterpret_cast< _TCHAR * >(buf3); { try { result = (bool)(arg1)->supplyValue(arg2,(_TCHAR const *)arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return vresult; fail: if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return Qnil; } SWIGINTERN VALUE _wrap_preparedQuery_supplyValue__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::preparedQuery *arg1 = (tdap::client::preparedQuery *) 0 ; int arg2 ; __int64 arg3 ; int val2 ; int ecode2 = 0 ; long long val3 ; int ecode3 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","supplyValue", 2, argv[0] )); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "__int64","supplyValue", 3, argv[1] )); } arg3 = static_cast< __int64 >(val3); { try { result = (bool)(arg1)->supplyValue(arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_preparedQuery_supplyValue__SWIG_2(int argc, VALUE *argv, VALUE self) { tdap::client::preparedQuery *arg1 = (tdap::client::preparedQuery *) 0 ; int arg2 ; double arg3 ; int val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 2, 2)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","supplyValue", 2, argv[0] )); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","supplyValue", 3, argv[1] )); } arg3 = static_cast< double >(val3); { try { result = (bool)(arg1)->supplyValue(arg2,arg3); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_preparedQuery_supplyValue(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__preparedQuery, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_long_SS_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_preparedQuery_supplyValue__SWIG_1(nargs, args, self); } } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__preparedQuery, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_preparedQuery_supplyValue__SWIG_2(nargs, args, self); } } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__preparedQuery, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_preparedQuery_supplyValue__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "preparedQuery.supplyValue", " bool preparedQuery.supplyValue(int index, _TCHAR const *v)\n" " bool preparedQuery.supplyValue(int index, __int64 v)\n" " bool preparedQuery.supplyValue(int index, double v)\n"); return Qnil; } SWIGINTERN VALUE _wrap_preparedQuery_addValue(int argc, VALUE *argv, VALUE self) { tdap::client::preparedQuery *arg1 = (tdap::client::preparedQuery *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); int type = TYPE(argv[0]); __int64 i64 = 0; double d = 0; char* str = NULL; if (!getTypedValue(argv[0] , type, i64, d, str)) return Qnil; { try { if (type == T_STRING) result = arg1->addValue(str); else if(type == T_FIXNUM) result = arg1->addValue(i64); else if(type == T_FLOAT) result = arg1->addValue(d); else //NULL result = arg1->addValue(""); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_preparedQuery_resetAddIndex(int argc, VALUE *argv, VALUE self) { tdap::client::preparedQuery *arg1 = (tdap::client::preparedQuery *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->resetAddIndex(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN void free_bzs_preparedQuery(tdap::client::preparedQuery *arg1) { delete arg1; } static swig_class SwigClassActiveTable; SWIGINTERN VALUE _wrap_activeTable_alias(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 2, 2)) return Qnil; activeTable* arg1 = selfPtr(self, arg1); if (TYPE(argv[0]) != T_STRING || TYPE(argv[1]) != T_STRING) rb_raise(rb_eArgError, "params is not string."); try { arg1->alias(StringValuePtr(argv[0]), StringValuePtr(argv[1])); } CATCH_BZS_AND_STD() return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_activeTable_resetAlias(int argc, VALUE *argv, VALUE self) { tdap::client::activeTable *arg1 = (tdap::client::activeTable *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { arg1->resetAlias(); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_activeTable_getWritableRecord(int argc, VALUE *argv, VALUE self) { tdap::client::activeTable *arg1 = (tdap::client::activeTable *) 0 ; tdap::client::writableRecord *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::writableRecord *) &(arg1)->getWritableRecord(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__writableRecord, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_activeTable_index(int argc, VALUE *argv, VALUE self) { tdap::client::activeTable *arg1 = (tdap::client::activeTable *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","index", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { arg1->index(arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_activeTable_option(int argc, VALUE *argv, VALUE self) { tdap::client::activeTable *arg1 = (tdap::client::activeTable *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","option", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { arg1->option(arg2); } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_activeTable__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::idatabaseManager *arg1 = (tdap::client::idatabaseManager *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::activeTable *result = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_bzs__pooledDbManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::idatabaseManager *","activeTable", 1, argv[0] )); } arg1 = reinterpret_cast< tdap::client::idatabaseManager * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","activeTable", 2, argv[1] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::activeTable *)new_bzs_activeTable__SWIG_0(arg1,(char const *)arg2); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_activeTable_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_activeTable_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__activeTable); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_activeTable__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::database *arg1 = (tdap::client::database *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; short arg3 = TD_OPEN_NORMAL; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::activeTable *result = 0 ; if (!check_param_count(argc, 2, 3)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_bzs__database, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::database *","activeTable", 1, argv[0] )); } arg1 = reinterpret_cast< tdap::client::database * >(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","activeTable", 2, argv[1] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); if (argc == 3) { VALUE type = TYPE(argv[2]); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { long long val = 0; int ecode = SWIG_AsVal_long_SS_long(argv[2], &val); if (!SWIG_IsOK(ecode)) SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError("", "short", "mode", 3, argv[2])); arg3 = (short)val; } } { try { result = (tdap::client::activeTable *)new_bzs_activeTable__SWIG_1(arg1,(char const *)arg2, arg3); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); } CATCH_BZS_AND_STD() } if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return self; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_new_activeTable(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 3) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__pooledDbManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_activeTable__SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_activeTable__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__database, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_activeTable__SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "activeTable.new", " activeTable.new(tdap::client::idatabaseManager *mgr, _TCHAR const *tableName)\n" " activeTable.new(tdap::client::database *db, _TCHAR const *tableName)\n"); return Qnil; } SWIGINTERN void delete_bzs_activeTable(activeTable *self){ if (g_vPtrList.remove(self->table().get())) { if (nsdatabase::testTablePtr(self->table().get())) self->table()->nsdb()->setTestPtrIgnore(true); } g_refCounter.remove(self); self->release(); } SWIGINTERN void free_bzs_activeTable(activeTable *arg1) { SWIG_RubyRemoveTracking(arg1); delete_bzs_activeTable(arg1); } SWIGINTERN VALUE _wrap_activeTable_read__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::activeTable *arg1 = 0x00 ; tdap::client::queryBase *arg2 = 0x00 ; void *argp2 = 0 ; int res2 = 0 ; tdap::client::recordset *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__queryBase, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::queryBase &","read", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::queryBase &","read", 2, argv[0])); } arg2 = reinterpret_cast< tdap::client::queryBase * >(argp2); { try { result = recordset::create(); arg1->read(*result, *arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__recordset, SWIG_POINTER_OWN | 0 ); rb_ivar_set(vresult, g_id_fetchmode, INT2FIX(FETCH_RECORD_INTO)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_activeTable_read__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::activeTable *arg1 = (tdap::client::activeTable *) 0 ; tdap::client::preparedQuery *arg2 = (tdap::client::preparedQuery *) 0 ; void *argp2 = 0 ; int res2 = 0 ; tdap::client::recordset *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 9)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__preparedQuery, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::preparedQuery *","read", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::client::preparedQuery * >(argp2); { arg2->resetAddIndex(); for (int i = 1; i < argc; ++i){ VALUE type = TYPE(argv[i]); if ((type == T_FIXNUM) || (type == T_BIGNUM)){ long long val = 0; int ecode = SWIG_AsVal_long_SS_long(argv[i], &val); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","read", i+2, argv[i])); } arg2->addValue((__int64)val); } else if (type == T_STRING){ SWIG_CHAR buf; int ret = SWIG_AsCharPtrAndSize(argv[i], &buf.str, NULL, &buf.alloc); if (!SWIG_IsOK(ret)) { SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","read", i+2, argv[i])); } arg2->addValue(buf.str); } else if (type == T_FLOAT){ double val = 0; int ecode = SWIG_AsVal_double(argv[i], &val); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","read", i+2, argv[i])); } arg2->addValue(val); } else if (type == T_NIL){ break; } else{ SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "", "integer or float or string","read",i+2, argv[i])); } } } { try { result = recordset::create(); arg1->read(*result, arg2->getFilter()); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__recordset, SWIG_POINTER_OWN | 0 ); rb_ivar_set(vresult, g_id_fetchmode, INT2FIX(FETCH_RECORD_INTO)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_activeTable_read(int nargs, VALUE *args, VALUE self) { if ((nargs < 1)||(nargs > 9)) SWIG_fail; { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(self, &vptr, SWIGTYPE_p_bzs__activeTable, 0); _v = SWIG_CheckState(res); if (_v) { if (nargs == 1) { vptr = 0; int res = SWIG_ConvertPtr(args[0], &vptr, SWIGTYPE_p_bzs__queryBase, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_activeTable_read__SWIG_0(nargs, args, self); } } vptr = 0; int res = SWIG_ConvertPtr(args[0], &vptr, SWIGTYPE_p_bzs__preparedQuery, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_activeTable_read__SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( nargs+1, 3, "read.new", " read.new(tdap::client::queryBase &q)\n" " read.new(tdap::client::preparedQuery *q)\n"); return Qnil; } SWIGINTERN VALUE _wrap_activeTable_readMore(int nargs, VALUE *args, VALUE self) { tdap::client::activeTable *arg1 = 0x00 ; tdap::client::recordset *result = 0 ; VALUE vresult = Qnil; if (nargs != 0) SWIG_fail; //Get activeTable ptr arg1 = selfPtr(self, arg1); { try { result = recordset::create(); arg1->readMore(*result); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__recordset, SWIG_POINTER_OWN | 0 ); rb_ivar_set(vresult, g_id_fetchmode, INT2FIX(FETCH_RECORD_INTO)); return vresult; fail: Ruby_Format_OverloadedError( nargs+1, 11, "readMore", " tdap::client::activeTable & readMore "); return Qnil; } SWIGINTERN VALUE _wrap_activeTable_prepare(int argc, VALUE *argv, VALUE self) { tdap::client::activeTable *arg1 = (tdap::client::activeTable *) 0 ; tdap::client::queryBase *arg2 = 0 ; bool arg3 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 = false; int ecode3 = 0 ; tdap::client::preparedQuery *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 2)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_bzs__queryBase, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::queryBase &","prepare", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::queryBase &","prepare", 2, argv[0])); } arg2 = reinterpret_cast< tdap::client::queryBase * >(argp2); if (argc == 2) { ecode3 = SWIG_AsVal_bool(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","prepare", 3, argv[1] )); } arg3 = static_cast< bool >(val3); } { try { result = new preparedQuery(arg1->prepare(*arg2, arg3)); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__preparedQuery, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_activeTable_join(int nargs, VALUE *args, VALUE self) { tdap::client::activeTable *arg1 = 0x00 ; tdap::client::recordset *arg2 = 0 ; tdap::client::queryBase *arg3q = 0 ; tdap::client::preparedQuery *arg3p = 0 ; _TCHAR *arg4 = (_TCHAR *) 0 ; _TCHAR *arg5 = (_TCHAR *) 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; const _TCHAR* fdn[8]={0}; //Check param count if ( nargs > 10) SWIG_fail; //Get activeTable ptr arg1 = selfPtr(self, arg1); //Get recordset ptr res2 = SWIG_ConvertPtr(args[0], &argp2, SWIGTYPE_p_bzs__recordset, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::recordset &","join", 2, args[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::recordset &","join", 2, args[0])); } arg2 = reinterpret_cast< tdap::client::recordset * >(argp2); //Get queryBase or preparedQuery ptr res3 = SWIG_ConvertPtr(args[1], &argp3, SWIGTYPE_p_bzs__queryBase, 0 ); if (!SWIG_IsOK(res3)) { res3 = SWIG_ConvertPtr(args[1], &argp3, SWIGTYPE_p_bzs__preparedQuery, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "queryBase or preparedQuery &","join", 3, args[1] )); }else{ if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::preparedQuery &","join", 3, args[1])); } arg3p = reinterpret_cast< tdap::client::preparedQuery * >(argp3); } }else { if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::queryBase &","join", 3, args[1])); } arg3q = reinterpret_cast< tdap::client::queryBase * >(argp3); } //Get key field names { int alloc = 0; char* buf = NULL; for (int i=2;i(buf); } } //Execute join { try { if (arg3q) arg1->join(*arg2, *arg3q, fdn[0], fdn[1], fdn[2], fdn[3], fdn[4], fdn[5], fdn[6], fdn[7]); else arg1->join(*arg2, arg3p->getFilter(), fdn[0], fdn[1], fdn[2], fdn[3], fdn[4], fdn[5], fdn[6], fdn[7]); clearFieldsCache(args[0]); } CATCH_BZS_AND_STD() //vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__activeTable, 0 | 0 ); return args[0]; } fail: Ruby_Format_OverloadedError( nargs+1, 11, "join", " tdap::client::activeTable & join "); return Qnil; } SWIGINTERN VALUE _wrap_activeTable_outerJoin(int nargs, VALUE *args, VALUE self) { tdap::client::activeTable *arg1 = 0x00 ; tdap::client::recordset *arg2 = 0 ; tdap::client::queryBase *arg3q = 0 ; tdap::client::preparedQuery *arg3p = 0 ; _TCHAR *arg4 = (_TCHAR *) 0 ; _TCHAR *arg5 = (_TCHAR *) 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; const _TCHAR* fdn[8]={0}; //Check param count if ( nargs > 10) SWIG_fail; //Get activeTable ptr arg1 = selfPtr(self, arg1); //Get recordset ptr res2 = SWIG_ConvertPtr(args[0], &argp2, SWIGTYPE_p_bzs__recordset, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::recordset &","outerJoin", 2, args[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::recordset &","outerJoin", 2, args[0])); } arg2 = reinterpret_cast< tdap::client::recordset * >(argp2); //Get queryBase or preparedQuery ptr res3 = SWIG_ConvertPtr(args[1], &argp3, SWIGTYPE_p_bzs__queryBase, 0 ); if (!SWIG_IsOK(res3)) { res3 = SWIG_ConvertPtr(args[1], &argp3, SWIGTYPE_p_bzs__preparedQuery, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "queryBase or preparedQuery &","outerJoin", 3, args[1] )); }else{ if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::preparedQuery &","outerJoin", 3, args[1])); } arg3p = reinterpret_cast< tdap::client::preparedQuery * >(argp3); } }else { if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::queryBase &","outerJoin", 3, args[1])); } arg3q = reinterpret_cast< tdap::client::queryBase * >(argp3); } //Get key filed names { int alloc = 0; char* buf = NULL; for (int i=2;i(buf); } } //Execute outerJoin { try { if (arg3q) arg1->outerJoin(*arg2, *arg3q, fdn[0], fdn[1], fdn[2], fdn[3], fdn[4], fdn[5], fdn[6], fdn[7]); else arg1->outerJoin(*arg2, arg3p->getFilter(), fdn[0], fdn[1], fdn[2], fdn[3], fdn[4], fdn[5], fdn[6], fdn[7]); clearFieldsCache(args[0]); } CATCH_BZS_AND_STD() return args[0]; } fail: Ruby_Format_OverloadedError( nargs+1, 11, "outerJoin", " tdap::client::activeTable & outerJoin "); return Qnil; } SWIGINTERN VALUE _wrap_activeTable_release(int argc, VALUE *argv, VALUE self) { tdap::client::activeTable *arg1 = (tdap::client::activeTable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__activeTable, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::activeTable *","release", 1, self )); } arg1 = reinterpret_cast< tdap::client::activeTable * >(argp1); { try { bzs_activeTable_release(arg1); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_activeTable_table(int argc, VALUE *argv, VALUE self) { tdap::client::activeTable *arg1 = (tdap::client::activeTable *) 0 ; tdap::client::table *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::table *)bzs_activeTable_table(arg1); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__table, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_activeTable_keyValue(int nargs, VALUE *args, VALUE self) { tdap::client::activeTable *arg1 = 0x00; //Get activeTable ptr arg1 = selfPtr(self, arg1); { //Get internal table tabledef keydef tdap::client::table_ptr tb = arg1->table(); const tdap::tabledef* td = tb->tableDef(); const tdap::keydef* kd = &td->keyDefs[tb->keyNum()]; //Check keynum if (tb->keyNum() >= td->keyCount){ SWIG_exception_fail(SWIG_ValueError, "Key number error.\n Invalid key number."); } // Set params tb->clearBuffer(); for (int i = 0; i < nargs; ++i){ if (kd->segmentCount <= i) break; ushort_td fnum = kd->segments[i].fieldNum; VALUE type = TYPE(args[i]); if ((type == T_FIXNUM) || (type == T_BIGNUM)){ long long val = 0; int ecode = SWIG_AsVal_long_SS_long(args[i], &val); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","keyValue", i+1, args[i])); } tb->setFV(fnum, (__int64)val); } else if (type == T_STRING){ SWIG_CHAR buf; int ret = SWIG_AsCharPtrAndSize(args[i], &buf.str, NULL, &buf.alloc); if (!SWIG_IsOK(ret)) { SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","keyValue", i+1, args[i])); } tb->setFV(fnum, buf.str); } else if (type == T_FLOAT){ double val = 0; int ecode = SWIG_AsVal_double(args[i], &val); if (!SWIG_IsOK(ecode)) { SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","keyValue", i+1, args[i])); } tb->setFV(fnum, val); } else if (type == T_NIL) { tb->setFV(fnum, (const char*)NULL); } else { void *argp3; int res3 = 0; tdap::bitset *arg3 = 0; res3 = SWIG_ConvertPtr(args[i], &argp3, SWIGTYPE_p_bzs__bitset, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "tdap::bitset const &","setFV", 3, args[i])); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::bitset const &","setFV", 3, args[i])); } arg3 = reinterpret_cast< tdap::bitset * >(argp3); tb->setFV(fnum, arg3->internalValue()); } } return self; } fail: Ruby_Format_OverloadedError(nargs+1, 10, "activeTable.keyValue"," tdap::client::activeTable & keyValue"); return Qnil; } static swig_class SwigClassPooledDbManager; SWIGINTERN VALUE _wrap_new_pooledDbManager__SWIG_0(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *result = 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (tdap::client::pooledDbManager *)new tdap::client::pooledDbManager(); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_pooledDbManager_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_pooledDbManager_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_bzs__pooledDbManager); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_pooledDbManager__SWIG_1(int argc, VALUE *argv, VALUE self) { tdap::client::connectParams *arg1 = (tdap::client::connectParams *) 0 ; void *argp1 = 0 ; int res1 = 0 ; tdap::client::pooledDbManager *result = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_bzs__connectParams, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "tdap::client::connectParams const *","pooledDbManager", 1, argv[0] )); } arg1 = reinterpret_cast< tdap::client::connectParams * >(argp1); { try { result = (tdap::client::pooledDbManager *)new tdap::client::pooledDbManager((tdap::client::connectParams const *)arg1); DATA_PTR(self) = result; } CATCH_BZS_AND_STD() } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_pooledDbManager(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_new_pooledDbManager__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__connectParams, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_pooledDbManager__SWIG_1(nargs, args, self); } } fail: Ruby_Format_OverloadedError( argc, 1, "pooledDbManager.new", " pooledDbManager.new()\n" " pooledDbManager.new(tdap::client::connectParams const *param)\n"); return Qnil; } SWIGINTERN void free_bzs_pooledDbManager(tdap::client::pooledDbManager *arg1) { delete arg1; } SWIGINTERN VALUE _wrap_pooledDbManager_use(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; tdap::client::connectParams *arg2 = 0; void *argp2 = 0 ; int res2 = 0 ; if (!check_param_count(argc, 0, 1)) return Qnil; arg1 = selfPtr(self, arg1); if (argc == 1) { res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_bzs__connectParams, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::connectParams const *","use", 2, argv[0] )); } arg2 = reinterpret_cast< tdap::client::connectParams * >(argp2); } { try { (arg1)->use(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_unUse(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->unUse(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_reset(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; int arg2 ; int val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","reset", 2, argv[0] )); } arg2 = static_cast< int >(val2); { try { (arg1)->reset(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_db(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; tdap::client::database *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (tdap::client::database *)((tdap::client::pooledDbManager const *)arg1)->db(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__database, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_uri(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; _TCHAR *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (_TCHAR *)((tdap::client::pooledDbManager const *)arg1)->uri(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_mode(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; char_td result; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (char_td)((tdap::client::pooledDbManager const *)arg1)->mode(); } CATCH_BZS_AND_STD() } return SWIG_From_long(result); fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_isOpened(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; bool result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (bool)((tdap::client::pooledDbManager const *)arg1)->isOpened(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_setOption(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; __int64 arg2 ; long long val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "__int64","setOption", 2, argv[0] )); } arg2 = static_cast< __int64 >(val2); { try { (arg1)->setOption(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_option(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; __int64 result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (arg1)->option(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_long_SS_long(static_cast< long long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_beginTrn(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; short arg2 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); ecode2 = SWIG_AsVal_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","beginTrn", 2, argv[0] )); } arg2 = static_cast< short >(val2); { try { (arg1)->beginTrn(arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_endTrn(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->endTrn(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_abortTrn(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->abortTrn(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_enableTrn(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)(arg1)->enableTrn(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_beginSnapshot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; tdap::client::pooledDbManager *arg1 = 0x00; short arg2; short val2; binlogPos* bpos = new binlogPos(); int _v; void *vptr = 0; int res; VALUE vresult = Qnil; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } // check arg1 (nsdatabase) res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__pooledDbManager, 0); _v = SWIG_CheckState(res); if (! _v) SWIG_fail; if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "tdap::client::pooledDbManager *","beginSnapshot", 1, argv[0] )); } // cast arg1 arg1 = reinterpret_cast< tdap::client::pooledDbManager * >(vptr); // call beginSnapshot() if (argc == 1) { try { (arg1)->beginSnapshot(); } CATCH_BZS_AND_STD() vresult = SWIG_NewPointerObj(SWIG_as_voidptr(bpos), SWIGTYPE_p_bzs__binlogPos, 0 | 0 ); return vresult; } // check arg2 if (argc == 2) { int res = SWIG_AsVal_short(argv[1], &val2); _v = SWIG_CheckState(res); if (! _v) SWIG_fail; if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "short","beginSnapshot", 2, argv[1] )); } // cast arg2 arg2 = static_cast< short >(val2); // call beginSnapshot(short bias) try { if (arg2 == CONSISTENT_READ_WITH_BINLOG_POS) (arg1)->beginSnapshot(arg2, bpos); else (arg1)->beginSnapshot(arg2, NULL); } CATCH_BZS_AND_STD() vresult = SWIG_NewPointerObj(SWIG_as_voidptr(bpos), SWIGTYPE_p_bzs__binlogPos, 0 | 0 ); return vresult; } fail: Ruby_Format_OverloadedError( argc, 3, "pooledDbManager.beginSnapshot", " void pooledDbManager.beginSnapshot(short bias)\n" " void pooledDbManager.beginSnapshot()\n"); return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_endSnapshot(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { (arg1)->endSnapshot(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_stat(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; short_td result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (short_td)((tdap::client::pooledDbManager const *)arg1)->stat(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_clientID(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; uchar_td *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (uchar_td *)((tdap::client::pooledDbManager const *)arg1)->clientID(); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_setMaxConnections(int argc, VALUE *argv, VALUE self) { int arg1 ; int val1 ; int ecode1 = 0 ; if (!check_param_count(argc, 1, 1)) return Qnil; ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","tdap::client::pooledDbManager::setMaxConnections", 1, argv[0] )); } arg1 = static_cast< int >(val1); { try { tdap::client::pooledDbManager::setMaxConnections(arg1); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_maxConnections(int argc, VALUE *argv, VALUE self) { int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (int)tdap::client::pooledDbManager::maxConnections(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_reserve(int argc, VALUE *argv, VALUE self) { size_t arg1 ; tdap::client::connectParams *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; void *argp2 ; int res2 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; ecode1 = SWIG_AsVal_size_t(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "size_t","tdap::client::pooledDbManager::reserve", 1, argv[0] )); } arg1 = static_cast< size_t >(val1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_bzs__connectParams, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "tdap::client::connectParams const &","tdap::client::pooledDbManager::reserve", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "tdap::client::connectParams const &","tdap::client::pooledDbManager::reserve", 2, argv[1])); } arg2 = reinterpret_cast< tdap::client::connectParams * >(argp2); { try { tdap::client::pooledDbManager::reserve(arg1,(tdap::client::connectParams const &)*arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_usingCount(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; arg1 = selfPtr(self, arg1); { try { result = (int)((tdap::client::pooledDbManager const *)arg1)->usingCount(); } CATCH_BZS_AND_STD() } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_pooledDbManager_table(int argc, VALUE *argv, VALUE self) { tdap::client::pooledDbManager *arg1 = (tdap::client::pooledDbManager *) 0 ; _TCHAR *arg2 = (_TCHAR *) 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; tdap::client::table *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 1, 1)) return Qnil; arg1 = selfPtr(self, arg1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","table", 2, argv[0] )); } arg2 = reinterpret_cast< _TCHAR * >(buf2); { try { result = (tdap::client::table *)bzs_pooledDbManager_table(arg1,(char const *)arg2); } CATCH_BZS_AND_STD() } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__table, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } static swig_class SwigClassHaNameResolver; SWIGINTERN VALUE _wrap_haNameResolver_start(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; short arg4 ; char *arg5 = (char *) 0 ; char *arg6 = (char *) 0 ; int arg7 = 0; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; short val4 ; int ecode4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; int res6 ; char *buf6 = 0 ; int alloc6 = 0 ; int val7; int ecode7 = 0 ; int result; VALUE vresult = Qnil; if (!check_param_count(argc, 6, 7)) return Qnil; res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","tdap::client::haNameResolver::start", 1, argv[0] )); } arg1 = reinterpret_cast< char * >(buf1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","tdap::client::haNameResolver::start", 2, argv[1] )); } arg2 = reinterpret_cast< char * >(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","tdap::client::haNameResolver::start", 3, argv[2] )); } arg3 = reinterpret_cast< char * >(buf3); ecode4 = SWIG_AsVal_short(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "short","tdap::client::haNameResolver::start", 4, argv[3] )); } arg4 = static_cast< short >(val4); res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","tdap::client::haNameResolver::start", 5, argv[4] )); } arg5 = reinterpret_cast< char * >(buf5); res6 = SWIG_AsCharPtrAndSize(argv[5], &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "char const *","tdap::client::haNameResolver::start", 6, argv[5] )); } arg6 = reinterpret_cast< char * >(buf6); if (argc == 7) { ecode7 = SWIG_AsVal_int(argv[6], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","tdap::client::haNameResolver::start", 7, argv[6] )); } arg7 = static_cast< int >(val7); } try { result = tdap::client::haNameResolver::start(arg1, arg2, arg3, arg4, arg5, arg6, arg7); } CATCH_BZS_AND_STD() vresult = SWIG_From_int(static_cast< int >(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; if (alloc5 == SWIG_NEWOBJ) delete[] buf5; if (alloc6 == SWIG_NEWOBJ) delete[] buf6; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; if (alloc3 == SWIG_NEWOBJ) delete[] buf3; if (alloc5 == SWIG_NEWOBJ) delete[] buf5; if (alloc6 == SWIG_NEWOBJ) delete[] buf6; return Qnil; } SWIGINTERN VALUE _wrap_haNameResolver_addPortMap(int argc, VALUE *argv, VALUE self) { short arg1 ; short arg2 ; short val1 ; int ecode1 = 0 ; short val2 ; int ecode2 = 0 ; if (!check_param_count(argc, 2, 2)) return Qnil; ecode1 = SWIG_AsVal_short(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "short","tdap::client::haNameResolver::addPortMap", 1, argv[0] )); } arg1 = static_cast< short >(val1); ecode2 = SWIG_AsVal_short(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","tdap::client::haNameResolver::addPortMap", 2, argv[1] )); } arg2 = static_cast< short >(val2); { try { tdap::client::haNameResolver::addPortMap(arg1,arg2); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_haNameResolver_clearPortMap(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; { try { tdap::client::haNameResolver::clearPortMap(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_haNameResolver_stop(int argc, VALUE *argv, VALUE self) { if (!check_param_count(argc, 0, 0)) return Qnil; { try { tdap::client::haNameResolver::stop(); } CATCH_BZS_AND_STD() } return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_haNameResolver_master(int argc, VALUE *argv, VALUE self) { char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (char *)tdap::client::haNameResolver::master(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_haNameResolver_slave(int argc, VALUE *argv, VALUE self) { char *result = 0 ; VALUE vresult = Qnil; if (!check_param_count(argc, 0, 0)) return Qnil; { try { result = (char *)tdap::client::haNameResolver::slave(); } CATCH_BZS_AND_STD() } { vresult = rb_enc_str_new(result, strlen(result), utf8_enc); } return vresult; fail: return Qnil; } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static void *_p_bzs__recordsetQueryTo_p_bzs__query(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::query *) ((tdap::client::recordsetQuery *) x)); } static void *_p_bzs__databaseTo_p_bzs__nsdatabase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::nsdatabase *) ((tdap::client::database *) x)); } static void *_p_bzs__fielddefTo_p_bzs__fielddef_tT_64_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::fielddef_t< 64 > *) ((tdap::fielddef *) x)); } static void *_p_bzs__fielddefsTo_p_bzs__fieldShare(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::fieldShare *) ((tdap::client::fielddefs *) x)); } static void *_p_bzs__maxTo_p_bzs__sum(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::sum *) ((tdap::client::max *) x)); } static void *_p_bzs__avgTo_p_bzs__sum(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::sum *) ((tdap::client::avg *) x)); } static void *_p_bzs__minTo_p_bzs__sum(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::sum *) ((tdap::client::min *) x)); } static void *_p_bzs__maxTo_p_bzs__groupFuncBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::groupFuncBase *) (tdap::client::sum *) ((tdap::client::max *) x)); } static void *_p_bzs__avgTo_p_bzs__groupFuncBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::groupFuncBase *) (tdap::client::sum *) ((tdap::client::avg *) x)); } static void *_p_bzs__minTo_p_bzs__groupFuncBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::groupFuncBase *) (tdap::client::sum *) ((tdap::client::min *) x)); } static void *_p_bzs__sumTo_p_bzs__groupFuncBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::groupFuncBase *) ((tdap::client::sum *) x)); } static void *_p_bzs__countTo_p_bzs__groupFuncBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::groupFuncBase *) ((tdap::client::count *) x)); } static void *_p_bzs__lastTo_p_bzs__groupFuncBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::groupFuncBase *) ((tdap::client::last *) x)); } static void *_p_bzs__firstTo_p_bzs__groupFuncBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::groupFuncBase *) ((tdap::client::first *) x)); } static void *_p_bzs__memoryRecordTo_p_bzs__fieldsBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::fieldsBase *) ((tdap::client::memoryRecord *) x)); } static void *_p_bzs__writableRecordTo_p_bzs__fieldsBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::fieldsBase *) (tdap::client::memoryRecord *) ((tdap::client::writableRecord *) x)); } static void *_p_bzs__fieldsTo_p_bzs__fieldsBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::fieldsBase *) ((tdap::client::fields *) x)); } static void *_p_p_bzs__memoryRecordTo_p_p_bzs__fieldsBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::fieldsBase **) ((tdap::client::memoryRecord **) x)); } static void *_p_p_bzs__writableRecordTo_p_p_bzs__fieldsBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::fieldsBase **) (tdap::client::memoryRecord *) ((tdap::client::writableRecord **) x)); } static void *_p_p_bzs__fieldsTo_p_p_bzs__fieldsBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::fieldsBase **) ((tdap::client::fields **) x)); } static void *_p_bzs__queryTo_p_bzs__queryBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::queryBase *) ((tdap::client::query *) x)); } static void *_p_bzs__fieldsBaseTo_p_bzs__refarymem(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::refarymem *) ((tdap::client::fieldsBase *) x)); } static void *_p_bzs__autoMemoryTo_p_bzs__refarymem(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::refarymem *) ((tdap::client::autoMemory *) x)); } static void *_p_bzs__memoryRecordTo_p_bzs__refarymem(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::refarymem *) (tdap::client::fieldsBase *) ((tdap::client::memoryRecord *) x)); } static void *_p_bzs__writableRecordTo_p_bzs__refarymem(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::refarymem *) (tdap::client::fieldsBase *)(tdap::client::memoryRecord *) ((tdap::client::writableRecord *) x)); } static void *_p_bzs__fieldsTo_p_bzs__refarymem(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::refarymem *) (tdap::client::fieldsBase *) ((tdap::client::fields *) x)); } static void *_p_bzs__connMgrTo_p_bzs__nstable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::nstable *) ((tdap::client::connMgr *) x)); } static void *_p_bzs__dbdefTo_p_bzs__nstable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::nstable *) ((tdap::client::dbdef *) x)); } static void *_p_bzs__tableTo_p_bzs__nstable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::nstable *) ((tdap::client::table *) x)); } static void *_p_bzs__writableRecordTo_p_bzs__memoryRecord(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::memoryRecord *) ((tdap::client::writableRecord *) x)); } static void *_p_bzs__pooledDbManagerTo_p_bzs__idatabaseManager(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::idatabaseManager *) ((tdap::client::pooledDbManager *) x)); } static void *_p_bzs__maxTo_p_bzs__recordsetQuery(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::recordsetQuery *) (tdap::client::groupFuncBase *)(tdap::client::sum *) ((tdap::client::max *) x)); } static void *_p_bzs__avgTo_p_bzs__recordsetQuery(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::recordsetQuery *) (tdap::client::groupFuncBase *)(tdap::client::sum *) ((tdap::client::avg *) x)); } static void *_p_bzs__minTo_p_bzs__recordsetQuery(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::recordsetQuery *) (tdap::client::groupFuncBase *)(tdap::client::sum *) ((tdap::client::min *) x)); } static void *_p_bzs__sumTo_p_bzs__recordsetQuery(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::recordsetQuery *) (tdap::client::groupFuncBase *) ((tdap::client::sum *) x)); } static void *_p_bzs__groupFuncBaseTo_p_bzs__recordsetQuery(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::recordsetQuery *) ((tdap::client::groupFuncBase *) x)); } static void *_p_bzs__countTo_p_bzs__recordsetQuery(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::recordsetQuery *) (tdap::client::groupFuncBase *) ((tdap::client::count *) x)); } static void *_p_bzs__lastTo_p_bzs__recordsetQuery(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::recordsetQuery *) (tdap::client::groupFuncBase *) ((tdap::client::last *) x)); } static void *_p_bzs__firstTo_p_bzs__recordsetQuery(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((tdap::client::recordsetQuery *) (tdap::client::groupFuncBase *) ((tdap::client::first *) x)); } static swig_type_info _swigt__p_BOOKMARK = { "_p_BOOKMARK", "bookmark_td *|BOOKMARK *", 0, 0, (void*)0, 0 }; static swig_type_info _swigt__p_HWND = {"_p_HWND", "HWND *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__functionT_int_fbzs__db__protocol__tdap__client__fields_const_RF_t = {"_p_boost__functionT_int_fbzs__db__protocol__tdap__client__fields_const_RF_t", "boost::function< int (tdap::client::fields const &) > *|tdap::client::validationFunc *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__shared_ptrT_bzs__database_t = {"_p_boost__shared_ptrT_bzs__database_t", "boost::shared_ptr< tdap::client::database > *|tdap::client::database_ptr *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__shared_ptrT_bzs__filter_t = {"_p_boost__shared_ptrT_bzs__filter_t", "boost::shared_ptr< tdap::client::filter > *|tdap::client::pq_handle *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__shared_ptrT_bzs__idatabaseManager_t = {"_p_boost__shared_ptrT_bzs__idatabaseManager_t", "boost::shared_ptr< tdap::client::idatabaseManager > *|tdap::client::dbmanager_ptr *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__shared_ptrT_bzs__table_t = {"_p_boost__shared_ptrT_bzs__table_t", "boost::shared_ptr< tdap::client::table > *|tdap::client::table_ptr *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_boost__timer = {"_p_boost__timer", "boost::timer *|boost_timer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__FLAGS = {"_p_bzs__FLAGS", "tdap::FLAGS *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__btrDate = {"_p_bzs__btrDate", "tdap::btrDate *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__btrDateTime = {"_p_bzs__btrDateTime", "tdap::btrDateTime *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__btrTime = {"_p_bzs__btrTime", "tdap::btrTime *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__btrTimeStamp = {"_p_bzs__btrTimeStamp", "tdap::btrTimeStamp *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__btrVersion = {"_p_bzs__btrVersion", "tdap::btrVersion *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__btrVersions = {"_p_bzs__btrVersions", "tdap::btrVersions *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__activeTable = {"_p_bzs__activeTable", "tdap::client::activeTable *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__avg = {"_p_bzs__avg", "tdap::client::avg *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__binlogPos = {"_p_bzs__binlogPos", "tdap::client::binlogPos *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__connMgr = {"_p_bzs__connMgr", "tdap::client::connMgr *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__bitset = {"_p_bzs__bitset", "tdap::bitset *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__connectParams = {"_p_bzs__connectParams", "tdap::client::connectParams *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__count = {"_p_bzs__count", "tdap::client::count *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__database = {"_p_bzs__database", "tdap::client::database *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__dbdef = {"_p_bzs__dbdef", "tdap::client::dbdef *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__field = {"_p_bzs__field", "tdap::client::field *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__fieldNames = {"_p_bzs__fieldNames", "tdap::client::fieldNames *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__fieldShare = {"_p_bzs__fieldShare", "tdap::client::fieldShare *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__fielddefs = {"_p_bzs__fielddefs", "tdap::client::fielddefs *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__fields = {"_p_bzs__fields", "tdap::client::fields *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__fieldsBase = {"_p_bzs__fieldsBase", "tdap::client::fieldsBase *|tdap::client::row *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexFindNavi_t_t = {"_p_bzs__filterdIteratorT_bzs__tableIteratorT_indexFindNavi_t_t", "tdap::client::filterdIterator< tdap::client::tableIterator< indexFindNavi > > *|tdap::client::filterdFindIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexNavi_t_t = {"_p_bzs__filterdIteratorT_bzs__tableIteratorT_indexNavi_t_t", "tdap::client::filterdIterator< tdap::client::tableIterator< indexNavi > > *|tdap::client::filterdIndexIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvFindNavi_t_t = {"_p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvFindNavi_t_t", "tdap::client::filterdIterator< tdap::client::tableIterator< indexRvFindNavi > > *|tdap::client::filterdFindRvIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvNavi_t_t = {"_p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvNavi_t_t", "tdap::client::filterdIterator< tdap::client::tableIterator< indexRvNavi > > *|tdap::client::filterdIndexRvIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_stepNavi_t_t = {"_p_bzs__filterdIteratorT_bzs__tableIteratorT_stepNavi_t_t", "tdap::client::filterdIterator< tdap::client::tableIterator< stepNavi > > *|tdap::client::filterdStepIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_stepRvNavi_t_t = {"_p_bzs__filterdIteratorT_bzs__tableIteratorT_stepRvNavi_t_t", "tdap::client::filterdIterator< tdap::client::tableIterator< stepRvNavi > > *|tdap::client::filterdStepRvIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__first = {"_p_bzs__first", "tdap::client::first *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__groupFuncBase = {"_p_bzs__groupFuncBase", "tdap::client::groupFuncBase *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__groupQuery = {"_p_bzs__groupQuery", "tdap::client::groupQuery *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__idatabaseManager = {"_p_bzs__idatabaseManager", "tdap::client::idatabaseManager *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__last = {"_p_bzs__last", "tdap::client::last *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__max = {"_p_bzs__max", "tdap::client::max *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__memoryRecord = {"_p_bzs__memoryRecord", "tdap::client::memoryRecord *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__min = {"_p_bzs__min", "tdap::client::min *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__nsdatabase = {"_p_bzs__nsdatabase", "tdap::client::nsdatabase *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__nstable = {"_p_bzs__nstable", "tdap::client::nstable *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__pooledDbManager = {"_p_bzs__pooledDbManager", "tdap::client::pooledDbManager *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__preparedQuery = {"_p_bzs__preparedQuery", "tdap::client::preparedQuery *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__query = {"_p_bzs__query", "tdap::client::query *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__queryBase = {"_p_bzs__queryBase", "tdap::client::queryBase *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__recordset = {"_p_bzs__recordset", "tdap::client::recordset *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__recordsetQuery = {"_p_bzs__recordsetQuery", "tdap::client::recordsetQuery *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__refarymem = {"_p_bzs__refarymem", "tdap::client::refarymem *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__autoMemory = {"_p_bzs__autoMemory", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_bzs__snapshotT_boost__shared_ptrT_bzs__database_t_t = {"_p_bzs__snapshotT_boost__shared_ptrT_bzs__database_t_t", "tdap::client::dbSnapshot *|tdap::client::snapshot< boost::shared_ptr< tdap::client::database > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__snapshotT_bzs__idatabaseManager_p_t = {"_p_bzs__snapshotT_bzs__idatabaseManager_p_t", "tdap::client::snapshot< tdap::client::idatabaseManager * > *|tdap::client::dbmSnapshot *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__sortField = {"_p_bzs__sortField", "tdap::client::sortField *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__sortFields = {"_p_bzs__sortFields", "tdap::client::sortFields *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__sum = {"_p_bzs__sum", "tdap::client::sum *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__table = {"_p_bzs__table", "tdap::client::table *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__tableIteratorT_indexFindNavi_t = {"_p_bzs__tableIteratorT_indexFindNavi_t", "tdap::client::tableIterator< indexFindNavi > *|tdap::client::findIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__tableIteratorT_indexNavi_t = {"_p_bzs__tableIteratorT_indexNavi_t", "tdap::client::tableIterator< indexNavi > *|tdap::client::indexIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__tableIteratorT_indexRvFindNavi_t = {"_p_bzs__tableIteratorT_indexRvFindNavi_t", "tdap::client::tableIterator< indexRvFindNavi > *|tdap::client::findRvIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__tableIteratorT_indexRvNavi_t = {"_p_bzs__tableIteratorT_indexRvNavi_t", "tdap::client::tableIterator< indexRvNavi > *|tdap::client::indexRvIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__tableIteratorT_stepNavi_t = {"_p_bzs__tableIteratorT_stepNavi_t", "tdap::client::stepIterator *|tdap::client::tableIterator< stepNavi > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__tableIteratorT_stepRvNavi_t = {"_p_bzs__tableIteratorT_stepRvNavi_t", "tdap::client::stepRvIterator *|tdap::client::tableIterator< stepRvNavi > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__transactionT_boost__shared_ptrT_bzs__database_t_t = {"_p_bzs__transactionT_boost__shared_ptrT_bzs__database_t_t", "tdap::client::transaction< boost::shared_ptr< tdap::client::database > > *|tdap::client::dbTransaction *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__transactionT_boost__shared_ptrT_bzs__idatabaseManager_t_t = {"_p_bzs__transactionT_boost__shared_ptrT_bzs__idatabaseManager_t_t", "tdap::client::transaction< boost::shared_ptr< tdap::client::idatabaseManager > > *|tdap::client::dbmTransaction *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__writableRecord = {"_p_bzs__writableRecord", "tdap::client::writableRecord *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__fielddef = {"_p_bzs__fielddef", "tdap::fielddef *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__fielddef_tT_20_t = {"_p_bzs__fielddef_tT_20_t", "tdap::fielddef_t_pv *|tdap::fielddef_t< 20 > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__fielddef_tT_64_t = {"_p_bzs__fielddef_tT_64_t", "tdap::fielddef_t_my *|tdap::fielddef_t< 64 > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__keySegment = {"_p_bzs__keySegment", "tdap::keySegment *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__keydef = {"_p_bzs__keydef", "tdap::keydef *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__tabledef = {"_p_bzs__tabledef", "tdap::tabledef *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__db__transactd__connection__record = {"_p_bzs__db__transactd__connection__record", "bzs::db::transactd::connection::record *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__connMgr__records = {"_p_bzs__connMgr__records", "tdap::client::connMgr::records *|tdap::client::connMgr::records *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bzs__rtl__benchmark = {"_p_bzs__rtl__benchmark", "bzs::rtl::benchmark *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "_TCHAR *|char *|char_td *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_unsigned_short_p_void_p_void_p_unsigned_int_p_void_unsigned_short_char_p_unsigned_char__short = {"_p_f_unsigned_short_p_void_p_void_p_unsigned_int_p_void_unsigned_short_char_p_unsigned_char__short", "BTRCALLID_PTR|short (*)(unsigned short,void *,void *,unsigned int *,void *,unsigned short,char,unsigned char *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *|percentage_td *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_iterator = {"_p_iterator", "iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_bzs__fieldsBase = {"_p_p_bzs__fieldsBase", "tdap::client::fieldsBase **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_bzs__memoryRecord = {"_p_p_bzs__memoryRecord", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_p_bzs__writableRecord = {"_p_p_bzs__writableRecord", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_p_bzs__fields = {"_p_p_bzs__fields", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_preparedQuery = {"_p_preparedQuery", "preparedQuery *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_short = {"_p_short", "short *|short_td *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std___tstring = {"_p_std___tstring", "std::_tstring *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_bzs__fieldsBase_p_t__iterator = {"_p_std__vectorT_bzs__fieldsBase_p_t__iterator", "tdap::client::recordset::iterator *|std::vector< tdap::client::fieldsBase * >::iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_trdVersiton = {"_p_trdVersiton", "trdVersiton *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uchar_td *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "bookmark_td *|unsigned int *|uint_td *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|ushort_td *|keylen_td *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_void = {"_p_void", "void *|void_td *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_HWND, &_swigt__p_boost__functionT_int_fbzs__db__protocol__tdap__client__fields_const_RF_t, &_swigt__p_boost__shared_ptrT_bzs__database_t, &_swigt__p_boost__shared_ptrT_bzs__filter_t, &_swigt__p_boost__shared_ptrT_bzs__idatabaseManager_t, &_swigt__p_boost__shared_ptrT_bzs__table_t, &_swigt__p_boost__timer, &_swigt__p_bzs__FLAGS, &_swigt__p_bzs__btrDate, &_swigt__p_bzs__btrDateTime, &_swigt__p_bzs__btrTime, &_swigt__p_bzs__btrTimeStamp, &_swigt__p_bzs__btrVersion, &_swigt__p_bzs__btrVersions, &_swigt__p_bzs__activeTable, &_swigt__p_bzs__autoMemory, &_swigt__p_bzs__avg, &_swigt__p_bzs__connectParams, &_swigt__p_bzs__count, &_swigt__p_bzs__database, &_swigt__p_bzs__dbdef, &_swigt__p_bzs__field, &_swigt__p_bzs__fieldNames, &_swigt__p_bzs__fieldShare, &_swigt__p_bzs__fielddefs, &_swigt__p_bzs__fields, &_swigt__p_bzs__fieldsBase, &_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexFindNavi_t_t, &_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexNavi_t_t, &_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvFindNavi_t_t, &_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvNavi_t_t, &_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_stepNavi_t_t, &_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_stepRvNavi_t_t, &_swigt__p_bzs__groupFuncBase, &_swigt__p_bzs__groupQuery, &_swigt__p_bzs__idatabaseManager, &_swigt__p_bzs__max, &_swigt__p_bzs__memoryRecord, &_swigt__p_bzs__min, &_swigt__p_bzs__nsdatabase, &_swigt__p_bzs__nstable, &_swigt__p_bzs__pooledDbManager, &_swigt__p_bzs__preparedQuery, &_swigt__p_bzs__query, &_swigt__p_bzs__queryBase, &_swigt__p_bzs__recordset, &_swigt__p_bzs__recordsetQuery, &_swigt__p_bzs__refarymem, &_swigt__p_bzs__snapshotT_boost__shared_ptrT_bzs__database_t_t, &_swigt__p_bzs__snapshotT_bzs__idatabaseManager_p_t, &_swigt__p_bzs__sortFields, &_swigt__p_bzs__sum, &_swigt__p_bzs__table, &_swigt__p_bzs__tableIteratorT_indexFindNavi_t, &_swigt__p_bzs__tableIteratorT_indexNavi_t, &_swigt__p_bzs__tableIteratorT_indexRvFindNavi_t, &_swigt__p_bzs__tableIteratorT_indexRvNavi_t, &_swigt__p_bzs__tableIteratorT_stepNavi_t, &_swigt__p_bzs__tableIteratorT_stepRvNavi_t, &_swigt__p_bzs__transactionT_boost__shared_ptrT_bzs__database_t_t, &_swigt__p_bzs__transactionT_boost__shared_ptrT_bzs__idatabaseManager_t_t, &_swigt__p_bzs__writableRecord, &_swigt__p_bzs__fielddef, &_swigt__p_bzs__fielddef_tT_20_t, &_swigt__p_bzs__fielddef_tT_64_t, &_swigt__p_bzs__keySegment, &_swigt__p_bzs__keydef, &_swigt__p_bzs__tabledef, &_swigt__p_bzs__rtl__benchmark, &_swigt__p_char, &_swigt__p_f_unsigned_short_p_void_p_void_p_unsigned_int_p_void_unsigned_short_char_p_unsigned_char__short, &_swigt__p_int, &_swigt__p_iterator, &_swigt__p_p_bzs__fields, &_swigt__p_p_bzs__fieldsBase, &_swigt__p_p_bzs__memoryRecord, &_swigt__p_p_bzs__writableRecord, &_swigt__p_preparedQuery, &_swigt__p_short, &_swigt__p_std___tstring, &_swigt__p_std__vectorT_bzs__fieldsBase_p_t__iterator, &_swigt__p_trdVersiton, &_swigt__p_unsigned_char, &_swigt__p_unsigned_int, &_swigt__p_unsigned_short, &_swigt__p_value_type, &_swigt__p_void, &_swigt__p_bzs__last, &_swigt__p_bzs__first, &_swigt__p_bzs__sortField, &_swigt__p_BOOKMARK, &_swigt__p_bzs__bitset, &_swigt__p_bzs__binlogPos, &_swigt__p_bzs__connMgr, &_swigt__p_bzs__db__transactd__connection__record, &_swigt__p_bzs__connMgr__records, }; static swig_cast_info _swigc__p_BOOKMARK[] = { { &_swigt__p_BOOKMARK, 0, 0, 0 }, { 0, 0, 0, 0 } }; static swig_cast_info _swigc__p_HWND[] = { {&_swigt__p_HWND, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__functionT_int_fbzs__db__protocol__tdap__client__fields_const_RF_t[] = { {&_swigt__p_boost__functionT_int_fbzs__db__protocol__tdap__client__fields_const_RF_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__shared_ptrT_bzs__database_t[] = { {&_swigt__p_boost__shared_ptrT_bzs__database_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__shared_ptrT_bzs__filter_t[] = { {&_swigt__p_boost__shared_ptrT_bzs__filter_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__shared_ptrT_bzs__idatabaseManager_t[] = { {&_swigt__p_boost__shared_ptrT_bzs__idatabaseManager_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__shared_ptrT_bzs__table_t[] = { {&_swigt__p_boost__shared_ptrT_bzs__table_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_boost__timer[] = { {&_swigt__p_boost__timer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__FLAGS[] = { {&_swigt__p_bzs__FLAGS, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__btrDate[] = { {&_swigt__p_bzs__btrDate, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__btrDateTime[] = { {&_swigt__p_bzs__btrDateTime, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__btrTime[] = { {&_swigt__p_bzs__btrTime, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__btrTimeStamp[] = { {&_swigt__p_bzs__btrTimeStamp, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__btrVersion[] = { {&_swigt__p_bzs__btrVersion, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__btrVersions[] = { {&_swigt__p_bzs__btrVersions, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__activeTable[] = { {&_swigt__p_bzs__activeTable, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__avg[] = { {&_swigt__p_bzs__avg, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__binlogPos[] = { {&_swigt__p_bzs__binlogPos, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__connMgr[] = { {&_swigt__p_bzs__connMgr, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__bitset[] = { {&_swigt__p_bzs__bitset, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__connectParams[] = { {&_swigt__p_bzs__connectParams, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__count[] = { {&_swigt__p_bzs__count, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__database[] = { {&_swigt__p_bzs__database, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__dbdef[] = { {&_swigt__p_bzs__dbdef, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__field[] = { {&_swigt__p_bzs__field, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__fieldNames[] = { {&_swigt__p_bzs__fieldNames, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__fieldShare[] = { {&_swigt__p_bzs__fielddefs, _p_bzs__fielddefsTo_p_bzs__fieldShare, 0, 0}, {&_swigt__p_bzs__fieldShare, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__fielddefs[] = { {&_swigt__p_bzs__fielddefs, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__fields[] = { {&_swigt__p_bzs__fields, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__fieldsBase[] = { {&_swigt__p_bzs__fieldsBase, 0, 0, 0}, {&_swigt__p_bzs__memoryRecord, _p_bzs__memoryRecordTo_p_bzs__fieldsBase, 0, 0}, {&_swigt__p_bzs__writableRecord, _p_bzs__writableRecordTo_p_bzs__fieldsBase, 0, 0}, {&_swigt__p_bzs__fields, _p_bzs__fieldsTo_p_bzs__fieldsBase, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexFindNavi_t_t[] = { {&_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexFindNavi_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexNavi_t_t[] = { {&_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexNavi_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvFindNavi_t_t[] = { {&_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvFindNavi_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvNavi_t_t[] = { {&_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvNavi_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_stepNavi_t_t[] = { {&_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_stepNavi_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_stepRvNavi_t_t[] = { {&_swigt__p_bzs__filterdIteratorT_bzs__tableIteratorT_stepRvNavi_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__first[] = { {&_swigt__p_bzs__first, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__groupFuncBase[] = { {&_swigt__p_bzs__sum, _p_bzs__sumTo_p_bzs__groupFuncBase, 0, 0}, {&_swigt__p_bzs__count, _p_bzs__countTo_p_bzs__groupFuncBase, 0, 0}, {&_swigt__p_bzs__max, _p_bzs__maxTo_p_bzs__groupFuncBase, 0, 0}, {&_swigt__p_bzs__avg, _p_bzs__avgTo_p_bzs__groupFuncBase, 0, 0}, {&_swigt__p_bzs__min, _p_bzs__minTo_p_bzs__groupFuncBase, 0, 0}, {&_swigt__p_bzs__last, _p_bzs__lastTo_p_bzs__groupFuncBase, 0, 0}, {&_swigt__p_bzs__first, _p_bzs__firstTo_p_bzs__groupFuncBase, 0, 0}, {&_swigt__p_bzs__groupFuncBase, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__groupQuery[] = { {&_swigt__p_bzs__groupQuery, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__idatabaseManager[] = { {&_swigt__p_bzs__idatabaseManager, 0, 0, 0}, {&_swigt__p_bzs__pooledDbManager, _p_bzs__pooledDbManagerTo_p_bzs__idatabaseManager, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__last[] = { {&_swigt__p_bzs__last, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__max[] = { {&_swigt__p_bzs__max, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__memoryRecord[] = { {&_swigt__p_bzs__memoryRecord, 0, 0, 0}, {&_swigt__p_bzs__writableRecord, _p_bzs__writableRecordTo_p_bzs__memoryRecord, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__min[] = { {&_swigt__p_bzs__min, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__nsdatabase[] = { {&_swigt__p_bzs__nsdatabase, 0, 0, 0}, {&_swigt__p_bzs__database, _p_bzs__databaseTo_p_bzs__nsdatabase, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__nstable[] = { {&_swigt__p_bzs__connMgr, _p_bzs__connMgrTo_p_bzs__nstable, 0, 0}, {&_swigt__p_bzs__table, _p_bzs__tableTo_p_bzs__nstable, 0, 0}, {&_swigt__p_bzs__dbdef, _p_bzs__dbdefTo_p_bzs__nstable, 0, 0}, {&_swigt__p_bzs__nstable, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__pooledDbManager[] = { {&_swigt__p_bzs__pooledDbManager, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__preparedQuery[] = { {&_swigt__p_bzs__preparedQuery, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__query[] = { {&_swigt__p_bzs__recordsetQuery, _p_bzs__recordsetQueryTo_p_bzs__query, 0, 0}, {&_swigt__p_bzs__sum, 0, 0, 0}, {&_swigt__p_bzs__count, 0, 0, 0}, {&_swigt__p_bzs__query, 0, 0, 0}, {&_swigt__p_bzs__max, 0, 0, 0}, {&_swigt__p_bzs__avg, 0, 0, 0}, {&_swigt__p_bzs__min, 0, 0, 0}, {&_swigt__p_bzs__groupFuncBase, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__queryBase[] = { {&_swigt__p_bzs__recordsetQuery, 0, 0, 0}, {&_swigt__p_bzs__sum, 0, 0, 0}, {&_swigt__p_bzs__count, 0, 0, 0}, {&_swigt__p_bzs__query, _p_bzs__queryTo_p_bzs__queryBase, 0, 0}, {&_swigt__p_bzs__max, 0, 0, 0}, {&_swigt__p_bzs__queryBase, 0, 0, 0}, {&_swigt__p_bzs__avg, 0, 0, 0}, {&_swigt__p_bzs__min, 0, 0, 0}, {&_swigt__p_bzs__groupFuncBase, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__recordset[] = { {&_swigt__p_bzs__recordset, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__recordsetQuery[] = { {&_swigt__p_bzs__recordsetQuery, 0, 0, 0}, {&_swigt__p_bzs__sum, _p_bzs__sumTo_p_bzs__recordsetQuery, 0, 0}, {&_swigt__p_bzs__count, _p_bzs__countTo_p_bzs__recordsetQuery, 0, 0}, {&_swigt__p_bzs__max, _p_bzs__maxTo_p_bzs__recordsetQuery, 0, 0}, {&_swigt__p_bzs__avg, _p_bzs__avgTo_p_bzs__recordsetQuery, 0, 0}, {&_swigt__p_bzs__min, _p_bzs__minTo_p_bzs__recordsetQuery, 0, 0}, {&_swigt__p_bzs__last, _p_bzs__lastTo_p_bzs__recordsetQuery, 0, 0}, {&_swigt__p_bzs__first, _p_bzs__firstTo_p_bzs__recordsetQuery, 0, 0}, {&_swigt__p_bzs__groupFuncBase, _p_bzs__groupFuncBaseTo_p_bzs__recordsetQuery, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__autoMemory[] = {{&_swigt__p_bzs__autoMemory, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__refarymem[] = { {&_swigt__p_bzs__refarymem, 0, 0, 0}, {&_swigt__p_bzs__fieldsBase, _p_bzs__fieldsBaseTo_p_bzs__refarymem, 0, 0}, {&_swigt__p_bzs__memoryRecord, _p_bzs__memoryRecordTo_p_bzs__refarymem, 0, 0}, {&_swigt__p_bzs__writableRecord, _p_bzs__writableRecordTo_p_bzs__refarymem, 0, 0}, {&_swigt__p_bzs__autoMemory, _p_bzs__autoMemoryTo_p_bzs__refarymem, 0, 0}, {&_swigt__p_bzs__fields, _p_bzs__fieldsTo_p_bzs__refarymem, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__snapshotT_boost__shared_ptrT_bzs__database_t_t[] = { {&_swigt__p_bzs__snapshotT_boost__shared_ptrT_bzs__database_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__snapshotT_bzs__idatabaseManager_p_t[] = { {&_swigt__p_bzs__snapshotT_bzs__idatabaseManager_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__sortField[] = { {&_swigt__p_bzs__sortField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__sortFields[] = { {&_swigt__p_bzs__sortFields, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__sum[] = { {&_swigt__p_bzs__sum, 0, 0, 0}, {&_swigt__p_bzs__max, _p_bzs__maxTo_p_bzs__sum, 0, 0}, {&_swigt__p_bzs__avg, _p_bzs__avgTo_p_bzs__sum, 0, 0}, {&_swigt__p_bzs__min, _p_bzs__minTo_p_bzs__sum, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__table[] = { {&_swigt__p_bzs__table, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__tableIteratorT_indexFindNavi_t[] = { {&_swigt__p_bzs__tableIteratorT_indexFindNavi_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__tableIteratorT_indexNavi_t[] = { {&_swigt__p_bzs__tableIteratorT_indexNavi_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__tableIteratorT_indexRvFindNavi_t[] = { {&_swigt__p_bzs__tableIteratorT_indexRvFindNavi_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__tableIteratorT_indexRvNavi_t[] = { {&_swigt__p_bzs__tableIteratorT_indexRvNavi_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__tableIteratorT_stepNavi_t[] = { {&_swigt__p_bzs__tableIteratorT_stepNavi_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__tableIteratorT_stepRvNavi_t[] = { {&_swigt__p_bzs__tableIteratorT_stepRvNavi_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__transactionT_boost__shared_ptrT_bzs__database_t_t[] = { {&_swigt__p_bzs__transactionT_boost__shared_ptrT_bzs__database_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__transactionT_boost__shared_ptrT_bzs__idatabaseManager_t_t[] = { {&_swigt__p_bzs__transactionT_boost__shared_ptrT_bzs__idatabaseManager_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__writableRecord[] = { {&_swigt__p_bzs__writableRecord, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__fielddef[] = { {&_swigt__p_bzs__fielddef, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__fielddef_tT_20_t[] = { {&_swigt__p_bzs__fielddef_tT_20_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__fielddef_tT_64_t[] = { {&_swigt__p_bzs__fielddef, _p_bzs__fielddefTo_p_bzs__fielddef_tT_64_t, 0, 0}, {&_swigt__p_bzs__fielddef_tT_64_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__keySegment[] = { {&_swigt__p_bzs__keySegment, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__keydef[] = { {&_swigt__p_bzs__keydef, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__tabledef[] = { {&_swigt__p_bzs__tabledef, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__db__transactd__connection__record[] = { {&_swigt__p_bzs__db__transactd__connection__record, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__connMgr__records[] = { {&_swigt__p_bzs__connMgr__records, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bzs__rtl__benchmark[] = { {&_swigt__p_bzs__rtl__benchmark, 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_f_unsigned_short_p_void_p_void_p_unsigned_int_p_void_unsigned_short_char_p_unsigned_char__short[] = { {&_swigt__p_f_unsigned_short_p_void_p_void_p_unsigned_int_p_void_unsigned_short_char_p_unsigned_char__short, 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_iterator[] = { {&_swigt__p_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_bzs__memoryRecord[] = {{&_swigt__p_p_bzs__memoryRecord, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_bzs__writableRecord[] = {{&_swigt__p_p_bzs__writableRecord, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_bzs__fields[] = {{&_swigt__p_p_bzs__fields, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_bzs__fieldsBase[] = { {&_swigt__p_p_bzs__fieldsBase, 0, 0, 0}, {&_swigt__p_p_bzs__memoryRecord, _p_p_bzs__memoryRecordTo_p_p_bzs__fieldsBase, 0, 0}, {&_swigt__p_p_bzs__writableRecord, _p_p_bzs__writableRecordTo_p_p_bzs__fieldsBase, 0, 0}, {&_swigt__p_p_bzs__fields, _p_p_bzs__fieldsTo_p_p_bzs__fieldsBase, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_preparedQuery[] = { {&_swigt__p_preparedQuery, 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 _swigc__p_std___tstring[] = { {&_swigt__p_std___tstring, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_bzs__fieldsBase_p_t__iterator[] = { {&_swigt__p_std__vectorT_bzs__fieldsBase_p_t__iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_trdVersiton[] = { {&_swigt__p_trdVersiton, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_BOOKMARK, _swigc__p_HWND, _swigc__p_boost__functionT_int_fbzs__db__protocol__tdap__client__fields_const_RF_t, _swigc__p_boost__shared_ptrT_bzs__database_t, _swigc__p_boost__shared_ptrT_bzs__filter_t, _swigc__p_boost__shared_ptrT_bzs__idatabaseManager_t, _swigc__p_boost__shared_ptrT_bzs__table_t, _swigc__p_boost__timer, _swigc__p_bzs__FLAGS, _swigc__p_bzs__btrDate, _swigc__p_bzs__btrDateTime, _swigc__p_bzs__btrTime, _swigc__p_bzs__btrTimeStamp, _swigc__p_bzs__btrVersion, _swigc__p_bzs__btrVersions, _swigc__p_bzs__activeTable, _swigc__p_bzs__autoMemory, _swigc__p_bzs__avg, _swigc__p_bzs__binlogPos, _swigc__p_bzs__connMgr, _swigc__p_bzs__bitset, _swigc__p_bzs__connectParams, _swigc__p_bzs__count, _swigc__p_bzs__database, _swigc__p_bzs__dbdef, _swigc__p_bzs__field, _swigc__p_bzs__fieldNames, _swigc__p_bzs__fieldShare, _swigc__p_bzs__fielddefs, _swigc__p_bzs__fields, _swigc__p_bzs__fieldsBase, _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexFindNavi_t_t, _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexNavi_t_t, _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvFindNavi_t_t, _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_indexRvNavi_t_t, _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_stepNavi_t_t, _swigc__p_bzs__filterdIteratorT_bzs__tableIteratorT_stepRvNavi_t_t, _swigc__p_bzs__groupFuncBase, _swigc__p_bzs__groupQuery, _swigc__p_bzs__idatabaseManager, _swigc__p_bzs__max, _swigc__p_bzs__memoryRecord, _swigc__p_bzs__min, _swigc__p_bzs__nsdatabase, _swigc__p_bzs__nstable, _swigc__p_bzs__pooledDbManager, _swigc__p_bzs__preparedQuery, _swigc__p_bzs__query, _swigc__p_bzs__queryBase, _swigc__p_bzs__recordset, _swigc__p_bzs__recordsetQuery, _swigc__p_bzs__refarymem, _swigc__p_bzs__snapshotT_boost__shared_ptrT_bzs__database_t_t, _swigc__p_bzs__snapshotT_bzs__idatabaseManager_p_t, _swigc__p_bzs__sortField, _swigc__p_bzs__sortFields, _swigc__p_bzs__sum, _swigc__p_bzs__table, _swigc__p_bzs__tableIteratorT_indexFindNavi_t, _swigc__p_bzs__tableIteratorT_indexNavi_t, _swigc__p_bzs__tableIteratorT_indexRvFindNavi_t, _swigc__p_bzs__tableIteratorT_indexRvNavi_t, _swigc__p_bzs__tableIteratorT_stepNavi_t, _swigc__p_bzs__tableIteratorT_stepRvNavi_t, _swigc__p_bzs__transactionT_boost__shared_ptrT_bzs__database_t_t, _swigc__p_bzs__transactionT_boost__shared_ptrT_bzs__idatabaseManager_t_t, _swigc__p_bzs__writableRecord, _swigc__p_bzs__fielddef, _swigc__p_bzs__fielddef_tT_20_t, _swigc__p_bzs__fielddef_tT_64_t, _swigc__p_bzs__keySegment, _swigc__p_bzs__keydef, _swigc__p_bzs__tabledef, _swigc__p_bzs__db__transactd__connection__record, _swigc__p_bzs__connMgr__records, _swigc__p_bzs__rtl__benchmark, _swigc__p_char, _swigc__p_f_unsigned_short_p_void_p_void_p_unsigned_int_p_void_unsigned_short_char_p_unsigned_char__short, _swigc__p_int, _swigc__p_iterator, _swigc__p_p_bzs__fields, _swigc__p_p_bzs__fieldsBase, _swigc__p_p_bzs__memoryRecord, _swigc__p_p_bzs__writableRecord, _swigc__p_preparedQuery, _swigc__p_short, _swigc__p_std___tstring, _swigc__p_std__vectorT_bzs__fieldsBase_p_t__iterator, _swigc__p_trdVersiton, _swigc__p_unsigned_char, _swigc__p_unsigned_int, _swigc__p_unsigned_short, _swigc__p_value_type, _swigc__p_void, _swigc__p_bzs__last, _swigc__p_bzs__first, }; /* -------- 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 found, 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); module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ found=0; iter=module_head; do { if (iter==&swig_module) { found=1; break; } iter=iter->next; } while (iter!= module_head); /* if the is found in the list, then all is done and we may leave */ if (found) return; /* otherwise we must add out 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_transactd(void) { size_t i; SWIG_InitRuntime(); mTransactd = rb_define_module("Transactd"); SWIG_InitializeModule(0); for (i = 0; i < swig_module.size; i++) { SWIG_define_class(swig_module.types[i]); } //utf8_enc = rb_enc_find("UTF-8"); utf8_enc = rb_utf8_encoding(); tdap::client::nsdatabase::setExecCodePage(CP_UTF8); SWIG_RubyInitializeTrackings(); rb_define_const(mTransactd, "NULLVALUE_MODE_RETURNNULL", SWIG_From_int(static_cast< int >(0))); rb_define_const(mTransactd, "NULLVALUE_MODE_NORETURNNULL", SWIG_From_int(static_cast< int >(1))); rb_define_const(mTransactd, "FIELD_VALUE_MODE_VALUE", SWIG_From_int(static_cast< int >(0))); rb_define_const(mTransactd, "FIELD_VALUE_MODE_OBJECT", SWIG_From_int(static_cast< int >(1))); rb_define_module_function(mTransactd, "fieldValueMode", VALUEFUNC(_wrap_fieldValueMode), -1); rb_define_module_function(mTransactd, "setFieldValueMode", VALUEFUNC(_wrap_setFieldValueMode), -1); rb_define_module_function(mTransactd, "nullValueMode", VALUEFUNC(_wrap_nullValueMode), -1); rb_define_module_function(mTransactd, "setNullValueMode", VALUEFUNC(_wrap_setNullValueMode), -1); rb_define_module_function(mTransactd, "field_value_mode", VALUEFUNC(_wrap_fieldValueMode), -1); rb_define_module_function(mTransactd, "set_field_value_mode", VALUEFUNC(_wrap_setFieldValueMode), -1); rb_define_module_function(mTransactd, "null_value_mode", VALUEFUNC(_wrap_nullValueMode), -1); rb_define_module_function(mTransactd, "set_null_value_mode", VALUEFUNC(_wrap_setNullValueMode), -1); rb_define_module_function(mTransactd, "field_value_mode=", VALUEFUNC(_wrap_setFieldValueMode), -1); rb_define_module_function(mTransactd, "null_value_mode=", VALUEFUNC(_wrap_setNullValueMode), -1); tdap::client::nsdatabase::setCheckTablePtr(true); #if HAVE_RB_THREAD_CALL_WITHOUT_GVL || HAVE_RB_THREAD_BLOCKING_REGION if (MYTICALLID_ORIGINAL == NULL) { MYTICALLID_ORIGINAL = tdap::client::getTrnsctdEntryPoint(); if (MYTICALLID_ORIGINAL) tdap::client::setTrnsctdEntryPoint((BTRCALLID_PTR) MYTICALLID_WITHOUT_GVL); else tdap::client::setTrnsctdEntryPoint((BTRCALLID_PTR) NULL); BTRVCALLID_ORIGINAL = tdap::client::getBtrvEntryPoint(); if (BTRVCALLID_ORIGINAL) tdap::client::setBtrvEntryPoint((BTRCALLID_PTR) BTRVCALLID_WITHOUT_GVL); else tdap::client::setBtrvEntryPoint((BTRCALLID_PTR) NULL); } #endif // HAVE_RB_THREAD_CALL_WITHOUT_GVL || HAVE_RB_THREAD_BLOCKING_REGION rb_define_const(mTransactd, "MYSQL_TYPE_MYSQL", SWIG_From_unsigned_SS_char(static_cast< unsigned char >(77))); rb_define_const(mTransactd, "MYSQL_TYPE_MARIA", SWIG_From_unsigned_SS_char(static_cast< unsigned char >(65))); rb_define_const(mTransactd, "CP_UTF8", SWIG_From_int(static_cast< int >(CP_UTF8))); #ifdef _WIN32 rb_define_const(mTransactd, "CP_ACP", SWIG_From_int(static_cast< int >(0))); #else rb_define_const(mTransactd, "CP_ACP", SWIG_From_int(static_cast< int >(65001))); #endif SwigClassBOOKMARK.klass = rb_define_class_under(mTransactd, "BOOKMARK", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_BOOKMARK, (void *)&SwigClassBOOKMARK); rb_define_alloc_func(SwigClassBOOKMARK.klass, _wrap_BOOKMARK_allocate); rb_define_method(SwigClassBOOKMARK.klass, "initialize", VALUEFUNC(_wrap_new_BOOKMARK), -1); rb_define_method(SwigClassBOOKMARK.klass, "isEmpty", VALUEFUNC(_wrap_BOOKMARK_isEmpty), -1); rb_define_alias(SwigClassBOOKMARK.klass, "is_empty", "isEmpty"); rb_define_alias(SwigClassBOOKMARK.klass, "is_empty?", "isEmpty"); SwigClassBOOKMARK.mark = 0; SwigClassBOOKMARK.destroy = (void(*)(void *)) free_BOOKMARK; SwigClassBOOKMARK.trackObjects = 0; rb_define_const(mTransactd, "TIMESTAMP_VALUE_CONTROL", SWIG_From_int(static_cast< int >(TIMESTAMP_VALUE_CONTROL))); rb_define_const(mTransactd, "TIMESTAMP_ALWAYS", SWIG_From_int(static_cast< int >(TIMESTAMP_ALWAYS))); rb_define_const(mTransactd, "Ft_string", SWIG_From_int(static_cast< int >(ft_string))); rb_define_const(mTransactd, "Ft_integer", SWIG_From_int(static_cast< int >(ft_integer))); rb_define_const(mTransactd, "Ft_float", SWIG_From_int(static_cast< int >(ft_float))); rb_define_const(mTransactd, "Ft_date", SWIG_From_int(static_cast< int >(ft_date))); rb_define_const(mTransactd, "Ft_time", SWIG_From_int(static_cast< int >(ft_time))); rb_define_const(mTransactd, "Ft_decimal", SWIG_From_int(static_cast< int >(ft_decimal))); rb_define_const(mTransactd, "Ft_money", SWIG_From_int(static_cast< int >(ft_money))); rb_define_const(mTransactd, "Ft_logical", SWIG_From_int(static_cast< int >(ft_logical))); rb_define_const(mTransactd, "Ft_numeric", SWIG_From_int(static_cast< int >(ft_numeric))); rb_define_const(mTransactd, "Ft_bfloat", SWIG_From_int(static_cast< int >(ft_bfloat))); rb_define_const(mTransactd, "Ft_lstring", SWIG_From_int(static_cast< int >(ft_lstring))); rb_define_const(mTransactd, "Ft_zstring", SWIG_From_int(static_cast< int >(ft_zstring))); rb_define_const(mTransactd, "Ft_note", SWIG_From_int(static_cast< int >(ft_note))); rb_define_const(mTransactd, "Ft_lvar", SWIG_From_int(static_cast< int >(ft_lvar))); rb_define_const(mTransactd, "Ft_uinteger", SWIG_From_int(static_cast< int >(ft_uinteger))); rb_define_const(mTransactd, "Ft_autoinc", SWIG_From_int(static_cast< int >(ft_autoinc))); rb_define_const(mTransactd, "Ft_bit", SWIG_From_int(static_cast< int >(ft_bit))); rb_define_const(mTransactd, "Ft_numericsts", SWIG_From_int(static_cast< int >(ft_numericsts))); rb_define_const(mTransactd, "Ft_numericsa", SWIG_From_int(static_cast< int >(ft_numericsa))); rb_define_const(mTransactd, "Ft_currency", SWIG_From_int(static_cast< int >(ft_currency))); rb_define_const(mTransactd, "Ft_timestamp", SWIG_From_int(static_cast< int >(ft_timestamp))); rb_define_const(mTransactd, "Ft_blob", SWIG_From_int(static_cast< int >(ft_blob))); rb_define_const(mTransactd, "Ft_reserve22", SWIG_From_int(static_cast< int >(ft_reserve22))); rb_define_const(mTransactd, "Ft_reserve23", SWIG_From_int(static_cast< int >(ft_reserve23))); rb_define_const(mTransactd, "Ft_reserve24", SWIG_From_int(static_cast< int >(ft_reserve24))); rb_define_const(mTransactd, "Ft_wstring", SWIG_From_int(static_cast< int >(ft_wstring))); rb_define_const(mTransactd, "Ft_wzstring", SWIG_From_int(static_cast< int >(ft_wzstring))); rb_define_const(mTransactd, "Ft_guid", SWIG_From_int(static_cast< int >(ft_guid))); rb_define_const(mTransactd, "Ft_datetime", SWIG_From_int(static_cast< int >(ft_datetime))); rb_define_const(mTransactd, "Ft_myvarchar", SWIG_From_int(static_cast< int >(ft_myvarchar))); rb_define_const(mTransactd, "Ft_myvarbinary", SWIG_From_int(static_cast< int >(ft_myvarbinary))); rb_define_const(mTransactd, "Ft_mywvarchar", SWIG_From_int(static_cast< int >(ft_mywvarchar))); rb_define_const(mTransactd, "Ft_mywvarbinary", SWIG_From_int(static_cast< int >(ft_mywvarbinary))); rb_define_const(mTransactd, "Ft_mychar", SWIG_From_int(static_cast< int >(ft_mychar))); rb_define_const(mTransactd, "Ft_mywchar", SWIG_From_int(static_cast< int >(ft_mywchar))); rb_define_const(mTransactd, "Ft_mydate", SWIG_From_int(static_cast< int >(ft_mydate))); rb_define_const(mTransactd, "Ft_mytime", SWIG_From_int(static_cast< int >(ft_mytime))); rb_define_const(mTransactd, "Ft_mydatetime", SWIG_From_int(static_cast< int >(ft_mydatetime))); rb_define_const(mTransactd, "Ft_mytimestamp", SWIG_From_int(static_cast< int >(ft_mytimestamp))); rb_define_const(mTransactd, "Ft_mytext", SWIG_From_int(static_cast< int >(ft_mytext))); rb_define_const(mTransactd, "Ft_myblob", SWIG_From_int(static_cast< int >(ft_myblob))); rb_define_const(mTransactd, "Ft_autoIncUnsigned", SWIG_From_int(static_cast< int >(ft_autoIncUnsigned))); rb_define_const(mTransactd, "Ft_myfixedbinary", SWIG_From_int(static_cast< int >(ft_myfixedbinary))); rb_define_const(mTransactd, "Ft_enum", SWIG_From_int(static_cast< int >(ft_enum))); rb_define_const(mTransactd, "Ft_set", SWIG_From_int(static_cast< int >(ft_set))); rb_define_const(mTransactd, "Ft_myyear", SWIG_From_int(static_cast< int >(ft_myyear))); rb_define_const(mTransactd, "Ft_mygeometry", SWIG_From_int(static_cast< int >(ft_mygeometry))); rb_define_const(mTransactd, "Ft_myjson", SWIG_From_int(static_cast< int >(ft_myjson))); rb_define_const(mTransactd, "Ft_mydecimal", SWIG_From_int(static_cast< int >(ft_mydecimal))); rb_define_const(mTransactd, "Ft_nullindicator", SWIG_From_int(static_cast< int >(ft_nullindicator))); rb_define_const(mTransactd, "CMPLOGICAL_VAR_COMP_ALL", SWIG_From_int(static_cast< int >(CMPLOGICAL_VAR_COMP_ALL))); rb_define_const(mTransactd, "CMPLOGICAL_CMPACS", SWIG_From_int(static_cast< int >(CMPLOGICAL_CMPACS))); rb_define_const(mTransactd, "CMPLOGICAL_FIELD", SWIG_From_int(static_cast< int >(CMPLOGICAL_FIELD))); rb_define_const(mTransactd, "CMPLOGICAL_CASEINSENSITIVE", SWIG_From_int(static_cast< int >(CMPLOGICAL_CASEINSENSITIVE))); rb_define_const(mTransactd, "LOCK_BIAS_DEFAULT", SWIG_From_int(static_cast< int >(LOCK_BIAS_DEFAULT))); rb_define_const(mTransactd, "LOCK_SINGLE_WAIT", SWIG_From_int(static_cast< int >(LOCK_SINGLE_WAIT))); rb_define_const(mTransactd, "LOCK_SINGLE_NOWAIT", SWIG_From_int(static_cast< int >(LOCK_SINGLE_NOWAIT))); rb_define_const(mTransactd, "LOCK_MULTI_WAIT", SWIG_From_int(static_cast< int >(LOCK_MULTI_WAIT))); rb_define_const(mTransactd, "LOCK_MULTI_NOWAIT", SWIG_From_int(static_cast< int >(LOCK_MULTI_NOWAIT))); rb_define_const(mTransactd, "NOWAIT_WRITE", SWIG_From_int(static_cast< int >(NOWAIT_WRITE))); rb_define_const(mTransactd, "PARALLEL_TRN", SWIG_From_int(static_cast< int >(PARALLEL_TRN))); rb_define_const(mTransactd, "TRN_ISO_READ_COMMITED", SWIG_From_int(static_cast< int >(TRN_ISO_READ_COMMITED))); rb_define_const(mTransactd, "TRN_ISO_REPEATABLE_READ", SWIG_From_int(static_cast< int >(TRN_ISO_REPEATABLE_READ))); rb_define_const(mTransactd, "TRN_ISO_SERIALIZABLE", SWIG_From_int(static_cast< int >(TRN_ISO_SERIALIZABLE))); rb_define_const(mTransactd, "SINGLELOCK_READ_COMMITED", SWIG_From_int(static_cast< int >(SINGLELOCK_READ_COMMITED))); rb_define_const(mTransactd, "MULTILOCK_READ_COMMITED", SWIG_From_int(static_cast< int >(MULTILOCK_READ_COMMITED))); rb_define_const(mTransactd, "MULTILOCK_REPEATABLE_READ", SWIG_From_int(static_cast< int >(MULTILOCK_REPEATABLE_READ))); rb_define_const(mTransactd, "MULTILOCK_ISO_SERIALIZABLE", SWIG_From_int(static_cast< int >(MULTILOCK_ISO_SERIALIZABLE))); rb_define_const(mTransactd, "SINGLELOCK_NOGAP", SWIG_From_int(static_cast< int >(SINGLELOCK_NOGAP))); rb_define_const(mTransactd, "MULTILOCK_NOGAP", SWIG_From_int(static_cast< int >(MULTILOCK_NOGAP))); rb_define_const(mTransactd, "MULTILOCK_GAP", SWIG_From_int(static_cast< int >(MULTILOCK_GAP))); rb_define_const(mTransactd, "CONSISTENT_READ", SWIG_From_int(static_cast< int >(CONSISTENT_READ))); rb_define_const(mTransactd, "CONSISTENT_READ_WITH_BINLOG_POS", SWIG_From_int(static_cast< int >(CONSISTENT_READ_WITH_BINLOG_POS))); rb_define_const(mTransactd, "MULTILOCK_GAP_SHARE", SWIG_From_int(static_cast< int >(MULTILOCK_GAP_SHARE))); rb_define_const(mTransactd, "MULTILOCK_NOGAP_SHARE", SWIG_From_int(static_cast< int >(MULTILOCK_NOGAP_SHARE))); rb_define_const(mTransactd, "REPL_POSTYPE_NONE", SWIG_From_int(static_cast< int >(REPL_POSTYPE_NONE))); rb_define_const(mTransactd, "REPL_POSTYPE_MARIA_GTID", SWIG_From_int(static_cast< int >(REPL_POSTYPE_MARIA_GTID))); rb_define_const(mTransactd, "REPL_POSTYPE_POS", SWIG_From_int(static_cast< int >(REPL_POSTYPE_POS))); rb_define_const(mTransactd, "REPL_POSTYPE_GTID", SWIG_From_int(static_cast< int >(REPL_POSTYPE_GTID))); rb_define_const(mTransactd, "ROW_LOCK_X", SWIG_From_int(static_cast< int >(ROW_LOCK_X))); rb_define_const(mTransactd, "ROW_LOCK_S", SWIG_From_int(static_cast< int >(ROW_LOCK_S))); rb_define_const(mTransactd, "SRV_ISO_READ_UNCOMMITED", SWIG_From_int(static_cast< int >(SRV_ISO_READ_UNCOMMITED))); rb_define_const(mTransactd, "SRV_ISO_READ_COMMITED", SWIG_From_int(static_cast< int >(SRV_ISO_READ_COMMITED))); rb_define_const(mTransactd, "SRV_ISO_REPEATABLE_READ", SWIG_From_int(static_cast< int >(SRV_ISO_REPEATABLE_READ))); rb_define_const(mTransactd, "SRV_ISO_SERIALIZABLE", SWIG_From_int(static_cast< int >(SRV_ISO_SERIALIZABLE))); rb_define_const(mTransactd, "TD_OPEN_NORMAL", SWIG_From_int(static_cast< int >(TD_OPEN_NORMAL))); rb_define_const(mTransactd, "TD_OPEN_READONLY", SWIG_From_int(static_cast< int >(TD_OPEN_READONLY))); rb_define_const(mTransactd, "TD_OPEN_EXCLUSIVE", SWIG_From_int(static_cast< int >(TD_OPEN_EXCLUSIVE))); rb_define_const(mTransactd, "TD_OPEN_READONLY_EXCLUSIVE", SWIG_From_int(static_cast< int >(TD_OPEN_READONLY_EXCLUSIVE))); rb_define_const(mTransactd, "BT_AL_LEFT", SWIG_From_int(static_cast< int >(BT_AL_LEFT))); rb_define_const(mTransactd, "BT_AL_CENTER", SWIG_From_int(static_cast< int >(BT_AL_CENTER))); rb_define_const(mTransactd, "BT_AL_RIGHT", SWIG_From_int(static_cast< int >(BT_AL_RIGHT))); rb_define_const(mTransactd, "STATUS_TABLE_YET_OPEN", SWIG_From_int(static_cast< int >(STATUS_TABLE_YET_OPEN))); rb_define_const(mTransactd, "STATUS_DURING_TRANSACTION", SWIG_From_int(static_cast< int >(STATUS_DURING_TRANSACTION))); rb_define_const(mTransactd, "STATUS_NO_ACR_UPDATE_DELETE", SWIG_From_int(static_cast< int >(STATUS_NO_ACR_UPDATE_DELETE))); rb_define_const(mTransactd, "STATUS_NO_ACR_INSERT", SWIG_From_int(static_cast< int >(STATUS_NO_ACR_INSERT))); rb_define_const(mTransactd, "STATUS_NO_ACR_READ", SWIG_From_int(static_cast< int >(STATUS_NO_ACR_READ))); rb_define_const(mTransactd, "STATUS_CANT_ALLOC_MEMORY", SWIG_From_int(static_cast< int >(STATUS_CANT_ALLOC_MEMORY))); rb_define_const(mTransactd, "STATUS_USE_KEYFIELD", SWIG_From_int(static_cast< int >(STATUS_USE_KEYFIELD))); rb_define_const(mTransactd, "STATUS_TOO_MANY_TABLES", SWIG_From_int(static_cast< int >(STATUS_TOO_MANY_TABLES))); rb_define_const(mTransactd, "STATUS_INVARID_PRM_KEY_NUM", SWIG_From_int(static_cast< int >(STATUS_INVARID_PRM_KEY_NUM))); rb_define_const(mTransactd, "STATUS_INVARID_PNT_KEY_NUM", SWIG_From_int(static_cast< int >(STATUS_INVARID_PNT_KEY_NUM))); rb_define_const(mTransactd, "STATUS_INVARID_REP_KEY_NUM", SWIG_From_int(static_cast< int >(STATUS_INVARID_REP_KEY_NUM))); rb_define_const(mTransactd, "STATUS_INVARID_FIELD_IDX", SWIG_From_int(static_cast< int >(STATUS_INVARID_FIELD_IDX))); rb_define_const(mTransactd, "STATUS_ALREADY_DELETED", SWIG_From_int(static_cast< int >(STATUS_ALREADY_DELETED))); rb_define_const(mTransactd, "STATUS_LMITS_MAX_TABLES", SWIG_From_int(static_cast< int >(STATUS_LMITS_MAX_TABLES))); rb_define_const(mTransactd, "STATUS_DB_YET_OPEN", SWIG_From_int(static_cast< int >(STATUS_DB_YET_OPEN))); rb_define_const(mTransactd, "STATUS_TABLENAME_NOTFOUND", SWIG_From_int(static_cast< int >(STATUS_TABLENAME_NOTFOUND))); rb_define_const(mTransactd, "STATUS_DIFFERENT_DBVERSION", SWIG_From_int(static_cast< int >(STATUS_DIFFERENT_DBVERSION))); rb_define_const(mTransactd, "STATUS_DUPLICATE_FIELDNAME", SWIG_From_int(static_cast< int >(STATUS_DUPLICATE_FIELDNAME))); rb_define_const(mTransactd, "STATUS_INVALID_TABLE_IDX", SWIG_From_int(static_cast< int >(STATUS_INVALID_TABLE_IDX))); rb_define_const(mTransactd, "STATUS_AUTH_DENIED", SWIG_From_int(static_cast< int >(STATUS_AUTH_DENIED))); rb_define_const(mTransactd, "STATUS_TOO_MANY_FIELDS", SWIG_From_int(static_cast< int >(STATUS_TOO_MANY_FIELDS))); rb_define_const(mTransactd, "STATUS_FILTERSTRING_ERROR", SWIG_From_int(static_cast< int >(STATUS_FILTERSTRING_ERROR))); rb_define_const(mTransactd, "STATUS_INVALID_FIELDLENGTH", SWIG_From_int(static_cast< int >(STATUS_INVALID_FIELDLENGTH))); rb_define_const(mTransactd, "STATUS_INVALID_KEYTYPE", SWIG_From_int(static_cast< int >(STATUS_INVALID_KEYTYPE))); rb_define_const(mTransactd, "STATUS_LVAR_NOTE_NOT_LAST", SWIG_From_int(static_cast< int >(STATUS_LVAR_NOTE_NOT_LAST))); rb_define_const(mTransactd, "STATUS_NODEF_FOR_CONVERT", SWIG_From_int(static_cast< int >(STATUS_NODEF_FOR_CONVERT))); rb_define_const(mTransactd, "STATUS_TRD_NEED_VARLENGTH", SWIG_From_int(static_cast< int >(STATUS_TRD_NEED_VARLENGTH))); rb_define_const(mTransactd, "STATUS_INVALID_VARIABLETABLE", SWIG_From_int(static_cast< int >(STATUS_INVALID_VARIABLETABLE))); rb_define_const(mTransactd, "STATUS_AUTOINC_SPACE_ERROR", SWIG_From_int(static_cast< int >(STATUS_AUTOINC_SPACE_ERROR))); rb_define_const(mTransactd, "STATUS_TOO_LONG_OWNERNAME", SWIG_From_int(static_cast< int >(STATUS_TOO_LONG_OWNERNAME))); rb_define_const(mTransactd, "STATUS_CANT_DEL_FOR_REL", SWIG_From_int(static_cast< int >(STATUS_CANT_DEL_FOR_REL))); rb_define_const(mTransactd, "STATUS_NO_AUTOINC_SPACE", SWIG_From_int(static_cast< int >(STATUS_NO_AUTOINC_SPACE))); rb_define_const(mTransactd, "STATUS_INVALID_RECLEN", SWIG_From_int(static_cast< int >(STATUS_INVALID_RECLEN))); rb_define_const(mTransactd, "STATUS_INVALID_FIELDVALUE", SWIG_From_int(static_cast< int >(STATUS_INVALID_FIELDVALUE))); rb_define_const(mTransactd, "STATUS_INVALID_VALLEN", SWIG_From_int(static_cast< int >(STATUS_INVALID_VALLEN))); rb_define_const(mTransactd, "STATUS_FIELDTYPE_NOTSUPPORT", SWIG_From_int(static_cast< int >(STATUS_FIELDTYPE_NOTSUPPORT))); rb_define_const(mTransactd, "STATUS_INVALID_NULLMODE", SWIG_From_int(static_cast< int >(STATUS_INVALID_NULLMODE))); rb_define_const(mTransactd, "STATUS_TOO_LARGE_VALUE", SWIG_From_int(static_cast< int >(STATUS_TOO_LARGE_VALUE))); rb_define_const(mTransactd, "STATUS_SQL_PARSE_ERROR", SWIG_From_int(static_cast< int >(STATUS_SQL_PARSE_ERROR))); rb_define_const(mTransactd, "STATUS_SUCCESS", SWIG_From_int(static_cast< int >(STATUS_SUCCESS))); rb_define_const(mTransactd, "STATUS_PROGRAM_ERROR", SWIG_From_int(static_cast< int >(STATUS_PROGRAM_ERROR))); rb_define_const(mTransactd, "STATUS_IO_ERROR", SWIG_From_int(static_cast< int >(STATUS_IO_ERROR))); rb_define_const(mTransactd, "STATUS_FILE_NOT_OPENED", SWIG_From_int(static_cast< int >(STATUS_FILE_NOT_OPENED))); rb_define_const(mTransactd, "STATUS_NOT_FOUND_TI", SWIG_From_int(static_cast< int >(STATUS_NOT_FOUND_TI))); rb_define_const(mTransactd, "STATUS_DUPPLICATE_KEYVALUE", SWIG_From_int(static_cast< int >(STATUS_DUPPLICATE_KEYVALUE))); rb_define_const(mTransactd, "STATUS_INVALID_KEYNUM", SWIG_From_int(static_cast< int >(STATUS_INVALID_KEYNUM))); rb_define_const(mTransactd, "STATUS_NO_CURRENT", SWIG_From_int(static_cast< int >(STATUS_NO_CURRENT))); rb_define_const(mTransactd, "STATUS_EOF", SWIG_From_int(static_cast< int >(STATUS_EOF))); rb_define_const(mTransactd, "STATUS_TABLE_NOTOPEN", SWIG_From_int(static_cast< int >(STATUS_TABLE_NOTOPEN))); rb_define_const(mTransactd, "STATUS_REQUESTER_DEACTIVE", SWIG_From_int(static_cast< int >(STATUS_REQUESTER_DEACTIVE))); rb_define_const(mTransactd, "STATUS_KEYBUFFERTOOSMALL", SWIG_From_int(static_cast< int >(STATUS_KEYBUFFERTOOSMALL))); rb_define_const(mTransactd, "STATUS_BUFFERTOOSMALL", SWIG_From_int(static_cast< int >(STATUS_BUFFERTOOSMALL))); rb_define_const(mTransactd, "STATUS_CANT_CREATE", SWIG_From_int(static_cast< int >(STATUS_CANT_CREATE))); rb_define_const(mTransactd, "STATUS_NOSUPPORT_OP", SWIG_From_int(static_cast< int >(STATUS_NOSUPPORT_OP))); rb_define_const(mTransactd, "STATUS_INVALID_BOOKMARK", SWIG_From_int(static_cast< int >(STATUS_INVALID_BOOKMARK))); rb_define_const(mTransactd, "STATUS_ACCESS_DENIED", SWIG_From_int(static_cast< int >(STATUS_ACCESS_DENIED))); rb_define_const(mTransactd, "STATUS_INVALID_OWNERNAME", SWIG_From_int(static_cast< int >(STATUS_INVALID_OWNERNAME))); rb_define_const(mTransactd, "STATUS_TABLE_EXISTS_ERROR", SWIG_From_int(static_cast< int >(STATUS_TABLE_EXISTS_ERROR))); rb_define_const(mTransactd, "STATUS_LIMMIT_OF_REJECT", SWIG_From_int(static_cast< int >(STATUS_LIMMIT_OF_REJECT))); rb_define_const(mTransactd, "STATUS_WARKSPACE_TOO_SMALL", SWIG_From_int(static_cast< int >(STATUS_WARKSPACE_TOO_SMALL))); rb_define_const(mTransactd, "STATUS_REACHED_FILTER_COND", SWIG_From_int(static_cast< int >(STATUS_REACHED_FILTER_COND))); rb_define_const(mTransactd, "STATUS_INVALID_FIELD_OFFSET", SWIG_From_int(static_cast< int >(STATUS_INVALID_FIELD_OFFSET))); rb_define_const(mTransactd, "STATUS_CHANGE_CONFLICT", SWIG_From_int(static_cast< int >(STATUS_CHANGE_CONFLICT))); rb_define_const(mTransactd, "STATUS_INVALID_LOCKTYPE", SWIG_From_int(static_cast< int >(STATUS_INVALID_LOCKTYPE))); rb_define_const(mTransactd, "STATUS_LOCK_ERROR", SWIG_From_int(static_cast< int >(STATUS_LOCK_ERROR))); rb_define_const(mTransactd, "STATUS_FILE_LOCKED", SWIG_From_int(static_cast< int >(STATUS_FILE_LOCKED))); rb_define_const(mTransactd, "STATUS_CANNOT_LOCK_TABLE", SWIG_From_int(static_cast< int >(STATUS_CANNOT_LOCK_TABLE))); rb_define_const(mTransactd, "STATUS_INVALID_KEYNAME", SWIG_From_int(static_cast< int >(STATUS_INVALID_KEYNAME))); rb_define_const(mTransactd, "STATUS_INVALID_DATASIZE", SWIG_From_int(static_cast< int >(STATUS_INVALID_DATASIZE))); rb_define_const(mTransactd, "STATUS_INVALID_FIELDNAME", SWIG_From_int(static_cast< int >(STATUS_INVALID_FIELDNAME))); rb_define_const(mTransactd, "ERROR_TD_INVALID_CLINETHOST", SWIG_From_int(static_cast< int >(ERROR_TD_INVALID_CLINETHOST))); rb_define_const(mTransactd, "ERROR_NO_DATABASE", SWIG_From_int(static_cast< int >(ERROR_NO_DATABASE))); rb_define_const(mTransactd, "ERROR_NOSPECIFY_TABLE", SWIG_From_int(static_cast< int >(ERROR_NOSPECIFY_TABLE))); rb_define_const(mTransactd, "ERROR_LOAD_CLIBRARY", SWIG_From_int(static_cast< int >(ERROR_LOAD_CLIBRARY))); rb_define_const(mTransactd, "ERROR_INDEX_RND_INIT", SWIG_From_int(static_cast< int >(ERROR_INDEX_RND_INIT))); rb_define_const(mTransactd, "STATUS_ALREADY_INSNAPSHOT", SWIG_From_int(static_cast< int >(STATUS_ALREADY_INSNAPSHOT))); rb_define_const(mTransactd, "STATUS_ALREADY_INTRANSACTION", SWIG_From_int(static_cast< int >(STATUS_ALREADY_INTRANSACTION))); rb_define_const(mTransactd, "STATUS_ALREADY_INEXCLUSIVE", SWIG_From_int(static_cast< int >(STATUS_ALREADY_INEXCLUSIVE))); rb_define_const(mTransactd, "SERVER_CLIENT_NOT_COMPATIBLE", SWIG_From_int(static_cast< int >(SERVER_CLIENT_NOT_COMPATIBLE))); rb_define_const(mTransactd, "NET_BAD_SRB_FORMAT", SWIG_From_int(static_cast< int >(NET_BAD_SRB_FORMAT))); rb_define_const(mTransactd, "ERROR_TD_HOSTNAME_NOT_FOUND", SWIG_From_int(static_cast< int >(ERROR_TD_HOSTNAME_NOT_FOUND))); rb_define_const(mTransactd, "ERROR_TD_CONNECTION_FAILURE", SWIG_From_int(static_cast< int >(ERROR_TD_CONNECTION_FAILURE))); rb_define_const(mTransactd, "ERROR_TD_NOT_CONNECTED", SWIG_From_int(static_cast< int >(ERROR_TD_NOT_CONNECTED))); rb_define_const(mTransactd, "ERROR_TD_NET_TIMEOUT", SWIG_From_int(static_cast< int >(ERROR_TD_NET_TIMEOUT))); rb_define_const(mTransactd, "ERROR_TD_NET_REMOTE_DISCONNECT", SWIG_From_int(static_cast< int >(ERROR_TD_NET_REMOTE_DISCONNECT))); rb_define_const(mTransactd, "ERROR_TD_NET_TOO_BIGDATA", SWIG_From_int(static_cast< int >(ERROR_TD_NET_TOO_BIGDATA))); rb_define_const(mTransactd, "ERROR_TD_NET_OTHER", SWIG_From_int(static_cast< int >(ERROR_TD_NET_OTHER))); rb_define_const(mTransactd, "ERROR_TD_C_CLIENT_UNKNOWN", SWIG_From_int(static_cast< int >(ERROR_TD_C_CLIENT_UNKNOWN))); rb_define_const(mTransactd, "ERROR_TD_INVALID_SERVER_ROLE", SWIG_From_int(static_cast< int >(ERROR_TD_INVALID_SERVER_ROLE))); rb_define_const(mTransactd, "ERROR_TD_RECONNECTED", SWIG_From_int(static_cast< int >(ERROR_TD_RECONNECTED))); rb_define_const(mTransactd, "ERROR_TD_RECONNECTED_OFFSET", SWIG_From_int(static_cast< int >(ERROR_TD_RECONNECTED_OFFSET))); rb_define_const(mTransactd, "MYSQL_ERROR_OFFSET", SWIG_From_int(static_cast< int >(MYSQL_ERROR_OFFSET))); rb_define_const(mTransactd, "TRANSACTD_SCHEMANAME", SWIG_FromCharPtr(TRANSACTD_SCHEMANAME)); rb_define_const(mTransactd, "TYPE_SCHEMA_BDF", SWIG_From_int(static_cast< int >(TYPE_SCHEMA_BDF))); rb_define_const(mTransactd, "TYPE_SCHEMA_DDF", SWIG_From_int(static_cast< int >(TYPE_SCHEMA_DDF))); rb_define_const(mTransactd, "TYPE_SCHEMA_BDF_NOPRELOAD", SWIG_From_int(static_cast< int >(2))); rb_define_const(mTransactd, "FILTER_CURRENT_TYPE_NOTINC", SWIG_From_int(static_cast< int >(FILTER_CURRENT_TYPE_NOTINC))); rb_define_const(mTransactd, "FILTER_CURRENT_TYPE_INC", SWIG_From_int(static_cast< int >(FILTER_CURRENT_TYPE_INC))); rb_define_const(mTransactd, "FILTER_CURRENT_TYPE_NOBOOKMARK", SWIG_From_int(static_cast< int >(FILTER_CURRENT_TYPE_NOBOOKMARK))); rb_define_const(mTransactd, "NIS_FILED_NAME", SWIG_FromCharPtr(NIS_FILED_NAME)); rb_define_const(mTransactd, "OWNERNAME_SIZE", SWIG_From_int(static_cast< int >(OWNERNAME_SIZE))); rb_define_const(mTransactd, "TD_BACKUP_START", SWIG_From_int(static_cast< int >(TD_BACKUP_START))); rb_define_const(mTransactd, "TD_BACKUP_END", SWIG_From_int(static_cast< int >(TD_BACKUP_END))); rb_define_const(mTransactd, "TD_BACKUP_MODE_OK", SWIG_From_int(static_cast< int >(TD_BACKUP_MODE_OK))); rb_define_const(mTransactd, "TD_BACKUP_MODE_NOT_SUPPORT", SWIG_From_int(static_cast< int >(TD_BACKUP_MODE_NOT_SUPPORT))); rb_define_const(mTransactd, "TD_BACKUP_MODE_BUSY", SWIG_From_int(static_cast< int >(TD_BACKUP_MODE_BUSY))); rb_define_const(mTransactd, "TD_BACKUP_MODE_NOT_PERMIT", SWIG_From_int(static_cast< int >(TD_BACKUP_MODE_NOT_PERMIT))); rb_define_const(mTransactd, "TD_BACKUP_MODE_SERVER_ERROR", SWIG_From_int(static_cast< int >(TD_BACKUP_MODE_SERVER_ERROR))); rb_define_const(mTransactd, "DFV_TIMESTAMP_DEFAULT", SWIG_From_double(static_cast< double >(1.0))); rb_define_const(mTransactd, "HA_ROLE_SLAVE", SWIG_From_int(static_cast< int >(HA_ROLE_SLAVE))); rb_define_const(mTransactd, "HA_ROLE_MASTER", SWIG_From_int(static_cast< int >(HA_ROLE_MASTER))); rb_define_const(mTransactd, "HA_ROLE_NONE", SWIG_From_int(static_cast< int >(HA_ROLE_NONE))); rb_define_const(mTransactd, "HA_RESTORE_ROLE", SWIG_From_int(static_cast< int >(HA_RESTORE_ROLE))); rb_define_const(mTransactd, "HA_ENABLE_FAILOVER", SWIG_From_int(static_cast< int >(HA_ENABLE_FAILOVER))); rb_define_const(mTransactd, "CPP_INTERFACE_VER_MAJOR", SWIG_FromCharPtr(CPP_INTERFACE_VER_MAJOR)); rb_define_const(mTransactd, "CPP_INTERFACE_VER_MINOR", SWIG_FromCharPtr(CPP_INTERFACE_VER_MINOR)); rb_define_const(mTransactd, "CPP_INTERFACE_VER_RELEASE", SWIG_FromCharPtr(CPP_INTERFACE_VER_RELEASE)); rb_define_const(mTransactd, "TRANSACTD_VER_MAJOR", SWIG_From_int(static_cast< int >(TRANSACTD_VER_MAJOR))); rb_define_const(mTransactd, "TRANSACTD_VER_MINOR", SWIG_From_int(static_cast< int >(TRANSACTD_VER_MINOR))); rb_define_const(mTransactd, "TRANSACTD_VER_RELEASE", SWIG_From_int(static_cast< int >(TRANSACTD_VER_RELEASE))); rb_define_const(mTransactd, "FETCH_VAL_NUM", SWIG_From_int(static_cast< int >(FETCH_VAL_NUM))); rb_define_const(mTransactd, "FETCH_VAL_ASSOC", SWIG_From_int(static_cast< int >(FETCH_VAL_ASSOC))); rb_define_const(mTransactd, "FETCH_VAL_BOTH", SWIG_From_int(static_cast< int >(FETCH_VAL_BOTH))); rb_define_const(mTransactd, "FETCH_OBJ", SWIG_From_int(static_cast< int >(FETCH_OBJ))); rb_define_const(mTransactd, "FETCH_USR_CLASS", SWIG_From_int(static_cast< int >(FETCH_USR_CLASS))); rb_define_const(mTransactd, "FETCH_RECORD_INTO", SWIG_From_int(static_cast< int >(FETCH_RECORD_INTO))); SwigClassFLAGS.klass = rb_define_class_under(mTransactd, "FLAGS", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__FLAGS, (void *) &SwigClassFLAGS); rb_define_alloc_func(SwigClassFLAGS.klass, _wrap_FLAGS_allocate); rb_define_method(SwigClassFLAGS.klass, "initialize", VALUEFUNC(_wrap_new_FLAGS), -1); rb_define_method(SwigClassFLAGS.klass, "all=", VALUEFUNC(_wrap_FLAGS_all_set), -1); rb_define_method(SwigClassFLAGS.klass, "all", VALUEFUNC(_wrap_FLAGS_all_get), -1); rb_define_method(SwigClassFLAGS.klass, "bit0=", VALUEFUNC(_wrap_FLAGS_bit0_set), -1); rb_define_method(SwigClassFLAGS.klass, "bit0", VALUEFUNC(_wrap_FLAGS_bit0_get), -1); rb_define_method(SwigClassFLAGS.klass, "bit1=", VALUEFUNC(_wrap_FLAGS_bit1_set), -1); rb_define_method(SwigClassFLAGS.klass, "bit1", VALUEFUNC(_wrap_FLAGS_bit1_get), -1); rb_define_method(SwigClassFLAGS.klass, "bit2=", VALUEFUNC(_wrap_FLAGS_bit2_set), -1); rb_define_method(SwigClassFLAGS.klass, "bit2", VALUEFUNC(_wrap_FLAGS_bit2_get), -1); rb_define_method(SwigClassFLAGS.klass, "bit3=", VALUEFUNC(_wrap_FLAGS_bit3_set), -1); rb_define_method(SwigClassFLAGS.klass, "bit3", VALUEFUNC(_wrap_FLAGS_bit3_get), -1); rb_define_method(SwigClassFLAGS.klass, "bit4=", VALUEFUNC(_wrap_FLAGS_bit4_set), -1); rb_define_method(SwigClassFLAGS.klass, "bit4", VALUEFUNC(_wrap_FLAGS_bit4_get), -1); rb_define_method(SwigClassFLAGS.klass, "bit5=", VALUEFUNC(_wrap_FLAGS_bit5_set), -1); rb_define_method(SwigClassFLAGS.klass, "bit5", VALUEFUNC(_wrap_FLAGS_bit5_get), -1); rb_define_method(SwigClassFLAGS.klass, "bit6=", VALUEFUNC(_wrap_FLAGS_bit6_set), -1); rb_define_method(SwigClassFLAGS.klass, "bit6", VALUEFUNC(_wrap_FLAGS_bit6_get), -1); rb_define_method(SwigClassFLAGS.klass, "bit7=", VALUEFUNC(_wrap_FLAGS_bit7_set), -1); rb_define_method(SwigClassFLAGS.klass, "bit7", VALUEFUNC(_wrap_FLAGS_bit7_get), -1); rb_define_method(SwigClassFLAGS.klass, "bit8=", VALUEFUNC(_wrap_FLAGS_bit8_set), -1); rb_define_method(SwigClassFLAGS.klass, "bit8", VALUEFUNC(_wrap_FLAGS_bit8_get), -1); rb_define_method(SwigClassFLAGS.klass, "bit9=", VALUEFUNC(_wrap_FLAGS_bit9_set), -1); rb_define_method(SwigClassFLAGS.klass, "bit9", VALUEFUNC(_wrap_FLAGS_bit9_get), -1); rb_define_method(SwigClassFLAGS.klass, "bitA=", VALUEFUNC(_wrap_FLAGS_bitA_set), -1); rb_define_method(SwigClassFLAGS.klass, "bitA", VALUEFUNC(_wrap_FLAGS_bitA_get), -1); rb_define_method(SwigClassFLAGS.klass, "bitB=", VALUEFUNC(_wrap_FLAGS_bitB_set), -1); rb_define_method(SwigClassFLAGS.klass, "bitB", VALUEFUNC(_wrap_FLAGS_bitB_get), -1); rb_define_method(SwigClassFLAGS.klass, "bitC=", VALUEFUNC(_wrap_FLAGS_bitC_set), -1); rb_define_method(SwigClassFLAGS.klass, "bitC", VALUEFUNC(_wrap_FLAGS_bitC_get), -1); rb_define_method(SwigClassFLAGS.klass, "bitD=", VALUEFUNC(_wrap_FLAGS_bitD_set), -1); rb_define_method(SwigClassFLAGS.klass, "bitD", VALUEFUNC(_wrap_FLAGS_bitD_get), -1); rb_define_method(SwigClassFLAGS.klass, "bitE=", VALUEFUNC(_wrap_FLAGS_bitE_set), -1); rb_define_method(SwigClassFLAGS.klass, "bitE", VALUEFUNC(_wrap_FLAGS_bitE_get), -1); rb_define_method(SwigClassFLAGS.klass, "bitF=", VALUEFUNC(_wrap_FLAGS_bitF_set), -1); rb_define_method(SwigClassFLAGS.klass, "bitF", VALUEFUNC(_wrap_FLAGS_bitF_get), -1); SwigClassFLAGS.mark = 0; SwigClassFLAGS.destroy = (void (*)(void *)) free_bzs_FLAGS; SwigClassFLAGS.trackObjects = 0; SwigClassKeySegment.klass = rb_define_class_under(mTransactd, "KeySegment", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__keySegment, (void *) &SwigClassKeySegment); rb_define_alloc_func(SwigClassKeySegment.klass, _wrap_keySegment_allocate); rb_define_method(SwigClassKeySegment.klass, "initialize", VALUEFUNC(_wrap_new_keySegment), -1); rb_define_method(SwigClassKeySegment.klass, "fieldNum=", VALUEFUNC(_wrap_keySegment_fieldNum_set), -1); rb_define_method(SwigClassKeySegment.klass, "fieldNum", VALUEFUNC(_wrap_keySegment_fieldNum_get), -1); rb_define_method(SwigClassKeySegment.klass, "flags=", VALUEFUNC(_wrap_keySegment_flags_set), -1); rb_define_method(SwigClassKeySegment.klass, "flags", VALUEFUNC(_wrap_keySegment_flags_get), -1); rb_define_alias(SwigClassKeySegment.klass, "field_num", "fieldNum"); rb_define_alias(SwigClassKeySegment.klass, "field_num=", "fieldNum="); SwigClassKeySegment.mark = 0; SwigClassKeySegment.destroy = (void (*)(void *)) free_bzs_keySegment; SwigClassKeySegment.trackObjects = 0; rb_define_const(mTransactd, "MAX_KEY_SEGMENT", SWIG_From_int(static_cast< int >(MAX_KEY_SEGMENT))); SwigClassKeydef.klass = rb_define_class_under(mTransactd, "Keydef", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__keydef, (void *) &SwigClassKeydef); rb_define_alloc_func(SwigClassKeydef.klass, _wrap_keydef_allocate); rb_define_method(SwigClassKeydef.klass, "initialize", VALUEFUNC(_wrap_new_keydef), -1); rb_define_method(SwigClassKeydef.klass, "segmentCount=", VALUEFUNC(_wrap_keydef_segmentCount_set), -1); rb_define_method(SwigClassKeydef.klass, "segmentCount", VALUEFUNC(_wrap_keydef_segmentCount_get), -1); rb_define_method(SwigClassKeydef.klass, "segments=", VALUEFUNC(_wrap_keydef_segments_set), -1); rb_define_method(SwigClassKeydef.klass, "segments", VALUEFUNC(_wrap_keydef_segments_get), -1); rb_define_method(SwigClassKeydef.klass, "keyNumber=", VALUEFUNC(_wrap_keydef_keyNumber_set), -1); rb_define_method(SwigClassKeydef.klass, "keyNumber", VALUEFUNC(_wrap_keydef_keyNumber_get), -1); rb_define_method(SwigClassKeydef.klass, "segment", VALUEFUNC(_wrap_keydef_segment), -1); rb_define_alias(SwigClassKeydef.klass, "segment_count=", "segmentCount="); rb_define_alias(SwigClassKeydef.klass, "segment_count", "segmentCount"); rb_define_alias(SwigClassKeydef.klass, "key_number=", "keyNumber="); rb_define_alias(SwigClassKeydef.klass, "key_number", "keyNumber"); SwigClassKeydef.mark = 0; SwigClassKeydef.destroy = (void (*)(void *)) free_bzs_keydef; SwigClassKeydef.trackObjects = 0; rb_define_module_function(mTransactd, "getTypeName", VALUEFUNC(_wrap_getTypeName), -1); rb_define_module_function(mTransactd, "getTypeAlign", VALUEFUNC(_wrap_getTypeAlign), -1); rb_define_module_function(mTransactd, "lenByCharnum", VALUEFUNC(_wrap_lenByCharnum), -1); rb_define_module_function(mTransactd, "isStringType", VALUEFUNC(_wrap_isStringType), -1); rb_define_module_function(mTransactd, "get_type_name", VALUEFUNC(_wrap_getTypeName), -1); rb_define_module_function(mTransactd, "get_type_align", VALUEFUNC(_wrap_getTypeAlign), -1); rb_define_module_function(mTransactd, "len_by_charnum", VALUEFUNC(_wrap_lenByCharnum), -1); rb_define_module_function(mTransactd, "is_string_type", VALUEFUNC(_wrap_isStringType), -1); rb_define_module_function(mTransactd, "is_string_type?", VALUEFUNC(_wrap_isStringType), -1); SwigClassFielddef_t_my.klass = rb_define_class_under(mTransactd, "Fielddef_t_my", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__fielddef_tT_64_t, (void *) &SwigClassFielddef_t_my); rb_define_alloc_func(SwigClassFielddef_t_my.klass, _wrap_fielddef_t_my_allocate); rb_define_method(SwigClassFielddef_t_my.klass, "initialize", VALUEFUNC(_wrap_new_fielddef_t_my), -1); rb_define_method(SwigClassFielddef_t_my.klass, "type=", VALUEFUNC(_wrap_fielddef_t_my_type_set), -1); rb_define_method(SwigClassFielddef_t_my.klass, "type", VALUEFUNC(_wrap_fielddef_t_my_type_get), -1); rb_define_method(SwigClassFielddef_t_my.klass, "len=", VALUEFUNC(_wrap_fielddef_t_my_len_set), -1); rb_define_method(SwigClassFielddef_t_my.klass, "len", VALUEFUNC(_wrap_fielddef_t_my_len_get), -1); rb_define_method(SwigClassFielddef_t_my.klass, "decimals=", VALUEFUNC(_wrap_fielddef_t_my_decimals_set), -1); rb_define_method(SwigClassFielddef_t_my.klass, "decimals", VALUEFUNC(_wrap_fielddef_t_my_decimals_get), -1); rb_define_method(SwigClassFielddef_t_my.klass, "max=", VALUEFUNC(_wrap_fielddef_t_my_max_set), -1); rb_define_method(SwigClassFielddef_t_my.klass, "max", VALUEFUNC(_wrap_fielddef_t_my_max_get), -1); rb_define_method(SwigClassFielddef_t_my.klass, "min=", VALUEFUNC(_wrap_fielddef_t_my_min_set), -1); rb_define_method(SwigClassFielddef_t_my.klass, "min", VALUEFUNC(_wrap_fielddef_t_my_min_get), -1); rb_define_method(SwigClassFielddef_t_my.klass, "pos=", VALUEFUNC(_wrap_fielddef_t_my_pos_set), -1); rb_define_method(SwigClassFielddef_t_my.klass, "pos", VALUEFUNC(_wrap_fielddef_t_my_pos_get), -1); rb_define_method(SwigClassFielddef_t_my.klass, "ddfid=", VALUEFUNC(_wrap_fielddef_t_my_ddfid_set), -1); rb_define_method(SwigClassFielddef_t_my.klass, "ddfid", VALUEFUNC(_wrap_fielddef_t_my_ddfid_get), -1); rb_define_method(SwigClassFielddef_t_my.klass, "nullValue=", VALUEFUNC(_wrap_fielddef_t_my_nullValue_set), -1); rb_define_method(SwigClassFielddef_t_my.klass, "nullValue", VALUEFUNC(_wrap_fielddef_t_my_nullValue_get), -1); rb_define_method(SwigClassFielddef_t_my.klass, "keylen=", VALUEFUNC(_wrap_fielddef_t_my_keylen_set), -1); rb_define_method(SwigClassFielddef_t_my.klass, "keylen", VALUEFUNC(_wrap_fielddef_t_my_keylen_get), -1); rb_define_alias(SwigClassFielddef_t_my.klass, "null_value=", "nullValue="); rb_define_alias(SwigClassFielddef_t_my.klass, "null_value", "nullValue"); SwigClassFielddef_t_my.mark = 0; SwigClassFielddef_t_my.destroy = (void (*)(void *)) free_bzs_fielddef_t_Sl_64_Sg_; SwigClassFielddef_t_my.trackObjects = 0; SwigClassFielddef.klass = rb_define_class_under(mTransactd, "Fielddef", ((swig_class *) SWIGTYPE_p_bzs__fielddef_tT_64_t->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__fielddef, (void *) &SwigClassFielddef); rb_define_alloc_func(SwigClassFielddef.klass, _wrap_fielddef_allocate); rb_define_method(SwigClassFielddef.klass, "initialize", VALUEFUNC(_wrap_new_fielddef), -1); rb_define_method(SwigClassFielddef.klass, "setName", VALUEFUNC(_wrap_fielddef_setName), -1); rb_define_method(SwigClassFielddef.klass, "typeName", VALUEFUNC(_wrap_fielddef_typeName), -1); rb_define_method(SwigClassFielddef.klass, "align", VALUEFUNC(_wrap_fielddef_align), -1); rb_define_method(SwigClassFielddef.klass, "setLenByCharnum", VALUEFUNC(_wrap_fielddef_setLenByCharnum), -1); rb_define_method(SwigClassFielddef.klass, "setDecimalDigits", VALUEFUNC(_wrap_fielddef_setDecimalDigits), -1); rb_define_method(SwigClassFielddef.klass, "codePage", VALUEFUNC(_wrap_fielddef_codePage), -1); rb_define_method(SwigClassFielddef.klass, "isStringType", VALUEFUNC(_wrap_fielddef_isStringType), -1); rb_define_method(SwigClassFielddef.klass, "isPadCharType", VALUEFUNC(_wrap_fielddef_isPadCharType), -1); rb_define_method(SwigClassFielddef.klass, "isIntegerType", VALUEFUNC(_wrap_fielddef_isIntegerType), -1); rb_define_method(SwigClassFielddef.klass, "isNumericType", VALUEFUNC(_wrap_fielddef_isNumericType), -1); rb_define_method(SwigClassFielddef.klass, "isDateTimeType", VALUEFUNC(_wrap_fielddef_isDateTimeType), -1); rb_define_method(SwigClassFielddef.klass, "charNum", VALUEFUNC(_wrap_fielddef_charNum), -1); rb_define_method(SwigClassFielddef.klass, "isValidCharNum", VALUEFUNC(_wrap_fielddef_isValidCharNum), -1); rb_define_method(SwigClassFielddef.klass, "setCharsetIndex", VALUEFUNC(_wrap_fielddef_setCharsetIndex), -1); rb_define_method(SwigClassFielddef.klass, "charsetIndex", VALUEFUNC(_wrap_fielddef_charsetIndex), -1); rb_define_method(SwigClassFielddef.klass, "setPadCharSettings", VALUEFUNC(_wrap_fielddef_setPadCharSettings), -1); rb_define_method(SwigClassFielddef.klass, "isUsePadChar", VALUEFUNC(_wrap_fielddef_isUsePadChar), -1); rb_define_method(SwigClassFielddef.klass, "isTrimPadChar", VALUEFUNC(_wrap_fielddef_isTrimPadChar), -1); rb_define_method(SwigClassFielddef.klass, "isNullable", VALUEFUNC(_wrap_fielddef_isNullable), -1); rb_define_method(SwigClassFielddef.klass, "setNullable", VALUEFUNC(_wrap_fielddef_setNullable), -1); rb_define_method(SwigClassFielddef.klass, "setDefaultValue", VALUEFUNC(_wrap_fielddef_setDefaultValue), -1); rb_define_method(SwigClassFielddef.klass, "setTimeStampOnUpdate", VALUEFUNC(_wrap_fielddef_setTimeStampOnUpdate), -1); rb_define_method(SwigClassFielddef.klass, "isTimeStampOnUpdate", VALUEFUNC(_wrap_fielddef_isTimeStampOnUpdate), -1); rb_define_method(SwigClassFielddef.klass, "isDefaultNull", VALUEFUNC(_wrap_fielddef_isDefaultNull), -1); rb_define_method(SwigClassFielddef.klass, "name", VALUEFUNC(_wrap_fielddef_name), -1); rb_define_method(SwigClassFielddef.klass, "defaultValue", VALUEFUNC(_wrap_fielddef_defaultValue), -1); rb_define_alias(SwigClassFielddef.klass, "set_name", "setName"); rb_define_alias(SwigClassFielddef.klass, "type_name", "typeName"); rb_define_alias(SwigClassFielddef.klass, "set_len_by_charnum", "setLenByCharnum"); rb_define_alias(SwigClassFielddef.klass, "set_decimal_digits", "setDecimalDigits"); rb_define_alias(SwigClassFielddef.klass, "code_page", "codePage"); rb_define_alias(SwigClassFielddef.klass, "is_string_type", "isStringType"); rb_define_alias(SwigClassFielddef.klass, "is_pad_char_type", "isPadCharType"); rb_define_alias(SwigClassFielddef.klass, "is_integer_type", "isIntegerType"); rb_define_alias(SwigClassFielddef.klass, "is_numeric_type", "isNumericType"); rb_define_alias(SwigClassFielddef.klass, "is_date_time_type", "isDateTimeType"); rb_define_alias(SwigClassFielddef.klass, "char_num", "charNum"); rb_define_alias(SwigClassFielddef.klass, "is_valid_char_num", "isValidCharNum"); rb_define_alias(SwigClassFielddef.klass, "set_charset_index", "setCharsetIndex"); rb_define_alias(SwigClassFielddef.klass, "charset_index", "charsetIndex"); rb_define_alias(SwigClassFielddef.klass, "set_pad_char_settings", "setPadCharSettings"); rb_define_alias(SwigClassFielddef.klass, "is_use_pad_char", "isUsePadChar"); rb_define_alias(SwigClassFielddef.klass, "is_trim_pad_char", "isTrimPadChar"); rb_define_alias(SwigClassFielddef.klass, "is_nullable", "isNullable"); rb_define_alias(SwigClassFielddef.klass, "set_nullable", "setNullable"); rb_define_alias(SwigClassFielddef.klass, "set_default_value", "setDefaultValue"); rb_define_alias(SwigClassFielddef.klass, "set_time_stamp_on_update", "setTimeStampOnUpdate"); rb_define_alias(SwigClassFielddef.klass, "is_time_stamp_on_update", "isTimeStampOnUpdate"); rb_define_alias(SwigClassFielddef.klass, "is_default_null", "isDefaultNull"); rb_define_alias(SwigClassFielddef.klass, "default_value", "defaultValue"); rb_define_alias(SwigClassFielddef.klass, "name=", "setName"); rb_define_alias(SwigClassFielddef.klass, "len_by_charnum=", "setLenByCharnum"); // rb_define_alias(SwigClassFielddef.klass, "decimal_digits=", "setDecimalDigits"); rb_define_alias(SwigClassFielddef.klass, "is_string_type?", "isStringType"); rb_define_alias(SwigClassFielddef.klass, "is_pad_char_type?", "isPadCharType"); rb_define_alias(SwigClassFielddef.klass, "is_integer_type?", "isIntegerType"); rb_define_alias(SwigClassFielddef.klass, "is_numeric_type?", "isNumericType"); rb_define_alias(SwigClassFielddef.klass, "is_date_time_type?", "isDateTimeType"); rb_define_alias(SwigClassFielddef.klass, "is_valid_char_num?", "isValidCharNum"); rb_define_alias(SwigClassFielddef.klass, "charset_index=", "setCharsetIndex"); // rb_define_alias(SwigClassFielddef.klass, "pad_char_settings=", "setPadCharSettings"); rb_define_alias(SwigClassFielddef.klass, "is_use_pad_char?", "isUsePadChar"); rb_define_alias(SwigClassFielddef.klass, "is_trim_pad_char?", "isTrimPadChar"); rb_define_alias(SwigClassFielddef.klass, "is_nullable?", "isNullable"); // rb_define_alias(SwigClassFielddef.klass, "nullable=", "setNullable"); rb_define_alias(SwigClassFielddef.klass, "default_value=", "setDefaultValue"); rb_define_alias(SwigClassFielddef.klass, "time_stamp_on_update=", "setTimeStampOnUpdate"); rb_define_alias(SwigClassFielddef.klass, "is_time_stamp_on_update?", "isTimeStampOnUpdate"); rb_define_alias(SwigClassFielddef.klass, "is_default_null?", "isDefaultNull"); SwigClassFielddef.mark = 0; SwigClassFielddef.destroy = (void (*)(void *)) free_bzs_fielddef; SwigClassFielddef.trackObjects = 0; SwigClassTabledef.klass = rb_define_class_under(mTransactd, "Tabledef", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__tabledef, (void *) &SwigClassTabledef); rb_define_alloc_func(SwigClassTabledef.klass, _wrap_tabledef_allocate); rb_define_method(SwigClassTabledef.klass, "initialize", VALUEFUNC(_wrap_new_tabledef), -1); rb_define_method(SwigClassTabledef.klass, "cleanup", VALUEFUNC(_wrap_tabledef_cleanup), -1); rb_define_method(SwigClassTabledef.klass, "fileName", VALUEFUNC(_wrap_tabledef_fileName), -1); rb_define_method(SwigClassTabledef.klass, "tableName", VALUEFUNC(_wrap_tabledef_tableName), -1); rb_define_method(SwigClassTabledef.klass, "setFileName", VALUEFUNC(_wrap_tabledef_setFileName), -1); rb_define_method(SwigClassTabledef.klass, "setTableName", VALUEFUNC(_wrap_tabledef_setTableName), -1); rb_define_method(SwigClassTabledef.klass, "nullfields", VALUEFUNC(_wrap_tabledef_nullfields), -1); rb_define_method(SwigClassTabledef.klass, "inUse", VALUEFUNC(_wrap_tabledef_inUse), -1); rb_define_method(SwigClassTabledef.klass, "size", VALUEFUNC(_wrap_tabledef_size), -1); rb_define_method(SwigClassTabledef.klass, "fieldNumByName", VALUEFUNC(_wrap_tabledef_fieldNumByName), -1); rb_define_method(SwigClassTabledef.klass, "recordlen", VALUEFUNC(_wrap_tabledef_recordlen), -1); rb_define_method(SwigClassTabledef.klass, "setValidationTarget", VALUEFUNC(_wrap_tabledef_setValidationTarget), -1); rb_define_method(SwigClassTabledef.klass, "isMysqlNullMode", VALUEFUNC(_wrap_tabledef_isMysqlNullMode), -1); rb_define_method(SwigClassTabledef.klass, "id=", VALUEFUNC(_wrap_tabledef_id_set), -1); rb_define_method(SwigClassTabledef.klass, "id", VALUEFUNC(_wrap_tabledef_id_get), -1); rb_define_method(SwigClassTabledef.klass, "pageSize=", VALUEFUNC(_wrap_tabledef_pageSize_set), -1); rb_define_method(SwigClassTabledef.klass, "pageSize", VALUEFUNC(_wrap_tabledef_pageSize_get), -1); rb_define_method(SwigClassTabledef.klass, "varSize=", VALUEFUNC(_wrap_tabledef_varSize_set), -1); rb_define_method(SwigClassTabledef.klass, "varSize", VALUEFUNC(_wrap_tabledef_varSize_get), -1); rb_define_method(SwigClassTabledef.klass, "preAlloc=", VALUEFUNC(_wrap_tabledef_preAlloc_set), -1); rb_define_method(SwigClassTabledef.klass, "preAlloc", VALUEFUNC(_wrap_tabledef_preAlloc_get), -1); rb_define_method(SwigClassTabledef.klass, "fieldCount=", VALUEFUNC(_wrap_tabledef_fieldCount_set), -1); rb_define_method(SwigClassTabledef.klass, "fieldCount", VALUEFUNC(_wrap_tabledef_fieldCount_get), -1); rb_define_method(SwigClassTabledef.klass, "keyCount=", VALUEFUNC(_wrap_tabledef_keyCount_set), -1); rb_define_method(SwigClassTabledef.klass, "keyCount", VALUEFUNC(_wrap_tabledef_keyCount_get), -1); rb_define_method(SwigClassTabledef.klass, "version=", VALUEFUNC(_wrap_tabledef_version_set), -1); rb_define_method(SwigClassTabledef.klass, "version", VALUEFUNC(_wrap_tabledef_version_get), -1); rb_define_method(SwigClassTabledef.klass, "charsetIndex=", VALUEFUNC(_wrap_tabledef_charsetIndex_set), -1); rb_define_method(SwigClassTabledef.klass, "charsetIndex", VALUEFUNC(_wrap_tabledef_charsetIndex_get), -1); rb_define_method(SwigClassTabledef.klass, "flags=", VALUEFUNC(_wrap_tabledef_flags_set), -1); rb_define_method(SwigClassTabledef.klass, "flags", VALUEFUNC(_wrap_tabledef_flags_get), -1); rb_define_method(SwigClassTabledef.klass, "primaryKeyNum=", VALUEFUNC(_wrap_tabledef_primaryKeyNum_set), -1); rb_define_method(SwigClassTabledef.klass, "primaryKeyNum", VALUEFUNC(_wrap_tabledef_primaryKeyNum_get), -1); rb_define_method(SwigClassTabledef.klass, "ddfid=", VALUEFUNC(_wrap_tabledef_ddfid_set), -1); rb_define_method(SwigClassTabledef.klass, "ddfid", VALUEFUNC(_wrap_tabledef_ddfid_get), -1); rb_define_method(SwigClassTabledef.klass, "digits=", VALUEFUNC(_wrap_tabledef_ddfid_set), -1); rb_define_method(SwigClassTabledef.klass, "digits", VALUEFUNC(_wrap_tabledef_ddfid_get), -1); rb_define_method(SwigClassTabledef.klass, "fixedRecordLen=", VALUEFUNC(_wrap_tabledef_fixedRecordLen_set), -1); rb_define_method(SwigClassTabledef.klass, "fixedRecordLen", VALUEFUNC(_wrap_tabledef_fixedRecordLen_get), -1); rb_define_method(SwigClassTabledef.klass, "schemaCodePage=", VALUEFUNC(_wrap_tabledef_schemaCodePage_set), -1); rb_define_method(SwigClassTabledef.klass, "schemaCodePage", VALUEFUNC(_wrap_tabledef_schemaCodePage_get), -1); rb_define_method(SwigClassTabledef.klass, "fieldDef", VALUEFUNC(_wrap_tabledef_fieldDef), -1); rb_define_method(SwigClassTabledef.klass, "keyDef", VALUEFUNC(_wrap_tabledef_keyDef), -1); rb_define_alias(SwigClassTabledef.klass, "file_name", "fileName"); rb_define_alias(SwigClassTabledef.klass, "table_name", "tableName"); rb_define_alias(SwigClassTabledef.klass, "set_file_name", "setFileName"); rb_define_alias(SwigClassTabledef.klass, "set_table_name", "setTableName"); rb_define_alias(SwigClassTabledef.klass, "in_use", "inUse"); rb_define_alias(SwigClassTabledef.klass, "field_num_by_name", "fieldNumByName"); rb_define_alias(SwigClassTabledef.klass, "set_validation_target", "setValidationTarget"); rb_define_alias(SwigClassTabledef.klass, "is_mysql_null_mode", "isMysqlNullMode"); rb_define_alias(SwigClassTabledef.klass, "page_size=", "pageSize="); rb_define_alias(SwigClassTabledef.klass, "page_size", "pageSize"); rb_define_alias(SwigClassTabledef.klass, "var_size=", "varSize="); rb_define_alias(SwigClassTabledef.klass, "var_size", "varSize"); rb_define_alias(SwigClassTabledef.klass, "pre_alloc=", "preAlloc="); rb_define_alias(SwigClassTabledef.klass, "pre_alloc", "preAlloc"); rb_define_alias(SwigClassTabledef.klass, "field_count=", "fieldCount="); rb_define_alias(SwigClassTabledef.klass, "field_count", "fieldCount"); rb_define_alias(SwigClassTabledef.klass, "key_count=", "keyCount="); rb_define_alias(SwigClassTabledef.klass, "key_count", "keyCount"); rb_define_alias(SwigClassTabledef.klass, "charset_index=", "charsetIndex="); rb_define_alias(SwigClassTabledef.klass, "charset_index", "charsetIndex"); rb_define_alias(SwigClassTabledef.klass, "primary_key_num=", "primaryKeyNum="); rb_define_alias(SwigClassTabledef.klass, "primary_key_num", "primaryKeyNum"); rb_define_alias(SwigClassTabledef.klass, "fixed_record_len=", "fixedRecordLen="); rb_define_alias(SwigClassTabledef.klass, "fixed_record_len", "fixedRecordLen"); rb_define_alias(SwigClassTabledef.klass, "schema_code_page=", "schemaCodePage="); rb_define_alias(SwigClassTabledef.klass, "schema_code_page", "schemaCodePage"); rb_define_alias(SwigClassTabledef.klass, "field_def", "fieldDef"); rb_define_alias(SwigClassTabledef.klass, "key_def", "keyDef"); rb_define_alias(SwigClassTabledef.klass, "file_name=", "setFileName"); rb_define_alias(SwigClassTabledef.klass, "table_name=", "setTableName"); // rb_define_alias(SwigClassTabledef.klass, "validation_target=", "setValidationTarget"); rb_define_alias(SwigClassTabledef.klass, "is_mysql_null_mode?", "isMysqlNullMode"); SwigClassTabledef.mark = 0; SwigClassTabledef.destroy = (void (*)(void *)) free_bzs_tabledef; SwigClassTabledef.trackObjects = 0; SwigClassBtrVersion.klass = rb_define_class_under(mTransactd, "BtrVersion", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__btrVersion, (void *) &SwigClassBtrVersion); rb_define_alloc_func(SwigClassBtrVersion.klass, _wrap_btrVersion_allocate); rb_define_method(SwigClassBtrVersion.klass, "initialize", VALUEFUNC(_wrap_new_btrVersion), -1); rb_define_method(SwigClassBtrVersion.klass, "majorVersion=", VALUEFUNC(_wrap_btrVersion_majorVersion_set), -1); rb_define_method(SwigClassBtrVersion.klass, "majorVersion", VALUEFUNC(_wrap_btrVersion_majorVersion_get), -1); rb_define_method(SwigClassBtrVersion.klass, "minorVersion=", VALUEFUNC(_wrap_btrVersion_minorVersion_set), -1); rb_define_method(SwigClassBtrVersion.klass, "minorVersion", VALUEFUNC(_wrap_btrVersion_minorVersion_get), -1); rb_define_method(SwigClassBtrVersion.klass, "type=", VALUEFUNC(_wrap_btrVersion_type_set), -1); rb_define_method(SwigClassBtrVersion.klass, "type", VALUEFUNC(_wrap_btrVersion_type_get), -1); rb_define_method(SwigClassBtrVersion.klass, "moduleVersionShortString", VALUEFUNC(_wrap_btrVersion_moduleVersionShortString), -1); rb_define_method(SwigClassBtrVersion.klass, "moduleTypeString", VALUEFUNC(_wrap_btrVersion_moduleTypeString), -1); rb_define_alias(SwigClassBtrVersion.klass, "major_version=", "majorVersion="); rb_define_alias(SwigClassBtrVersion.klass, "major_version", "majorVersion"); rb_define_alias(SwigClassBtrVersion.klass, "minor_version=", "minorVersion="); rb_define_alias(SwigClassBtrVersion.klass, "minor_version", "minorVersion"); rb_define_alias(SwigClassBtrVersion.klass, "module_version_short_string", "moduleVersionShortString"); rb_define_alias(SwigClassBtrVersion.klass, "module_type_string", "moduleTypeString"); SwigClassBtrVersion.mark = 0; SwigClassBtrVersion.destroy = (void (*)(void *)) free_bzs_btrVersion; SwigClassBtrVersion.trackObjects = 0; SwigClassBtrVersions.klass = rb_define_class_under(mTransactd, "BtrVersions", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__btrVersions, (void *) &SwigClassBtrVersions); rb_define_alloc_func(SwigClassBtrVersions.klass, _wrap_btrVersions_allocate); rb_define_method(SwigClassBtrVersions.klass, "initialize", VALUEFUNC(_wrap_new_btrVersions), -1); rb_define_method(SwigClassBtrVersions.klass, "versions=", VALUEFUNC(_wrap_btrVersions_versions_set), -1); rb_define_method(SwigClassBtrVersions.klass, "versions", VALUEFUNC(_wrap_btrVersions_versions_get), -1); rb_define_method(SwigClassBtrVersions.klass, "version", VALUEFUNC(_wrap_btrVersions_version), -1); SwigClassBtrVersions.mark = 0; SwigClassBtrVersions.destroy = (void (*)(void *)) free_bzs_btrVersions; SwigClassBtrVersions.trackObjects = 0; rb_define_const(mTransactd, "ECend", SWIG_From_int(static_cast< int >(eCend))); rb_define_const(mTransactd, "ECand", SWIG_From_int(static_cast< int >(eCand))); rb_define_const(mTransactd, "ECor", SWIG_From_int(static_cast< int >(eCor))); rb_define_const(mTransactd, "EEqual", SWIG_From_int(static_cast< int >(eEqual))); rb_define_const(mTransactd, "EGreater", SWIG_From_int(static_cast< int >(eGreater))); rb_define_const(mTransactd, "ELess", SWIG_From_int(static_cast< int >(eLess))); rb_define_const(mTransactd, "ENotEq", SWIG_From_int(static_cast< int >(eNotEq))); rb_define_const(mTransactd, "EGreaterEq", SWIG_From_int(static_cast< int >(eGreaterEq))); rb_define_const(mTransactd, "ELessEq", SWIG_From_int(static_cast< int >(eLessEq))); rb_define_const(mTransactd, "EBitAnd", SWIG_From_int(static_cast< int >(eBitAnd))); rb_define_const(mTransactd, "ENotBitAnd", SWIG_From_int(static_cast< int >(eNotBitAnd))); rb_define_const(mTransactd, "EIsNull", SWIG_From_int(static_cast< int >(eIsNull))); rb_define_const(mTransactd, "EIsNotNull", SWIG_From_int(static_cast< int >(eIsNotNull))); rb_define_module_function(mTransactd, "getFilterLogicTypeCode", VALUEFUNC(_wrap_getFilterLogicTypeCode), -1); rb_define_module_function(mTransactd, "get_filter_logic_type_code", VALUEFUNC(_wrap_getFilterLogicTypeCode), -1); SwigClassNstable.klass = rb_define_class_under(mTransactd, "Nstable", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__nstable, (void *) &SwigClassNstable); rb_undef_alloc_func(SwigClassNstable.klass); rb_define_const(SwigClassNstable.klass, "ChangeCurrentCc", SWIG_From_int(static_cast< int >(tdap::client::nstable::changeCurrentCc))); rb_define_const(SwigClassNstable.klass, "ChangeCurrentNcc", SWIG_From_int(static_cast< int >(tdap::client::nstable::changeCurrentNcc))); rb_define_const(SwigClassNstable.klass, "ChangeInKey", SWIG_From_int(static_cast< int >(tdap::client::nstable::changeInKey))); rb_define_const(SwigClassNstable.klass, "FindForword", SWIG_From_int(static_cast< int >(tdap::client::nstable::findForword))); rb_define_const(SwigClassNstable.klass, "FindBackForword", SWIG_From_int(static_cast< int >(tdap::client::nstable::findBackForword))); rb_define_const(SwigClassNstable.klass, "Inkey", SWIG_From_bool(static_cast< bool >(tdap::client::nstable::inkey))); rb_define_method(SwigClassNstable.klass, "nsdb", VALUEFUNC(_wrap_nstable_nsdb), -1); rb_define_method(SwigClassNstable.klass, "tableid", VALUEFUNC(_wrap_nstable_tableid), -1); rb_define_method(SwigClassNstable.klass, "setTableid", VALUEFUNC(_wrap_nstable_setTableid), -1); rb_define_method(SwigClassNstable.klass, "isOpen", VALUEFUNC(_wrap_nstable_isOpen), -1); rb_define_method(SwigClassNstable.klass, "isUseTransactd", VALUEFUNC(_wrap_nstable_isUseTransactd), -1); rb_define_method(SwigClassNstable.klass, "setAccessRights", VALUEFUNC(_wrap_nstable_setAccessRights), -1); rb_define_method(SwigClassNstable.klass, "datalen", VALUEFUNC(_wrap_nstable_datalen), -1); rb_define_method(SwigClassNstable.klass, "stat", VALUEFUNC(_wrap_nstable_stat), -1); rb_define_method(SwigClassNstable.klass, "keyNum", VALUEFUNC(_wrap_nstable_keyNum), -1); rb_define_method(SwigClassNstable.klass, "setKeyNum", VALUEFUNC(_wrap_nstable_setKeyNum), -1); rb_define_method(SwigClassNstable.klass, "canRead", VALUEFUNC(_wrap_nstable_canRead), -1); rb_define_method(SwigClassNstable.klass, "canWrite", VALUEFUNC(_wrap_nstable_canWrite), -1); rb_define_method(SwigClassNstable.klass, "canInsert", VALUEFUNC(_wrap_nstable_canInsert), -1); rb_define_method(SwigClassNstable.klass, "canDelete", VALUEFUNC(_wrap_nstable_canDelete), -1); rb_define_method(SwigClassNstable.klass, "getWriteImageLen", VALUEFUNC(_wrap_nstable_getWriteImageLen), -1); rb_define_method(SwigClassNstable.klass, "close", VALUEFUNC(_wrap_nstable_close), -1); rb_define_method(SwigClassNstable.klass, "update", VALUEFUNC(_wrap_nstable_update), -1); rb_define_method(SwigClassNstable.klass, "del", VALUEFUNC(_wrap_nstable_del), -1); rb_define_method(SwigClassNstable.klass, "insert", VALUEFUNC(_wrap_nstable_insert), -1); rb_define_method(SwigClassNstable.klass, "createIndex", VALUEFUNC(_wrap_nstable_createIndex), -1); rb_define_method(SwigClassNstable.klass, "dropIndex", VALUEFUNC(_wrap_nstable_dropIndex), -1); rb_define_method(SwigClassNstable.klass, "recordCount", VALUEFUNC(_wrap_nstable_recordCount), -1); rb_define_method(SwigClassNstable.klass, "beginBulkInsert", VALUEFUNC(_wrap_nstable_beginBulkInsert), -1); rb_define_method(SwigClassNstable.klass, "abortBulkInsert", VALUEFUNC(_wrap_nstable_abortBulkInsert), -1); rb_define_method(SwigClassNstable.klass, "commitBulkInsert", VALUEFUNC(_wrap_nstable_commitBulkInsert), -1); rb_define_method(SwigClassNstable.klass, "seekFirst", VALUEFUNC(_wrap_nstable_seekFirst), -1); rb_define_method(SwigClassNstable.klass, "seekLast", VALUEFUNC(_wrap_nstable_seekLast), -1); rb_define_method(SwigClassNstable.klass, "seekPrev", VALUEFUNC(_wrap_nstable_seekPrev), -1); rb_define_method(SwigClassNstable.klass, "seekNext", VALUEFUNC(_wrap_nstable_seekNext), -1); rb_define_method(SwigClassNstable.klass, "seek", VALUEFUNC(_wrap_nstable_seek), -1); rb_define_method(SwigClassNstable.klass, "seekGreater", VALUEFUNC(_wrap_nstable_seekGreater), -1); rb_define_method(SwigClassNstable.klass, "seekLessThan", VALUEFUNC(_wrap_nstable_seekLessThan), -1); rb_define_method(SwigClassNstable.klass, "stepFirst", VALUEFUNC(_wrap_nstable_stepFirst), -1); rb_define_method(SwigClassNstable.klass, "stepLast", VALUEFUNC(_wrap_nstable_stepLast), -1); rb_define_method(SwigClassNstable.klass, "stepPrev", VALUEFUNC(_wrap_nstable_stepPrev), -1); rb_define_method(SwigClassNstable.klass, "stepNext", VALUEFUNC(_wrap_nstable_stepNext), -1); rb_define_method(SwigClassNstable.klass, "bookmarkLen", VALUEFUNC(_wrap_nstable_bookmarkLen), -1); rb_define_method(SwigClassNstable.klass, "bookmark", VALUEFUNC(_wrap_nstable_bookmark), -1); rb_define_method(SwigClassNstable.klass, "seekByBookmark", VALUEFUNC(_wrap_nstable_seekByBookmark), -1); rb_define_method(SwigClassNstable.klass, "getPercentage", VALUEFUNC(_wrap_nstable_getPercentage), -1); rb_define_method(SwigClassNstable.klass, "seekByPercentage", VALUEFUNC(_wrap_nstable_seekByPercentage), -1); rb_define_method(SwigClassNstable.klass, "setOwnerName", VALUEFUNC(_wrap_nstable_setOwnerName), -1); rb_define_method(SwigClassNstable.klass, "clearOwnerName", VALUEFUNC(_wrap_nstable_clearOwnerName), -1); rb_define_method(SwigClassNstable.klass, "recordLength", VALUEFUNC(_wrap_nstable_recordLength), -1); rb_define_method(SwigClassNstable.klass, "stats", VALUEFUNC(_wrap_nstable_stats), -1); rb_define_method(SwigClassNstable.klass, "getCreateSql", VALUEFUNC(_wrap_nstable_getCreateSql), -1); rb_define_method(SwigClassNstable.klass, "unlock", VALUEFUNC(_wrap_nstable_unlock), -1); rb_define_method(SwigClassNstable.klass, "mode", VALUEFUNC(_wrap_nstable_mode), -1); rb_define_method(SwigClassNstable.klass, "statMsg", VALUEFUNC(_wrap_nstable_statMsg), -1); rb_define_method(SwigClassNstable.klass, "setTimestampMode", VALUEFUNC(_wrap_nstable_setTimestampMode), -1); rb_define_method(SwigClassNstable.klass, "setUpdateConflictCheck", VALUEFUNC(_wrap_nstable_setUpdateConflictCheck), -1); rb_define_method(SwigClassNstable.klass, "updateConflictCheck", VALUEFUNC(_wrap_nstable_updateConflictCheck), -1); rb_define_singleton_method(SwigClassNstable.klass, "getFileName", VALUEFUNC(_wrap_nstable_getFileName), -1); rb_define_singleton_method(SwigClassNstable.klass, "getDirURI", VALUEFUNC(_wrap_nstable_getDirURI), -1); rb_define_singleton_method(SwigClassNstable.klass, "existsFile", VALUEFUNC(_wrap_nstable_existsFile), -1); rb_define_alias(SwigClassNstable.klass, "is_open", "isOpen"); rb_define_alias(SwigClassNstable.klass, "is_use_transactd", "isUseTransactd"); rb_define_alias(SwigClassNstable.klass, "set_access_rights", "setAccessRights"); rb_define_alias(SwigClassNstable.klass, "key_num", "keyNum"); rb_define_alias(SwigClassNstable.klass, "set_key_num", "setKeyNum"); rb_define_alias(SwigClassNstable.klass, "can_read", "canRead"); rb_define_alias(SwigClassNstable.klass, "can_write", "canWrite"); rb_define_alias(SwigClassNstable.klass, "can_insert", "canInsert"); rb_define_alias(SwigClassNstable.klass, "can_delete", "canDelete"); rb_define_alias(SwigClassNstable.klass, "get_write_image_len", "getWriteImageLen"); rb_define_alias(SwigClassNstable.klass, "create_index", "createIndex"); rb_define_alias(SwigClassNstable.klass, "drop_index", "dropIndex"); rb_define_alias(SwigClassNstable.klass, "record_count", "recordCount"); rb_define_alias(SwigClassNstable.klass, "begin_bulk_insert", "beginBulkInsert"); rb_define_alias(SwigClassNstable.klass, "abort_bulk_insert", "abortBulkInsert"); rb_define_alias(SwigClassNstable.klass, "commit_bulk_insert", "commitBulkInsert"); rb_define_alias(SwigClassNstable.klass, "seek_first", "seekFirst"); rb_define_alias(SwigClassNstable.klass, "seek_last", "seekLast"); rb_define_alias(SwigClassNstable.klass, "seek_prev", "seekPrev"); rb_define_alias(SwigClassNstable.klass, "seek_next", "seekNext"); rb_define_alias(SwigClassNstable.klass, "seek_greater", "seekGreater"); rb_define_alias(SwigClassNstable.klass, "seek_less_than", "seekLessThan"); rb_define_alias(SwigClassNstable.klass, "step_first", "stepFirst"); rb_define_alias(SwigClassNstable.klass, "step_last", "stepLast"); rb_define_alias(SwigClassNstable.klass, "step_prev", "stepPrev"); rb_define_alias(SwigClassNstable.klass, "step_next", "stepNext"); rb_define_alias(SwigClassNstable.klass, "bookmark_len", "bookmarkLen"); rb_define_alias(SwigClassNstable.klass, "seek_by_bookmark", "seekByBookmark"); rb_define_alias(SwigClassNstable.klass, "get_percentage", "getPercentage"); rb_define_alias(SwigClassNstable.klass, "seek_by_percentage", "seekByPercentage"); rb_define_alias(SwigClassNstable.klass, "set_owner_name", "setOwnerName"); rb_define_alias(SwigClassNstable.klass, "clear_owner_name", "clearOwnerName"); rb_define_alias(SwigClassNstable.klass, "record_length", "recordLength"); rb_define_alias(SwigClassNstable.klass, "get_create_sql", "getCreateSql"); rb_define_alias(SwigClassNstable.klass, "stat_msg", "statMsg"); rb_define_alias(SwigClassNstable.klass, "set_timestamp_mode", "setTimestampMode"); rb_define_alias(SwigClassNstable.klass, "set_update_conflict_check", "setUpdateConflictCheck"); rb_define_alias(SwigClassNstable.klass, "update_conflict_check", "updateConflictCheck"); rb_define_singleton_method(SwigClassNstable.klass, "get_file_name", VALUEFUNC(_wrap_nstable_getFileName), -1); rb_define_singleton_method(SwigClassNstable.klass, "get_dir_u_r_i", VALUEFUNC(_wrap_nstable_getDirURI), -1); rb_define_singleton_method(SwigClassNstable.klass, "exists_file", VALUEFUNC(_wrap_nstable_existsFile), -1); rb_define_alias(SwigClassNstable.klass, "is_open?", "isOpen"); rb_define_alias(SwigClassNstable.klass, "is_use_transactd?", "isUseTransactd"); rb_define_alias(SwigClassNstable.klass, "access_rights=", "setAccessRights"); rb_define_alias(SwigClassNstable.klass, "key_num=", "setKeyNum"); // rb_define_alias(SwigClassNstable.klass, "owner_name", "setOwnerName"); rb_define_alias(SwigClassNstable.klass, "timestamp_mode=", "setTimestampMode"); // rb_define_alias(SwigClassNstable.klass, "update_conflict_check=", "setUpdateConflictCheck"); SwigClassNstable.mark = 0; SwigClassNstable.trackObjects = 0; SwigClassConnRecord.klass = rb_define_class_under(mTransactd, "ConnRecord", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__db__transactd__connection__record, (void *) &SwigClassConnRecord); rb_define_alloc_func(SwigClassConnRecord.klass, _wrap_connRecord_allocate); rb_define_method(SwigClassConnRecord.klass, "initialize", VALUEFUNC(_wrap_new_connRecord), -1); rb_define_method(SwigClassConnRecord.klass, "conId", VALUEFUNC(_wrap_connRecord_conId_get), -1); rb_define_method(SwigClassConnRecord.klass, "longValue", VALUEFUNC(_wrap_connRecord_longValue_get), -1); rb_define_method(SwigClassConnRecord.klass, "delCount", VALUEFUNC(_wrap_connRecord_delCount_get), -1); rb_define_method(SwigClassConnRecord.klass, "insCount", VALUEFUNC(_wrap_connRecord_insCount_get), -1); rb_define_method(SwigClassConnRecord.klass, "id", VALUEFUNC(_wrap_connRecord_id_get), -1); rb_define_method(SwigClassConnRecord.klass, "db", VALUEFUNC(_wrap_connRecord_db_get), -1); rb_define_method(SwigClassConnRecord.klass, "readCount", VALUEFUNC(_wrap_connRecord_readCount_get), -1); rb_define_method(SwigClassConnRecord.klass, "updCount", VALUEFUNC(_wrap_connRecord_updCount_get), -1); rb_define_method(SwigClassConnRecord.klass, "type", VALUEFUNC(_wrap_connRecord_type_get), -1); rb_define_method(SwigClassConnRecord.klass, "name", VALUEFUNC(_wrap_connRecord_name_get), -1); rb_define_method(SwigClassConnRecord.klass, "value", VALUEFUNC(_wrap_connRecord_value_get), -1); rb_define_method(SwigClassConnRecord.klass, "inTransaction", VALUEFUNC(_wrap_connRecord_inTransaction_get), -1); rb_define_method(SwigClassConnRecord.klass, "inSnapshot", VALUEFUNC(_wrap_connRecord_inSnapshot_get), -1); rb_define_method(SwigClassConnRecord.klass, "openNormal", VALUEFUNC(_wrap_connRecord_openNormal_get), -1); rb_define_method(SwigClassConnRecord.klass, "openReadOnly", VALUEFUNC(_wrap_connRecord_openReadOnly_get), -1); rb_define_method(SwigClassConnRecord.klass, "openEx", VALUEFUNC(_wrap_connRecord_openEx_get), -1); rb_define_method(SwigClassConnRecord.klass, "openReadOnlyEx", VALUEFUNC(_wrap_connRecord_openReadOnlyEx_get), -1); rb_define_method(SwigClassConnRecord.klass, "port", VALUEFUNC(_wrap_connRecord_port_get), -1); rb_define_alias(SwigClassConnRecord.klass, "con_id", "conId"); rb_define_alias(SwigClassConnRecord.klass, "long_value", "longValue"); rb_define_alias(SwigClassConnRecord.klass, "del_count", "delCount"); rb_define_alias(SwigClassConnRecord.klass, "ins_count", "insCount"); rb_define_alias(SwigClassConnRecord.klass, "read_count", "readCount"); rb_define_alias(SwigClassConnRecord.klass, "upd_count", "updCount"); rb_define_alias(SwigClassConnRecord.klass, "in_transaction", "inTransaction"); rb_define_alias(SwigClassConnRecord.klass, "in_snapshot", "inSnapshot"); rb_define_alias(SwigClassConnRecord.klass, "open_normal", "openNormal"); rb_define_alias(SwigClassConnRecord.klass, "open_read_only", "openReadOnly"); rb_define_alias(SwigClassConnRecord.klass, "open_ex", "openEx"); rb_define_alias(SwigClassConnRecord.klass, "open_read_only_ex", "openReadOnlyEx"); SwigClassConnRecord.mark = 0; SwigClassConnRecord.destroy = (void (*)(void *)) free_bzs_db_transactd_connection_record; SwigClassConnRecord.trackObjects = 0; SwigClassConnRecords.klass = rb_define_class_under(mTransactd, "ConnRecords", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__connMgr__records, (void *) &SwigClassConnRecords); rb_define_alloc_func(SwigClassConnRecords.klass, _wrap_connRecords_allocate); rb_define_method(SwigClassConnRecords.klass, "initialize", VALUEFUNC(_wrap_new_connRecords), -1); rb_define_method(SwigClassConnRecords.klass, "[]", VALUEFUNC(_wrap_connRecords___getitem__), -1); rb_define_method(SwigClassConnRecords.klass, "size", VALUEFUNC(_wrap_connRecords_size), -1); SwigClassConnRecords.mark = 0; SwigClassConnRecords.destroy = (void (*)(void *)) free_bzs_connMg_records; SwigClassConnRecords.trackObjects = 0; SwigClassConnMgr.klass = rb_define_class_under(mTransactd, "ConnMgr", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__connMgr, (void *) &SwigClassConnMgr); rb_define_alloc_func(SwigClassConnMgr.klass, _wrap_connMgr_allocate); rb_define_method(SwigClassConnMgr.klass, "initialize", VALUEFUNC(_wrap_new_connMgr), -1); rb_define_method(SwigClassConnMgr.klass, "connect", VALUEFUNC(_wrap_connMgr_connect), -1); rb_define_method(SwigClassConnMgr.klass, "disconnect", VALUEFUNC(_wrap_connMgr_disconnect), -1); rb_define_method(SwigClassConnMgr.klass, "channels", VALUEFUNC(_wrap_connMgr_channels), -1); rb_define_method(SwigClassConnMgr.klass, "slaveHosts", VALUEFUNC(_wrap_connMgr_slaveHosts), -1); rb_define_method(SwigClassConnMgr.klass, "extendedvars", VALUEFUNC(_wrap_connMgr_extendedvars), -1); rb_define_method(SwigClassConnMgr.klass, "statusvars", VALUEFUNC(_wrap_connMgr_statusvars), -1); rb_define_method(SwigClassConnMgr.klass, "postDisconnectOne", VALUEFUNC(_wrap_connMgr_postDisconnectOne), -1); rb_define_method(SwigClassConnMgr.klass, "postDisconnectAll", VALUEFUNC(_wrap_connMgr_postDisconnectAll), -1); rb_define_method(SwigClassConnMgr.klass, "haLock", VALUEFUNC(_wrap_connMgr_haLock), -1); rb_define_method(SwigClassConnMgr.klass, "haUnlock", VALUEFUNC(_wrap_connMgr_haUnlock), -1); rb_define_method(SwigClassConnMgr.klass, "setRole", VALUEFUNC(_wrap_connMgr_setRole), -1); rb_define_method(SwigClassConnMgr.klass, "setTrxBlock", VALUEFUNC(_wrap_connMgr_setTrxBlock), -1); rb_define_method(SwigClassConnMgr.klass, "setEnableFailover", VALUEFUNC(_wrap_connMgr_setEnableFailover), -1); rb_define_method(SwigClassConnMgr.klass, "stat", VALUEFUNC(_wrap_connMgr_stat), -1); rb_define_method(SwigClassConnMgr.klass, "db", VALUEFUNC(_wrap_connMgr_db), -1); rb_define_method(SwigClassConnMgr.klass, "slaveStatusName", VALUEFUNC(_wrap_connMgr_slaveStatusName), -1); rb_define_method(SwigClassConnMgr.klass, "isOpen", VALUEFUNC(_wrap_connMgr_isOpen), -1); rb_define_singleton_method(SwigClassConnMgr.klass, "removeSystemDb", VALUEFUNC(_wrap_connMgr_removeSystemDb), -1); rb_define_singleton_method(SwigClassConnMgr.klass, "sysvarName", VALUEFUNC(_wrap_connMgr_sysvarName), -1); rb_define_singleton_method(SwigClassConnMgr.klass, "statusvarName", VALUEFUNC(_wrap_connMgr_statusvarName), -1); rb_define_singleton_method(SwigClassConnMgr.klass, "extendedVarName", VALUEFUNC(_wrap_connMgr_extendedVarName), -1); rb_define_method(SwigClassConnMgr.klass, "databases", VALUEFUNC(_wrap_connMgr_databases), -1); rb_define_method(SwigClassConnMgr.klass, "tables", VALUEFUNC(_wrap_connMgr_tables), -1); rb_define_method(SwigClassConnMgr.klass, "views", VALUEFUNC(_wrap_connMgr_views), -1); rb_define_method(SwigClassConnMgr.klass, "schemaTables", VALUEFUNC(_wrap_connMgr_schemaTables), -1); rb_define_method(SwigClassConnMgr.klass, "slaveStatus", VALUEFUNC(_wrap_connMgr_slaveStatus), -1); rb_define_method(SwigClassConnMgr.klass, "sysvars", VALUEFUNC(_wrap_connMgr_sysvars), -1); rb_define_method(SwigClassConnMgr.klass, "connections", VALUEFUNC(_wrap_connMgr_connections), -1); rb_define_method(SwigClassConnMgr.klass, "inUseDatabases", VALUEFUNC(_wrap_connMgr_inUseDatabases), -1); rb_define_method(SwigClassConnMgr.klass, "inUseTables", VALUEFUNC(_wrap_connMgr_inUseTables), -1); rb_define_alias(SwigClassConnMgr.klass, "slave_hosts", "slaveHosts"); rb_define_alias(SwigClassConnMgr.klass, "post_disconnect_one", "postDisconnectOne"); rb_define_alias(SwigClassConnMgr.klass, "post_disconnect_all", "postDisconnectAll"); rb_define_alias(SwigClassConnMgr.klass, "ha_lock", "haLock"); rb_define_alias(SwigClassConnMgr.klass, "ha_unlock", "haUnlock"); rb_define_alias(SwigClassConnMgr.klass, "set_role", "setRole"); rb_define_alias(SwigClassConnMgr.klass, "set_trx_block", "setTrxBlock"); rb_define_alias(SwigClassConnMgr.klass, "set_enable_failover", "setEnableFailover"); rb_define_alias(SwigClassConnMgr.klass, "slave_status_name", "slaveStatusName"); rb_define_alias(SwigClassConnMgr.klass, "is_open", "isOpen"); rb_define_singleton_method(SwigClassConnMgr.klass, "remove_system_db", VALUEFUNC(_wrap_connMgr_removeSystemDb), -1); rb_define_singleton_method(SwigClassConnMgr.klass, "sysvar_name", VALUEFUNC(_wrap_connMgr_sysvarName), -1); rb_define_singleton_method(SwigClassConnMgr.klass, "statusvar_name", VALUEFUNC(_wrap_connMgr_statusvarName), -1); rb_define_singleton_method(SwigClassConnMgr.klass, "extended_var_name", VALUEFUNC(_wrap_connMgr_extendedVarName), -1); rb_define_alias(SwigClassConnMgr.klass, "schema_tables", "schemaTables"); rb_define_alias(SwigClassConnMgr.klass, "slave_status", "slaveStatus"); rb_define_alias(SwigClassConnMgr.klass, "in_use_databases", "inUseDatabases"); rb_define_alias(SwigClassConnMgr.klass, "in_use_tables", "inUseTables"); // rb_define_alias(SwigClassConnMgr.klass, "role=", "setRole"); // rb_define_alias(SwigClassConnMgr.klass, "trx_block=", "setTrxBlock"); // rb_define_alias(SwigClassConnMgr.klass, "enable_failover=", "setEnableFailover"); rb_define_alias(SwigClassConnMgr.klass, "is_open?", "isOpen"); SwigClassConnMgr.mark = 0; SwigClassConnMgr.destroy = (void (*)(void *)) free_bzs_connMgr; SwigClassConnMgr.trackObjects = 0; rb_define_const(mTransactd, "TABLE_NUM_TMP", SWIG_From_int(static_cast< int >(TABLE_NUM_TMP))); rb_define_const(mTransactd, "EMinlen", SWIG_From_int(static_cast< int >(tdap::client::eMinlen))); rb_define_const(mTransactd, "EMaxlen", SWIG_From_int(static_cast< int >(tdap::client::eMaxlen))); rb_define_const(mTransactd, "EDefaultlen", SWIG_From_int(static_cast< int >(tdap::client::eDefaultlen))); rb_define_const(mTransactd, "EDecimals", SWIG_From_int(static_cast< int >(tdap::client::eDecimals))); SwigClassDbdef.klass = rb_define_class_under(mTransactd, "Dbdef", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__dbdef, (void *) &SwigClassDbdef); rb_undef_alloc_func(SwigClassDbdef.klass); rb_define_method(SwigClassDbdef.klass, "tableCount", VALUEFUNC(_wrap_dbdef_tableCount), -1); rb_define_method(SwigClassDbdef.klass, "openMode", VALUEFUNC(_wrap_dbdef_openMode), -1); rb_define_method(SwigClassDbdef.klass, "tableDefs", VALUEFUNC(_wrap_dbdef_tableDefs), -1); rb_define_method(SwigClassDbdef.klass, "setVersion", VALUEFUNC(_wrap_dbdef_setVersion), -1); rb_define_method(SwigClassDbdef.klass, "version", VALUEFUNC(_wrap_dbdef_version), -1); rb_define_method(SwigClassDbdef.klass, "validateTableDef", VALUEFUNC(_wrap_dbdef_validateTableDef), -1); rb_define_method(SwigClassDbdef.klass, "stat", VALUEFUNC(_wrap_dbdef_stat), -1); rb_define_method(SwigClassDbdef.klass, "updateTableDef", VALUEFUNC(_wrap_dbdef_updateTableDef), -1); rb_define_method(SwigClassDbdef.klass, "insertField", VALUEFUNC(_wrap_dbdef_insertField), -1); rb_define_method(SwigClassDbdef.klass, "deleteField", VALUEFUNC(_wrap_dbdef_deleteField), -1); rb_define_method(SwigClassDbdef.klass, "insertKey", VALUEFUNC(_wrap_dbdef_insertKey), -1); rb_define_method(SwigClassDbdef.klass, "deleteKey", VALUEFUNC(_wrap_dbdef_deleteKey), -1); rb_define_method(SwigClassDbdef.klass, "insertTable", VALUEFUNC(_wrap_dbdef_insertTable), -1); rb_define_method(SwigClassDbdef.klass, "deleteTable", VALUEFUNC(_wrap_dbdef_deleteTable), -1); rb_define_method(SwigClassDbdef.klass, "renumberTable", VALUEFUNC(_wrap_dbdef_renumberTable), -1); rb_define_method(SwigClassDbdef.klass, "tableNumByName", VALUEFUNC(_wrap_dbdef_tableNumByName), -1); rb_define_method(SwigClassDbdef.klass, "findKeynumByFieldNum", VALUEFUNC(_wrap_dbdef_findKeynumByFieldNum), -1); rb_define_method(SwigClassDbdef.klass, "fieldNumByName", VALUEFUNC(_wrap_dbdef_fieldNumByName), -1); rb_define_method(SwigClassDbdef.klass, "fieldValidLength", VALUEFUNC(_wrap_dbdef_fieldValidLength), -1); rb_define_method(SwigClassDbdef.klass, "pushBackup", VALUEFUNC(_wrap_dbdef_pushBackup), -1); rb_define_method(SwigClassDbdef.klass, "popBackup", VALUEFUNC(_wrap_dbdef_popBackup), -1); rb_define_method(SwigClassDbdef.klass, "synchronizeSeverSchema", VALUEFUNC(_wrap_dbdef_synchronizeSeverSchema), -1); rb_define_method(SwigClassDbdef.klass, "statMsg", VALUEFUNC(_wrap_dbdef_statMsg), -1); rb_define_method(SwigClassDbdef.klass, "reopen", VALUEFUNC(_wrap_dbdef_reopen), -1); rb_define_method(SwigClassDbdef.klass, "mode", VALUEFUNC(_wrap_dbdef_mode), -1); rb_define_alias(SwigClassDbdef.klass, "table_count", "tableCount"); rb_define_alias(SwigClassDbdef.klass, "open_mode", "openMode"); rb_define_alias(SwigClassDbdef.klass, "table_defs", "tableDefs"); rb_define_alias(SwigClassDbdef.klass, "set_version", "setVersion"); rb_define_alias(SwigClassDbdef.klass, "validate_table_def", "validateTableDef"); rb_define_alias(SwigClassDbdef.klass, "update_table_def", "updateTableDef"); rb_define_alias(SwigClassDbdef.klass, "insert_field", "insertField"); rb_define_alias(SwigClassDbdef.klass, "delete_field", "deleteField"); rb_define_alias(SwigClassDbdef.klass, "insert_key", "insertKey"); rb_define_alias(SwigClassDbdef.klass, "delete_key", "deleteKey"); rb_define_alias(SwigClassDbdef.klass, "insert_table", "insertTable"); rb_define_alias(SwigClassDbdef.klass, "delete_table", "deleteTable"); rb_define_alias(SwigClassDbdef.klass, "renumber_table", "renumberTable"); rb_define_alias(SwigClassDbdef.klass, "table_num_by_name", "tableNumByName"); rb_define_alias(SwigClassDbdef.klass, "find_keynum_by_field_num", "findKeynumByFieldNum"); rb_define_alias(SwigClassDbdef.klass, "field_num_by_name", "fieldNumByName"); rb_define_alias(SwigClassDbdef.klass, "field_valid_length", "fieldValidLength"); rb_define_alias(SwigClassDbdef.klass, "push_backup", "pushBackup"); rb_define_alias(SwigClassDbdef.klass, "pop_backup", "popBackup"); rb_define_alias(SwigClassDbdef.klass, "synchronize_sever_schema", "synchronizeSeverSchema"); rb_define_alias(SwigClassDbdef.klass, "stat_msg", "statMsg"); rb_define_alias(SwigClassDbdef.klass, "version=", "setVersion"); SwigClassDbdef.mark = 0; SwigClassDbdef.trackObjects = 0; SwigClassBitset.klass = rb_define_class_under(mTransactd, "Bitset", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__bitset, (void *) &SwigClassBitset); rb_define_alloc_func(SwigClassBitset.klass, _wrap_bitset_allocate); rb_define_method(SwigClassBitset.klass, "initialize", VALUEFUNC(_wrap_new_bitset), -1); rb_define_method(SwigClassBitset.klass, "set", VALUEFUNC(_wrap_bitset_set), -1); rb_define_method(SwigClassBitset.klass, "get", VALUEFUNC(_wrap_bitset_get), -1); rb_define_method(SwigClassBitset.klass, "[]=", VALUEFUNC(_wrap_bitset_set), -1); rb_define_method(SwigClassBitset.klass, "[]", VALUEFUNC(_wrap_bitset_get), -1); rb_define_method(SwigClassBitset.klass, "equals", VALUEFUNC(_wrap_bitset_equals), -1); rb_define_method(SwigClassBitset.klass, "contains", VALUEFUNC(_wrap_bitset_contains), -1); SwigClassBitset.mark = 0; SwigClassBitset.destroy = (void (*)(void *)) free_bzs_bitset; SwigClassBitset.trackObjects = 0; SwigClassTable.klass = rb_define_class_under(mTransactd, "Table", ((swig_class *) SWIGTYPE_p_bzs__nstable->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__table, (void *) &SwigClassTable); rb_undef_alloc_func(SwigClassTable.klass); rb_define_const(SwigClassTable.klass, "ClearNull", SWIG_From_int(static_cast< int >(tdap::client::table::clearNull))); rb_define_const(SwigClassTable.klass, "DefaultNull", SWIG_From_int(static_cast< int >(tdap::client::table::defaultNull))); rb_define_method(SwigClassTable.klass, "tableDef", VALUEFUNC(_wrap_table_tableDef), -1); rb_define_method(SwigClassTable.klass, "valiableFormatType", VALUEFUNC(_wrap_table_valiableFormatType), -1); rb_define_method(SwigClassTable.klass, "blobFieldUsed", VALUEFUNC(_wrap_table_blobFieldUsed), -1); rb_define_method(SwigClassTable.klass, "logicalToString", VALUEFUNC(_wrap_table_logicalToString), -1); rb_define_method(SwigClassTable.klass, "setLogicalToString", VALUEFUNC(_wrap_table_setLogicalToString), -1); rb_define_method(SwigClassTable.klass, "optionalData", VALUEFUNC(_wrap_table_optionalData), -1); rb_define_method(SwigClassTable.klass, "setOptionalData", VALUEFUNC(_wrap_table_setOptionalData), -1); rb_define_method(SwigClassTable.klass, "myDateTimeValueByBtrv", VALUEFUNC(_wrap_table_myDateTimeValueByBtrv), -1); rb_define_method(SwigClassTable.klass, "bookmarksCount", VALUEFUNC(_wrap_table_bookmarksCount), -1); rb_define_method(SwigClassTable.klass, "moveBookmarks", VALUEFUNC(_wrap_table_moveBookmarks), -1); rb_define_method(SwigClassTable.klass, "bookmarks", VALUEFUNC(_wrap_table_bookmarks), -1); rb_define_method(SwigClassTable.klass, "clearBuffer", VALUEFUNC(_wrap_table_clearBuffer), -1); rb_define_method(SwigClassTable.klass, "getRecordHash", VALUEFUNC(_wrap_table_getRecordHash), -1); rb_define_method(SwigClassTable.klass, "smartUpdate", VALUEFUNC(_wrap_table_smartUpdate), -1); rb_define_method(SwigClassTable.klass, "find", VALUEFUNC(_wrap_table_find), -1); rb_define_method(SwigClassTable.klass, "findFirst", VALUEFUNC(_wrap_table_findFirst), -1); rb_define_method(SwigClassTable.klass, "findLast", VALUEFUNC(_wrap_table_findLast), -1); rb_define_method(SwigClassTable.klass, "findNext", VALUEFUNC(_wrap_table_findNext), -1); rb_define_method(SwigClassTable.klass, "findPrev", VALUEFUNC(_wrap_table_findPrev), -1); rb_define_method(SwigClassTable.klass, "findAll", VALUEFUNC(_wrap_table_findAll), -1); rb_define_method(SwigClassTable.klass, "statReasonOfFind", VALUEFUNC(_wrap_table_statReasonOfFind), -1); rb_define_method(SwigClassTable.klass, "lastFindDirection", VALUEFUNC(_wrap_table_lastFindDirection), -1); rb_define_method(SwigClassTable.klass, "bookmarkFindCurrent", VALUEFUNC(_wrap_table_bookmarkFindCurrent), -1); rb_define_method(SwigClassTable.klass, "setFilter", VALUEFUNC(_wrap_table_setFilter), -1); rb_define_method(SwigClassTable.klass, "fieldNumByName", VALUEFUNC(_wrap_table_fieldNumByName), -1); rb_define_method(SwigClassTable.klass, "getFVint", VALUEFUNC(_wrap_table_getFVint), -1); rb_define_method(SwigClassTable.klass, "getFV64", VALUEFUNC(_wrap_table_getFV64), -1); rb_define_method(SwigClassTable.klass, "getFVdbl", VALUEFUNC(_wrap_table_getFVdbl), -1); rb_define_method(SwigClassTable.klass, "getFVNull", VALUEFUNC(_wrap_table_getFVNull), -1); rb_define_method(SwigClassTable.klass, "setFVNull", VALUEFUNC(_wrap_table_setFVNull), -1); rb_define_method(SwigClassTable.klass, "getFVstr", VALUEFUNC(_wrap_table_getFVstr), -1); rb_define_method(SwigClassTable.klass, "fields", VALUEFUNC(_wrap_table_fields), -1); rb_define_alias(SwigClassTable.klass, "getRow", "fields"); rb_define_alias(SwigClassTable.klass, "get_row", "getRow"); rb_define_method(SwigClassTable.klass, "getFVbin", VALUEFUNC(_wrap_table_getFVbin), -1); rb_define_method(SwigClassTable.klass, "keyValueDescription", VALUEFUNC(_wrap_table_keyValueDescription), -1); rb_define_method(SwigClassTable.klass, "prepare", VALUEFUNC(_wrap_table_prepare), -1); rb_define_method(SwigClassTable.klass, "setQuery", VALUEFUNC(_wrap_table_setQuery), -1); rb_define_method(SwigClassTable.klass, "setPrepare", VALUEFUNC(_wrap_table_setPrepare), -1); rb_define_method(SwigClassTable.klass, "getFVbits", VALUEFUNC(_wrap_table_getFVbits), -1); rb_define_method(SwigClassTable.klass, "setFV", VALUEFUNC(_wrap_table_setFV), -1); rb_define_method(SwigClassTable.klass, "fetchMode=", VALUEFUNC(_wrap_Recordset_fetchmode_set), -1); rb_define_method(SwigClassTable.klass, "fetchMode", VALUEFUNC(_wrap_Recordset_fetchmode_get), -1); rb_define_method(SwigClassTable.klass, "release", VALUEFUNC(_wrap_table_release), -1); rb_define_attr(SwigClassTable.klass, "fetchClass", 1, 1); rb_define_method(SwigClassTable.klass, "fetchClass=", VALUEFUNC(_wrap_RecordsetOrTable_fetchClass_set), -1); rb_define_attr(SwigClassTable.klass, "ctorArgs", 1, 1); rb_define_method(SwigClassTable.klass, "ctorArgs=", VALUEFUNC(_wrap_RecordsetOrTable_ctorArgs_set), -1); rb_define_method(SwigClassTable.klass, "setAlias", VALUEFUNC(_wrap_table_setAlias), -1); rb_define_method(SwigClassTable.klass, "defineORMapMethod", VALUEFUNC(_wrap_table_defineORMapMethod), -1); rb_define_method(SwigClassTable.klass, "save_by_object", VALUEFUNC(_wrap_table_save_by_object), -1); rb_define_method(SwigClassTable.klass, "insert_by_object", VALUEFUNC(_wrap_table_insert_by_object), -1); rb_define_method(SwigClassTable.klass, "update_by_object", VALUEFUNC(_wrap_table_update_by_object), -1); rb_define_method(SwigClassTable.klass, "read_by_object", VALUEFUNC(_wrap_table_read_by_object), -1); rb_define_method(SwigClassTable.klass, "delete_by_object", VALUEFUNC(_wrap_table_delete_by_object), -1); rb_define_method(SwigClassTable.klass, "seek_key_value", VALUEFUNC(_wrap_table_seek_key_value), -1); rb_define_method(SwigClassTable.klass, "getRecord", VALUEFUNC(_wrap_table_getRecord), -1); rb_define_alias(SwigClassTable.klass, "table_def", "tableDef"); rb_define_alias(SwigClassTable.klass, "valiable_format_type", "valiableFormatType"); rb_define_alias(SwigClassTable.klass, "blob_field_used", "blobFieldUsed"); rb_define_alias(SwigClassTable.klass, "logical_to_string", "logicalToString"); rb_define_alias(SwigClassTable.klass, "set_logical_to_string", "setLogicalToString"); rb_define_alias(SwigClassTable.klass, "optional_data", "optionalData"); rb_define_alias(SwigClassTable.klass, "set_optional_data", "setOptionalData"); rb_define_alias(SwigClassTable.klass, "my_date_time_value_by_btrv", "myDateTimeValueByBtrv"); rb_define_alias(SwigClassTable.klass, "bookmarks_count", "bookmarksCount"); rb_define_alias(SwigClassTable.klass, "move_bookmarks", "moveBookmarks"); rb_define_alias(SwigClassTable.klass, "clear_buffer", "clearBuffer"); rb_define_alias(SwigClassTable.klass, "get_record_hash", "getRecordHash"); rb_define_alias(SwigClassTable.klass, "smart_update", "smartUpdate"); rb_define_alias(SwigClassTable.klass, "find_first", "findFirst"); rb_define_alias(SwigClassTable.klass, "find_last", "findLast"); rb_define_alias(SwigClassTable.klass, "find_next", "findNext"); rb_define_alias(SwigClassTable.klass, "find_prev", "findPrev"); rb_define_alias(SwigClassTable.klass, "find_all", "findAll"); rb_define_alias(SwigClassTable.klass, "stat_reason_of_find", "statReasonOfFind"); rb_define_alias(SwigClassTable.klass, "last_find_direction", "lastFindDirection"); rb_define_alias(SwigClassTable.klass, "bookmark_find_current", "bookmarkFindCurrent"); rb_define_alias(SwigClassTable.klass, "set_filter", "setFilter"); rb_define_alias(SwigClassTable.klass, "field_num_by_name", "fieldNumByName"); rb_define_alias(SwigClassTable.klass, "get_f_vint", "getFVint"); rb_define_alias(SwigClassTable.klass, "get_f_v64", "getFV64"); rb_define_alias(SwigClassTable.klass, "get_f_vdbl", "getFVdbl"); rb_define_alias(SwigClassTable.klass, "get_f_v_null", "getFVNull"); rb_define_alias(SwigClassTable.klass, "set_f_v_null", "setFVNull"); rb_define_alias(SwigClassTable.klass, "get_f_vstr", "getFVstr"); rb_define_alias(SwigClassTable.klass, "get_f_vbin", "getFVbin"); rb_define_alias(SwigClassTable.klass, "key_value_description", "keyValueDescription"); rb_define_alias(SwigClassTable.klass, "set_query", "setQuery"); rb_define_alias(SwigClassTable.klass, "set_prepare", "setPrepare"); rb_define_alias(SwigClassTable.klass, "get_f_vbits", "getFVbits"); rb_define_alias(SwigClassTable.klass, "set_f_v", "setFV"); rb_define_alias(SwigClassTable.klass, "fetch_mode=", "fetchMode="); rb_define_alias(SwigClassTable.klass, "fetch_mode", "fetchMode"); rb_define_alias(SwigClassTable.klass, "fetch_class", "fetchClass"); rb_define_alias(SwigClassTable.klass, "fetch_class=", "fetchClass="); rb_define_alias(SwigClassTable.klass, "ctor_args", "ctorArgs"); rb_define_alias(SwigClassTable.klass, "ctor_args=", "ctorArgs="); rb_define_alias(SwigClassTable.klass, "set_alias", "setAlias"); rb_define_alias(SwigClassTable.klass, "define_o_r_map_method", "defineORMapMethod"); rb_define_alias(SwigClassTable.klass, "get_record", "getRecord"); rb_define_alias(SwigClassTable.klass, "logical_to_string=", "setLogicalToString"); rb_define_alias(SwigClassTable.klass, "optional_data=", "setOptionalData"); // rb_define_alias(SwigClassTable.klass, "filter=", "setFilter"); // rb_define_alias(SwigClassTable.klass, "f_v_null=", "setFVNull"); // rb_define_alias(SwigClassTable.klass, "query=", "setQuery"); rb_define_alias(SwigClassTable.klass, "prepare=", "setPrepare"); // rb_define_alias(SwigClassTable.klass, "f_v=", "setFV"); // rb_define_alias(SwigClassTable.klass, "alias=", "setAlias"); SwigClassTable.mark = 0; SwigClassTable.destroy = (void (*)(void *)) free_bzs_table; SwigClassTable.trackObjects = 0; SwigClassQueryBase.klass = rb_define_class_under(mTransactd, "QueryBase", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__queryBase, (void *) &SwigClassQueryBase); rb_undef_alloc_func(SwigClassQueryBase.klass); rb_define_const(SwigClassQueryBase.klass, "None", SWIG_From_int(static_cast< int >(tdap::client::queryBase::none))); rb_define_const(SwigClassQueryBase.klass, "JoinHasOneOrHasMany", SWIG_From_int(static_cast< int >(tdap::client::queryBase::joinHasOneOrHasMany))); rb_define_const(SwigClassQueryBase.klass, "CombineCondition", SWIG_From_int(static_cast< int >(tdap::client::queryBase::combineCondition))); rb_define_method(SwigClassQueryBase.klass, "clearSeekKeyValues", VALUEFUNC(_wrap_queryBase_clearSeekKeyValues), -1); rb_define_method(SwigClassQueryBase.klass, "clearSelectFields", VALUEFUNC(_wrap_queryBase_clearSelectFields), -1); rb_define_method(SwigClassQueryBase.klass, "addSeekKeyValue", VALUEFUNC(_wrap_queryBase_addSeekKeyValue), -1); rb_define_method(SwigClassQueryBase.klass, "addSeekBookmark", VALUEFUNC(_wrap_queryBase_addSeekBookmark), -1); rb_define_method(SwigClassQueryBase.klass, "reserveSeekKeyValueSize", VALUEFUNC(_wrap_queryBase_reserveSeekKeyValueSize), -1); rb_define_method(SwigClassQueryBase.klass, "queryString", VALUEFUNC(_wrap_queryBase_queryString), -1); rb_define_method(SwigClassQueryBase.klass, "reject", VALUEFUNC(_wrap_queryBase_reject), -1); rb_define_method(SwigClassQueryBase.klass, "limit", VALUEFUNC(_wrap_queryBase_limit), -1); rb_define_method(SwigClassQueryBase.klass, "direction", VALUEFUNC(_wrap_queryBase_direction), -1); rb_define_method(SwigClassQueryBase.klass, "all", VALUEFUNC(_wrap_queryBase_all), -1); rb_define_method(SwigClassQueryBase.klass, "optimize", VALUEFUNC(_wrap_queryBase_optimize), -1); rb_define_method(SwigClassQueryBase.klass, "bookmarkAlso", VALUEFUNC(_wrap_queryBase_bookmarkAlso), -1); rb_define_method(SwigClassQueryBase.klass, "joinKeySize", VALUEFUNC(_wrap_queryBase_joinKeySize), -1); rb_define_method(SwigClassQueryBase.klass, "toString", VALUEFUNC(_wrap_queryBase_toString), -1); rb_define_method(SwigClassQueryBase.klass, "getDirection", VALUEFUNC(_wrap_queryBase_getDirection), -1); rb_define_method(SwigClassQueryBase.klass, "getReject", VALUEFUNC(_wrap_queryBase_getReject), -1); rb_define_method(SwigClassQueryBase.klass, "getLimit", VALUEFUNC(_wrap_queryBase_getLimit), -1); rb_define_method(SwigClassQueryBase.klass, "isAll", VALUEFUNC(_wrap_queryBase_isAll), -1); rb_define_method(SwigClassQueryBase.klass, "getJoinKeySize", VALUEFUNC(_wrap_queryBase_getJoinKeySize), -1); rb_define_method(SwigClassQueryBase.klass, "getOptimize", VALUEFUNC(_wrap_queryBase_getOptimize), -1); rb_define_method(SwigClassQueryBase.klass, "isBookmarkAlso", VALUEFUNC(_wrap_queryBase_isBookmarkAlso), -1); rb_define_method(SwigClassQueryBase.klass, "selectCount", VALUEFUNC(_wrap_queryBase_selectCount), -1); rb_define_method(SwigClassQueryBase.klass, "getSelect", VALUEFUNC(_wrap_queryBase_getSelect), -1); rb_define_method(SwigClassQueryBase.klass, "whereTokens", VALUEFUNC(_wrap_queryBase_whereTokens), -1); rb_define_method(SwigClassQueryBase.klass, "getWhereToken", VALUEFUNC(_wrap_queryBase_getWhereToken), -1); rb_define_method(SwigClassQueryBase.klass, "setWhereToken", VALUEFUNC(_wrap_queryBase_setWhereToken), -1); rb_define_method(SwigClassQueryBase.klass, "reverseAliasName", VALUEFUNC(_wrap_queryBase_reverseAliasName), -1); rb_define_method(SwigClassQueryBase.klass, "stopAtLimit", VALUEFUNC(_wrap_queryBase_stopAtLimit), -1); rb_define_method(SwigClassQueryBase.klass, "isStopAtLimit", VALUEFUNC(_wrap_queryBase_isStopAtLimit), -1); rb_define_method(SwigClassQueryBase.klass, "isSeekByBookmarks", VALUEFUNC(_wrap_queryBase_isSeekByBookmarks), -1); rb_define_alias(SwigClassQueryBase.klass, "clear_seek_key_values", "clearSeekKeyValues"); rb_define_alias(SwigClassQueryBase.klass, "clear_select_fields", "clearSelectFields"); rb_define_alias(SwigClassQueryBase.klass, "add_seek_key_value", "addSeekKeyValue"); rb_define_alias(SwigClassQueryBase.klass, "add_seek_bookmark", "addSeekBookmark"); rb_define_alias(SwigClassQueryBase.klass, "reserve_seek_key_value_size", "reserveSeekKeyValueSize"); rb_define_alias(SwigClassQueryBase.klass, "query_string", "queryString"); rb_define_alias(SwigClassQueryBase.klass, "bookmark_also", "bookmarkAlso"); rb_define_alias(SwigClassQueryBase.klass, "join_key_size", "joinKeySize"); rb_define_alias(SwigClassQueryBase.klass, "to_string", "toString"); rb_define_alias(SwigClassQueryBase.klass, "get_direction", "getDirection"); rb_define_alias(SwigClassQueryBase.klass, "get_reject", "getReject"); rb_define_alias(SwigClassQueryBase.klass, "get_limit", "getLimit"); rb_define_alias(SwigClassQueryBase.klass, "is_all", "isAll"); rb_define_alias(SwigClassQueryBase.klass, "get_join_key_size", "getJoinKeySize"); rb_define_alias(SwigClassQueryBase.klass, "get_optimize", "getOptimize"); rb_define_alias(SwigClassQueryBase.klass, "is_bookmark_also", "isBookmarkAlso"); rb_define_alias(SwigClassQueryBase.klass, "select_count", "selectCount"); rb_define_alias(SwigClassQueryBase.klass, "get_select", "getSelect"); rb_define_alias(SwigClassQueryBase.klass, "where_tokens", "whereTokens"); rb_define_alias(SwigClassQueryBase.klass, "get_where_token", "getWhereToken"); rb_define_alias(SwigClassQueryBase.klass, "set_where_token", "setWhereToken"); rb_define_alias(SwigClassQueryBase.klass, "reverse_alias_name", "reverseAliasName"); rb_define_alias(SwigClassQueryBase.klass, "stop_at_limit", "stopAtLimit"); rb_define_alias(SwigClassQueryBase.klass, "is_stop_at_limit", "isStopAtLimit"); rb_define_alias(SwigClassQueryBase.klass, "is_seek_by_bookmarks", "isSeekByBookmarks"); rb_define_alias(SwigClassQueryBase.klass, "is_all?", "isAll"); rb_define_alias(SwigClassQueryBase.klass, "is_bookmark_also?", "isBookmarkAlso"); // rb_define_alias(SwigClassQueryBase.klass, "where_token=", "setWhereToken"); rb_define_alias(SwigClassQueryBase.klass, "is_stop_at_limit?", "isStopAtLimit"); rb_define_alias(SwigClassQueryBase.klass, "is_seek_by_bookmarks?", "isSeekByBookmarks"); SwigClassQueryBase.mark = 0; SwigClassQueryBase.trackObjects = 0; SwigClassQuery.klass = rb_define_class_under(mTransactd, "Query", ((swig_class *) SWIGTYPE_p_bzs__queryBase->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__query, (void *) &SwigClassQuery); rb_define_alloc_func(SwigClassQuery.klass, _wrap_query_allocate); rb_define_method(SwigClassQuery.klass, "initialize", VALUEFUNC(_wrap_new_query), -1); rb_define_method(SwigClassQuery.klass, "reset", VALUEFUNC(_wrap_query_reset), -1); rb_define_method(SwigClassQuery.klass, "select", VALUEFUNC(_wrap_query_select), -1); rb_define_method(SwigClassQuery.klass, "whereIsNull", VALUEFUNC(_wrap_query_whereIsNull), -1); rb_define_method(SwigClassQuery.klass, "whereIsNotNull", VALUEFUNC(_wrap_query_whereIsNotNull), -1); rb_define_method(SwigClassQuery.klass, "andIsNull", VALUEFUNC(_wrap_query_andIsNull), -1); rb_define_method(SwigClassQuery.klass, "andIsNotNull", VALUEFUNC(_wrap_query_andIsNotNull), -1); rb_define_method(SwigClassQuery.klass, "orIsNull", VALUEFUNC(_wrap_query_orIsNull), -1); rb_define_method(SwigClassQuery.klass, "orIsNotNull", VALUEFUNC(_wrap_query_orIsNotNull), -1); rb_define_method(SwigClassQuery.klass, "segmentsForInValue", VALUEFUNC(_wrap_query_segmentsForInValue), -1); rb_define_method(SwigClassQuery.klass, "where", VALUEFUNC(_wrap_query_where), -1); rb_define_method(SwigClassQuery.klass, "and_", VALUEFUNC(_wrap_query_and_), -1); rb_define_method(SwigClassQuery.klass, "or_", VALUEFUNC(_wrap_query_or_), -1); rb_define_method(SwigClassQuery.klass, "in", VALUEFUNC(_wrap_query_in), -1); rb_define_alias(SwigClassQuery.klass, "where_is_null", "whereIsNull"); rb_define_alias(SwigClassQuery.klass, "where_is_not_null", "whereIsNotNull"); rb_define_alias(SwigClassQuery.klass, "and_is_null", "andIsNull"); rb_define_alias(SwigClassQuery.klass, "and_is_not_null", "andIsNotNull"); rb_define_alias(SwigClassQuery.klass, "or_is_null", "orIsNull"); rb_define_alias(SwigClassQuery.klass, "or_is_not_null", "orIsNotNull"); rb_define_alias(SwigClassQuery.klass, "segments_for_in_value", "segmentsForInValue"); SwigClassQuery.mark = 0; SwigClassQuery.destroy = (void (*)(void *)) free_bzs_query; SwigClassQuery.trackObjects = 0; SwigClassBinlogPos.klass = rb_define_class_under(mTransactd, "BinlogPos", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__binlogPos, (void *) &SwigClassBinlogPos); rb_define_alloc_func(SwigClassBinlogPos.klass, _wrap_binlogPos_allocate); rb_define_method(SwigClassBinlogPos.klass, "initialize", VALUEFUNC(_wrap_new_binlogPos), -1); rb_define_method(SwigClassBinlogPos.klass, "pos", VALUEFUNC(_wrap_binlogPos_pos_get), -1); rb_define_method(SwigClassBinlogPos.klass, "type", VALUEFUNC(_wrap_binlogPos_type_get), -1); rb_define_method(SwigClassBinlogPos.klass, "filename", VALUEFUNC(_wrap_binlogPos_filename_get), -1); rb_define_method(SwigClassBinlogPos.klass, "gtid=", VALUEFUNC(_wrap_binlogPos_gtid_set), -1); rb_define_method(SwigClassBinlogPos.klass, "gtid", VALUEFUNC(_wrap_binlogPos_gtid_get), -1); SwigClassBinlogPos.mark = 0; SwigClassBinlogPos.destroy = (void (*)(void *)) free_bzs_binlogPos; SwigClassBinlogPos.trackObjects = 0; SwigClassNsdatabase.klass = rb_define_class_under(mTransactd, "Nsdatabase", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__nsdatabase, (void *) &SwigClassNsdatabase); rb_define_alloc_func(SwigClassNsdatabase.klass, _wrap_nsdatabase_allocate); rb_define_method(SwigClassNsdatabase.klass, "initialize", VALUEFUNC(_wrap_new_nsdatabase), -1); rb_define_method(SwigClassNsdatabase.klass, "enableTrn", VALUEFUNC(_wrap_nsdatabase_enableTrn), -1); rb_define_method(SwigClassNsdatabase.klass, "stat", VALUEFUNC(_wrap_nsdatabase_stat), -1); rb_define_method(SwigClassNsdatabase.klass, "clientID", VALUEFUNC(_wrap_nsdatabase_clientID), -1); rb_define_method(SwigClassNsdatabase.klass, "openTableCount", VALUEFUNC(_wrap_nsdatabase_openTableCount), -1); rb_define_method(SwigClassNsdatabase.klass, "uri", VALUEFUNC(_wrap_nsdatabase_uri), -1); rb_define_method(SwigClassNsdatabase.klass, "uriMode", VALUEFUNC(_wrap_nsdatabase_uriMode), -1); rb_define_method(SwigClassNsdatabase.klass, "lockWaitCount", VALUEFUNC(_wrap_nsdatabase_lockWaitCount), -1); rb_define_method(SwigClassNsdatabase.klass, "lockWaitTime", VALUEFUNC(_wrap_nsdatabase_lockWaitTime), -1); rb_define_method(SwigClassNsdatabase.klass, "setLockWaitCount", VALUEFUNC(_wrap_nsdatabase_setLockWaitCount), -1); rb_define_method(SwigClassNsdatabase.klass, "setLockWaitTime", VALUEFUNC(_wrap_nsdatabase_setLockWaitTime), -1); rb_define_method(SwigClassNsdatabase.klass, "setLocalSharing", VALUEFUNC(_wrap_nsdatabase_setLocalSharing), -1); rb_define_method(SwigClassNsdatabase.klass, "dropTable", VALUEFUNC(_wrap_nsdatabase_dropTable), -1); rb_define_method(SwigClassNsdatabase.klass, "rename", VALUEFUNC(_wrap_nsdatabase_rename), -1); rb_define_method(SwigClassNsdatabase.klass, "swapTablename", VALUEFUNC(_wrap_nsdatabase_swapTablename), -1); rb_define_method(SwigClassNsdatabase.klass, "beginTrn", VALUEFUNC(_wrap_nsdatabase_beginTrn), -1); rb_define_method(SwigClassNsdatabase.klass, "endTrn", VALUEFUNC(_wrap_nsdatabase_endTrn), -1); rb_define_method(SwigClassNsdatabase.klass, "abortTrn", VALUEFUNC(_wrap_nsdatabase_abortTrn), -1); rb_define_method(SwigClassNsdatabase.klass, "beginSnapshot", VALUEFUNC(_wrap_nsdatabase_beginSnapshot), -1); rb_define_method(SwigClassNsdatabase.klass, "endSnapshot", VALUEFUNC(_wrap_nsdatabase_endSnapshot), -1); rb_define_method(SwigClassNsdatabase.klass, "trxIsolationServer", VALUEFUNC(_wrap_nsdatabase_trxIsolationServer), -1); rb_define_method(SwigClassNsdatabase.klass, "trxLockWaitTimeoutServer", VALUEFUNC(_wrap_nsdatabase_trxLockWaitTimeoutServer), -1); rb_define_method(SwigClassNsdatabase.klass, "statMsg", VALUEFUNC(_wrap_nsdatabase_statMsg), -1); rb_define_method(SwigClassNsdatabase.klass, "useLongFilename", VALUEFUNC(_wrap_nsdatabase_useLongFilename), -1); rb_define_method(SwigClassNsdatabase.klass, "setUseLongFilename", VALUEFUNC(_wrap_nsdatabase_setUseLongFilename), -1); rb_define_method(SwigClassNsdatabase.klass, "setUseTransactd", VALUEFUNC(_wrap_nsdatabase_setUseTransactd), -1); rb_define_method(SwigClassNsdatabase.klass, "isTransactdUri", VALUEFUNC(_wrap_nsdatabase_isTransactdUri), -1); rb_define_method(SwigClassNsdatabase.klass, "isUseTransactd", VALUEFUNC(_wrap_nsdatabase_isUseTransactd), -1); rb_define_method(SwigClassNsdatabase.klass, "readDatabaseDirectory", VALUEFUNC(_wrap_nsdatabase_readDatabaseDirectory), -1); rb_define_method(SwigClassNsdatabase.klass, "connect", VALUEFUNC(_wrap_nsdatabase_connect), -1); rb_define_method(SwigClassNsdatabase.klass, "disconnect", VALUEFUNC(_wrap_nsdatabase_disconnect), -1); rb_define_method(SwigClassNsdatabase.klass, "disconnectForReconnectTest", VALUEFUNC(_wrap_nsdatabase_disconnectForReconnectTest), -1); rb_define_method(SwigClassNsdatabase.klass, "reconnect", VALUEFUNC(_wrap_nsdatabase_reconnect), -1); rb_define_method(SwigClassNsdatabase.klass, "isAssociate", VALUEFUNC(_wrap_nsdatabase_isAssociate), -1); rb_define_method(SwigClassNsdatabase.klass, "getCreateViewSql", VALUEFUNC(_wrap_nsdatabase_getCreateViewSql), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "trnsactionFlushWaitStatus", VALUEFUNC(_wrap_nsdatabase_trnsactionFlushWaitStatus), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "setExecCodePage", VALUEFUNC(_wrap_nsdatabase_setExecCodePage), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "execCodePage", VALUEFUNC(_wrap_nsdatabase_execCodePage), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "enableAutoReconnect", VALUEFUNC(_wrap_nsdatabase_enableAutoReconnect), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "setEnableAutoReconnect", VALUEFUNC(_wrap_nsdatabase_setEnableAutoReconnect), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "setCheckTablePtr", VALUEFUNC(_wrap_nsdatabase_setCheckTablePtr), -1); rb_define_alias(SwigClassNsdatabase.klass, "enable_trn", "enableTrn"); rb_define_alias(SwigClassNsdatabase.klass, "client_i_d", "clientID"); rb_define_alias(SwigClassNsdatabase.klass, "open_table_count", "openTableCount"); rb_define_alias(SwigClassNsdatabase.klass, "uri_mode", "uriMode"); rb_define_alias(SwigClassNsdatabase.klass, "lock_wait_count", "lockWaitCount"); rb_define_alias(SwigClassNsdatabase.klass, "lock_wait_time", "lockWaitTime"); rb_define_alias(SwigClassNsdatabase.klass, "set_lock_wait_count", "setLockWaitCount"); rb_define_alias(SwigClassNsdatabase.klass, "set_lock_wait_time", "setLockWaitTime"); rb_define_alias(SwigClassNsdatabase.klass, "set_local_sharing", "setLocalSharing"); rb_define_alias(SwigClassNsdatabase.klass, "drop_table", "dropTable"); rb_define_alias(SwigClassNsdatabase.klass, "swap_tablename", "swapTablename"); rb_define_alias(SwigClassNsdatabase.klass, "begin_trn", "beginTrn"); rb_define_alias(SwigClassNsdatabase.klass, "end_trn", "endTrn"); rb_define_alias(SwigClassNsdatabase.klass, "abort_trn", "abortTrn"); rb_define_alias(SwigClassNsdatabase.klass, "begin_snapshot", "beginSnapshot"); rb_define_alias(SwigClassNsdatabase.klass, "end_snapshot", "endSnapshot"); rb_define_alias(SwigClassNsdatabase.klass, "trx_isolation_server", "trxIsolationServer"); rb_define_alias(SwigClassNsdatabase.klass, "trx_lock_wait_timeout_server", "trxLockWaitTimeoutServer"); rb_define_alias(SwigClassNsdatabase.klass, "stat_msg", "statMsg"); rb_define_alias(SwigClassNsdatabase.klass, "use_long_filename", "useLongFilename"); rb_define_alias(SwigClassNsdatabase.klass, "set_use_long_filename", "setUseLongFilename"); rb_define_alias(SwigClassNsdatabase.klass, "set_use_transactd", "setUseTransactd"); rb_define_alias(SwigClassNsdatabase.klass, "is_transactd_uri", "isTransactdUri"); rb_define_alias(SwigClassNsdatabase.klass, "is_use_transactd", "isUseTransactd"); rb_define_alias(SwigClassNsdatabase.klass, "read_database_directory", "readDatabaseDirectory"); rb_define_alias(SwigClassNsdatabase.klass, "disconnect_for_reconnect_test", "disconnectForReconnectTest"); rb_define_alias(SwigClassNsdatabase.klass, "is_associate", "isAssociate"); rb_define_alias(SwigClassNsdatabase.klass, "get_create_view_sql", "getCreateViewSql"); rb_define_singleton_method(SwigClassNsdatabase.klass, "trnsaction_flush_wait_status", VALUEFUNC(_wrap_nsdatabase_trnsactionFlushWaitStatus), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "set_exec_code_page", VALUEFUNC(_wrap_nsdatabase_setExecCodePage), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "exec_code_page", VALUEFUNC(_wrap_nsdatabase_execCodePage), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "enable_auto_reconnect", VALUEFUNC(_wrap_nsdatabase_enableAutoReconnect), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "set_enable_auto_reconnect", VALUEFUNC(_wrap_nsdatabase_setEnableAutoReconnect), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "set_check_table_ptr", VALUEFUNC(_wrap_nsdatabase_setCheckTablePtr), -1); rb_define_alias(SwigClassNsdatabase.klass, "lock_wait_count=", "setLockWaitCount"); rb_define_alias(SwigClassNsdatabase.klass, "lock_wait_time=", "setLockWaitTime"); rb_define_alias(SwigClassNsdatabase.klass, "local_sharing=", "setLocalSharing"); rb_define_alias(SwigClassNsdatabase.klass, "use_long_filename=", "setUseLongFilename"); // rb_define_alias(SwigClassNsdatabase.klass, "use_transactd=", "setUseTransactd"); rb_define_alias(SwigClassNsdatabase.klass, "is_transactd_uri?", "isTransactdUri"); rb_define_alias(SwigClassNsdatabase.klass, "is_use_transactd?", "isUseTransactd"); rb_define_alias(SwigClassNsdatabase.klass, "is_associate?", "isAssociate"); rb_define_singleton_method(SwigClassNsdatabase.klass, "exec_code_page=", VALUEFUNC(_wrap_nsdatabase_setExecCodePage), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "enable_auto_reconnect=", VALUEFUNC(_wrap_nsdatabase_setEnableAutoReconnect), -1); rb_define_singleton_method(SwigClassNsdatabase.klass, "check_table_ptr=", VALUEFUNC(_wrap_nsdatabase_setCheckTablePtr), -1); SwigClassNsdatabase.mark = 0; SwigClassNsdatabase.trackObjects = 0; SwigClassDatabase.klass = rb_define_class_under(mTransactd, "Database", ((swig_class *) SWIGTYPE_p_bzs__nsdatabase->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__database, (void *) &SwigClassDatabase); rb_define_alloc_func(SwigClassDatabase.klass, _wrap_database_allocate); rb_define_method(SwigClassDatabase.klass, "initialize", VALUEFUNC(_wrap_new_database), -1); rb_define_method(SwigClassDatabase.klass, "dbDef", VALUEFUNC(_wrap_database_dbDef), -1); rb_define_method(SwigClassDatabase.klass, "rootDir", VALUEFUNC(_wrap_database_rootDir), -1); rb_define_method(SwigClassDatabase.klass, "setRootDir", VALUEFUNC(_wrap_database_setRootDir), -1); rb_define_method(SwigClassDatabase.klass, "optionalData", VALUEFUNC(_wrap_database_optionalData), -1); rb_define_method(SwigClassDatabase.klass, "setOptionalData", VALUEFUNC(_wrap_database_setOptionalData), -1); rb_define_method(SwigClassDatabase.klass, "tableReadOnly", VALUEFUNC(_wrap_database_tableReadOnly), -1); rb_define_method(SwigClassDatabase.klass, "setTableReadOnly", VALUEFUNC(_wrap_database_setTableReadOnly), -1); rb_define_method(SwigClassDatabase.klass, "open", VALUEFUNC(_wrap_database_open), -1); rb_define_method(SwigClassDatabase.klass, "clone", VALUEFUNC(_wrap_database_clone), -1); rb_define_method(SwigClassDatabase.klass, "createTable", VALUEFUNC(_wrap_database_createTable), -1); rb_define_method(SwigClassDatabase.klass, "execSql", VALUEFUNC(_wrap_database_execSql), -1); rb_define_method(SwigClassDatabase.klass, "getSqlStringForCreateTable", VALUEFUNC(_wrap_database_getSqlStringForCreateTable), -1); rb_define_method(SwigClassDatabase.klass, "create", VALUEFUNC(_wrap_database_create), -1); rb_define_method(SwigClassDatabase.klass, "drop", VALUEFUNC(_wrap_database_drop), -1); rb_define_method(SwigClassDatabase.klass, "dropTable", VALUEFUNC(_wrap_database_dropTable), -1); rb_define_method(SwigClassDatabase.klass, "close", VALUEFUNC(_wrap_database_close), -1); rb_define_method(SwigClassDatabase.klass, "aclReload", VALUEFUNC(_wrap_database_aclReload), -1); rb_define_method(SwigClassDatabase.klass, "continuous", VALUEFUNC(_wrap_database_continuous), -1); rb_define_method(SwigClassDatabase.klass, "assignSchemaData", VALUEFUNC(_wrap_database_assignSchemaData), -1); rb_define_method(SwigClassDatabase.klass, "copyTableData", VALUEFUNC(_wrap_database_copyTableData), -1); rb_define_method(SwigClassDatabase.klass, "convertTable", VALUEFUNC(_wrap_database_convertTable), -1); rb_define_method(SwigClassDatabase.klass, "existsTableFile", VALUEFUNC(_wrap_database_existsTableFile), -1); rb_define_method(SwigClassDatabase.klass, "getBtrVersion", VALUEFUNC(_wrap_database_getBtrVersion), -1); rb_define_method(SwigClassDatabase.klass, "isOpened", VALUEFUNC(_wrap_database_isOpened), -1); rb_define_method(SwigClassDatabase.klass, "mode", VALUEFUNC(_wrap_database_mode), -1); rb_define_method(SwigClassDatabase.klass, "autoSchemaUseNullkey", VALUEFUNC(_wrap_database_autoSchemaUseNullkey), -1); rb_define_method(SwigClassDatabase.klass, "setAutoSchemaUseNullkey", VALUEFUNC(_wrap_database_setAutoSchemaUseNullkey), -1); rb_define_method(SwigClassDatabase.klass, "createAssociate", VALUEFUNC(_wrap_database_createAssociate), -1); rb_define_singleton_method(SwigClassDatabase.klass, "setCompatibleMode", VALUEFUNC(_wrap_database_setCompatibleMode), -1); rb_define_singleton_method(SwigClassDatabase.klass, "compatibleMode", VALUEFUNC(_wrap_database_compatibleMode), -1); rb_define_alias(SwigClassDatabase.klass, "db_def", "dbDef"); rb_define_alias(SwigClassDatabase.klass, "root_dir", "rootDir"); rb_define_alias(SwigClassDatabase.klass, "set_root_dir", "setRootDir"); rb_define_alias(SwigClassDatabase.klass, "optional_data", "optionalData"); rb_define_alias(SwigClassDatabase.klass, "set_optional_data", "setOptionalData"); rb_define_alias(SwigClassDatabase.klass, "table_read_only", "tableReadOnly"); rb_define_alias(SwigClassDatabase.klass, "set_table_read_only", "setTableReadOnly"); rb_define_alias(SwigClassDatabase.klass, "create_table", "createTable"); rb_define_alias(SwigClassDatabase.klass, "exec_sql", "execSql"); rb_define_alias(SwigClassDatabase.klass, "get_sql_string_for_create_table", "getSqlStringForCreateTable"); rb_define_alias(SwigClassDatabase.klass, "drop_table", "dropTable"); rb_define_alias(SwigClassDatabase.klass, "acl_reload", "aclReload"); rb_define_alias(SwigClassDatabase.klass, "assign_schema_data", "assignSchemaData"); rb_define_alias(SwigClassDatabase.klass, "copy_table_data", "copyTableData"); rb_define_alias(SwigClassDatabase.klass, "convert_table", "convertTable"); rb_define_alias(SwigClassDatabase.klass, "exists_table_file", "existsTableFile"); rb_define_alias(SwigClassDatabase.klass, "get_btr_version", "getBtrVersion"); rb_define_alias(SwigClassDatabase.klass, "is_opened", "isOpened"); rb_define_alias(SwigClassDatabase.klass, "auto_schema_use_nullkey", "autoSchemaUseNullkey"); rb_define_alias(SwigClassDatabase.klass, "set_auto_schema_use_nullkey", "setAutoSchemaUseNullkey"); rb_define_alias(SwigClassDatabase.klass, "create_associate", "createAssociate"); rb_define_singleton_method(SwigClassDatabase.klass, "set_compatible_mode", VALUEFUNC(_wrap_database_setCompatibleMode), -1); rb_define_singleton_method(SwigClassDatabase.klass, "compatible_mode", VALUEFUNC(_wrap_database_compatibleMode), -1); rb_define_alias(SwigClassDatabase.klass, "root_dir=", "setRootDir"); rb_define_alias(SwigClassDatabase.klass, "optional_data=", "setOptionalData"); rb_define_alias(SwigClassDatabase.klass, "table_read_only=", "setTableReadOnly"); rb_define_alias(SwigClassDatabase.klass, "is_opened?", "isOpened"); rb_define_alias(SwigClassDatabase.klass, "auto_schema_use_nullkey=", "setAutoSchemaUseNullkey"); rb_define_singleton_method(SwigClassDatabase.klass, "compatible_mode=", VALUEFUNC(_wrap_database_setCompatibleMode), -1); rb_define_const(SwigClassDatabase.klass, "CMP_MODE_OLD_NULL", SWIG_From_int(static_cast< int >(tdap::client::database::CMP_MODE_OLD_NULL))); rb_define_const(SwigClassDatabase.klass, "CMP_MODE_MYSQL_NULL", SWIG_From_int(static_cast< int >(tdap::client::database::CMP_MODE_MYSQL_NULL))); rb_define_const(SwigClassDatabase.klass, "CMP_MODE_BINFD_DEFAULT_STR", SWIG_From_int(static_cast< int >(tdap::client::database::CMP_MODE_BINFD_DEFAULT_STR))); rb_define_const(SwigClassDatabase.klass, "CMP_MODE_OLD_ALL", SWIG_From_int(static_cast< int >(tdap::client::database::CMP_MODE_OLD_ALL))); rb_define_const(SwigClassDatabase.klass, "CMP_MODE_OLD_BIN", SWIG_From_int(static_cast< int >(tdap::client::database::CMP_MODE_OLD_BIN))); rb_define_method(SwigClassDatabase.klass, "openTable", VALUEFUNC(_wrap_database_openTable), -1); rb_define_alias(SwigClassDatabase.klass, "open_table", "openTable"); SwigClassDatabase.mark = 0; SwigClassDatabase.destroy = (void (*)(void *)) free_bzs_database; SwigClassDatabase.trackObjects = 0; SwigClassBenchmark.klass = rb_define_class_under(mTransactd, "Benchmark", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__rtl__benchmark, (void *) &SwigClassBenchmark); rb_define_alloc_func(SwigClassBenchmark.klass, _wrap_benchmark_allocate); rb_define_method(SwigClassBenchmark.klass, "initialize", VALUEFUNC(_wrap_new_benchmark), -1); rb_define_singleton_method(SwigClassBenchmark.klass, "start", VALUEFUNC(_wrap_benchmark_start), -1); rb_define_singleton_method(SwigClassBenchmark.klass, "stop", VALUEFUNC(_wrap_benchmark_stop), -1); rb_define_singleton_method(SwigClassBenchmark.klass, "showTimes", VALUEFUNC(_wrap_benchmark_showTimes), -1); rb_define_singleton_method(SwigClassBenchmark.klass, "showTimeSec", VALUEFUNC(_wrap_benchmark_showTimeSec), -1); rb_define_singleton_method(SwigClassBenchmark.klass, "show_times", VALUEFUNC(_wrap_benchmark_showTimes), -1); rb_define_singleton_method(SwigClassBenchmark.klass, "show_time_sec", VALUEFUNC(_wrap_benchmark_showTimeSec), -1); SwigClassBenchmark.mark = 0; SwigClassBenchmark.destroy = (void (*)(void *)) free_bzs_rtl_benchmark; SwigClassBenchmark.trackObjects = 0; rb_define_const(mTransactd, "MAX_CHAR_INFO", SWIG_From_int(static_cast< int >(MAX_CHAR_INFO))); rb_define_const(mTransactd, "CHARSET_LATIN1", SWIG_From_int(static_cast< int >(CHARSET_LATIN1))); rb_define_const(mTransactd, "CHARSET_CP850", SWIG_From_int(static_cast< int >(CHARSET_CP850))); rb_define_const(mTransactd, "CHARSET_ASCII", SWIG_From_int(static_cast< int >(CHARSET_ASCII))); rb_define_const(mTransactd, "CHARSET_SJIS", SWIG_From_int(static_cast< int >(CHARSET_SJIS))); rb_define_const(mTransactd, "CHARSET_UTF8", SWIG_From_int(static_cast< int >(CHARSET_UTF8))); rb_define_const(mTransactd, "CHARSET_USC2", SWIG_From_int(static_cast< int >(CHARSET_USC2))); rb_define_const(mTransactd, "CHARSET_UTF8B4", SWIG_From_int(static_cast< int >(CHARSET_UTF8B4))); rb_define_const(mTransactd, "CHARSET_UTF16LE", SWIG_From_int(static_cast< int >(CHARSET_UTF16LE))); rb_define_const(mTransactd, "CHARSET_CP932", SWIG_From_int(static_cast< int >(CHARSET_CP932))); rb_define_const(mTransactd, "CHARSET_EUCJ", SWIG_From_int(static_cast< int >(CHARSET_EUCJ))); rb_define_module_function(mTransactd, "charsize", VALUEFUNC(_wrap_charsize), -1); rb_define_module_function(mTransactd, "charsetName", VALUEFUNC(_wrap_charsetName), -1); rb_define_module_function(mTransactd, "charsetIndex", VALUEFUNC(_wrap_charsetIndex), -1); rb_define_module_function(mTransactd, "codePage", VALUEFUNC(_wrap_codePage), -1); rb_define_module_function(mTransactd, "charset_name", VALUEFUNC(_wrap_charsetName), -1); rb_define_module_function(mTransactd, "charset_index", VALUEFUNC(_wrap_charsetIndex), -1); rb_define_module_function(mTransactd, "code_page", VALUEFUNC(_wrap_codePage), -1); SwigClassBtrDate.klass = rb_define_class_under(mTransactd, "BtrDate", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__btrDate, (void *) &SwigClassBtrDate); rb_define_alloc_func(SwigClassBtrDate.klass, _wrap_btrDate_allocate); rb_define_method(SwigClassBtrDate.klass, "initialize", VALUEFUNC(_wrap_new_btrDate), -1); rb_define_method(SwigClassBtrDate.klass, "dd=", VALUEFUNC(_wrap_btrDate_dd_set), -1); rb_define_method(SwigClassBtrDate.klass, "dd", VALUEFUNC(_wrap_btrDate_dd_get), -1); rb_define_method(SwigClassBtrDate.klass, "mm=", VALUEFUNC(_wrap_btrDate_mm_set), -1); rb_define_method(SwigClassBtrDate.klass, "mm", VALUEFUNC(_wrap_btrDate_mm_get), -1); rb_define_method(SwigClassBtrDate.klass, "yy=", VALUEFUNC(_wrap_btrDate_yy_set), -1); rb_define_method(SwigClassBtrDate.klass, "yy", VALUEFUNC(_wrap_btrDate_yy_get), -1); rb_define_method(SwigClassBtrDate.klass, "i=", VALUEFUNC(_wrap_btrDate_i_set), -1); rb_define_method(SwigClassBtrDate.klass, "i", VALUEFUNC(_wrap_btrDate_i_get), -1); SwigClassBtrDate.mark = 0; SwigClassBtrDate.destroy = (void (*)(void *)) free_bzs_btrDate; SwigClassBtrDate.trackObjects = 0; SwigClassBtrTime.klass = rb_define_class_under(mTransactd, "BtrTime", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__btrTime, (void *) &SwigClassBtrTime); rb_define_alloc_func(SwigClassBtrTime.klass, _wrap_btrTime_allocate); rb_define_method(SwigClassBtrTime.klass, "initialize", VALUEFUNC(_wrap_new_btrTime), -1); rb_define_method(SwigClassBtrTime.klass, "uu=", VALUEFUNC(_wrap_btrTime_uu_set), -1); rb_define_method(SwigClassBtrTime.klass, "uu", VALUEFUNC(_wrap_btrTime_uu_get), -1); rb_define_method(SwigClassBtrTime.klass, "ss=", VALUEFUNC(_wrap_btrTime_ss_set), -1); rb_define_method(SwigClassBtrTime.klass, "ss", VALUEFUNC(_wrap_btrTime_ss_get), -1); rb_define_method(SwigClassBtrTime.klass, "nn=", VALUEFUNC(_wrap_btrTime_nn_set), -1); rb_define_method(SwigClassBtrTime.klass, "nn", VALUEFUNC(_wrap_btrTime_nn_get), -1); rb_define_method(SwigClassBtrTime.klass, "hh=", VALUEFUNC(_wrap_btrTime_hh_set), -1); rb_define_method(SwigClassBtrTime.klass, "hh", VALUEFUNC(_wrap_btrTime_hh_get), -1); rb_define_method(SwigClassBtrTime.klass, "i=", VALUEFUNC(_wrap_btrTime_i_set), -1); rb_define_method(SwigClassBtrTime.klass, "i", VALUEFUNC(_wrap_btrTime_i_get), -1); SwigClassBtrTime.mark = 0; SwigClassBtrTime.destroy = (void (*)(void *)) free_bzs_btrTime; SwigClassBtrTime.trackObjects = 0; SwigClassBtrDateTime.klass = rb_define_class_under(mTransactd, "BtrDateTime", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__btrDateTime, (void *) &SwigClassBtrDateTime); rb_define_alloc_func(SwigClassBtrDateTime.klass, _wrap_btrDateTime_allocate); rb_define_method(SwigClassBtrDateTime.klass, "initialize", VALUEFUNC(_wrap_new_btrDateTime), -1); rb_define_method(SwigClassBtrDateTime.klass, "time=", VALUEFUNC(_wrap_btrDateTime_time_set), -1); rb_define_method(SwigClassBtrDateTime.klass, "time", VALUEFUNC(_wrap_btrDateTime_time_get), -1); rb_define_method(SwigClassBtrDateTime.klass, "date=", VALUEFUNC(_wrap_btrDateTime_date_set), -1); rb_define_method(SwigClassBtrDateTime.klass, "date", VALUEFUNC(_wrap_btrDateTime_date_get), -1); rb_define_method(SwigClassBtrDateTime.klass, "i64=", VALUEFUNC(_wrap_btrDateTime_i64_set), -1); rb_define_method(SwigClassBtrDateTime.klass, "i64", VALUEFUNC(_wrap_btrDateTime_i64_get), -1); SwigClassBtrDateTime.mark = 0; SwigClassBtrDateTime.destroy = (void (*)(void *)) free_bzs_btrDateTime; SwigClassBtrDateTime.trackObjects = 0; SwigClassBtrTimeStamp.klass = rb_define_class_under(mTransactd, "BtrTimeStamp", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__btrTimeStamp, (void *) &SwigClassBtrTimeStamp); rb_define_alloc_func(SwigClassBtrTimeStamp.klass, _wrap_btrTimeStamp_allocate); rb_define_method(SwigClassBtrTimeStamp.klass, "initialize", VALUEFUNC(_wrap_new_btrTimeStamp), -1); rb_define_method(SwigClassBtrTimeStamp.klass, "i64=", VALUEFUNC(_wrap_btrTimeStamp_i64_set), -1); rb_define_method(SwigClassBtrTimeStamp.klass, "i64", VALUEFUNC(_wrap_btrTimeStamp_i64_get), -1); rb_define_method(SwigClassBtrTimeStamp.klass, "toString", VALUEFUNC(_wrap_btrTimeStamp_toString), -1); rb_define_method(SwigClassBtrTimeStamp.klass, "fromString", VALUEFUNC(_wrap_btrTimeStamp_fromString), -1); rb_define_alias(SwigClassBtrTimeStamp.klass, "to_string", "toString"); rb_define_alias(SwigClassBtrTimeStamp.klass, "to_s", "toString"); rb_define_alias(SwigClassBtrTimeStamp.klass, "from_string", "fromString"); SwigClassBtrTimeStamp.mark = 0; SwigClassBtrTimeStamp.destroy = (void (*)(void *)) free_bzs_btrTimeStamp; SwigClassBtrTimeStamp.trackObjects = 0; rb_define_module_function(mTransactd, "atobtrd", VALUEFUNC(_wrap_atobtrd), -1); rb_define_module_function(mTransactd, "atobtrt", VALUEFUNC(_wrap_atobtrt), -1); rb_define_module_function(mTransactd, "btrdtoa", VALUEFUNC(_wrap_btrdtoa), -1); rb_define_module_function(mTransactd, "btrttoa", VALUEFUNC(_wrap_btrttoa), -1); rb_define_module_function(mTransactd, "btrstoa", VALUEFUNC(_wrap_btrstoa), -1); rb_define_module_function(mTransactd, "atobtrs", VALUEFUNC(_wrap_atobtrs), -1); rb_define_module_function(mTransactd, "getNowDate", VALUEFUNC(_wrap_getNowDate), -1); rb_define_module_function(mTransactd, "getNowTime", VALUEFUNC(_wrap_getNowTime), -1); rb_define_module_function(mTransactd, "get_now_date", VALUEFUNC(_wrap_getNowDate), -1); rb_define_module_function(mTransactd, "get_now_time", VALUEFUNC(_wrap_getNowTime), -1); SwigClassFielddefs.klass = rb_define_class_under(mTransactd, "Fielddefs", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__fielddefs, (void *) &SwigClassFielddefs); rb_define_alloc_func(SwigClassFielddefs.klass, _wrap_fielddefs_allocate); rb_define_method(SwigClassFielddefs.klass, "initialize", VALUEFUNC(_wrap_new_fielddefs), -1); rb_define_method(SwigClassFielddefs.klass, "clone", VALUEFUNC(_wrap_fielddefs_clone), -1); rb_define_method(SwigClassFielddefs.klass, "indexByName", VALUEFUNC(_wrap_fielddefs_indexByName), -1); rb_define_method(SwigClassFielddefs.klass, "[]", VALUEFUNC(_wrap_fielddefs___getitem__), -1); rb_define_method(SwigClassFielddefs.klass, "checkIndex", VALUEFUNC(_wrap_fielddefs_checkIndex), -1); rb_define_method(SwigClassFielddefs.klass, "size", VALUEFUNC(_wrap_fielddefs_size), -1); rb_define_method(SwigClassFielddefs.klass, "to_a", VALUEFUNC(_wrap_fielddefs_to_a), -1); rb_define_alias(SwigClassFielddefs.klass, "index_by_name", "indexByName"); rb_define_alias(SwigClassFielddefs.klass, "check_index", "checkIndex"); SwigClassFielddefs.mark = 0; SwigClassFielddefs.destroy = (void (*)(void *)) free_bzs_fielddefs; SwigClassFielddefs.trackObjects = 0; SwigClassField.klass = rb_define_class_under(mTransactd, "Field", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__field, (void *) &SwigClassField); rb_define_alloc_func(SwigClassField.klass, _wrap_field_allocate); rb_define_method(SwigClassField.klass, "initialize", VALUEFUNC(_wrap_new_field), -1); rb_define_method(SwigClassField.klass, "type", VALUEFUNC(_wrap_field_type), -1); rb_define_method(SwigClassField.klass, "len", VALUEFUNC(_wrap_field_len), -1); rb_define_method(SwigClassField.klass, "str", VALUEFUNC(_wrap_field_str), -1); rb_define_method(SwigClassField.klass, "i", VALUEFUNC(_wrap_field_i), -1); rb_define_method(SwigClassField.klass, "i64", VALUEFUNC(_wrap_field_i64), -1); rb_define_method(SwigClassField.klass, "d", VALUEFUNC(_wrap_field_d), -1); rb_define_method(SwigClassField.klass, "isNull", VALUEFUNC(_wrap_field_isNull), -1); rb_define_method(SwigClassField.klass, "setNull", VALUEFUNC(_wrap_field_setNull), -1); rb_define_method(SwigClassField.klass, "setValue", VALUEFUNC(_wrap_field_setvalue_), -1); rb_define_alias(SwigClassField.klass, "=", "setValue"); rb_define_method(SwigClassField.klass, "setBin", VALUEFUNC(_wrap_field_setBin), -1); rb_define_method(SwigClassField.klass, "getBin", VALUEFUNC(_wrap_field_getBin), -1); rb_define_alias(SwigClassField.klass, "bin", "getBin"); rb_define_method(SwigClassField.klass, "comp", VALUEFUNC(_wrap_field_comp), -1); rb_define_method(SwigClassField.klass, "getBits", VALUEFUNC(_wrap_field_getBits), -1); rb_define_alias(SwigClassField.klass, "is_null", "isNull"); rb_define_alias(SwigClassField.klass, "set_null", "setNull"); rb_define_alias(SwigClassField.klass, "set_value", "setValue"); rb_define_alias(SwigClassField.klass, "set_bin", "setBin"); rb_define_alias(SwigClassField.klass, "get_bin", "getBin"); rb_define_alias(SwigClassField.klass, "get_bits", "getBits"); rb_define_alias(SwigClassField.klass, "is_null?", "isNull"); rb_define_alias(SwigClassField.klass, "null=", "setNull"); // rb_define_alias(SwigClassField.klass, "value=", "setValue"); // rb_define_alias(SwigClassField.klass, "bin=", "setBin"); SwigClassField.mark = 0; SwigClassField.destroy = (void (*)(void *)) free_bzs_field; SwigClassField.trackObjects = 0; SwigClassRecord.klass = rb_define_class_under(mTransactd, "Record", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__fieldsBase, (void *) &SwigClassRecord); rb_undef_alloc_func(SwigClassRecord.klass); rb_define_method(SwigClassRecord.klass, "isInvalidRecord", VALUEFUNC(_wrap_Record_isInvalidRecord), -1); rb_define_method(SwigClassRecord.klass, "getField", VALUEFUNC(_wrap_Record_getField), -1); rb_define_method(SwigClassRecord.klass, "size", VALUEFUNC(_wrap_Record_size), -1); rb_define_method(SwigClassRecord.klass, "indexByName", VALUEFUNC(_wrap_Record_indexByName), -1); rb_define_method(SwigClassRecord.klass, "fieldDefs", VALUEFUNC(_wrap_Record_fieldDefs), -1); rb_define_method(SwigClassRecord.klass, "clear", VALUEFUNC(_wrap_Record_clear), -1); rb_define_method(SwigClassRecord.klass, "[]", VALUEFUNC(_wrap_Record___getitem__), -1); rb_define_method(SwigClassRecord.klass, "[]=", VALUEFUNC(_wrap_Record___setitem__), -1); rb_define_method(SwigClassRecord.klass, "getFieldByRef", VALUEFUNC(_wrap_Record_getFieldByRef), -1); rb_define_method(SwigClassRecord.klass, "set_value_by_object", VALUEFUNC(_wrap_Record_setValue), -1); rb_define_alias(SwigClassRecord.klass, "is_invalid_record", "isInvalidRecord"); rb_define_alias(SwigClassRecord.klass, "get_field", "getField"); rb_define_alias(SwigClassRecord.klass, "index_by_name", "indexByName"); rb_define_alias(SwigClassRecord.klass, "field_defs", "fieldDefs"); rb_define_alias(SwigClassRecord.klass, "get_field_by_ref", "getFieldByRef"); rb_define_alias(SwigClassRecord.klass, "is_invalid_record?", "isInvalidRecord"); SwigClassRecord.mark = 0; SwigClassRecord.destroy = (void (*)(void *)) free_bzs_fieldsBase; SwigClassRecord.trackObjects = 0; SwigClassWritableRecord.klass = rb_define_class_under(mTransactd, "WritableRecord", ((swig_class *) SWIGTYPE_p_bzs__fieldsBase->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__writableRecord, (void *) &SwigClassWritableRecord); rb_undef_alloc_func(SwigClassWritableRecord.klass); rb_define_method(SwigClassWritableRecord.klass, "read", VALUEFUNC(_wrap_writableRecord_read), -1); rb_define_method(SwigClassWritableRecord.klass, "insert", VALUEFUNC(_wrap_writableRecord_insert), -1); rb_define_method(SwigClassWritableRecord.klass, "del", VALUEFUNC(_wrap_writableRecord_del), -1); rb_define_method(SwigClassWritableRecord.klass, "update", VALUEFUNC(_wrap_writableRecord_update), -1); rb_define_method(SwigClassWritableRecord.klass, "save", VALUEFUNC(_wrap_writableRecord_save), -1); SwigClassWritableRecord.mark = 0; SwigClassWritableRecord.trackObjects = 0; SwigClassConnectParams.klass = rb_define_class_under(mTransactd, "ConnectParams", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__connectParams, (void *) &SwigClassConnectParams); rb_define_alloc_func(SwigClassConnectParams.klass, _wrap_connectParams_allocate); rb_define_method(SwigClassConnectParams.klass, "initialize", VALUEFUNC(_wrap_new_connectParams), -1); rb_define_method(SwigClassConnectParams.klass, "setMode", VALUEFUNC(_wrap_connectParams_setMode), -1); rb_define_method(SwigClassConnectParams.klass, "setType", VALUEFUNC(_wrap_connectParams_setType), -1); rb_define_method(SwigClassConnectParams.klass, "uri", VALUEFUNC(_wrap_connectParams_uri), -1); rb_define_method(SwigClassConnectParams.klass, "mode", VALUEFUNC(_wrap_connectParams_mode), -1); rb_define_method(SwigClassConnectParams.klass, "type", VALUEFUNC(_wrap_connectParams_type), -1); rb_define_alias(SwigClassConnectParams.klass, "set_mode", "setMode"); rb_define_alias(SwigClassConnectParams.klass, "set_type", "setType"); rb_define_alias(SwigClassConnectParams.klass, "mode=", "setMode"); rb_define_alias(SwigClassConnectParams.klass, "type=", "setType"); SwigClassConnectParams.mark = 0; SwigClassConnectParams.destroy = (void (*)(void *)) free_bzs_connectParams; SwigClassConnectParams.trackObjects = 0; SwigClassFieldNames.klass = rb_define_class_under(mTransactd, "FieldNames", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__fieldNames, (void *) &SwigClassFieldNames); rb_define_alloc_func(SwigClassFieldNames.klass, _wrap_fieldNames_allocate); rb_define_method(SwigClassFieldNames.klass, "initialize", VALUEFUNC(_wrap_new_fieldNames), -1); rb_define_method(SwigClassFieldNames.klass, "reset", VALUEFUNC(_wrap_fieldNames_reset), -1); rb_define_method(SwigClassFieldNames.klass, "keyField", VALUEFUNC(_wrap_fieldNames_keyField), -1); rb_define_method(SwigClassFieldNames.klass, "count", VALUEFUNC(_wrap_fieldNames_count), -1); rb_define_method(SwigClassFieldNames.klass, "[]", VALUEFUNC(_wrap_fieldNames___getitem__), -1); rb_define_method(SwigClassFieldNames.klass, "getValue", VALUEFUNC(_wrap_fieldNames_getValue), -1); rb_define_method(SwigClassFieldNames.klass, "addValue", VALUEFUNC(_wrap_fieldNames_addValue), -1); rb_define_method(SwigClassFieldNames.klass, "addValues", VALUEFUNC(_wrap_fieldNames_addValues), -1); rb_define_alias(SwigClassFieldNames.klass, "key_field", "keyField"); rb_define_alias(SwigClassFieldNames.klass, "get_value", "getValue"); rb_define_alias(SwigClassFieldNames.klass, "add_value", "addValue"); rb_define_alias(SwigClassFieldNames.klass, "add_values", "addValues"); SwigClassFieldNames.mark = 0; SwigClassFieldNames.destroy = (void (*)(void *)) free_bzs_fieldNames; SwigClassFieldNames.trackObjects = 0; SwigClassSortField.klass = rb_define_class_under(mTransactd, "SortField", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__sortField, (void *) &SwigClassSortField); rb_define_alloc_func(SwigClassSortField.klass, _wrap_sortField_allocate); rb_define_method(SwigClassSortField.klass, "initialize", VALUEFUNC(_wrap_new_sortField), -1); rb_define_method(SwigClassSortField.klass, "name=", VALUEFUNC(_wrap_sortField_name_set), -1); rb_define_method(SwigClassSortField.klass, "name", VALUEFUNC(_wrap_sortField_name_get), -1); rb_define_method(SwigClassSortField.klass, "asc=", VALUEFUNC(_wrap_sortField_asc_set), -1); rb_define_method(SwigClassSortField.klass, "asc", VALUEFUNC(_wrap_sortField_asc_get), -1); SwigClassSortField.mark = 0; SwigClassSortField.destroy = (void (*)(void *)) free_bzs_sortField; SwigClassSortField.trackObjects = 0; SwigClassSortFields.klass = rb_define_class_under(mTransactd, "SortFields", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__sortFields, (void *) &SwigClassSortFields); rb_define_alloc_func(SwigClassSortFields.klass, _wrap_sortFields_allocate); rb_define_method(SwigClassSortFields.klass, "initialize", VALUEFUNC(_wrap_new_sortFields), -1); rb_define_method(SwigClassSortFields.klass, "add", VALUEFUNC(_wrap_sortFields_add), -1); rb_define_method(SwigClassSortFields.klass, "size", VALUEFUNC(_wrap_sortFields_size), -1); rb_define_method(SwigClassSortFields.klass, "[]", VALUEFUNC(_wrap_sortFields___getitem__), -1); rb_define_method(SwigClassSortFields.klass, "clear", VALUEFUNC(_wrap_sortFields_clear), -1); SwigClassSortFields.mark = 0; SwigClassSortFields.destroy = (void (*)(void *)) free_bzs_sortFields; SwigClassSortFields.trackObjects = 0; SwigClassRecordsetQuery.klass = rb_define_class_under(mTransactd, "RecordsetQuery", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__recordsetQuery, (void *) &SwigClassRecordsetQuery); rb_define_alloc_func(SwigClassRecordsetQuery.klass, _wrap_recordsetQuery_allocate); rb_define_method(SwigClassRecordsetQuery.klass, "initialize", VALUEFUNC(_wrap_new_recordsetQuery), -1); rb_define_method(SwigClassRecordsetQuery.klass, "reset", VALUEFUNC(_wrap_recordsetQuery_reset), -1); rb_define_method(SwigClassRecordsetQuery.klass, "whenIsNull", VALUEFUNC(_wrap_recordsetQuery_whenIsNull), -1); rb_define_method(SwigClassRecordsetQuery.klass, "whenIsNotNull", VALUEFUNC(_wrap_recordsetQuery_whenIsNotNull), -1); rb_define_method(SwigClassRecordsetQuery.klass, "andIsNull", VALUEFUNC(_wrap_recordsetQuery_andIsNull), -1); rb_define_method(SwigClassRecordsetQuery.klass, "andIsNotNull", VALUEFUNC(_wrap_recordsetQuery_andIsNotNull), -1); rb_define_method(SwigClassRecordsetQuery.klass, "orIsNull", VALUEFUNC(_wrap_recordsetQuery_orIsNull), -1); rb_define_method(SwigClassRecordsetQuery.klass, "orIsNotNull", VALUEFUNC(_wrap_recordsetQuery_orIsNotNull), -1); rb_define_method(SwigClassRecordsetQuery.klass, "toString", VALUEFUNC(_wrap_recordsetQuery_toString), -1); rb_define_method(SwigClassRecordsetQuery.klass, "when", VALUEFUNC(_wrap_recordsetQuery_when), -1); rb_define_method(SwigClassRecordsetQuery.klass, "and_", VALUEFUNC(_wrap_recordsetQuery_and_), -1); rb_define_method(SwigClassRecordsetQuery.klass, "or_", VALUEFUNC(_wrap_recordsetQuery_or_), -1); rb_define_alias(SwigClassRecordsetQuery.klass, "when_is_null", "whenIsNull"); rb_define_alias(SwigClassRecordsetQuery.klass, "when_is_not_null", "whenIsNotNull"); rb_define_alias(SwigClassRecordsetQuery.klass, "and_is_null", "andIsNull"); rb_define_alias(SwigClassRecordsetQuery.klass, "and_is_not_null", "andIsNotNull"); rb_define_alias(SwigClassRecordsetQuery.klass, "or_is_null", "orIsNull"); rb_define_alias(SwigClassRecordsetQuery.klass, "or_is_not_null", "orIsNotNull"); rb_define_alias(SwigClassRecordsetQuery.klass, "to_string", "toString"); rb_define_alias(SwigClassRecordsetQuery.klass, "to_s", "toString"); SwigClassRecordsetQuery.mark = 0; SwigClassRecordsetQuery.destroy = (void (*)(void *)) free_bzs_recordsetQuery; SwigClassRecordsetQuery.trackObjects = 0; SwigClassGroupFuncBase.klass = rb_define_class_under(mTransactd, "GroupFuncBase", ((swig_class *) SWIGTYPE_p_bzs__recordsetQuery->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__groupFuncBase, (void *) &SwigClassGroupFuncBase); rb_undef_alloc_func(SwigClassGroupFuncBase.klass); rb_define_method(SwigClassGroupFuncBase.klass, "targetNames", VALUEFUNC(_wrap_groupFuncBase_targetNames), -1); rb_define_method(SwigClassGroupFuncBase.klass, "resultName", VALUEFUNC(_wrap_groupFuncBase_resultName), -1); rb_define_method(SwigClassGroupFuncBase.klass, "setResultName", VALUEFUNC(_wrap_groupFuncBase_setResultName), -1); rb_define_method(SwigClassGroupFuncBase.klass, "resultKey", VALUEFUNC(_wrap_groupFuncBase_resultKey), -1); rb_define_method(SwigClassGroupFuncBase.klass, "reset", VALUEFUNC(_wrap_groupFuncBase_reset), -1); rb_define_method(SwigClassGroupFuncBase.klass, "clone", VALUEFUNC(_wrap_groupFuncBase_clone), -1); rb_define_alias(SwigClassGroupFuncBase.klass, "target_names", "targetNames"); rb_define_alias(SwigClassGroupFuncBase.klass, "result_name", "resultName"); rb_define_alias(SwigClassGroupFuncBase.klass, "set_result_name", "setResultName"); rb_define_alias(SwigClassGroupFuncBase.klass, "result_key", "resultKey"); rb_define_alias(SwigClassGroupFuncBase.klass, "result_name=", "setResultName"); SwigClassGroupFuncBase.mark = 0; SwigClassGroupFuncBase.destroy = (void (*)(void *)) free_bzs_groupFuncBase; SwigClassGroupFuncBase.trackObjects = 0; SwigClassGroupQuery.klass = rb_define_class_under(mTransactd, "GroupQuery", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__groupQuery, (void *) &SwigClassGroupQuery); rb_define_alloc_func(SwigClassGroupQuery.klass, _wrap_groupQuery_allocate); rb_define_method(SwigClassGroupQuery.klass, "initialize", VALUEFUNC(_wrap_new_groupQuery), -1); rb_define_method(SwigClassGroupQuery.klass, "reset", VALUEFUNC(_wrap_groupQuery_reset), -1); rb_define_method(SwigClassGroupQuery.klass, "addFunction", VALUEFUNC(_wrap_groupQuery_addFunction), -1); rb_define_method(SwigClassGroupQuery.klass, "keyField", VALUEFUNC(_wrap_groupQuery_keyField), -1); rb_define_method(SwigClassGroupQuery.klass, "getKeyFields", VALUEFUNC(_wrap_groupQuery_getKeyFields), -1); rb_define_method(SwigClassGroupQuery.klass, "getFunction", VALUEFUNC(_wrap_groupQuery_getFunction), -1); rb_define_method(SwigClassGroupQuery.klass, "functionCount", VALUEFUNC(_wrap_groupQuery_functionCount), -1); rb_define_alias(SwigClassGroupQuery.klass, "add_function", "addFunction"); rb_define_alias(SwigClassGroupQuery.klass, "key_field", "keyField"); rb_define_alias(SwigClassGroupQuery.klass, "get_key_fields", "getKeyFields"); rb_define_alias(SwigClassGroupQuery.klass, "get_function", "getFunction"); rb_define_alias(SwigClassGroupQuery.klass, "function_count", "functionCount"); SwigClassGroupQuery.mark = 0; SwigClassGroupQuery.destroy = (void (*)(void *)) free_bzs_groupQuery; SwigClassGroupQuery.trackObjects = 0; SwigClassSum.klass = rb_define_class_under(mTransactd, "Sum", ((swig_class *) SWIGTYPE_p_bzs__groupFuncBase->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__sum, (void *) &SwigClassSum); rb_define_alloc_func(SwigClassSum.klass, _wrap_sum_allocate); rb_define_method(SwigClassSum.klass, "initialize", VALUEFUNC(_wrap_new_sum), -1); SwigClassSum.mark = 0; SwigClassSum.destroy = (void (*)(void *)) free_bzs_sum; SwigClassSum.trackObjects = 0; SwigClassCount.klass = rb_define_class_under(mTransactd, "Count", ((swig_class *) SWIGTYPE_p_bzs__groupFuncBase->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__count, (void *) &SwigClassCount); rb_define_alloc_func(SwigClassCount.klass, _wrap_count_allocate); rb_define_method(SwigClassCount.klass, "initialize", VALUEFUNC(_wrap_new_count), -1); SwigClassCount.mark = 0; SwigClassCount.destroy = (void (*)(void *)) free_bzs_count; SwigClassCount.trackObjects = 0; SwigClassLast.klass = rb_define_class_under(mTransactd, "Last", ((swig_class *) SWIGTYPE_p_bzs__groupFuncBase->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__last, (void *) &SwigClassLast); rb_define_alloc_func(SwigClassLast.klass, _wrap_last_allocate); rb_define_method(SwigClassLast.klass, "initialize", VALUEFUNC(_wrap_new_last), -1); SwigClassLast.mark = 0; SwigClassLast.destroy = (void (*)(void *)) free_bzs_last; SwigClassLast.trackObjects = 0; SwigClassFirst.klass = rb_define_class_under(mTransactd, "First", ((swig_class *) SWIGTYPE_p_bzs__groupFuncBase->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__first, (void *) &SwigClassFirst); rb_define_alloc_func(SwigClassFirst.klass, _wrap_first_allocate); rb_define_method(SwigClassFirst.klass, "initialize", VALUEFUNC(_wrap_new_first), -1); SwigClassFirst.mark = 0; SwigClassFirst.destroy = (void (*)(void *)) free_bzs_first; SwigClassFirst.trackObjects = 0; SwigClassAvg.klass = rb_define_class_under(mTransactd, "Avg", ((swig_class *) SWIGTYPE_p_bzs__sum->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__avg, (void *) &SwigClassAvg); rb_define_alloc_func(SwigClassAvg.klass, _wrap_avg_allocate); rb_define_method(SwigClassAvg.klass, "initialize", VALUEFUNC(_wrap_new_avg), -1); SwigClassAvg.mark = 0; SwigClassAvg.destroy = (void (*)(void *)) free_bzs_avg; SwigClassAvg.trackObjects = 0; SwigClassMin.klass = rb_define_class_under(mTransactd, "Min", ((swig_class *) SWIGTYPE_p_bzs__sum->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__min, (void *) &SwigClassMin); rb_define_alloc_func(SwigClassMin.klass, _wrap_min_allocate); rb_define_method(SwigClassMin.klass, "initialize", VALUEFUNC(_wrap_new_min), -1); SwigClassMin.mark = 0; SwigClassMin.destroy = (void (*)(void *)) free_bzs_min; SwigClassMin.trackObjects = 0; SwigClassMax.klass = rb_define_class_under(mTransactd, "Max", ((swig_class *) SWIGTYPE_p_bzs__sum->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_bzs__max, (void *) &SwigClassMax); rb_define_alloc_func(SwigClassMax.klass, _wrap_max_allocate); rb_define_method(SwigClassMax.klass, "initialize", VALUEFUNC(_wrap_new_max), -1); SwigClassMax.mark = 0; SwigClassMax.destroy = (void (*)(void *)) free_bzs_max; SwigClassMax.trackObjects = 0; SwigClassRecordset.klass = rb_define_class_under(mTransactd, "Recordset", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__recordset, (void *) &SwigClassRecordset); rb_include_module(SwigClassRecordset.klass, rb_mEnumerable); rb_define_alloc_func(SwigClassRecordset.klass, _wrap_Recordset_allocate); rb_define_method(SwigClassRecordset.klass, "initialize", VALUEFUNC(_wrap_new_Recordset), -1); rb_define_method(SwigClassRecordset.klass, "clone", VALUEFUNC(_wrap_Recordset_clone), -1); rb_define_method(SwigClassRecordset.klass, "[]", VALUEFUNC(_wrap_Recordset___getitem__), -1); rb_define_method(SwigClassRecordset.klass, "first", VALUEFUNC(_wrap_Recordset_first), -1); rb_define_method(SwigClassRecordset.klass, "last", VALUEFUNC(_wrap_Recordset_last), -1); rb_define_method(SwigClassRecordset.klass, "size", VALUEFUNC(_wrap_Recordset_size), -1); rb_define_method(SwigClassRecordset.klass, "count", VALUEFUNC(_wrap_Recordset_count), -1); rb_define_method(SwigClassRecordset.klass, "clearRecords", VALUEFUNC(_wrap_Recordset_clearRecords), -1); rb_define_method(SwigClassRecordset.klass, "fieldDefs", VALUEFUNC(_wrap_Recordset_fieldDefs), -1); rb_define_method(SwigClassRecordset.klass, "clear", VALUEFUNC(_wrap_Recordset_clear), -1); rb_define_method(SwigClassRecordset.klass, "top", VALUEFUNC(_wrap_Recordset_top), -1); rb_define_method(SwigClassRecordset.klass, "erase", VALUEFUNC(_wrap_Recordset_erase), -1); rb_define_method(SwigClassRecordset.klass, "removeField", VALUEFUNC(_wrap_Recordset_removeField), -1); rb_define_method(SwigClassRecordset.klass, "join", VALUEFUNC(_wrap_Recordset_join), -1); rb_define_method(SwigClassRecordset.klass, "outerJoin", VALUEFUNC(_wrap_Recordset_outerJoin), -1); rb_define_method(SwigClassRecordset.klass, "matchBy", VALUEFUNC(_wrap_Recordset_matchBy), -1); rb_define_method(SwigClassRecordset.klass, "groupBy", VALUEFUNC(_wrap_Recordset_groupBy), -1); rb_define_method(SwigClassRecordset.klass, "orderBy", VALUEFUNC(_wrap_Recordset_orderBy), -1); rb_define_method(SwigClassRecordset.klass, "reverse", VALUEFUNC(_wrap_Recordset_reverse), -1); rb_define_method(SwigClassRecordset.klass, "appendField", VALUEFUNC(_wrap_Recordset_appendField), -1); rb_define_method(SwigClassRecordset.klass, "unionRecordset", VALUEFUNC(_wrap_Recordset_unionRecordset), -1); rb_define_method(SwigClassRecordset.klass, "fetchMode=", VALUEFUNC(_wrap_Recordset_fetchmode_set), -1); rb_define_method(SwigClassRecordset.klass, "fetchMode", VALUEFUNC(_wrap_Recordset_fetchmode_get), -1); rb_define_method(SwigClassRecordset.klass, "to_a", VALUEFUNC(_wrap_Recordset_to_a), -1); rb_define_method(SwigClassRecordset.klass, "getRecord", VALUEFUNC(_wrap_Recordset_getRecord), -1); rb_define_attr(SwigClassRecordset.klass, "fetchClass", 1, 1); rb_define_method(SwigClassRecordset.klass, "fetchClass=", VALUEFUNC(_wrap_RecordsetOrTable_fetchClass_set), -1); rb_define_attr(SwigClassRecordset.klass, "ctorArgs", 1, 1); rb_define_method(SwigClassRecordset.klass, "ctorArgs=", VALUEFUNC(_wrap_RecordsetOrTable_ctorArgs_set), -1); rb_define_alias(SwigClassRecordset.klass, "clear_records", "clearRecords"); rb_define_alias(SwigClassRecordset.klass, "field_defs", "fieldDefs"); rb_define_alias(SwigClassRecordset.klass, "remove_field", "removeField"); rb_define_alias(SwigClassRecordset.klass, "outer_join", "outerJoin"); rb_define_alias(SwigClassRecordset.klass, "match_by", "matchBy"); rb_define_alias(SwigClassRecordset.klass, "group_by", "groupBy"); rb_define_alias(SwigClassRecordset.klass, "order_by", "orderBy"); rb_define_alias(SwigClassRecordset.klass, "append_field", "appendField"); rb_define_alias(SwigClassRecordset.klass, "union_recordset", "unionRecordset"); rb_define_alias(SwigClassRecordset.klass, "fetch_mode=", "fetchMode="); rb_define_alias(SwigClassRecordset.klass, "fetch_mode", "fetchMode"); rb_define_alias(SwigClassRecordset.klass, "get_record", "getRecord"); rb_define_alias(SwigClassRecordset.klass, "fetch_class", "fetchClass"); rb_define_alias(SwigClassRecordset.klass, "fetch_class=", "fetchClass="); rb_define_alias(SwigClassRecordset.klass, "ctor_args", "ctorArgs"); rb_define_alias(SwigClassRecordset.klass, "ctor_args=", "ctorArgs="); SwigClassRecordset.mark = 0; SwigClassRecordset.destroy = (void (*)(void *)) free_bzs_recordset; SwigClassRecordset.trackObjects = 0; SwigClassPreparedQuery.klass = rb_define_class_under(mTransactd, "PreparedQuery", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__preparedQuery, (void *) &SwigClassPreparedQuery); rb_define_alloc_func(SwigClassPreparedQuery.klass, _wrap_preparedQuery_allocate); rb_define_method(SwigClassPreparedQuery.klass, "initialize", VALUEFUNC(_wrap_new_preparedQuery), -1); rb_define_method(SwigClassPreparedQuery.klass, "supplyValue", VALUEFUNC(_wrap_preparedQuery_supplyValue), -1); rb_define_method(SwigClassPreparedQuery.klass, "addValue", VALUEFUNC(_wrap_preparedQuery_addValue), -1); rb_define_method(SwigClassPreparedQuery.klass, "resetAddIndex", VALUEFUNC(_wrap_preparedQuery_resetAddIndex), -1); rb_define_alias(SwigClassPreparedQuery.klass, "supply_value", "supplyValue"); rb_define_alias(SwigClassPreparedQuery.klass, "add_value", "addValue"); rb_define_alias(SwigClassPreparedQuery.klass, "reset_add_index", "resetAddIndex"); SwigClassPreparedQuery.mark = 0; SwigClassPreparedQuery.destroy = (void (*)(void *)) free_bzs_preparedQuery; SwigClassPreparedQuery.trackObjects = 0; SwigClassActiveTable.klass = rb_define_class_under(mTransactd, "ActiveTable", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__activeTable, (void *) &SwigClassActiveTable); rb_define_alloc_func(SwigClassActiveTable.klass, _wrap_activeTable_allocate); rb_define_method(SwigClassActiveTable.klass, "initialize", VALUEFUNC(_wrap_new_activeTable), -1); rb_define_method(SwigClassActiveTable.klass, "alias", VALUEFUNC(_wrap_activeTable_alias), -1); rb_define_method(SwigClassActiveTable.klass, "resetAlias", VALUEFUNC(_wrap_activeTable_resetAlias), -1); rb_define_method(SwigClassActiveTable.klass, "getWritableRecord", VALUEFUNC(_wrap_activeTable_getWritableRecord), -1); rb_define_method(SwigClassActiveTable.klass, "index", VALUEFUNC(_wrap_activeTable_index), -1); rb_define_method(SwigClassActiveTable.klass, "option", VALUEFUNC(_wrap_activeTable_option), -1); rb_define_method(SwigClassActiveTable.klass, "read", VALUEFUNC(_wrap_activeTable_read), -1); rb_define_method(SwigClassActiveTable.klass, "readMore", VALUEFUNC(_wrap_activeTable_readMore), -1); rb_define_method(SwigClassActiveTable.klass, "prepare", VALUEFUNC(_wrap_activeTable_prepare), -1); rb_define_method(SwigClassActiveTable.klass, "join", VALUEFUNC(_wrap_activeTable_join), -1); rb_define_method(SwigClassActiveTable.klass, "outerJoin", VALUEFUNC(_wrap_activeTable_outerJoin), -1); rb_define_method(SwigClassActiveTable.klass, "release", VALUEFUNC(_wrap_activeTable_release), -1); rb_define_method(SwigClassActiveTable.klass, "table", VALUEFUNC(_wrap_activeTable_table), -1); rb_define_method(SwigClassActiveTable.klass, "keyValue", VALUEFUNC(_wrap_activeTable_keyValue), -1); rb_define_alias(SwigClassActiveTable.klass, "reset_alias", "resetAlias"); rb_define_alias(SwigClassActiveTable.klass, "get_writable_record", "getWritableRecord"); rb_define_alias(SwigClassActiveTable.klass, "read_more", "readMore"); rb_define_alias(SwigClassActiveTable.klass, "outer_join", "outerJoin"); rb_define_alias(SwigClassActiveTable.klass, "key_value", "keyValue"); SwigClassActiveTable.mark = (void (*)(void *)) mark_activeTable; SwigClassActiveTable.destroy = (void (*)(void *)) free_bzs_activeTable; SwigClassActiveTable.trackObjects = 1; SwigClassPooledDbManager.klass = rb_define_class_under(mTransactd, "PooledDbManager", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_bzs__pooledDbManager, (void *) &SwigClassPooledDbManager); rb_define_alloc_func(SwigClassPooledDbManager.klass, _wrap_pooledDbManager_allocate); rb_define_method(SwigClassPooledDbManager.klass, "initialize", VALUEFUNC(_wrap_new_pooledDbManager), -1); rb_define_method(SwigClassPooledDbManager.klass, "use", VALUEFUNC(_wrap_pooledDbManager_use), -1); rb_define_method(SwigClassPooledDbManager.klass, "unUse", VALUEFUNC(_wrap_pooledDbManager_unUse), -1); rb_define_method(SwigClassPooledDbManager.klass, "reset", VALUEFUNC(_wrap_pooledDbManager_reset), -1); rb_define_method(SwigClassPooledDbManager.klass, "db", VALUEFUNC(_wrap_pooledDbManager_db), -1); rb_define_method(SwigClassPooledDbManager.klass, "uri", VALUEFUNC(_wrap_pooledDbManager_uri), -1); rb_define_method(SwigClassPooledDbManager.klass, "mode", VALUEFUNC(_wrap_pooledDbManager_mode), -1); rb_define_method(SwigClassPooledDbManager.klass, "isOpened", VALUEFUNC(_wrap_pooledDbManager_isOpened), -1); rb_define_method(SwigClassPooledDbManager.klass, "setOption", VALUEFUNC(_wrap_pooledDbManager_setOption), -1); rb_define_method(SwigClassPooledDbManager.klass, "option", VALUEFUNC(_wrap_pooledDbManager_option), -1); rb_define_method(SwigClassPooledDbManager.klass, "beginTrn", VALUEFUNC(_wrap_pooledDbManager_beginTrn), -1); rb_define_method(SwigClassPooledDbManager.klass, "endTrn", VALUEFUNC(_wrap_pooledDbManager_endTrn), -1); rb_define_method(SwigClassPooledDbManager.klass, "abortTrn", VALUEFUNC(_wrap_pooledDbManager_abortTrn), -1); rb_define_method(SwigClassPooledDbManager.klass, "enableTrn", VALUEFUNC(_wrap_pooledDbManager_enableTrn), -1); rb_define_method(SwigClassPooledDbManager.klass, "beginSnapshot", VALUEFUNC(_wrap_pooledDbManager_beginSnapshot), -1); rb_define_method(SwigClassPooledDbManager.klass, "endSnapshot", VALUEFUNC(_wrap_pooledDbManager_endSnapshot), -1); rb_define_method(SwigClassPooledDbManager.klass, "stat", VALUEFUNC(_wrap_pooledDbManager_stat), -1); rb_define_method(SwigClassPooledDbManager.klass, "clientID", VALUEFUNC(_wrap_pooledDbManager_clientID), -1); rb_define_singleton_method(SwigClassPooledDbManager.klass, "setMaxConnections", VALUEFUNC(_wrap_pooledDbManager_setMaxConnections), -1); rb_define_singleton_method(SwigClassPooledDbManager.klass, "maxConnections", VALUEFUNC(_wrap_pooledDbManager_maxConnections), -1); rb_define_singleton_method(SwigClassPooledDbManager.klass, "reserve", VALUEFUNC(_wrap_pooledDbManager_reserve), -1); rb_define_method(SwigClassPooledDbManager.klass, "usingCount", VALUEFUNC(_wrap_pooledDbManager_usingCount), -1); rb_define_method(SwigClassPooledDbManager.klass, "table", VALUEFUNC(_wrap_pooledDbManager_table), -1); rb_define_alias(SwigClassPooledDbManager.klass, "un_use", "unUse"); rb_define_alias(SwigClassPooledDbManager.klass, "is_opened", "isOpened"); rb_define_alias(SwigClassPooledDbManager.klass, "set_option", "setOption"); rb_define_alias(SwigClassPooledDbManager.klass, "begin_trn", "beginTrn"); rb_define_alias(SwigClassPooledDbManager.klass, "end_trn", "endTrn"); rb_define_alias(SwigClassPooledDbManager.klass, "abort_trn", "abortTrn"); rb_define_alias(SwigClassPooledDbManager.klass, "enable_trn", "enableTrn"); rb_define_alias(SwigClassPooledDbManager.klass, "begin_snapshot", "beginSnapshot"); rb_define_alias(SwigClassPooledDbManager.klass, "end_snapshot", "endSnapshot"); rb_define_alias(SwigClassPooledDbManager.klass, "client_i_d", "clientID"); rb_define_singleton_method(SwigClassPooledDbManager.klass, "set_max_connections", VALUEFUNC(_wrap_pooledDbManager_setMaxConnections), -1); rb_define_singleton_method(SwigClassPooledDbManager.klass, "max_connections", VALUEFUNC(_wrap_pooledDbManager_maxConnections), -1); rb_define_alias(SwigClassPooledDbManager.klass, "using_count", "usingCount"); rb_define_alias(SwigClassPooledDbManager.klass, "is_opened?", "isOpened"); rb_define_alias(SwigClassPooledDbManager.klass, "option=", "setOption"); rb_define_singleton_method(SwigClassPooledDbManager.klass, "max_connections=", VALUEFUNC(_wrap_pooledDbManager_setMaxConnections), -1); SwigClassPooledDbManager.mark = 0; SwigClassPooledDbManager.destroy = (void (*)(void *)) free_bzs_pooledDbManager; SwigClassPooledDbManager.trackObjects = 0; SwigClassHaNameResolver.klass = rb_define_class_under(mTransactd, "HaNameResolver", rb_cObject); rb_define_singleton_method(SwigClassHaNameResolver.klass, "start", VALUEFUNC(_wrap_haNameResolver_start), -1); rb_define_singleton_method(SwigClassHaNameResolver.klass, "addPortMap", VALUEFUNC(_wrap_haNameResolver_addPortMap), -1); rb_define_singleton_method(SwigClassHaNameResolver.klass, "clearPortMap", VALUEFUNC(_wrap_haNameResolver_clearPortMap), -1); rb_define_singleton_method(SwigClassHaNameResolver.klass, "stop", VALUEFUNC(_wrap_haNameResolver_stop), -1); rb_define_singleton_method(SwigClassHaNameResolver.klass, "master", VALUEFUNC(_wrap_haNameResolver_master), -1); rb_define_singleton_method(SwigClassHaNameResolver.klass, "slave", VALUEFUNC(_wrap_haNameResolver_slave), -1); rb_define_singleton_method(SwigClassHaNameResolver.klass, "add_port_map", VALUEFUNC(_wrap_haNameResolver_addPortMap), -1); rb_define_singleton_method(SwigClassHaNameResolver.klass, "clear_port_map", VALUEFUNC(_wrap_haNameResolver_clearPortMap), -1); SwigClassHaNameResolver.mark = 0; SwigClassHaNameResolver.trackObjects = 0; }