transactd 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/{BUILD_UNIX-JA → BUILD_UNIX-JA.md} +6 -6
  3. data/CMakeLists.txt +20 -15
  4. data/{README-JA → README-JA.md} +23 -23
  5. data/{README → README.md} +22 -24
  6. data/RELEASE_NOTE +120 -0
  7. data/RELEASE_NOTE-JA +110 -0
  8. data/bin/common/tdclc_32_2_4.dll +0 -0
  9. data/bin/common/tdclc_64_2_4.dll +0 -0
  10. data/build/common/get_ruby_path.cmake +1 -1
  11. data/build/swig/ruby/tdclrb_wrap.cpp +1319 -830
  12. data/build/swig/tdcl.i +22 -2
  13. data/build/tdclc/tdclc.cbproj +1 -1
  14. data/build/tdclc/tdclc.rc +4 -4
  15. data/build/tdclcpp/tdclcpp.rc +4 -4
  16. data/build/tdclcpp/tdclcpp_bc.cbproj +2 -1
  17. data/build/tdclrb/CMakeLists.txt +6 -1
  18. data/build/tdclrb/bldgem/extconf.rb +5 -1
  19. data/build/tdclrb/tdclrb.rc +4 -4
  20. data/source/bzs/db/engine/mysql/database.cpp +44 -40
  21. data/source/bzs/db/engine/mysql/database.h +28 -8
  22. data/source/bzs/db/engine/mysql/dbManager.cpp +2 -0
  23. data/source/bzs/db/engine/mysql/dbManager.h +2 -7
  24. data/source/bzs/db/engine/mysql/mysqlInternal.h +79 -7
  25. data/source/bzs/db/protocol/hs/hsCommandExecuter.h +5 -1
  26. data/source/bzs/db/protocol/tdap/client/activeTable.cpp +32 -8
  27. data/source/bzs/db/protocol/tdap/client/activeTable.h +17 -4
  28. data/source/bzs/db/protocol/tdap/client/activeTableImple.h +10 -4
  29. data/source/bzs/db/protocol/tdap/client/client.cpp +51 -6
  30. data/source/bzs/db/protocol/tdap/client/client.h +41 -11
  31. data/source/bzs/db/protocol/tdap/client/connMgr.cpp +51 -15
  32. data/source/bzs/db/protocol/tdap/client/connMgr.h +6 -1
  33. data/source/bzs/db/protocol/tdap/client/database.cpp +26 -5
  34. data/source/bzs/db/protocol/tdap/client/database.h +3 -2
  35. data/source/bzs/db/protocol/tdap/client/dbDef.cpp +38 -28
  36. data/source/bzs/db/protocol/tdap/client/dbDef.h +1 -1
  37. data/source/bzs/db/protocol/tdap/client/dllmain.cpp +2 -32
  38. data/source/bzs/db/protocol/tdap/client/field.cpp +0 -1
  39. data/source/bzs/db/protocol/tdap/client/filter.h +60 -33
  40. data/source/bzs/db/protocol/tdap/client/groupQuery.cpp +2 -5
  41. data/source/bzs/db/protocol/tdap/client/memRecord.cpp +9 -0
  42. data/source/bzs/db/protocol/tdap/client/memRecord.h +1 -0
  43. data/source/bzs/db/protocol/tdap/client/nsDatabase.cpp +99 -48
  44. data/source/bzs/db/protocol/tdap/client/nsDatabase.h +5 -2
  45. data/source/bzs/db/protocol/tdap/client/nsTable.cpp +76 -26
  46. data/source/bzs/db/protocol/tdap/client/nsTable.h +6 -4
  47. data/source/bzs/db/protocol/tdap/client/request.h +28 -11
  48. data/source/bzs/db/protocol/tdap/client/sqlBuilder.cpp +19 -11
  49. data/source/bzs/db/protocol/tdap/client/table.cpp +157 -70
  50. data/source/bzs/db/protocol/tdap/client/table.h +20 -5
  51. data/source/bzs/db/protocol/tdap/client/trdboostapi.h +57 -4
  52. data/source/bzs/db/protocol/tdap/client/trdormapi.h +55 -20
  53. data/source/bzs/db/protocol/tdap/mysql/databaseSchema.cpp +65 -31
  54. data/source/bzs/db/protocol/tdap/mysql/databaseSchema.h +2 -0
  55. data/source/bzs/db/protocol/tdap/mysql/recordsetReader.h +24 -36
  56. data/source/bzs/db/protocol/tdap/mysql/request.h +1 -1
  57. data/source/bzs/db/protocol/tdap/mysql/tdapCommandExecuter.cpp +98 -18
  58. data/source/bzs/db/protocol/tdap/mysql/tdapCommandExecuter.h +12 -7
  59. data/source/bzs/db/protocol/tdap/tdapRequest.h +3 -8
  60. data/source/bzs/db/protocol/tdap/tdapSchema.cpp +1 -9
  61. data/source/bzs/db/protocol/tdap/tdapSchema.h +31 -1
  62. data/source/bzs/db/protocol/tdap/tdapcapi.h +49 -6
  63. data/source/bzs/db/protocol/tdap/uri.h +41 -6
  64. data/source/bzs/db/transactd/appModule.cpp +0 -1
  65. data/source/bzs/db/transactd/appModule.h +0 -2
  66. data/source/bzs/db/transactd/connManager.cpp +202 -33
  67. data/source/bzs/db/transactd/connManager.h +11 -4
  68. data/source/bzs/db/transactd/connectionRecord.h +19 -5
  69. data/source/bzs/db/transactd/transactd.cpp +39 -8
  70. data/source/bzs/env/crosscompile.cpp +1 -1
  71. data/source/bzs/example/queryData.cpp +1 -1
  72. data/source/bzs/netsvc/client/iconnection.h +2 -0
  73. data/source/bzs/netsvc/client/tcpClient.cpp +48 -26
  74. data/source/bzs/netsvc/client/tcpClient.h +171 -106
  75. data/source/bzs/netsvc/server/IAppModule.h +0 -1
  76. data/source/bzs/netsvc/server/serverPipe.cpp +5 -1
  77. data/source/bzs/netsvc/server/serverPipe.h +2 -1
  78. data/source/bzs/test/tdclatl/test_query_atl.js +105 -0
  79. data/source/bzs/test/tdclphp/transactd_Test.php +129 -11
  80. data/source/bzs/test/tdclrb/transactd_spec.rb +74 -2
  81. data/source/bzs/test/transactdBench/scaling_bench.cpp +1 -1
  82. data/source/bzs/test/trdclengn/test_trdclengn.cpp +45 -20
  83. data/source/global/tdclatl/Bookmark.cpp +28 -0
  84. data/source/global/tdclatl/Bookmark.h +65 -0
  85. data/source/global/tdclatl/Database.cpp +2 -2
  86. data/source/global/tdclatl/Database.h +1 -3
  87. data/source/global/tdclatl/DbDef.cpp +6 -0
  88. data/source/global/tdclatl/DbDef.h +1 -0
  89. data/source/global/tdclatl/QueryBase.cpp +29 -0
  90. data/source/global/tdclatl/QueryBase.h +4 -0
  91. data/source/global/tdclatl/Record.cpp +14 -2
  92. data/source/global/tdclatl/Record.h +1 -1
  93. data/source/global/tdclatl/Table.cpp +80 -16
  94. data/source/global/tdclatl/Table.h +23 -8
  95. data/source/global/tdclatl/_IDatabaseEvents_CP.h +39 -0
  96. data/source/global/tdclatl/activeTable.cpp +2 -2
  97. data/source/global/tdclatl/activeTable.h +1 -1
  98. data/source/global/tdclatl/tdclatl.idl +64 -14
  99. metadata +12 -12
  100. data/bin/common/tdclc_32_2_3.dll +0 -0
  101. data/bin/common/tdclc_64_2_3.dll +0 -0
  102. data/build/tdclcpp/BUILDNUMBER.txt +0 -1
  103. data/build/tdclrb/BUILDNUMBER.txt +0 -1
  104. /data/{BUILD_WIN-JA → BUILD_WIN-JA.md} +0 -0
  105. /data/{README_ORMSRCGEN-JA → README_ORMSRCGEN-JA.md} +0 -0
  106. /data/{README_ORMSRCGEN → README_ORMSRCGEN.md} +0 -0
@@ -48,6 +48,18 @@ template <typename T> T SwigValueInit() {
48
48
  }
49
49
  #endif
50
50
 
51
+
52
+ struct SWIG_CHAR
53
+ {
54
+ int alloc;
55
+ char* str;
56
+ SWIG_CHAR() :alloc(0), str(0){}
57
+ ~SWIG_CHAR()
58
+ {
59
+ if (alloc) delete[] str;
60
+ }
61
+ };
62
+
51
63
  /* -----------------------------------------------------------------------------
52
64
  * This section contains generic SWIG labels for method/variable
53
65
  * declarations/attributes, and other compiler dependent labels.
@@ -1909,8 +1921,9 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1909
1921
  #define SWIGTYPE_p_bzs__db__protocol__tdap__client__last swig_types[88]
1910
1922
  #define SWIGTYPE_p_bzs__db__protocol__tdap__client__first swig_types[89]
1911
1923
  #define SWIGTYPE_p_bzs__db__protocol__tdap__client__sortField swig_types[90]
1912
- static swig_type_info *swig_types[92];
1913
- static swig_module_info swig_module = {swig_types, 91, 0, 0, 0, 0};
1924
+ #define SWIGTYPE_p_BOOKMARK swig_types[91]
1925
+ static swig_type_info *swig_types[93];
1926
+ static swig_module_info swig_module = {swig_types, 92, 0, 0, 0, 0};
1914
1927
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1915
1928
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1916
1929
 
@@ -2760,9 +2773,9 @@ SWIGINTERN bzs::db::protocol::tdap::client::activeTable *new_bzs_db_protocol_tda
2760
2773
  g_vPtrList.add(p->table().get());
2761
2774
  return p;
2762
2775
  }
2763
- SWIGINTERN bzs::db::protocol::tdap::client::activeTable *new_bzs_db_protocol_tdap_client_activeTable__SWIG_1(bzs::db::protocol::tdap::client::database *db,_TCHAR const *tableName){
2776
+ SWIGINTERN bzs::db::protocol::tdap::client::activeTable *new_bzs_db_protocol_tdap_client_activeTable__SWIG_1(bzs::db::protocol::tdap::client::database *db,_TCHAR const *tableName, short mode){
2764
2777
  bzs::db::protocol::tdap::client::activeTable* p =
2765
- bzs::db::protocol::tdap::client::activeTable::create(db, tableName);
2778
+ bzs::db::protocol::tdap::client::activeTable::create(db, tableName, mode);
2766
2779
  g_refCounter.add(p, db);
2767
2780
  g_vPtrList.add(p->table().get());
2768
2781
  return p;
@@ -2780,6 +2793,127 @@ SWIGINTERN bzs::db::protocol::tdap::client::table *bzs_db_protocol_tdap_client_a
2780
2793
  SWIGINTERN bzs::db::protocol::tdap::client::table *bzs_db_protocol_tdap_client_pooledDbManager_table(bzs::db::protocol::tdap::client::pooledDbManager *self,_TCHAR const *name){
2781
2794
  return self->table(name).get();
2782
2795
  }
2796
+ static swig_class SwigClassBOOKMARK;
2797
+
2798
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
2799
+ SWIGINTERN VALUE
2800
+ _wrap_BOOKMARK_allocate(VALUE self) {
2801
+ #else
2802
+ SWIGINTERN VALUE
2803
+ _wrap_BOOKMARK_allocate(int argc, VALUE *argv, VALUE self) {
2804
+ #endif
2805
+
2806
+
2807
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_BOOKMARK);
2808
+ #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
2809
+ rb_obj_call_init(vresult, argc, argv);
2810
+ #endif
2811
+ return vresult;
2812
+ }
2813
+
2814
+
2815
+ SWIGINTERN VALUE
2816
+ _wrap_new_BOOKMARK(int argc, VALUE *argv, VALUE self) {
2817
+ BOOKMARK *result = 0;
2818
+
2819
+ if ((argc < 0) || (argc > 0)) {
2820
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
2821
+ }
2822
+ {
2823
+ try {
2824
+ result = (BOOKMARK *)new BOOKMARK();
2825
+ DATA_PTR(self) = result;
2826
+ }
2827
+ catch (bzs::rtl::exception& e) {
2828
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
2829
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
2830
+ }
2831
+ catch (std::exception &e) {
2832
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
2833
+ rb_raise(cpp_std_error, e.what());
2834
+ }
2835
+ }
2836
+ return self;
2837
+ fail:
2838
+ return Qnil;
2839
+ }
2840
+
2841
+
2842
+ SWIGINTERN VALUE
2843
+ _wrap_BOOKMARK_isEmpty(int argc, VALUE *argv, VALUE self) {
2844
+ BOOKMARK *arg1 = (BOOKMARK *)0;
2845
+ void *argp1 = 0;
2846
+ int res1 = 0;
2847
+ bool result;
2848
+ VALUE vresult = Qnil;
2849
+
2850
+ if ((argc < 0) || (argc > 0)) {
2851
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
2852
+ }
2853
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_BOOKMARK, 0 | 0);
2854
+ if (!SWIG_IsOK(res1)) {
2855
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "BOOKMARK *", "isEmpty", 1, self));
2856
+ }
2857
+ arg1 = reinterpret_cast< BOOKMARK * >(argp1);
2858
+ {
2859
+ try {
2860
+ result = (bool)(arg1)->isEmpty();
2861
+ }
2862
+ catch (bzs::rtl::exception& e) {
2863
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
2864
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
2865
+ }
2866
+ catch (std::exception &e) {
2867
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
2868
+ rb_raise(cpp_std_error, e.what());
2869
+ }
2870
+ }
2871
+ vresult = SWIG_From_bool(static_cast< bool >(result));
2872
+ return vresult;
2873
+ fail:
2874
+ return Qnil;
2875
+ }
2876
+
2877
+
2878
+ SWIGINTERN void
2879
+ free_BOOKMARK(BOOKMARK *arg1) {
2880
+ delete arg1;
2881
+ }
2882
+
2883
+ SWIGINTERN VALUE
2884
+ _wrap_canRecoverNetError(int argc, VALUE *argv, VALUE self) {
2885
+ short arg1;
2886
+ short val1;
2887
+ int ecode1 = 0;
2888
+ bool result;
2889
+ VALUE vresult = Qnil;
2890
+
2891
+ if ((argc < 1) || (argc > 1)) {
2892
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
2893
+ }
2894
+ ecode1 = SWIG_AsVal_short(argv[0], &val1);
2895
+ if (!SWIG_IsOK(ecode1)) {
2896
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError("", "short", "canRecoverNetError", 1, argv[0]));
2897
+ }
2898
+ arg1 = static_cast< short >(val1);
2899
+ {
2900
+ try {
2901
+ result = (bool)canRecoverNetError(arg1);
2902
+ }
2903
+ catch (bzs::rtl::exception& e) {
2904
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
2905
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
2906
+ }
2907
+ catch (std::exception &e) {
2908
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
2909
+ rb_raise(cpp_std_error, e.what());
2910
+ }
2911
+ }
2912
+ vresult = SWIG_From_bool(static_cast< bool >(result));
2913
+ return vresult;
2914
+ fail:
2915
+ return Qnil;
2916
+ }
2783
2917
 
2784
2918
 
2785
2919
  static swig_class SwigClassFLAGS;
@@ -10067,6 +10201,42 @@ fail:
10067
10201
  }
10068
10202
 
10069
10203
 
10204
+ SWIGINTERN VALUE
10205
+ _wrap_nstable_bookmarkLen(int argc, VALUE *argv, VALUE self) {
10206
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10207
+ void *argp1 = 0;
10208
+ int res1 = 0;
10209
+ ushort_td result;
10210
+ VALUE vresult = Qnil;
10211
+
10212
+ if ((argc < 0) || (argc > 0)) {
10213
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
10214
+ }
10215
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10216
+ if (!SWIG_IsOK(res1)) {
10217
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable const *", "bookmarkLen", 1, self));
10218
+ }
10219
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10220
+ {
10221
+ try {
10222
+ result = (ushort_td)((bzs::db::protocol::tdap::client::nstable const *)arg1)->bookmarkLen();
10223
+ }
10224
+ catch (bzs::rtl::exception& e) {
10225
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10226
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10227
+ }
10228
+ catch (std::exception &e) {
10229
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10230
+ rb_raise(cpp_std_error, e.what());
10231
+ }
10232
+ }
10233
+ vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
10234
+ return vresult;
10235
+ fail:
10236
+ return Qnil;
10237
+ }
10238
+
10239
+
10070
10240
  SWIGINTERN VALUE
10071
10241
  _wrap_nstable_bookmark(int argc, VALUE *argv, VALUE self) {
10072
10242
  bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
@@ -10094,315 +10264,331 @@ _wrap_nstable_bookmark(int argc, VALUE *argv, VALUE self) {
10094
10264
  rb_raise(cpp_std_error, e.what());
10095
10265
  }
10096
10266
  }
10097
- vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
10267
+ vresult = SWIG_NewPointerObj((new bookmark_td(static_cast< const bookmark_td& >(result))), SWIGTYPE_p_BOOKMARK, SWIG_POINTER_OWN | 0);
10098
10268
  return vresult;
10099
10269
  fail:
10100
10270
  return Qnil;
10101
10271
  }
10102
10272
 
10103
10273
 
10104
- SWIGINTERN VALUE
10105
- _wrap_nstable_seekByBookmark__SWIG_0(int argc, VALUE *argv, VALUE self) {
10106
- bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
10107
- bookmark_td arg2 ;
10108
- ushort_td arg3 ;
10109
- void *argp1 = 0 ;
10110
- int res1 = 0 ;
10111
- unsigned int val2 ;
10112
- int ecode2 = 0 ;
10113
- unsigned short val3 ;
10114
- int ecode3 = 0 ;
10115
-
10116
- if ((argc < 2) || (argc > 2)) {
10117
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
10118
- }
10119
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0 );
10120
- if (!SWIG_IsOK(res1)) {
10121
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nstable *","seekByBookmark", 1, self ));
10122
- }
10123
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10124
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
10125
- if (!SWIG_IsOK(ecode2)) {
10126
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bookmark_td","seekByBookmark", 2, argv[0] ));
10127
- }
10128
- arg2 = static_cast< bookmark_td >(val2);
10129
- ecode3 = SWIG_AsVal_unsigned_SS_short(argv[1], &val3);
10130
- if (!SWIG_IsOK(ecode3)) {
10131
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ushort_td","seekByBookmark", 3, argv[1] ));
10132
- }
10133
- arg3 = static_cast< ushort_td >(val3);
10134
- {
10135
- try {
10136
- (arg1)->seekByBookmark(arg2,arg3);
10137
- } catch (bzs::rtl::exception& e) {
10138
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10139
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
10140
- } catch (std::exception &e) {
10141
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10142
- rb_raise(cpp_std_error, e.what());
10143
- }
10144
- }
10145
- return Qnil;
10146
- fail:
10147
- return Qnil;
10148
- }
10149
-
10150
-
10151
- SWIGINTERN VALUE
10152
- _wrap_nstable_seekByBookmark__SWIG_1(int argc, VALUE *argv, VALUE self) {
10153
- bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
10154
- bookmark_td arg2 ;
10155
- void *argp1 = 0 ;
10156
- int res1 = 0 ;
10157
- unsigned int val2 ;
10158
- int ecode2 = 0 ;
10159
-
10160
- if ((argc < 1) || (argc > 1)) {
10161
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10162
- }
10163
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0 );
10164
- if (!SWIG_IsOK(res1)) {
10165
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nstable *","seekByBookmark", 1, self ));
10166
- }
10167
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10168
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
10169
- if (!SWIG_IsOK(ecode2)) {
10170
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bookmark_td","seekByBookmark", 2, argv[0] ));
10171
- }
10172
- arg2 = static_cast< bookmark_td >(val2);
10173
- {
10174
- try {
10175
- (arg1)->seekByBookmark(arg2);
10176
- } catch (bzs::rtl::exception& e) {
10177
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10178
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
10179
- } catch (std::exception &e) {
10180
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10181
- rb_raise(cpp_std_error, e.what());
10182
- }
10183
- }
10184
- return Qnil;
10185
- fail:
10186
- return Qnil;
10187
- }
10188
-
10189
-
10190
10274
  SWIGINTERN VALUE
10191
10275
  _wrap_nstable_seekByBookmark__SWIG_2(int argc, VALUE *argv, VALUE self) {
10192
- bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
10193
- void *argp1 = 0 ;
10194
- int res1 = 0 ;
10195
-
10196
- if ((argc < 0) || (argc > 0)) {
10197
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10198
- }
10199
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0 );
10200
- if (!SWIG_IsOK(res1)) {
10201
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nstable *","seekByBookmark", 1, self ));
10202
- }
10203
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10204
- {
10205
- try {
10206
- (arg1)->seekByBookmark();
10207
- } catch (bzs::rtl::exception& e) {
10208
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10209
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
10210
- } catch (std::exception &e) {
10211
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10212
- rb_raise(cpp_std_error, e.what());
10213
- }
10214
- }
10215
- return Qnil;
10216
- fail:
10217
- return Qnil;
10276
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10277
+ bookmark_td *arg2 = 0;
10278
+ ushort_td arg3;
10279
+ void *argp1 = 0;
10280
+ int res1 = 0;
10281
+ void *argp2 = 0;
10282
+ int res2 = 0;
10283
+ unsigned short val3;
10284
+ int ecode3 = 0;
10285
+
10286
+ if ((argc < 2) || (argc > 2)) {
10287
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)", argc); SWIG_fail;
10288
+ }
10289
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10290
+ if (!SWIG_IsOK(res1)) {
10291
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "seekByBookmark", 1, self));
10292
+ }
10293
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10294
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0);
10295
+ if (!SWIG_IsOK(res2)) {
10296
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "seekByBookmark", 2, argv[0]));
10297
+ }
10298
+ if (!argp2) {
10299
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "seekByBookmark", 2, argv[0]));
10300
+ }
10301
+ arg2 = reinterpret_cast< bookmark_td * >(argp2);
10302
+ ecode3 = SWIG_AsVal_unsigned_SS_short(argv[1], &val3);
10303
+ if (!SWIG_IsOK(ecode3)) {
10304
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError("", "ushort_td", "seekByBookmark", 3, argv[1]));
10305
+ }
10306
+ arg3 = static_cast< ushort_td >(val3);
10307
+ {
10308
+ try {
10309
+ (arg1)->seekByBookmark(*arg2, arg3);
10310
+ }
10311
+ catch (bzs::rtl::exception& e) {
10312
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10313
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10314
+ }
10315
+ catch (std::exception &e) {
10316
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10317
+ rb_raise(cpp_std_error, e.what());
10318
+ }
10319
+ }
10320
+ return Qnil;
10321
+ fail:
10322
+ return Qnil;
10323
+ }
10324
+
10325
+
10326
+ SWIGINTERN VALUE
10327
+ _wrap_nstable_seekByBookmark__SWIG_3(int argc, VALUE *argv, VALUE self) {
10328
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10329
+ bookmark_td *arg2 = 0;
10330
+ void *argp1 = 0;
10331
+ int res1 = 0;
10332
+ void *argp2 = 0;
10333
+ int res2 = 0;
10334
+
10335
+ if ((argc < 1) || (argc > 1)) {
10336
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
10337
+ }
10338
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10339
+ if (!SWIG_IsOK(res1)) {
10340
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "seekByBookmark", 1, self));
10341
+ }
10342
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10343
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0);
10344
+ if (!SWIG_IsOK(res2)) {
10345
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "seekByBookmark", 2, argv[0]));
10346
+ }
10347
+ if (!argp2) {
10348
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "seekByBookmark", 2, argv[0]));
10349
+ }
10350
+ arg2 = reinterpret_cast< bookmark_td * >(argp2);
10351
+ {
10352
+ try {
10353
+ (arg1)->seekByBookmark(*arg2);
10354
+ }
10355
+ catch (bzs::rtl::exception& e) {
10356
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10357
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10358
+ }
10359
+ catch (std::exception &e) {
10360
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10361
+ rb_raise(cpp_std_error, e.what());
10362
+ }
10363
+ }
10364
+ return Qnil;
10365
+ fail:
10366
+ return Qnil;
10367
+ }
10368
+
10369
+
10370
+ SWIGINTERN VALUE
10371
+ _wrap_nstable_seekByBookmark__SWIG_4(int argc, VALUE *argv, VALUE self) {
10372
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10373
+ void *argp1 = 0;
10374
+ int res1 = 0;
10375
+
10376
+ if ((argc < 0) || (argc > 0)) {
10377
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
10378
+ }
10379
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10380
+ if (!SWIG_IsOK(res1)) {
10381
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "seekByBookmark", 1, self));
10382
+ }
10383
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10384
+ {
10385
+ try {
10386
+ (arg1)->seekByBookmark();
10387
+ }
10388
+ catch (bzs::rtl::exception& e) {
10389
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10390
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10391
+ }
10392
+ catch (std::exception &e) {
10393
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10394
+ rb_raise(cpp_std_error, e.what());
10395
+ }
10396
+ }
10397
+ return Qnil;
10398
+ fail:
10399
+ return Qnil;
10218
10400
  }
10219
10401
 
10220
10402
 
10221
10403
  SWIGINTERN VALUE _wrap_nstable_seekByBookmark(int nargs, VALUE *args, VALUE self) {
10222
- int argc;
10223
- VALUE argv[4];
10224
- int ii;
10225
-
10226
- argc = nargs + 1;
10227
- argv[0] = self;
10228
- if (argc > 4) SWIG_fail;
10229
- for (ii = 1; (ii < argc); ++ii) {
10230
- argv[ii] = args[ii-1];
10231
- }
10232
- if (argc == 1) {
10233
- int _v;
10234
- void *vptr = 0;
10235
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10236
- _v = SWIG_CheckState(res);
10237
- if (_v) {
10238
- return _wrap_nstable_seekByBookmark__SWIG_2(nargs, args, self);
10239
- }
10240
- }
10241
- if (argc == 2) {
10242
- int _v;
10243
- void *vptr = 0;
10244
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10245
- _v = SWIG_CheckState(res);
10246
- if (_v) {
10247
- {
10248
- int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
10249
- _v = SWIG_CheckState(res);
10250
- }
10251
- if (_v) {
10252
- return _wrap_nstable_seekByBookmark__SWIG_1(nargs, args, self);
10253
- }
10254
- }
10255
- }
10256
- if (argc == 3) {
10257
- int _v;
10258
- void *vptr = 0;
10259
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10260
- _v = SWIG_CheckState(res);
10261
- if (_v) {
10262
- {
10263
- int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
10264
- _v = SWIG_CheckState(res);
10265
- }
10266
- if (_v) {
10267
- {
10268
- int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL);
10269
- _v = SWIG_CheckState(res);
10270
- }
10271
- if (_v) {
10272
- return _wrap_nstable_seekByBookmark__SWIG_0(nargs, args, self);
10273
- }
10274
- }
10275
- }
10276
- }
10277
-
10278
- fail:
10279
- Ruby_Format_OverloadedError( argc, 4, "nstable.seekByBookmark",
10280
- " void nstable.seekByBookmark(bookmark_td bm, ushort_td lockBias)\n"
10281
- " void nstable.seekByBookmark(bookmark_td bm)\n"
10282
- " void nstable.seekByBookmark()\n");
10283
-
10284
- return Qnil;
10404
+ int argc;
10405
+ VALUE argv[4];
10406
+ int ii;
10407
+
10408
+ argc = nargs + 1;
10409
+ argv[0] = self;
10410
+ if (argc > 4) SWIG_fail;
10411
+ for (ii = 1; (ii < argc); ++ii) {
10412
+ argv[ii] = args[ii - 1];
10413
+ }
10414
+ if (argc == 1) {
10415
+ int _v;
10416
+ void *vptr = 0;
10417
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10418
+ _v = SWIG_CheckState(res);
10419
+ if (_v) {
10420
+ return _wrap_nstable_seekByBookmark__SWIG_4(nargs, args, self);
10421
+ }
10422
+ }
10423
+ if (argc == 2) {
10424
+ int _v;
10425
+ void *vptr = 0;
10426
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10427
+ _v = SWIG_CheckState(res);
10428
+ if (_v) {
10429
+ void *vptr = 0;
10430
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0);
10431
+ _v = SWIG_CheckState(res);
10432
+ if (_v) {
10433
+ return _wrap_nstable_seekByBookmark__SWIG_3(nargs, args, self);
10434
+ }
10435
+ }
10436
+ }
10437
+ if (argc == 3) {
10438
+ int _v;
10439
+ void *vptr = 0;
10440
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10441
+ _v = SWIG_CheckState(res);
10442
+ if (_v) {
10443
+ void *vptr = 0;
10444
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0);
10445
+ _v = SWIG_CheckState(res);
10446
+ if (_v) {
10447
+ {
10448
+ int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL);
10449
+ _v = SWIG_CheckState(res);
10450
+ }
10451
+ if (_v) {
10452
+ return _wrap_nstable_seekByBookmark__SWIG_2(nargs, args, self);
10453
+ }
10454
+ }
10455
+ }
10456
+ }
10457
+
10458
+ fail:
10459
+ Ruby_Format_OverloadedError(argc, 4, "nstable.seekByBookmark",
10460
+ " void nstable.seekByBookmark(bookmark_td &bm, ushort_td lockBias)\n"
10461
+ " void nstable.seekByBookmark(bookmark_td &bm)\n"
10462
+ " void nstable.seekByBookmark()\n");
10463
+
10464
+ return Qnil;
10285
10465
  }
10286
10466
 
10287
10467
 
10288
10468
  SWIGINTERN VALUE
10289
10469
  _wrap_nstable_getPercentage__SWIG_0(int argc, VALUE *argv, VALUE self) {
10290
- bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
10291
- void *argp1 = 0 ;
10292
- int res1 = 0 ;
10293
- percentage_td result;
10294
- VALUE vresult = Qnil;
10295
-
10296
- if ((argc < 0) || (argc > 0)) {
10297
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10298
- }
10299
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0 );
10300
- if (!SWIG_IsOK(res1)) {
10301
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nstable *","getPercentage", 1, self ));
10302
- }
10303
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10304
- {
10305
- try {
10306
- result = (percentage_td)(arg1)->getPercentage();
10307
- } catch (bzs::rtl::exception& e) {
10308
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10309
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
10310
- } catch (std::exception &e) {
10311
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10312
- rb_raise(cpp_std_error, e.what());
10313
- }
10314
- }
10315
- vresult = SWIG_From_int(static_cast< int >(result));
10316
- return vresult;
10317
- fail:
10318
- return Qnil;
10470
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10471
+ void *argp1 = 0;
10472
+ int res1 = 0;
10473
+ percentage_td result;
10474
+ VALUE vresult = Qnil;
10475
+
10476
+ if ((argc < 0) || (argc > 0)) {
10477
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
10478
+ }
10479
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10480
+ if (!SWIG_IsOK(res1)) {
10481
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "getPercentage", 1, self));
10482
+ }
10483
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10484
+ {
10485
+ try {
10486
+ result = (percentage_td)(arg1)->getPercentage();
10487
+ }
10488
+ catch (bzs::rtl::exception& e) {
10489
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10490
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10491
+ }
10492
+ catch (std::exception &e) {
10493
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10494
+ rb_raise(cpp_std_error, e.what());
10495
+ }
10496
+ }
10497
+ vresult = SWIG_From_int(static_cast< int >(result));
10498
+ return vresult;
10499
+ fail:
10500
+ return Qnil;
10319
10501
  }
10320
10502
 
10321
10503
 
10322
10504
  SWIGINTERN VALUE
10323
10505
  _wrap_nstable_getPercentage__SWIG_1(int argc, VALUE *argv, VALUE self) {
10324
- bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
10325
- bookmark_td arg2 ;
10326
- void *argp1 = 0 ;
10327
- int res1 = 0 ;
10328
- unsigned int val2 ;
10329
- int ecode2 = 0 ;
10330
- percentage_td result;
10331
- VALUE vresult = Qnil;
10332
-
10333
- if ((argc < 1) || (argc > 1)) {
10334
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10335
- }
10336
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0 );
10337
- if (!SWIG_IsOK(res1)) {
10338
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nstable *","getPercentage", 1, self ));
10339
- }
10340
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10341
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
10342
- if (!SWIG_IsOK(ecode2)) {
10343
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bookmark_td","getPercentage", 2, argv[0] ));
10344
- }
10345
- arg2 = static_cast< bookmark_td >(val2);
10346
- {
10347
- try {
10348
- result = (percentage_td)(arg1)->getPercentage(arg2);
10349
- } catch (bzs::rtl::exception& e) {
10350
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10351
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
10352
- } catch (std::exception &e) {
10353
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10354
- rb_raise(cpp_std_error, e.what());
10355
- }
10356
- }
10357
- vresult = SWIG_From_int(static_cast< int >(result));
10358
- return vresult;
10359
- fail:
10360
- return Qnil;
10506
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10507
+ bookmark_td *arg2 = 0;
10508
+ void *argp1 = 0;
10509
+ int res1 = 0;
10510
+ void *argp2 = 0;
10511
+ int res2 = 0;
10512
+ percentage_td result;
10513
+ VALUE vresult = Qnil;
10514
+
10515
+ if ((argc < 1) || (argc > 1)) {
10516
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
10517
+ }
10518
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10519
+ if (!SWIG_IsOK(res1)) {
10520
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "getPercentage", 1, self));
10521
+ }
10522
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10523
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0);
10524
+ if (!SWIG_IsOK(res2)) {
10525
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "getPercentage", 2, argv[0]));
10526
+ }
10527
+ if (!argp2) {
10528
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "getPercentage", 2, argv[0]));
10529
+ }
10530
+ arg2 = reinterpret_cast< bookmark_td * >(argp2);
10531
+ {
10532
+ try {
10533
+ result = (percentage_td)(arg1)->getPercentage(*arg2);
10534
+ }
10535
+ catch (bzs::rtl::exception& e) {
10536
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10537
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10538
+ }
10539
+ catch (std::exception &e) {
10540
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10541
+ rb_raise(cpp_std_error, e.what());
10542
+ }
10543
+ }
10544
+ vresult = SWIG_From_int(static_cast< int >(result));
10545
+ return vresult;
10546
+ fail:
10547
+ return Qnil;
10361
10548
  }
10362
10549
 
10363
10550
 
10364
10551
  SWIGINTERN VALUE _wrap_nstable_getPercentage(int nargs, VALUE *args, VALUE self) {
10365
- int argc;
10366
- VALUE argv[3];
10367
- int ii;
10368
-
10369
- argc = nargs + 1;
10370
- argv[0] = self;
10371
- if (argc > 3) SWIG_fail;
10372
- for (ii = 1; (ii < argc); ++ii) {
10373
- argv[ii] = args[ii-1];
10374
- }
10375
- if (argc == 1) {
10376
- int _v;
10377
- void *vptr = 0;
10378
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10379
- _v = SWIG_CheckState(res);
10380
- if (_v) {
10381
- return _wrap_nstable_getPercentage__SWIG_0(nargs, args, self);
10382
- }
10383
- }
10384
- if (argc == 2) {
10385
- int _v;
10386
- void *vptr = 0;
10387
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10388
- _v = SWIG_CheckState(res);
10389
- if (_v) {
10390
- {
10391
- int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
10392
- _v = SWIG_CheckState(res);
10393
- }
10394
- if (_v) {
10395
- return _wrap_nstable_getPercentage__SWIG_1(nargs, args, self);
10396
- }
10397
- }
10398
- }
10399
-
10400
- fail:
10401
- Ruby_Format_OverloadedError( argc, 3, "nstable.getPercentage",
10402
- " percentage_td nstable.getPercentage()\n"
10403
- " percentage_td nstable.getPercentage(bookmark_td bm)\n");
10404
-
10405
- return Qnil;
10552
+ int argc;
10553
+ VALUE argv[3];
10554
+ int ii;
10555
+
10556
+ argc = nargs + 1;
10557
+ argv[0] = self;
10558
+ if (argc > 3) SWIG_fail;
10559
+ for (ii = 1; (ii < argc); ++ii) {
10560
+ argv[ii] = args[ii - 1];
10561
+ }
10562
+ if (argc == 1) {
10563
+ int _v;
10564
+ void *vptr = 0;
10565
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10566
+ _v = SWIG_CheckState(res);
10567
+ if (_v) {
10568
+ return _wrap_nstable_getPercentage__SWIG_0(nargs, args, self);
10569
+ }
10570
+ }
10571
+ if (argc == 2) {
10572
+ int _v;
10573
+ void *vptr = 0;
10574
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10575
+ _v = SWIG_CheckState(res);
10576
+ if (_v) {
10577
+ void *vptr = 0;
10578
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0);
10579
+ _v = SWIG_CheckState(res);
10580
+ if (_v) {
10581
+ return _wrap_nstable_getPercentage__SWIG_1(nargs, args, self);
10582
+ }
10583
+ }
10584
+ }
10585
+
10586
+ fail:
10587
+ Ruby_Format_OverloadedError(argc, 3, "nstable.getPercentage",
10588
+ " percentage_td nstable.getPercentage()\n"
10589
+ " percentage_td nstable.getPercentage(bookmark_td &bm)\n");
10590
+
10591
+ return Qnil;
10406
10592
  }
10407
10593
 
10408
10594
 
@@ -10896,119 +11082,125 @@ fail:
10896
11082
  }
10897
11083
 
10898
11084
 
10899
- SWIGINTERN VALUE
10900
- _wrap_nstable_unlock__SWIG_0(int argc, VALUE *argv, VALUE self) {
10901
- bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
10902
- bookmark_td arg2 ;
10903
- void *argp1 = 0 ;
10904
- int res1 = 0 ;
10905
- unsigned int val2 ;
10906
- int ecode2 = 0 ;
10907
-
10908
- if ((argc < 1) || (argc > 1)) {
10909
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10910
- }
10911
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0 );
10912
- if (!SWIG_IsOK(res1)) {
10913
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nstable *","unlock", 1, self ));
10914
- }
10915
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10916
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
10917
- if (!SWIG_IsOK(ecode2)) {
10918
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bookmark_td","unlock", 2, argv[0] ));
10919
- }
10920
- arg2 = static_cast< bookmark_td >(val2);
10921
- {
10922
- try {
10923
- (arg1)->unlock(arg2);
10924
- } catch (bzs::rtl::exception& e) {
10925
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10926
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
10927
- } catch (std::exception &e) {
10928
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10929
- rb_raise(cpp_std_error, e.what());
10930
- }
10931
- }
10932
- return Qnil;
10933
- fail:
10934
- return Qnil;
10935
- }
10936
-
10937
-
10938
- SWIGINTERN VALUE
10939
- _wrap_nstable_unlock__SWIG_1(int argc, VALUE *argv, VALUE self) {
10940
- bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
10941
- void *argp1 = 0 ;
10942
- int res1 = 0 ;
10943
-
10944
- if ((argc < 0) || (argc > 0)) {
10945
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10946
- }
10947
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0 );
10948
- if (!SWIG_IsOK(res1)) {
10949
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nstable *","unlock", 1, self ));
10950
- }
10951
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10952
- {
10953
- try {
10954
- (arg1)->unlock();
10955
- } catch (bzs::rtl::exception& e) {
10956
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10957
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
10958
- } catch (std::exception &e) {
10959
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10960
- rb_raise(cpp_std_error, e.what());
10961
- }
10962
- }
10963
- return Qnil;
10964
- fail:
10965
- return Qnil;
10966
- }
10967
-
10968
-
10969
- SWIGINTERN VALUE _wrap_nstable_unlock(int nargs, VALUE *args, VALUE self) {
10970
- int argc;
10971
- VALUE argv[3];
10972
- int ii;
10973
-
10974
- argc = nargs + 1;
10975
- argv[0] = self;
10976
- if (argc > 3) SWIG_fail;
10977
- for (ii = 1; (ii < argc); ++ii) {
10978
- argv[ii] = args[ii-1];
10979
- }
10980
- if (argc == 1) {
10981
- int _v;
10982
- void *vptr = 0;
10983
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10984
- _v = SWIG_CheckState(res);
10985
- if (_v) {
10986
- return _wrap_nstable_unlock__SWIG_1(nargs, args, self);
10987
- }
10988
- }
10989
- if (argc == 2) {
10990
- int _v;
10991
- void *vptr = 0;
10992
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10993
- _v = SWIG_CheckState(res);
10994
- if (_v) {
10995
- {
10996
- int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL);
10997
- _v = SWIG_CheckState(res);
10998
- }
10999
- if (_v) {
11000
- return _wrap_nstable_unlock__SWIG_0(nargs, args, self);
11001
- }
11002
- }
11003
- }
11004
-
11005
- fail:
11006
- Ruby_Format_OverloadedError( argc, 3, "nstable.unlock",
11007
- " void nstable.unlock(bookmark_td bm)\n"
11008
- " void nstable.unlock()\n");
11009
-
11010
- return Qnil;
11011
- }
11085
+ SWIGINTERN VALUE
11086
+ _wrap_nstable_unlock__SWIG_0(int argc, VALUE *argv, VALUE self) {
11087
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
11088
+ bookmark_td *arg2 = 0;
11089
+ void *argp1 = 0;
11090
+ int res1 = 0;
11091
+ void *argp2 = 0;
11092
+ int res2 = 0;
11093
+
11094
+ if ((argc < 1) || (argc > 1)) {
11095
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
11096
+ }
11097
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
11098
+ if (!SWIG_IsOK(res1)) {
11099
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "unlock", 1, self));
11100
+ }
11101
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
11102
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0);
11103
+ if (!SWIG_IsOK(res2)) {
11104
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "unlock", 2, argv[0]));
11105
+ }
11106
+ if (!argp2) {
11107
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "unlock", 2, argv[0]));
11108
+ }
11109
+ arg2 = reinterpret_cast< bookmark_td * >(argp2);
11110
+ {
11111
+ try {
11112
+ (arg1)->unlock(*arg2);
11113
+ }
11114
+ catch (bzs::rtl::exception& e) {
11115
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
11116
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
11117
+ }
11118
+ catch (std::exception &e) {
11119
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
11120
+ rb_raise(cpp_std_error, e.what());
11121
+ }
11122
+ }
11123
+ return Qnil;
11124
+ fail:
11125
+ return Qnil;
11126
+ }
11127
+
11128
+
11129
+ SWIGINTERN VALUE
11130
+ _wrap_nstable_unlock__SWIG_1(int argc, VALUE *argv, VALUE self) {
11131
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
11132
+ void *argp1 = 0;
11133
+ int res1 = 0;
11134
+
11135
+ if ((argc < 0) || (argc > 0)) {
11136
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
11137
+ }
11138
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
11139
+ if (!SWIG_IsOK(res1)) {
11140
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "unlock", 1, self));
11141
+ }
11142
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
11143
+ {
11144
+ try {
11145
+ (arg1)->unlock();
11146
+ }
11147
+ catch (bzs::rtl::exception& e) {
11148
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
11149
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
11150
+ }
11151
+ catch (std::exception &e) {
11152
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
11153
+ rb_raise(cpp_std_error, e.what());
11154
+ }
11155
+ }
11156
+ return Qnil;
11157
+ fail:
11158
+ return Qnil;
11159
+ }
11160
+
11161
+
11162
+ SWIGINTERN VALUE _wrap_nstable_unlock(int nargs, VALUE *args, VALUE self) {
11163
+ int argc;
11164
+ VALUE argv[3];
11165
+ int ii;
11166
+
11167
+ argc = nargs + 1;
11168
+ argv[0] = self;
11169
+ if (argc > 3) SWIG_fail;
11170
+ for (ii = 1; (ii < argc); ++ii) {
11171
+ argv[ii] = args[ii - 1];
11172
+ }
11173
+ if (argc == 1) {
11174
+ int _v;
11175
+ void *vptr = 0;
11176
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
11177
+ _v = SWIG_CheckState(res);
11178
+ if (_v) {
11179
+ return _wrap_nstable_unlock__SWIG_1(nargs, args, self);
11180
+ }
11181
+ }
11182
+ if (argc == 2) {
11183
+ int _v;
11184
+ void *vptr = 0;
11185
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
11186
+ _v = SWIG_CheckState(res);
11187
+ if (_v) {
11188
+ void *vptr = 0;
11189
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0);
11190
+ _v = SWIG_CheckState(res);
11191
+ if (_v) {
11192
+ return _wrap_nstable_unlock__SWIG_0(nargs, args, self);
11193
+ }
11194
+ }
11195
+ }
11196
+
11197
+ fail:
11198
+ Ruby_Format_OverloadedError(argc, 3, "nstable.unlock",
11199
+ " void nstable.unlock(bookmark_td &bm)\n"
11200
+ " void nstable.unlock()\n");
11201
+
11202
+ return Qnil;
11203
+ }
11012
11204
 
11013
11205
 
11014
11206
  SWIGINTERN VALUE
@@ -11713,6 +11905,50 @@ fail:
11713
11905
  }
11714
11906
 
11715
11907
 
11908
+ SWIGINTERN VALUE
11909
+ _wrap_dbdef_validateTableDef(int argc, VALUE *argv, VALUE self) {
11910
+ bzs::db::protocol::tdap::client::dbdef *arg1 = (bzs::db::protocol::tdap::client::dbdef *) 0;
11911
+ short arg2;
11912
+ void *argp1 = 0;
11913
+ int res1 = 0;
11914
+ short val2;
11915
+ int ecode2 = 0;
11916
+ short result;
11917
+ VALUE vresult = Qnil;
11918
+
11919
+ if ((argc < 1) || (argc > 1)) {
11920
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
11921
+ }
11922
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__dbdef, 0 | 0);
11923
+ if (!SWIG_IsOK(res1)) {
11924
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::dbdef *", "validateTableDef", 1, self));
11925
+ }
11926
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::dbdef * >(argp1);
11927
+ ecode2 = SWIG_AsVal_short(argv[0], &val2);
11928
+ if (!SWIG_IsOK(ecode2)) {
11929
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "short", "validateTableDef", 2, argv[0]));
11930
+ }
11931
+ arg2 = static_cast< short >(val2);
11932
+ {
11933
+ try {
11934
+ result = (short)(arg1)->validateTableDef(arg2);
11935
+ }
11936
+ catch (bzs::rtl::exception& e) {
11937
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
11938
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
11939
+ }
11940
+ catch (std::exception &e) {
11941
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
11942
+ rb_raise(cpp_std_error, e.what());
11943
+ }
11944
+ }
11945
+ vresult = SWIG_From_short(static_cast< short >(result));
11946
+ return vresult;
11947
+ fail:
11948
+ return Qnil;
11949
+ }
11950
+
11951
+
11716
11952
  SWIGINTERN VALUE
11717
11953
  _wrap_dbdef_updateTableDef__SWIG_0(int argc, VALUE *argv, VALUE self) {
11718
11954
  bzs::db::protocol::tdap::client::dbdef *arg1 = (bzs::db::protocol::tdap::client::dbdef *) 0 ;
@@ -13041,7 +13277,7 @@ fail:
13041
13277
 
13042
13278
 
13043
13279
  SWIGINTERN VALUE
13044
- _wrap_table_bookMarksCount(int argc, VALUE *argv, VALUE self) {
13280
+ _wrap_table_bookmarksCount(int argc, VALUE *argv, VALUE self) {
13045
13281
  bzs::db::protocol::tdap::client::table *arg1 = (bzs::db::protocol::tdap::client::table *) 0 ;
13046
13282
  void *argp1 = 0 ;
13047
13283
  int res1 = 0 ;
@@ -13053,12 +13289,12 @@ _wrap_table_bookMarksCount(int argc, VALUE *argv, VALUE self) {
13053
13289
  }
13054
13290
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__table, 0 | 0 );
13055
13291
  if (!SWIG_IsOK(res1)) {
13056
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::table const *","bookMarksCount", 1, self ));
13292
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::table const *","bookmarksCount", 1, self ));
13057
13293
  }
13058
13294
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::table * >(argp1);
13059
13295
  {
13060
13296
  try {
13061
- result = (int)((bzs::db::protocol::tdap::client::table const *)arg1)->bookMarksCount();
13297
+ result = (int)((bzs::db::protocol::tdap::client::table const *)arg1)->bookmarksCount();
13062
13298
  } catch (bzs::rtl::exception& e) {
13063
13299
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13064
13300
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -13075,7 +13311,7 @@ fail:
13075
13311
 
13076
13312
 
13077
13313
  SWIGINTERN VALUE
13078
- _wrap_table_moveBookmarksId(int argc, VALUE *argv, VALUE self) {
13314
+ _wrap_table_moveBookmarks(int argc, VALUE *argv, VALUE self) {
13079
13315
  bzs::db::protocol::tdap::client::table *arg1 = (bzs::db::protocol::tdap::client::table *) 0 ;
13080
13316
  long arg2 ;
13081
13317
  void *argp1 = 0 ;
@@ -13088,17 +13324,17 @@ _wrap_table_moveBookmarksId(int argc, VALUE *argv, VALUE self) {
13088
13324
  }
13089
13325
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__table, 0 | 0 );
13090
13326
  if (!SWIG_IsOK(res1)) {
13091
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::table *","moveBookmarksId", 1, self ));
13327
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::table *","moveBookmarks", 1, self ));
13092
13328
  }
13093
13329
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::table * >(argp1);
13094
13330
  ecode2 = SWIG_AsVal_long(argv[0], &val2);
13095
13331
  if (!SWIG_IsOK(ecode2)) {
13096
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","moveBookmarksId", 2, argv[0] ));
13332
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","moveBookmarks", 2, argv[0] ));
13097
13333
  }
13098
13334
  arg2 = static_cast< long >(val2);
13099
13335
  {
13100
13336
  try {
13101
- (arg1)->moveBookmarksId(arg2);
13337
+ (arg1)->moveBookmarks(arg2);
13102
13338
  } catch (bzs::rtl::exception& e) {
13103
13339
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13104
13340
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -13113,6 +13349,50 @@ fail:
13113
13349
  }
13114
13350
 
13115
13351
 
13352
+ SWIGINTERN VALUE
13353
+ _wrap_table_bookmarks(int argc, VALUE *argv, VALUE self) {
13354
+ bzs::db::protocol::tdap::client::table *arg1 = (bzs::db::protocol::tdap::client::table *) 0;
13355
+ unsigned int arg2;
13356
+ void *argp1 = 0;
13357
+ int res1 = 0;
13358
+ unsigned int val2;
13359
+ int ecode2 = 0;
13360
+ bookmark_td result;
13361
+ VALUE vresult = Qnil;
13362
+
13363
+ if ((argc < 1) || (argc > 1)) {
13364
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
13365
+ }
13366
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__table, 0 | 0);
13367
+ if (!SWIG_IsOK(res1)) {
13368
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::table const *", "bookmarks", 1, self));
13369
+ }
13370
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::table * >(argp1);
13371
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
13372
+ if (!SWIG_IsOK(ecode2)) {
13373
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "unsigned int", "bookmarks", 2, argv[0]));
13374
+ }
13375
+ arg2 = static_cast< unsigned int >(val2);
13376
+ {
13377
+ try {
13378
+ result = ((bzs::db::protocol::tdap::client::table const *)arg1)->bookmarks(arg2);
13379
+ }
13380
+ catch (bzs::rtl::exception& e) {
13381
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13382
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
13383
+ }
13384
+ catch (std::exception &e) {
13385
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
13386
+ rb_raise(cpp_std_error, e.what());
13387
+ }
13388
+ }
13389
+ vresult = SWIG_NewPointerObj((new bookmark_td(static_cast< const bookmark_td& >(result))), SWIGTYPE_p_BOOKMARK, SWIG_POINTER_OWN | 0);
13390
+ return vresult;
13391
+ fail:
13392
+ return Qnil;
13393
+ }
13394
+
13395
+
13116
13396
  SWIGINTERN VALUE
13117
13397
  _wrap_table_clearBuffer(int argc, VALUE *argv, VALUE self) {
13118
13398
  bzs::db::protocol::tdap::client::table *arg1 = (bzs::db::protocol::tdap::client::table *) 0 ;
@@ -13721,7 +14001,7 @@ _wrap_table_bookmarkFindCurrent(int argc, VALUE *argv, VALUE self) {
13721
14001
  rb_raise(cpp_std_error, e.what());
13722
14002
  }
13723
14003
  }
13724
- vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
14004
+ vresult = SWIG_NewPointerObj((new bookmark_td(static_cast< const bookmark_td& >(result))), SWIGTYPE_p_BOOKMARK, SWIG_POINTER_OWN | 0);
13725
14005
  return vresult;
13726
14006
  fail:
13727
14007
  return Qnil;
@@ -15103,10 +15383,8 @@ fail:
15103
15383
  SWIGINTERN VALUE
15104
15384
  _wrap_table_setFV(int argc, VALUE *argv, VALUE self) {
15105
15385
  bzs::db::protocol::tdap::client::table *arg1 = 0x00 ;
15106
- short arg2 ;
15107
15386
  void *argp1 = 0 ;
15108
15387
  int res1 = 0 ;
15109
- short val2 ;
15110
15388
  int ecode2 = 0 ;
15111
15389
  short index = -1;
15112
15390
  if ((argc > 3) || (argc < 2)) SWIG_fail;
@@ -15125,13 +15403,12 @@ _wrap_table_setFV(int argc, VALUE *argv, VALUE self) {
15125
15403
  }
15126
15404
  index = (short)v;
15127
15405
  }else if (type == T_STRING){
15128
- int alloc = 0;
15129
- char* v=NULL;
15130
- int ret = SWIG_AsCharPtrAndSize(argv[0], &v, NULL, &alloc);
15406
+ SWIG_CHAR v1;
15407
+ int ret = SWIG_AsCharPtrAndSize(argv[0], &v1.str, NULL, &v1.alloc);
15131
15408
  if (!SWIG_IsOK(ret)) {
15132
15409
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","setFV", 2, argv[0]));
15133
15410
  }
15134
- index = arg1->fieldNumByName(v);
15411
+ index = arg1->fieldNumByName(v1.str);
15135
15412
  }
15136
15413
  }
15137
15414
  {
@@ -15145,21 +15422,22 @@ _wrap_table_setFV(int argc, VALUE *argv, VALUE self) {
15145
15422
  arg1->setFV(index, v);
15146
15423
  }
15147
15424
  else if (type == T_STRING){
15148
- int alloc = 0;
15149
- char* v=NULL;
15150
- int ret = SWIG_AsCharPtrAndSize(argv[1], &v, NULL, &alloc);
15425
+ SWIG_CHAR v2;
15426
+ int ret = 0;
15427
+
15428
+ SWIG_AsCharPtrAndSize(argv[1], &v2.str, NULL, &v2.alloc);
15151
15429
  if (!SWIG_IsOK(ret)) {
15152
15430
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","setFV", 3, argv[1]));
15153
15431
  }
15154
15432
  if (argc == 2)
15155
- arg1->setFV(index, v);
15433
+ arg1->setFV(index, v2.str);
15156
15434
  else {
15157
15435
  unsigned int val4 ;
15158
15436
  int ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
15159
15437
  if (!SWIG_IsOK(ecode4)) {
15160
15438
  SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint_td","setFV", 4, argv[2] ));
15161
15439
  }
15162
- arg1->setFV(index, v, val4);
15440
+ arg1->setFV(index, v2.str, val4);
15163
15441
  }
15164
15442
  }
15165
15443
  else if (type == T_FLOAT){
@@ -15815,149 +16093,147 @@ fail:
15815
16093
  }
15816
16094
 
15817
16095
 
15818
- SWIGINTERN VALUE
15819
- _wrap_queryBase_addSeekKeyValue__SWIG_0(int argc, VALUE *argv, VALUE self) {
15820
- bzs::db::protocol::tdap::client::queryBase *arg1 = (bzs::db::protocol::tdap::client::queryBase *) 0 ;
15821
- _TCHAR *arg2 = (_TCHAR *) 0 ;
15822
- bool arg3 ;
15823
- void *argp1 = 0 ;
15824
- int res1 = 0 ;
15825
- int res2 ;
15826
- char *buf2 = 0 ;
15827
- int alloc2 = 0 ;
15828
- bool val3 ;
15829
- int ecode3 = 0 ;
15830
-
15831
- if ((argc < 2) || (argc > 2)) {
15832
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
15833
- }
15834
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__queryBase, 0 | 0 );
15835
- if (!SWIG_IsOK(res1)) {
15836
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::queryBase *","addSeekKeyValue", 1, self ));
15837
- }
15838
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::queryBase * >(argp1);
15839
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
15840
- if (!SWIG_IsOK(res2)) {
15841
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","addSeekKeyValue", 2, argv[0] ));
15842
- }
15843
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
15844
- ecode3 = SWIG_AsVal_bool(argv[1], &val3);
15845
- if (!SWIG_IsOK(ecode3)) {
15846
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","addSeekKeyValue", 3, argv[1] ));
15847
- }
15848
- arg3 = static_cast< bool >(val3);
15849
- {
15850
- try {
15851
- (arg1)->addSeekKeyValue((_TCHAR const *)arg2,arg3);
15852
- } catch (bzs::rtl::exception& e) {
15853
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
15854
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
15855
- } catch (std::exception &e) {
15856
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
15857
- rb_raise(cpp_std_error, e.what());
15858
- }
15859
- }
15860
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
15861
- return Qnil;
15862
- fail:
15863
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
15864
- return Qnil;
15865
- }
15866
-
15867
-
15868
- SWIGINTERN VALUE
15869
- _wrap_queryBase_addSeekKeyValue__SWIG_1(int argc, VALUE *argv, VALUE self) {
15870
- bzs::db::protocol::tdap::client::queryBase *arg1 = (bzs::db::protocol::tdap::client::queryBase *) 0 ;
15871
- _TCHAR *arg2 = (_TCHAR *) 0 ;
15872
- void *argp1 = 0 ;
15873
- int res1 = 0 ;
15874
- int res2 ;
15875
- char *buf2 = 0 ;
15876
- int alloc2 = 0 ;
15877
-
15878
- if ((argc < 1) || (argc > 1)) {
15879
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
15880
- }
15881
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__queryBase, 0 | 0 );
15882
- if (!SWIG_IsOK(res1)) {
15883
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::queryBase *","addSeekKeyValue", 1, self ));
15884
- }
15885
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::queryBase * >(argp1);
15886
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
15887
- if (!SWIG_IsOK(res2)) {
15888
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","addSeekKeyValue", 2, argv[0] ));
15889
- }
15890
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
15891
- {
15892
- try {
15893
- (arg1)->addSeekKeyValue((_TCHAR const *)arg2);
15894
- } catch (bzs::rtl::exception& e) {
15895
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
15896
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
15897
- } catch (std::exception &e) {
15898
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
15899
- rb_raise(cpp_std_error, e.what());
15900
- }
15901
- }
15902
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
15903
- return Qnil;
15904
- fail:
15905
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
15906
- return Qnil;
15907
- }
15908
-
15909
-
15910
- SWIGINTERN VALUE _wrap_queryBase_addSeekKeyValue(int nargs, VALUE *args, VALUE self) {
15911
- int argc;
15912
- VALUE argv[4];
15913
- int ii;
15914
-
15915
- argc = nargs + 1;
15916
- argv[0] = self;
15917
- if (argc > 4) SWIG_fail;
15918
- for (ii = 1; (ii < argc); ++ii) {
15919
- argv[ii] = args[ii-1];
15920
- }
15921
- if (argc == 2) {
15922
- int _v;
15923
- void *vptr = 0;
15924
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__queryBase, 0);
15925
- _v = SWIG_CheckState(res);
15926
- if (_v) {
15927
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
15928
- _v = SWIG_CheckState(res);
15929
- if (_v) {
15930
- return _wrap_queryBase_addSeekKeyValue__SWIG_1(nargs, args, self);
15931
- }
15932
- }
15933
- }
15934
- if (argc == 3) {
15935
- int _v;
15936
- void *vptr = 0;
15937
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__queryBase, 0);
15938
- _v = SWIG_CheckState(res);
15939
- if (_v) {
15940
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
15941
- _v = SWIG_CheckState(res);
15942
- if (_v) {
15943
- {
15944
- int res = SWIG_AsVal_bool(argv[2], NULL);
15945
- _v = SWIG_CheckState(res);
15946
- }
15947
- if (_v) {
15948
- return _wrap_queryBase_addSeekKeyValue__SWIG_0(nargs, args, self);
15949
- }
15950
- }
15951
- }
15952
- }
15953
-
15954
- fail:
15955
- Ruby_Format_OverloadedError( argc, 4, "queryBase.addSeekKeyValue",
15956
- " void queryBase.addSeekKeyValue(_TCHAR const *value, bool reset)\n"
15957
- " void queryBase.addSeekKeyValue(_TCHAR const *value)\n");
15958
-
15959
- return Qnil;
15960
- }
16096
+ SWIGINTERN VALUE _wrap_queryBase_addSeekKeyValue(int nargs, VALUE *args, VALUE self) {
16097
+ long long lv = 0;
16098
+ double dv = 0;
16099
+ bool reset = false;
16100
+ SWIG_CHAR buf;
16101
+ int res = 0;
16102
+ bzs::db::protocol::tdap::client::queryBase *q = 0;
16103
+ void* q_tmp;
16104
+
16105
+ if (nargs < 1) goto fail2;
16106
+
16107
+ if (nargs > 2) goto fail2;
16108
+
16109
+ res = SWIG_ConvertPtr(self, &q_tmp, SWIGTYPE_p_bzs__db__protocol__tdap__client__queryBase, 0);
16110
+ if (!SWIG_IsOK(res)) {
16111
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::queryBase *", "addSeekKeyValue", 1, self));
16112
+ }
16113
+ q = reinterpret_cast< bzs::db::protocol::tdap::client::queryBase * >(q_tmp);
16114
+
16115
+ try
16116
+ {
16117
+
16118
+ VALUE type = TYPE(args[0]);
16119
+ if ((type == T_FIXNUM) || (type == T_BIGNUM)){
16120
+ res = SWIG_AsVal_long_SS_long(args[0], &lv);
16121
+ if (!SWIG_IsOK(res)) {
16122
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "__int64", "addSeekKeyValue", 2, args[0]));
16123
+ }
16124
+ }
16125
+ else if (type == T_STRING){
16126
+ res = SWIG_AsCharPtrAndSize(args[0], &buf.str, NULL, &buf.alloc);
16127
+ if (!SWIG_IsOK(res)) {
16128
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "char *const", "addSeekKeyValue", 2, args[0]));
16129
+ }
16130
+ }
16131
+ else if (type == T_FLOAT){
16132
+ res = SWIG_AsVal_double(args[0], &dv);
16133
+ if (!SWIG_IsOK(res)) {
16134
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "double", "addSeekKeyValue", 2, args[0]));
16135
+ }
16136
+ }
16137
+ else
16138
+ goto fail2;
16139
+
16140
+ if (nargs > 1)
16141
+ {
16142
+ res = SWIG_AsVal_bool(args[1], &reset);
16143
+ if (!SWIG_IsOK(res)) {
16144
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bool", "addSeekKeyValue", 3, args[1]));
16145
+ }
16146
+ }
16147
+ if ((type == T_FIXNUM) || (type == T_BIGNUM))
16148
+ q->addSeekKeyValue(lexical_cast(lv).c_str(), reset);
16149
+ else if (type == T_STRING)
16150
+ q->addSeekKeyValue(buf.str, reset);
16151
+ else if (type == T_FLOAT)
16152
+ q->addSeekKeyValue(lexical_cast(dv).c_str(), reset);
16153
+
16154
+ }
16155
+ catch (bzs::rtl::exception& e)
16156
+ {
16157
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
16158
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
16159
+ }
16160
+ catch (std::exception &e)
16161
+ {
16162
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
16163
+ rb_raise(cpp_std_error, e.what());
16164
+ }
16165
+ return Qnil;
16166
+ fail:
16167
+ return Qnil;
16168
+ fail2:
16169
+ Ruby_Format_OverloadedError(nargs + 1, 5, "queryBase.addSeekKeyValue",
16170
+ " void queryBase.addSeekKeyValue(const T value, bool reset)\n"
16171
+ " void queryBase.addSeekKeyValue(const T value)\n");
16172
+
16173
+ return Qnil;
16174
+ }
16175
+
16176
+ SWIGINTERN VALUE _wrap_queryBase_addSeekBookmark(int nargs, VALUE *args, VALUE self) {
16177
+ bookmark_td *bm = 0;
16178
+ int len = 0;
16179
+ bool reset = false;
16180
+ int res = 0;
16181
+ bzs::db::protocol::tdap::client::queryBase *q = 0;
16182
+ void* q_tmp;
16183
+
16184
+ if (nargs < 2) goto fail2;
16185
+
16186
+ if (nargs > 3) goto fail2;
16187
+
16188
+ res = SWIG_ConvertPtr(self, &q_tmp, SWIGTYPE_p_bzs__db__protocol__tdap__client__queryBase, 0);
16189
+ if (!SWIG_IsOK(res)) {
16190
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::queryBase *", "addSeekBookmark", 1, self));
16191
+ }
16192
+ q = reinterpret_cast< bzs::db::protocol::tdap::client::queryBase * >(q_tmp);
16193
+
16194
+ try
16195
+ {
16196
+ void* bm_tmp = 0;
16197
+ res = SWIG_ConvertPtr(args[0], &bm_tmp, SWIGTYPE_p_BOOKMARK, 0);
16198
+ if (!SWIG_IsOK(res)) {
16199
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bookmark_td *", "addSeekBookmark", 2, args[0]));
16200
+ }
16201
+ bm = reinterpret_cast< bookmark_td* >(bm_tmp);
16202
+
16203
+ res = SWIG_AsVal_int(args[1], &len);
16204
+ if (!SWIG_IsOK(res)) {
16205
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "int", "addSeekBookmark", 3, args[1]));
16206
+ }
16207
+ if (nargs > 2)
16208
+ {
16209
+ res = SWIG_AsVal_bool(args[2], &reset);
16210
+ if (!SWIG_IsOK(res)) {
16211
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bool", "addSeekBookmark", 4, args[2]));
16212
+ }
16213
+ }
16214
+
16215
+ q->addSeekBookmark(*bm, len, reset);
16216
+ }
16217
+ catch (bzs::rtl::exception& e)
16218
+ {
16219
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
16220
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
16221
+ }
16222
+ catch (std::exception &e)
16223
+ {
16224
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
16225
+ rb_raise(cpp_std_error, e.what());
16226
+ }
16227
+ return Qnil;
16228
+ fail:
16229
+ return Qnil;
16230
+ fail2:
16231
+ Ruby_Format_OverloadedError(nargs + 1, 5, "queryBase.addSeekBookmark",
16232
+ " void queryBase.addSeekBookmark(const T value, bool reset)\n"
16233
+ " void queryBase.addSeekBookmark(const T value)\n");
16234
+
16235
+ return Qnil;
16236
+ }
15961
16237
 
15962
16238
 
15963
16239
  SWIGINTERN VALUE
@@ -16985,6 +17261,43 @@ fail:
16985
17261
  }
16986
17262
 
16987
17263
 
17264
+ SWIGINTERN VALUE
17265
+ _wrap_queryBase_isSeekByBookmarks(int argc, VALUE *argv, VALUE self) {
17266
+ bzs::db::protocol::tdap::client::queryBase *arg1 = (bzs::db::protocol::tdap::client::queryBase *) 0;
17267
+ void *argp1 = 0;
17268
+ int res1 = 0;
17269
+ bool result;
17270
+ VALUE vresult = Qnil;
17271
+
17272
+ if ((argc < 0) || (argc > 0)) {
17273
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
17274
+ }
17275
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__queryBase, 0 | 0);
17276
+ if (!SWIG_IsOK(res1)) {
17277
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::queryBase const *", "isSeekByBookmarks", 1, self));
17278
+ }
17279
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::queryBase * >(argp1);
17280
+ {
17281
+ try {
17282
+ result = (bool)((bzs::db::protocol::tdap::client::queryBase const *)arg1)->isSeekByBookmarks();
17283
+ }
17284
+ catch (bzs::rtl::exception& e) {
17285
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
17286
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
17287
+ }
17288
+ catch (std::exception &e) {
17289
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
17290
+ rb_raise(cpp_std_error, e.what());
17291
+ }
17292
+ }
17293
+ vresult = SWIG_From_bool(static_cast< bool >(result));
17294
+ return vresult;
17295
+ fail:
17296
+ return Qnil;
17297
+ }
17298
+
17299
+
17300
+
16988
17301
  static swig_class SwigClassQuery;
16989
17302
 
16990
17303
  SWIGINTERN VALUE
@@ -17124,12 +17437,10 @@ _wrap_query_where(int argc, VALUE *argv, VALUE self) {
17124
17437
  void *argp1 = 0 ;
17125
17438
  int res1 = 0 ;
17126
17439
  int res2 ;
17127
- char *buf2 = 0 ;
17128
- int alloc2 = 0 ;
17129
- int res3 ;
17130
- char *buf3 = 0 ;
17131
- int alloc3 = 0 ;
17132
-
17440
+ int res3;
17441
+ SWIG_CHAR buf2;
17442
+ SWIG_CHAR buf3;
17443
+
17133
17444
  if ((argc < 3) || (argc > 3)) {
17134
17445
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
17135
17446
  }
@@ -17138,16 +17449,16 @@ _wrap_query_where(int argc, VALUE *argv, VALUE self) {
17138
17449
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::query *","where<(p._TCHAR)>", 1, self ));
17139
17450
  }
17140
17451
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::query * >(argp1);
17141
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
17452
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc);
17142
17453
  if (!SWIG_IsOK(res2)) {
17143
17454
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","where<(p._TCHAR)>", 2, argv[0] ));
17144
17455
  }
17145
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
17146
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
17456
+ arg2 = reinterpret_cast< _TCHAR * >(buf2.str);
17457
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc);
17147
17458
  if (!SWIG_IsOK(res3)) {
17148
17459
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","where<(p._TCHAR)>", 3, argv[1] ));
17149
17460
  }
17150
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
17461
+ arg3 = reinterpret_cast< _TCHAR * >(buf3.str);
17151
17462
  {
17152
17463
  try {
17153
17464
  VALUE type = TYPE(argv[2]);
@@ -17160,13 +17471,12 @@ _wrap_query_where(int argc, VALUE *argv, VALUE self) {
17160
17471
  arg1->where(arg2, arg3, v);
17161
17472
  }
17162
17473
  else if (type == T_STRING){
17163
- int alloc = 0;
17164
- char* v=NULL;
17165
- int ret = SWIG_AsCharPtrAndSize(argv[2], &v, NULL, &alloc);
17474
+ SWIG_CHAR buf4;
17475
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
17166
17476
  if (!SWIG_IsOK(ret)) {
17167
17477
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","where", 3, argv[2]));
17168
17478
  }
17169
- arg1->where(arg2, arg3, v);
17479
+ arg1->where(arg2, arg3, buf4.str);
17170
17480
  }
17171
17481
  else if (type == T_FLOAT){
17172
17482
  double v = 0;
@@ -17203,12 +17513,10 @@ _wrap_query_and_(int argc, VALUE *argv, VALUE self) {
17203
17513
  void *argp1 = 0 ;
17204
17514
  int res1 = 0 ;
17205
17515
  int res2 ;
17206
- char *buf2 = 0 ;
17207
- int alloc2 = 0 ;
17208
17516
  int res3 ;
17209
- char *buf3 = 0 ;
17210
- int alloc3 = 0 ;
17211
-
17517
+ SWIG_CHAR buf2;
17518
+ SWIG_CHAR buf3;
17519
+
17212
17520
  if ((argc < 3) || (argc > 3)) {
17213
17521
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
17214
17522
  }
@@ -17217,16 +17525,18 @@ _wrap_query_and_(int argc, VALUE *argv, VALUE self) {
17217
17525
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::query *","and_<(p._TCHAR)>", 1, self ));
17218
17526
  }
17219
17527
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::query * >(argp1);
17220
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
17528
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc);
17221
17529
  if (!SWIG_IsOK(res2)) {
17222
17530
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","and_<(p._TCHAR)>", 2, argv[0] ));
17223
17531
  }
17224
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
17225
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
17532
+ arg2 = reinterpret_cast< _TCHAR * >(buf2.str);
17533
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc);
17226
17534
  if (!SWIG_IsOK(res3)) {
17227
17535
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","and_<(p._TCHAR)>", 3, argv[1] ));
17228
17536
  }
17229
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
17537
+ arg3 = reinterpret_cast< _TCHAR * >(buf3.str);
17538
+
17539
+
17230
17540
  {
17231
17541
  try {
17232
17542
  VALUE type = TYPE(argv[2]);
@@ -17239,13 +17549,13 @@ _wrap_query_and_(int argc, VALUE *argv, VALUE self) {
17239
17549
  arg1->and_(arg2, arg3, v);
17240
17550
  }
17241
17551
  else if (type == T_STRING){
17242
- int alloc = 0;
17243
- char* v=NULL;
17244
- int ret = SWIG_AsCharPtrAndSize(argv[2], &v, NULL, &alloc);
17552
+ SWIG_CHAR buf4;
17553
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
17245
17554
  if (!SWIG_IsOK(ret)) {
17246
17555
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","and_", 3, argv[2]));
17247
17556
  }
17248
- arg1->and_(arg2, arg3, v);
17557
+ arg1->and_(arg2, arg3, buf4.str);
17558
+
17249
17559
  }
17250
17560
  else if (type == T_FLOAT){
17251
17561
  double v = 0;
@@ -17282,12 +17592,9 @@ _wrap_query_or_(int argc, VALUE *argv, VALUE self) {
17282
17592
  void *argp1 = 0 ;
17283
17593
  int res1 = 0 ;
17284
17594
  int res2 ;
17285
- char *buf2 = 0 ;
17286
- int alloc2 = 0 ;
17287
- int res3 ;
17288
- char *buf3 = 0 ;
17289
- int alloc3 = 0 ;
17290
-
17595
+ int res3;
17596
+ SWIG_CHAR buf2;
17597
+ SWIG_CHAR buf3;
17291
17598
  if ((argc < 3) || (argc > 3)) {
17292
17599
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
17293
17600
  }
@@ -17296,17 +17603,17 @@ _wrap_query_or_(int argc, VALUE *argv, VALUE self) {
17296
17603
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::query *","or_<(p._TCHAR)>", 1, self ));
17297
17604
  }
17298
17605
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::query * >(argp1);
17299
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
17606
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc);
17300
17607
  if (!SWIG_IsOK(res2)) {
17301
17608
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","or_<(p._TCHAR)>", 2, argv[0] ));
17302
17609
  }
17303
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
17304
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
17610
+ arg2 = reinterpret_cast< _TCHAR * >(buf2.str);
17611
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc);
17305
17612
  if (!SWIG_IsOK(res3)) {
17306
17613
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","or_<(p._TCHAR)>", 3, argv[1] ));
17307
17614
  }
17308
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
17309
-
17615
+ arg3 = reinterpret_cast< _TCHAR * >(buf3.str);
17616
+
17310
17617
  {
17311
17618
  try {
17312
17619
  VALUE type = TYPE(argv[2]);
@@ -17319,13 +17626,12 @@ _wrap_query_or_(int argc, VALUE *argv, VALUE self) {
17319
17626
  arg1->or_(arg2, arg3, v);
17320
17627
  }
17321
17628
  else if (type == T_STRING){
17322
- int alloc = 0;
17323
- char* v=NULL;
17324
- int ret = SWIG_AsCharPtrAndSize(argv[2], &v, NULL, &alloc);
17629
+ SWIG_CHAR buf4;
17630
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
17325
17631
  if (!SWIG_IsOK(ret)) {
17326
17632
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","or_", 3, argv[2]));
17327
17633
  }
17328
- arg1->or_(arg2, arg3, v);
17634
+ arg1->or_(arg2, arg3, buf4.str);
17329
17635
  }
17330
17636
  else if (type == T_FLOAT){
17331
17637
  double v = 0;
@@ -17358,7 +17664,7 @@ _wrap_query_in(int nargs, VALUE *args, VALUE self) {
17358
17664
  bzs::db::protocol::tdap::client::query *arg1 = 0x00 ;
17359
17665
  void *argp1 = 0 ;
17360
17666
  int res1 = 0 ;
17361
-
17667
+
17362
17668
  if (nargs > 8) SWIG_fail;
17363
17669
  {
17364
17670
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__query, 0 | 0 );
@@ -17367,7 +17673,8 @@ _wrap_query_in(int nargs, VALUE *args, VALUE self) {
17367
17673
  }
17368
17674
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::query * >(argp1);
17369
17675
  }
17370
-
17676
+
17677
+
17371
17678
  // addSeekKeyValues
17372
17679
  {
17373
17680
  for (int i = 0; i < nargs; ++i){
@@ -17381,13 +17688,12 @@ _wrap_query_in(int nargs, VALUE *args, VALUE self) {
17381
17688
  arg1->addSeekKeyValue(lexical_cast(v).c_str());
17382
17689
  }
17383
17690
  else if (type == T_STRING){
17384
- int alloc = 0;
17385
- char* v=NULL;
17386
- int ret = SWIG_AsCharPtrAndSize(args[i], &v, NULL, &alloc);
17691
+ SWIG_CHAR buf;
17692
+ int ret = SWIG_AsCharPtrAndSize(args[i], &buf.str, NULL, &buf.alloc);
17387
17693
  if (!SWIG_IsOK(ret)) {
17388
17694
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","in", i+1, args[i]));
17389
17695
  }
17390
- arg1->addSeekKeyValue(lexical_cast(v).c_str());
17696
+ arg1->addSeekKeyValue(buf.str);
17391
17697
  }
17392
17698
  else if (type == T_FLOAT){
17393
17699
  double v = 0;
@@ -20166,37 +20472,125 @@ fail:
20166
20472
  return Qnil;
20167
20473
  }
20168
20474
 
20169
-
20170
- SWIGINTERN VALUE
20171
- _wrap_database_close(int argc, VALUE *argv, VALUE self) {
20172
- bzs::db::protocol::tdap::client::database *arg1 = (bzs::db::protocol::tdap::client::database *) 0 ;
20173
- void *argp1 = 0 ;
20174
- int res1 = 0 ;
20175
-
20176
- if ((argc < 0) || (argc > 0)) {
20177
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
20178
- }
20179
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0 | 0 );
20180
- if (!SWIG_IsOK(res1)) {
20181
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::database *","close", 1, self ));
20182
- }
20183
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::database * >(argp1);
20184
- {
20185
- try {
20186
- (arg1)->close();
20187
- } catch (bzs::rtl::exception& e) {
20188
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
20189
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
20190
- } catch (std::exception &e) {
20191
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
20192
- rb_raise(cpp_std_error, e.what());
20193
- }
20194
- }
20195
- return Qnil;
20196
- fail:
20197
- return Qnil;
20198
- }
20199
-
20475
+
20476
+ SWIGINTERN VALUE
20477
+ _wrap_database_close__SWIG_0(int argc, VALUE *argv, VALUE self) {
20478
+ bzs::db::protocol::tdap::client::database *arg1 = (bzs::db::protocol::tdap::client::database *) 0;
20479
+ bool arg2;
20480
+ void *argp1 = 0;
20481
+ int res1 = 0;
20482
+ bool val2;
20483
+ int ecode2 = 0;
20484
+
20485
+ if ((argc < 1) || (argc > 1)) {
20486
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
20487
+ }
20488
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0 | 0);
20489
+ if (!SWIG_IsOK(res1)) {
20490
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::database *", "close", 1, self));
20491
+ }
20492
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::database * >(argp1);
20493
+ ecode2 = SWIG_AsVal_bool(argv[0], &val2);
20494
+ if (!SWIG_IsOK(ecode2)) {
20495
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "bool", "close", 2, argv[0]));
20496
+ }
20497
+ arg2 = static_cast< bool >(val2);
20498
+ {
20499
+ try {
20500
+ (arg1)->close(arg2);
20501
+ }
20502
+ catch (bzs::rtl::exception& e) {
20503
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
20504
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
20505
+ }
20506
+ catch (std::exception &e) {
20507
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
20508
+ rb_raise(cpp_std_error, e.what());
20509
+ }
20510
+ }
20511
+ return Qnil;
20512
+ fail:
20513
+ return Qnil;
20514
+ }
20515
+
20516
+
20517
+ SWIGINTERN VALUE
20518
+ _wrap_database_close__SWIG_1(int argc, VALUE *argv, VALUE self) {
20519
+ bzs::db::protocol::tdap::client::database *arg1 = (bzs::db::protocol::tdap::client::database *) 0;
20520
+ void *argp1 = 0;
20521
+ int res1 = 0;
20522
+
20523
+ if ((argc < 0) || (argc > 0)) {
20524
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
20525
+ }
20526
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0 | 0);
20527
+ if (!SWIG_IsOK(res1)) {
20528
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::database *", "close", 1, self));
20529
+ }
20530
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::database * >(argp1);
20531
+ {
20532
+ try {
20533
+ (arg1)->close();
20534
+ }
20535
+ catch (bzs::rtl::exception& e) {
20536
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
20537
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
20538
+ }
20539
+ catch (std::exception &e) {
20540
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
20541
+ rb_raise(cpp_std_error, e.what());
20542
+ }
20543
+ }
20544
+ return Qnil;
20545
+ fail:
20546
+ return Qnil;
20547
+ }
20548
+
20549
+
20550
+ SWIGINTERN VALUE _wrap_database_close(int nargs, VALUE *args, VALUE self) {
20551
+ int argc;
20552
+ VALUE argv[3];
20553
+ int ii;
20554
+
20555
+ argc = nargs + 1;
20556
+ argv[0] = self;
20557
+ if (argc > 3) SWIG_fail;
20558
+ for (ii = 1; (ii < argc); ++ii) {
20559
+ argv[ii] = args[ii - 1];
20560
+ }
20561
+ if (argc == 1) {
20562
+ int _v;
20563
+ void *vptr = 0;
20564
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0);
20565
+ _v = SWIG_CheckState(res);
20566
+ if (_v) {
20567
+ return _wrap_database_close__SWIG_1(nargs, args, self);
20568
+ }
20569
+ }
20570
+ if (argc == 2) {
20571
+ int _v;
20572
+ void *vptr = 0;
20573
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0);
20574
+ _v = SWIG_CheckState(res);
20575
+ if (_v) {
20576
+ {
20577
+ int res = SWIG_AsVal_bool(argv[1], NULL);
20578
+ _v = SWIG_CheckState(res);
20579
+ }
20580
+ if (_v) {
20581
+ return _wrap_database_close__SWIG_0(nargs, args, self);
20582
+ }
20583
+ }
20584
+ }
20585
+
20586
+ fail:
20587
+ Ruby_Format_OverloadedError(argc, 3, "database.close",
20588
+ " void database.close(bool withDropDefaultSchema)\n"
20589
+ " void database.close()\n");
20590
+
20591
+ return Qnil;
20592
+ }
20593
+
20200
20594
 
20201
20595
  SWIGINTERN VALUE
20202
20596
  _wrap_database_aclReload(int argc, VALUE *argv, VALUE self) {
@@ -26482,128 +26876,194 @@ fail:
26482
26876
 
26483
26877
  static swig_class SwigClassWritableRecord;
26484
26878
 
26485
- SWIGINTERN VALUE
26486
- _wrap_writableRecord_read__SWIG_0(int argc, VALUE *argv, VALUE self) {
26487
- bzs::db::protocol::tdap::client::writableRecord *arg1 = (bzs::db::protocol::tdap::client::writableRecord *) 0 ;
26488
- bool arg2 ;
26489
- void *argp1 = 0 ;
26490
- int res1 = 0 ;
26491
- bool val2 ;
26492
- int ecode2 = 0 ;
26493
- bool result;
26494
- VALUE vresult = Qnil;
26495
-
26496
- if ((argc < 1) || (argc > 1)) {
26497
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
26498
- }
26499
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0 | 0 );
26500
- if (!SWIG_IsOK(res1)) {
26501
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::writableRecord *","read", 1, self ));
26502
- }
26503
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::writableRecord * >(argp1);
26504
- ecode2 = SWIG_AsVal_bool(argv[0], &val2);
26505
- if (!SWIG_IsOK(ecode2)) {
26506
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","read", 2, argv[0] ));
26507
- }
26508
- arg2 = static_cast< bool >(val2);
26509
- {
26510
- try {
26511
- result = (bool)(arg1)->read(arg2);
26512
- } catch (bzs::rtl::exception& e) {
26513
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
26514
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
26515
- } catch (std::exception &e) {
26516
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
26517
- rb_raise(cpp_std_error, e.what());
26518
- }
26519
- }
26520
- vresult = SWIG_From_bool(static_cast< bool >(result));
26521
- return vresult;
26522
- fail:
26523
- return Qnil;
26879
+
26880
+ SWIGINTERN VALUE
26881
+ _wrap_writableRecord_read__SWIG_0(int argc, VALUE *argv, VALUE self) {
26882
+ bzs::db::protocol::tdap::client::writableRecord *arg1 = (bzs::db::protocol::tdap::client::writableRecord *) 0;
26883
+ bool arg2;
26884
+ void *argp1 = 0;
26885
+ int res1 = 0;
26886
+ bool val2;
26887
+ int ecode2 = 0;
26888
+ bool result;
26889
+ VALUE vresult = Qnil;
26890
+
26891
+ if ((argc < 1) || (argc > 1)) {
26892
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
26893
+ }
26894
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0 | 0);
26895
+ if (!SWIG_IsOK(res1)) {
26896
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::writableRecord *", "read", 1, self));
26897
+ }
26898
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::writableRecord * >(argp1);
26899
+ ecode2 = SWIG_AsVal_bool(argv[0], &val2);
26900
+ if (!SWIG_IsOK(ecode2)) {
26901
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "bool", "read", 2, argv[0]));
26902
+ }
26903
+ arg2 = static_cast< bool >(val2);
26904
+ {
26905
+ try {
26906
+ result = (bool)(arg1)->read(arg2);
26907
+ }
26908
+ catch (bzs::rtl::exception& e) {
26909
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
26910
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
26911
+ }
26912
+ catch (std::exception &e) {
26913
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
26914
+ rb_raise(cpp_std_error, e.what());
26915
+ }
26916
+ }
26917
+ vresult = SWIG_From_bool(static_cast< bool >(result));
26918
+ return vresult;
26919
+ fail:
26920
+ return Qnil;
26921
+ }
26922
+
26923
+
26924
+ SWIGINTERN VALUE
26925
+ _wrap_writableRecord_read__SWIG_1(int argc, VALUE *argv, VALUE self) {
26926
+ bzs::db::protocol::tdap::client::writableRecord *arg1 = (bzs::db::protocol::tdap::client::writableRecord *) 0;
26927
+ void *argp1 = 0;
26928
+ int res1 = 0;
26929
+ bool result;
26930
+ VALUE vresult = Qnil;
26931
+
26932
+ if ((argc < 0) || (argc > 0)) {
26933
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
26934
+ }
26935
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0 | 0);
26936
+ if (!SWIG_IsOK(res1)) {
26937
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::writableRecord *", "read", 1, self));
26938
+ }
26939
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::writableRecord * >(argp1);
26940
+ {
26941
+ try {
26942
+ result = (bool)(arg1)->read();
26943
+ }
26944
+ catch (bzs::rtl::exception& e) {
26945
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
26946
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
26947
+ }
26948
+ catch (std::exception &e) {
26949
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
26950
+ rb_raise(cpp_std_error, e.what());
26951
+ }
26952
+ }
26953
+ vresult = SWIG_From_bool(static_cast< bool >(result));
26954
+ return vresult;
26955
+ fail:
26956
+ return Qnil;
26957
+ }
26958
+
26959
+
26960
+ SWIGINTERN VALUE
26961
+ _wrap_writableRecord_read__SWIG_2(int argc, VALUE *argv, VALUE self) {
26962
+ bzs::db::protocol::tdap::client::writableRecord *arg1 = (bzs::db::protocol::tdap::client::writableRecord *) 0;
26963
+ bookmark_td *arg2 = 0;
26964
+ void *argp1 = 0;
26965
+ int res1 = 0;
26966
+ void *argp2 = 0;
26967
+ int res2 = 0;
26968
+ bool result;
26969
+ VALUE vresult = Qnil;
26970
+
26971
+ if ((argc < 1) || (argc > 1)) {
26972
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
26973
+ }
26974
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0 | 0);
26975
+ if (!SWIG_IsOK(res1)) {
26976
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::writableRecord *", "read", 1, self));
26977
+ }
26978
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::writableRecord * >(argp1);
26979
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0);
26980
+ if (!SWIG_IsOK(res2)) {
26981
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "read", 2, argv[0]));
26982
+ }
26983
+ if (!argp2) {
26984
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "read", 2, argv[0]));
26985
+ }
26986
+ arg2 = reinterpret_cast< bookmark_td * >(argp2);
26987
+ {
26988
+ try {
26989
+ result = (bool)(arg1)->read(*arg2);
26990
+ }
26991
+ catch (bzs::rtl::exception& e) {
26992
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
26993
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
26994
+ }
26995
+ catch (std::exception &e) {
26996
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
26997
+ rb_raise(cpp_std_error, e.what());
26998
+ }
26999
+ }
27000
+ vresult = SWIG_From_bool(static_cast< bool >(result));
27001
+ return vresult;
27002
+ fail:
27003
+ return Qnil;
27004
+ }
27005
+
27006
+
27007
+ SWIGINTERN VALUE _wrap_writableRecord_read(int nargs, VALUE *args, VALUE self) {
27008
+ int argc;
27009
+ VALUE argv[3];
27010
+ int ii;
27011
+
27012
+ argc = nargs + 1;
27013
+ argv[0] = self;
27014
+ if (argc > 3) SWIG_fail;
27015
+ for (ii = 1; (ii < argc); ++ii) {
27016
+ argv[ii] = args[ii - 1];
27017
+ }
27018
+ if (argc == 1) {
27019
+ int _v;
27020
+ void *vptr = 0;
27021
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0);
27022
+ _v = SWIG_CheckState(res);
27023
+ if (_v) {
27024
+ return _wrap_writableRecord_read__SWIG_1(nargs, args, self);
27025
+ }
27026
+ }
27027
+ if (argc == 2) {
27028
+ int _v;
27029
+ void *vptr = 0;
27030
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0);
27031
+ _v = SWIG_CheckState(res);
27032
+ if (_v) {
27033
+ void *vptr = 0;
27034
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0);
27035
+ _v = SWIG_CheckState(res);
27036
+ if (_v) {
27037
+ return _wrap_writableRecord_read__SWIG_2(nargs, args, self);
27038
+ }
27039
+ }
27040
+ }
27041
+ if (argc == 2) {
27042
+ int _v;
27043
+ void *vptr = 0;
27044
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0);
27045
+ _v = SWIG_CheckState(res);
27046
+ if (_v) {
27047
+ {
27048
+ int res = SWIG_AsVal_bool(argv[1], NULL);
27049
+ _v = SWIG_CheckState(res);
27050
+ }
27051
+ if (_v) {
27052
+ return _wrap_writableRecord_read__SWIG_0(nargs, args, self);
27053
+ }
27054
+ }
27055
+ }
27056
+
27057
+ fail:
27058
+ Ruby_Format_OverloadedError(argc, 3, "writableRecord.read",
27059
+ " bool writableRecord.read(bool KeysetAlrady)\n"
27060
+ " bool writableRecord.read()\n"
27061
+ " bool writableRecord.read(bookmark_td &bm)\n");
27062
+
27063
+ return Qnil;
26524
27064
  }
26525
27065
 
26526
27066
 
26527
- SWIGINTERN VALUE
26528
- _wrap_writableRecord_read__SWIG_1(int argc, VALUE *argv, VALUE self) {
26529
- bzs::db::protocol::tdap::client::writableRecord *arg1 = (bzs::db::protocol::tdap::client::writableRecord *) 0 ;
26530
- void *argp1 = 0 ;
26531
- int res1 = 0 ;
26532
- bool result;
26533
- VALUE vresult = Qnil;
26534
-
26535
- if ((argc < 0) || (argc > 0)) {
26536
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
26537
- }
26538
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0 | 0 );
26539
- if (!SWIG_IsOK(res1)) {
26540
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::writableRecord *","read", 1, self ));
26541
- }
26542
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::writableRecord * >(argp1);
26543
- {
26544
- try {
26545
- result = (bool)(arg1)->read();
26546
- } catch (bzs::rtl::exception& e) {
26547
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
26548
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
26549
- } catch (std::exception &e) {
26550
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
26551
- rb_raise(cpp_std_error, e.what());
26552
- }
26553
- }
26554
- vresult = SWIG_From_bool(static_cast< bool >(result));
26555
- return vresult;
26556
- fail:
26557
- return Qnil;
26558
- }
26559
-
26560
-
26561
- SWIGINTERN VALUE _wrap_writableRecord_read(int nargs, VALUE *args, VALUE self) {
26562
- int argc;
26563
- VALUE argv[3];
26564
- int ii;
26565
-
26566
- argc = nargs + 1;
26567
- argv[0] = self;
26568
- if (argc > 3) SWIG_fail;
26569
- for (ii = 1; (ii < argc); ++ii) {
26570
- argv[ii] = args[ii-1];
26571
- }
26572
- if (argc == 1) {
26573
- int _v;
26574
- void *vptr = 0;
26575
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0);
26576
- _v = SWIG_CheckState(res);
26577
- if (_v) {
26578
- return _wrap_writableRecord_read__SWIG_1(nargs, args, self);
26579
- }
26580
- }
26581
- if (argc == 2) {
26582
- int _v;
26583
- void *vptr = 0;
26584
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0);
26585
- _v = SWIG_CheckState(res);
26586
- if (_v) {
26587
- {
26588
- int res = SWIG_AsVal_bool(argv[1], NULL);
26589
- _v = SWIG_CheckState(res);
26590
- }
26591
- if (_v) {
26592
- return _wrap_writableRecord_read__SWIG_0(nargs, args, self);
26593
- }
26594
- }
26595
- }
26596
-
26597
- fail:
26598
- Ruby_Format_OverloadedError( argc, 3, "writableRecord.read",
26599
- " bool writableRecord.read(bool KeysetAlrady)\n"
26600
- " bool writableRecord.read()\n");
26601
-
26602
- return Qnil;
26603
- }
26604
-
26605
-
26606
-
26607
27067
  /*
26608
27068
  Document-method: Transactd::writableRecord.insert
26609
27069
 
@@ -26843,14 +27303,13 @@ _wrap_writableRecord___setitem__(int argc, VALUE *argv, VALUE self) {
26843
27303
  SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "uint_td","__setitem__", 2, argv[0] ));
26844
27304
  }
26845
27305
  }else if (type == T_STRING){
26846
- int alloc = 0;
26847
- char* v=NULL;
26848
- int ret = SWIG_AsCharPtrAndSize(argv[0], &v, NULL, &alloc);
27306
+ SWIG_CHAR buf;
27307
+ int ret = SWIG_AsCharPtrAndSize(argv[0], &buf.str, NULL, &buf.alloc);
26849
27308
  if (!SWIG_IsOK(ret)) {
26850
27309
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","__setitem__", 2, argv[0]));
26851
27310
  }
26852
27311
  try {
26853
- index = arg1->indexByName(v);
27312
+ index = arg1->indexByName(buf.str);
26854
27313
  }
26855
27314
  catch (bzs::rtl::exception& e) {
26856
27315
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
@@ -26870,29 +27329,28 @@ _wrap_writableRecord___setitem__(int argc, VALUE *argv, VALUE self) {
26870
27329
  long long v = 0;
26871
27330
  int ecode = SWIG_AsVal_long_SS_long(argv[1], &v);
26872
27331
  if (!SWIG_IsOK(ecode)) {
26873
- SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","setFV", 3, argv[1]));
27332
+ SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "__int64","__setitem__", 3, argv[1]));
26874
27333
  }
26875
27334
  arg1->operator[]((short)index) = v;
26876
27335
  }
26877
27336
  else if (type == T_STRING){
26878
- int alloc = 0;
26879
- char* v=NULL;
26880
- int ret = SWIG_AsCharPtrAndSize(argv[1], &v, NULL, &alloc);
27337
+ SWIG_CHAR buf;
27338
+ int ret = SWIG_AsCharPtrAndSize(argv[1], &buf.str, NULL, &buf.alloc);
26881
27339
  if (!SWIG_IsOK(ret)) {
26882
- SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","setFV", 3, argv[1]));
27340
+ SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","__setitem__", 3, argv[1]));
26883
27341
  }
26884
- arg1->operator[]((short)index) = v;
27342
+ arg1->operator[]((short)index) = buf.str;
26885
27343
  }
26886
27344
  else if (type == T_FLOAT){
26887
27345
  double v = 0;
26888
27346
  int ecode = SWIG_AsVal_double(argv[1], &v);
26889
27347
  if (!SWIG_IsOK(ecode)) {
26890
- SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","setFV", 3, argv[1]));
27348
+ SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","__setitem__", 3, argv[1]));
26891
27349
  }
26892
27350
  arg1->operator[]((short)index) = v;
26893
27351
  }
26894
27352
  else{
26895
- SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "", "__int64 or char *const or double","setFV", 3, argv[1]));
27353
+ SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "", "__int64 or char *const or double","__setitem__", 3, argv[1]));
26896
27354
  }
26897
27355
  }
26898
27356
  catch (bzs::rtl::exception& e) {
@@ -28153,12 +28611,9 @@ _wrap_recordsetQuery_when(int argc, VALUE *argv, VALUE self) {
28153
28611
  void *argp1 = 0 ;
28154
28612
  int res1 = 0 ;
28155
28613
  int res2 ;
28156
- char *buf2 = 0 ;
28157
- int alloc2 = 0 ;
28158
- int res3 ;
28159
- char *buf3 = 0 ;
28160
- int alloc3 = 0 ;
28161
-
28614
+ int res3;
28615
+ SWIG_CHAR buf2;
28616
+ SWIG_CHAR buf3;
28162
28617
  if ((argc < 3) || (argc > 3)) {
28163
28618
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
28164
28619
  }
@@ -28167,16 +28622,16 @@ _wrap_recordsetQuery_when(int argc, VALUE *argv, VALUE self) {
28167
28622
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::recordsetQuery *","when<(p._TCHAR)>", 1, self ));
28168
28623
  }
28169
28624
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::recordsetQuery * >(argp1);
28170
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
28625
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc);
28171
28626
  if (!SWIG_IsOK(res2)) {
28172
28627
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","when<(p._TCHAR)>", 2, argv[0] ));
28173
28628
  }
28174
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
28175
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
28629
+ arg2 = reinterpret_cast< _TCHAR * >(buf2.str);
28630
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc);
28176
28631
  if (!SWIG_IsOK(res3)) {
28177
28632
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","when<(p._TCHAR)>", 3, argv[1] ));
28178
28633
  }
28179
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
28634
+ arg3 = reinterpret_cast< _TCHAR * >(buf3.str);
28180
28635
  {
28181
28636
  try {
28182
28637
  VALUE type = TYPE(argv[2]);
@@ -28189,13 +28644,12 @@ _wrap_recordsetQuery_when(int argc, VALUE *argv, VALUE self) {
28189
28644
  arg1->when(arg2, arg3, v);
28190
28645
  }
28191
28646
  else if (type == T_STRING){
28192
- int alloc = 0;
28193
- char* v=NULL;
28194
- int ret = SWIG_AsCharPtrAndSize(argv[2], &v, NULL, &alloc);
28647
+ SWIG_CHAR buf4;
28648
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
28195
28649
  if (!SWIG_IsOK(ret)) {
28196
28650
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","when", 3, argv[2]));
28197
28651
  }
28198
- arg1->when(arg2, arg3, v);
28652
+ arg1->when(arg2, arg3, buf4.str);
28199
28653
  }
28200
28654
  else if (type == T_FLOAT){
28201
28655
  double v = 0;
@@ -28232,12 +28686,9 @@ _wrap_recordsetQuery_and_(int argc, VALUE *argv, VALUE self) {
28232
28686
  void *argp1 = 0 ;
28233
28687
  int res1 = 0 ;
28234
28688
  int res2 ;
28235
- char *buf2 = 0 ;
28236
- int alloc2 = 0 ;
28237
- int res3 ;
28238
- char *buf3 = 0 ;
28239
- int alloc3 = 0 ;
28240
-
28689
+ int res3;
28690
+ SWIG_CHAR buf2;
28691
+ SWIG_CHAR buf3;
28241
28692
  if ((argc < 3) || (argc > 3)) {
28242
28693
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
28243
28694
  }
@@ -28246,16 +28697,16 @@ _wrap_recordsetQuery_and_(int argc, VALUE *argv, VALUE self) {
28246
28697
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::recordsetQuery *","and_<(p._TCHAR)>", 1, self ));
28247
28698
  }
28248
28699
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::recordsetQuery * >(argp1);
28249
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
28700
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc);
28250
28701
  if (!SWIG_IsOK(res2)) {
28251
28702
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","and_<(p._TCHAR)>", 2, argv[0] ));
28252
28703
  }
28253
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
28254
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
28704
+ arg2 = reinterpret_cast< _TCHAR * >(buf2.str);
28705
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc);
28255
28706
  if (!SWIG_IsOK(res3)) {
28256
28707
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","and_<(p._TCHAR)>", 3, argv[1] ));
28257
28708
  }
28258
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
28709
+ arg3 = reinterpret_cast< _TCHAR * >(buf3.str);
28259
28710
  {
28260
28711
  try {
28261
28712
  VALUE type = TYPE(argv[2]);
@@ -28268,13 +28719,12 @@ _wrap_recordsetQuery_and_(int argc, VALUE *argv, VALUE self) {
28268
28719
  arg1->and_(arg2, arg3, v);
28269
28720
  }
28270
28721
  else if (type == T_STRING){
28271
- int alloc = 0;
28272
- char* v=NULL;
28273
- int ret = SWIG_AsCharPtrAndSize(argv[2], &v, NULL, &alloc);
28722
+ SWIG_CHAR buf4;
28723
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
28274
28724
  if (!SWIG_IsOK(ret)) {
28275
28725
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","and_", 3, argv[2]));
28276
28726
  }
28277
- arg1->and_(arg2, arg3, v);
28727
+ arg1->and_(arg2, arg3, buf4.str);
28278
28728
  }
28279
28729
  else if (type == T_FLOAT){
28280
28730
  double v = 0;
@@ -28311,12 +28761,9 @@ _wrap_recordsetQuery_or_(int argc, VALUE *argv, VALUE self) {
28311
28761
  void *argp1 = 0 ;
28312
28762
  int res1 = 0 ;
28313
28763
  int res2 ;
28314
- char *buf2 = 0 ;
28315
- int alloc2 = 0 ;
28316
- int res3 ;
28317
- char *buf3 = 0 ;
28318
- int alloc3 = 0 ;
28319
-
28764
+ int res3;
28765
+ SWIG_CHAR buf2;
28766
+ SWIG_CHAR buf3;
28320
28767
  if ((argc < 3) || (argc > 3)) {
28321
28768
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
28322
28769
  }
@@ -28325,16 +28772,16 @@ _wrap_recordsetQuery_or_(int argc, VALUE *argv, VALUE self) {
28325
28772
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::recordsetQuery *","or_<(p._TCHAR)>", 1, self ));
28326
28773
  }
28327
28774
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::recordsetQuery * >(argp1);
28328
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
28775
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2.str, NULL, &buf2.alloc);
28329
28776
  if (!SWIG_IsOK(res2)) {
28330
28777
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","or_<(p._TCHAR)>", 2, argv[0] ));
28331
28778
  }
28332
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
28333
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
28779
+ arg2 = reinterpret_cast< _TCHAR * >(buf2.str);
28780
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3.str, NULL, &buf3.alloc);
28334
28781
  if (!SWIG_IsOK(res3)) {
28335
28782
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","or_<(p._TCHAR)>", 3, argv[1] ));
28336
28783
  }
28337
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
28784
+ arg3 = reinterpret_cast< _TCHAR * >(buf3.str);
28338
28785
  {
28339
28786
  try {
28340
28787
  VALUE type = TYPE(argv[2]);
@@ -28347,13 +28794,12 @@ _wrap_recordsetQuery_or_(int argc, VALUE *argv, VALUE self) {
28347
28794
  arg1->or_(arg2, arg3, v);
28348
28795
  }
28349
28796
  else if (type == T_STRING){
28350
- int alloc = 0;
28351
- char* v=NULL;
28352
- int ret = SWIG_AsCharPtrAndSize(argv[2], &v, NULL, &alloc);
28797
+ SWIG_CHAR buf4;
28798
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
28353
28799
  if (!SWIG_IsOK(ret)) {
28354
28800
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","or_", 3, argv[2]));
28355
28801
  }
28356
- arg1->or_(arg2, arg3, v);
28802
+ arg1->or_(arg2, arg3, buf4.str);
28357
28803
  }
28358
28804
  else if (type == T_FLOAT){
28359
28805
  double v = 0;
@@ -31673,6 +32119,7 @@ SWIGINTERN VALUE
31673
32119
  _wrap_new_activeTable__SWIG_1(int argc, VALUE *argv, VALUE self) {
31674
32120
  bzs::db::protocol::tdap::client::database *arg1 = (bzs::db::protocol::tdap::client::database *) 0 ;
31675
32121
  _TCHAR *arg2 = (_TCHAR *) 0 ;
32122
+ short arg3 = TD_OPEN_NORMAL;
31676
32123
  void *argp1 = 0 ;
31677
32124
  int res1 = 0 ;
31678
32125
  int res2 ;
@@ -31680,7 +32127,7 @@ _wrap_new_activeTable__SWIG_1(int argc, VALUE *argv, VALUE self) {
31680
32127
  int alloc2 = 0 ;
31681
32128
  bzs::db::protocol::tdap::client::activeTable *result = 0 ;
31682
32129
 
31683
- if ((argc < 2) || (argc > 2)) {
32130
+ if ((argc < 2) || (argc > 3)) {
31684
32131
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
31685
32132
  }
31686
32133
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0 | 0 );
@@ -31688,14 +32135,29 @@ _wrap_new_activeTable__SWIG_1(int argc, VALUE *argv, VALUE self) {
31688
32135
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::database *","activeTable", 1, argv[0] ));
31689
32136
  }
31690
32137
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::database * >(argp1);
32138
+
31691
32139
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
31692
32140
  if (!SWIG_IsOK(res2)) {
31693
32141
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR const *","activeTable", 2, argv[1] ));
31694
32142
  }
31695
32143
  arg2 = reinterpret_cast< _TCHAR * >(buf2);
32144
+
32145
+ if (argc == 3)
32146
+ {
32147
+ VALUE type = TYPE(argv[2]);
32148
+ if ((type == T_FIXNUM) || (type == T_BIGNUM))
32149
+ {
32150
+ long long val = 0;
32151
+ int ecode = SWIG_AsVal_long_SS_long(argv[2], &val);
32152
+ if (!SWIG_IsOK(ecode))
32153
+ SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError("", "short", "mode", 3, argv[2]));
32154
+ arg3 = (short)val;
32155
+ }
32156
+ }
32157
+
31696
32158
  {
31697
32159
  try {
31698
- result = (bzs::db::protocol::tdap::client::activeTable *)new_bzs_db_protocol_tdap_client_activeTable__SWIG_1(arg1,(char const *)arg2);
32160
+ result = (bzs::db::protocol::tdap::client::activeTable *)new_bzs_db_protocol_tdap_client_activeTable__SWIG_1(arg1,(char const *)arg2, arg3);
31699
32161
  DATA_PTR(self) = result;
31700
32162
  SWIG_RubyAddTracking(result, self);
31701
32163
  } catch (bzs::rtl::exception& e) {
@@ -31720,7 +32182,7 @@ SWIGINTERN VALUE _wrap_new_activeTable(int nargs, VALUE *args, VALUE self) {
31720
32182
  int ii;
31721
32183
 
31722
32184
  argc = nargs;
31723
- if (argc > 2) SWIG_fail;
32185
+ if (argc > 3) SWIG_fail;
31724
32186
  for (ii = 0; (ii < argc); ++ii) {
31725
32187
  argv[ii] = args[ii];
31726
32188
  }
@@ -31750,6 +32212,20 @@ SWIGINTERN VALUE _wrap_new_activeTable(int nargs, VALUE *args, VALUE self) {
31750
32212
  }
31751
32213
  }
31752
32214
  }
32215
+
32216
+ if (argc == 3) {
32217
+ int _v;
32218
+ void *vptr = 0;
32219
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0);
32220
+ _v = SWIG_CheckState(res);
32221
+ if (_v) {
32222
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
32223
+ _v = SWIG_CheckState(res);
32224
+ if (_v) {
32225
+ return _wrap_new_activeTable__SWIG_1(nargs, args, self);
32226
+ }
32227
+ }
32228
+ }
31753
32229
 
31754
32230
  fail:
31755
32231
  Ruby_Format_OverloadedError( argc, 2, "activeTable.new",
@@ -31829,6 +32305,7 @@ _wrap_activeTable_read__SWIG_1(int argc, VALUE *argv, VALUE self) {
31829
32305
  int res1 = 0 ;
31830
32306
  void *argp2 = 0 ;
31831
32307
  int res2 = 0 ;
32308
+
31832
32309
  bzs::db::protocol::tdap::client::recordset *result = 0 ;
31833
32310
  VALUE vresult = Qnil;
31834
32311
 
@@ -31859,13 +32336,12 @@ _wrap_activeTable_read__SWIG_1(int argc, VALUE *argv, VALUE self) {
31859
32336
  arg2->addValue((__int64)val);
31860
32337
  }
31861
32338
  else if (type == T_STRING){
31862
- int alloc = 0;
31863
- char* buf=NULL;
31864
- int ret = SWIG_AsCharPtrAndSize(argv[i], &buf, NULL, &alloc);
32339
+ SWIG_CHAR buf;
32340
+ int ret = SWIG_AsCharPtrAndSize(argv[i], &buf.str, NULL, &buf.alloc);
31865
32341
  if (!SWIG_IsOK(ret)) {
31866
32342
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","read", i+2, argv[i]));
31867
32343
  }
31868
- arg2->addValue(buf);
32344
+ arg2->addValue(buf.str);
31869
32345
  }
31870
32346
  else if (type == T_FLOAT){
31871
32347
  double val = 0;
@@ -32422,13 +32898,12 @@ SWIGINTERN VALUE _wrap_activeTable_keyValue(int nargs, VALUE *args, VALUE self)
32422
32898
  tb->setFV(fnum, (__int64)val);
32423
32899
  }
32424
32900
  else if (type == T_STRING){
32425
- int alloc = 0;
32426
- char* buf=NULL;
32427
- int ret = SWIG_AsCharPtrAndSize(args[i], &buf, NULL, &alloc);
32901
+ SWIG_CHAR buf;
32902
+ int ret = SWIG_AsCharPtrAndSize(args[i], &buf.str, NULL, &buf.alloc);
32428
32903
  if (!SWIG_IsOK(ret)) {
32429
32904
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","keyValue", i+1, args[i]));
32430
32905
  }
32431
- tb->setFV(fnum, buf);
32906
+ tb->setFV(fnum, buf.str);
32432
32907
  }
32433
32908
  else if (type == T_FLOAT){
32434
32909
  double val = 0;
@@ -33562,7 +34037,7 @@ static void *_p_bzs__db__protocol__tdap__client__lastTo_p_bzs__db__protocol__tda
33562
34037
  static void *_p_bzs__db__protocol__tdap__client__firstTo_p_bzs__db__protocol__tdap__client__recordsetQuery(void *x, int *SWIGUNUSEDPARM(newmemory)) {
33563
34038
  return (void *)((bzs::db::protocol::tdap::client::recordsetQuery *) (bzs::db::protocol::tdap::client::groupFuncBase *) ((bzs::db::protocol::tdap::client::first *) x));
33564
34039
  }
33565
-
34040
+ static swig_type_info _swigt__p_BOOKMARK = { "_p_BOOKMARK", "bookmark_td *|BOOKMARK *", 0, 0, (void*)0, 0 };
33566
34041
  static swig_type_info _swigt__p_HWND = {"_p_HWND", "HWND *", 0, 0, (void*)0, 0};
33567
34042
  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 (bzs::db::protocol::tdap::client::fields const &) > *|bzs::db::protocol::tdap::client::validationFunc *", 0, 0, (void*)0, 0};
33568
34043
  static swig_type_info _swigt__p_boost__shared_ptrT_bzs__db__protocol__tdap__client__database_t = {"_p_boost__shared_ptrT_bzs__db__protocol__tdap__client__database_t", "boost::shared_ptr< bzs::db::protocol::tdap::client::database > *|bzs::db::protocol::tdap::client::database_ptr *", 0, 0, (void*)0, 0};
@@ -33656,6 +34131,7 @@ static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0
33656
34131
  static swig_type_info _swigt__p_void = {"_p_void", "void *|void_td *", 0, 0, (void*)0, 0};
33657
34132
 
33658
34133
  static swig_type_info *swig_type_initial[] = {
34134
+ &_swigt__p_BOOKMARK,
33659
34135
  &_swigt__p_HWND,
33660
34136
  &_swigt__p_boost__functionT_int_fbzs__db__protocol__tdap__client__fields_const_RF_t,
33661
34137
  &_swigt__p_boost__shared_ptrT_bzs__db__protocol__tdap__client__database_t,
@@ -33748,7 +34224,7 @@ static swig_type_info *swig_type_initial[] = {
33748
34224
  &_swigt__p_bzs__db__protocol__tdap__client__last,
33749
34225
  &_swigt__p_bzs__db__protocol__tdap__client__first,
33750
34226
  };
33751
-
34227
+ static swig_cast_info _swigc__p_BOOKMARK[] = { { &_swigt__p_BOOKMARK, 0, 0, 0 }, { 0, 0, 0, 0 } };
33752
34228
  static swig_cast_info _swigc__p_HWND[] = { {&_swigt__p_HWND, 0, 0, 0},{0, 0, 0, 0}};
33753
34229
  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}};
33754
34230
  static swig_cast_info _swigc__p_boost__shared_ptrT_bzs__db__protocol__tdap__client__database_t[] = { {&_swigt__p_boost__shared_ptrT_bzs__db__protocol__tdap__client__database_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -33844,6 +34320,7 @@ static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0,
33844
34320
 
33845
34321
 
33846
34322
  static swig_cast_info *swig_cast_initial[] = {
34323
+ _swigc__p_BOOKMARK,
33847
34324
  _swigc__p_HWND,
33848
34325
  _swigc__p_boost__functionT_int_fbzs__db__protocol__tdap__client__fields_const_RF_t,
33849
34326
  _swigc__p_boost__shared_ptrT_bzs__db__protocol__tdap__client__database_t,
@@ -34218,7 +34695,14 @@ SWIGEXPORT void Init_transactd(void) {
34218
34695
  #else
34219
34696
  rb_define_const(mTransactd, "CP_ACP", SWIG_From_int(static_cast< int >(65001)));
34220
34697
  #endif
34221
- rb_define_const(mTransactd, "TD_ACL_RELOAD", SWIG_From_int(static_cast< int >(TD_ACL_RELOAD)));
34698
+ SwigClassBOOKMARK.klass = rb_define_class_under(mTransactd, "BOOKMARK", rb_cObject);
34699
+ SWIG_TypeClientData(SWIGTYPE_p_BOOKMARK, (void *)&SwigClassBOOKMARK);
34700
+ rb_define_alloc_func(SwigClassBOOKMARK.klass, _wrap_BOOKMARK_allocate);
34701
+ rb_define_method(SwigClassBOOKMARK.klass, "initialize", VALUEFUNC(_wrap_new_BOOKMARK), -1);
34702
+ rb_define_method(SwigClassBOOKMARK.klass, "isEmpty", VALUEFUNC(_wrap_BOOKMARK_isEmpty), -1);
34703
+ SwigClassBOOKMARK.mark = 0;
34704
+ SwigClassBOOKMARK.destroy = (void(*)(void *)) free_BOOKMARK;
34705
+ SwigClassBOOKMARK.trackObjects = 0;
34222
34706
  rb_define_const(mTransactd, "Ft_string", SWIG_From_int(static_cast< int >(ft_string)));
34223
34707
  rb_define_const(mTransactd, "Ft_integer", SWIG_From_int(static_cast< int >(ft_integer)));
34224
34708
  rb_define_const(mTransactd, "Ft_float", SWIG_From_int(static_cast< int >(ft_float)));
@@ -34681,6 +35165,7 @@ SWIGEXPORT void Init_transactd(void) {
34681
35165
  rb_define_method(SwigClassNstable.klass, "stepLast", VALUEFUNC(_wrap_nstable_stepLast), -1);
34682
35166
  rb_define_method(SwigClassNstable.klass, "stepPrev", VALUEFUNC(_wrap_nstable_stepPrev), -1);
34683
35167
  rb_define_method(SwigClassNstable.klass, "stepNext", VALUEFUNC(_wrap_nstable_stepNext), -1);
35168
+ rb_define_method(SwigClassNstable.klass, "bookmarkLen", VALUEFUNC(_wrap_nstable_bookmarkLen), -1);
34684
35169
  rb_define_method(SwigClassNstable.klass, "bookmark", VALUEFUNC(_wrap_nstable_bookmark), -1);
34685
35170
  rb_define_method(SwigClassNstable.klass, "seekByBookmark", VALUEFUNC(_wrap_nstable_seekByBookmark), -1);
34686
35171
  rb_define_method(SwigClassNstable.klass, "getPercentage", VALUEFUNC(_wrap_nstable_getPercentage), -1);
@@ -34712,6 +35197,7 @@ SWIGEXPORT void Init_transactd(void) {
34712
35197
  rb_define_method(SwigClassDbdef.klass, "tableDefPtr", VALUEFUNC(_wrap_dbdef_tableDefPtr), -1);
34713
35198
  rb_define_method(SwigClassDbdef.klass, "setVersion", VALUEFUNC(_wrap_dbdef_setVersion), -1);
34714
35199
  rb_define_method(SwigClassDbdef.klass, "version", VALUEFUNC(_wrap_dbdef_version), -1);
35200
+ rb_define_method(SwigClassDbdef.klass, "validateTableDef", VALUEFUNC(_wrap_dbdef_validateTableDef), -1);
34715
35201
  rb_define_method(SwigClassDbdef.klass, "stat", VALUEFUNC(_wrap_dbdef_stat), -1);
34716
35202
  rb_define_method(SwigClassDbdef.klass, "updateTableDef", VALUEFUNC(_wrap_dbdef_updateTableDef), -1);
34717
35203
  rb_define_method(SwigClassDbdef.klass, "insertField", VALUEFUNC(_wrap_dbdef_insertField), -1);
@@ -34745,8 +35231,9 @@ SWIGEXPORT void Init_transactd(void) {
34745
35231
  rb_define_method(SwigClassTable.klass, "optionalData", VALUEFUNC(_wrap_table_optionalData), -1);
34746
35232
  rb_define_method(SwigClassTable.klass, "setOptionalData", VALUEFUNC(_wrap_table_setOptionalData), -1);
34747
35233
  rb_define_method(SwigClassTable.klass, "myDateTimeValueByBtrv", VALUEFUNC(_wrap_table_myDateTimeValueByBtrv), -1);
34748
- rb_define_method(SwigClassTable.klass, "bookMarksCount", VALUEFUNC(_wrap_table_bookMarksCount), -1);
34749
- rb_define_method(SwigClassTable.klass, "moveBookmarksId", VALUEFUNC(_wrap_table_moveBookmarksId), -1);
35234
+ rb_define_method(SwigClassTable.klass, "bookmarksCount", VALUEFUNC(_wrap_table_bookmarksCount), -1);
35235
+ rb_define_method(SwigClassTable.klass, "moveBookmarks", VALUEFUNC(_wrap_table_moveBookmarks), -1);
35236
+ rb_define_method(SwigClassTable.klass, "bookmarks", VALUEFUNC(_wrap_table_bookmarks), -1);
34750
35237
  rb_define_method(SwigClassTable.klass, "clearBuffer", VALUEFUNC(_wrap_table_clearBuffer), -1);
34751
35238
  rb_define_method(SwigClassTable.klass, "getRecordHash", VALUEFUNC(_wrap_table_getRecordHash), -1);
34752
35239
  rb_define_method(SwigClassTable.klass, "smartUpdate", VALUEFUNC(_wrap_table_smartUpdate), -1);
@@ -34793,6 +35280,7 @@ SWIGEXPORT void Init_transactd(void) {
34793
35280
  rb_define_method(SwigClassQueryBase.klass, "clearSeekKeyValues", VALUEFUNC(_wrap_queryBase_clearSeekKeyValues), -1);
34794
35281
  rb_define_method(SwigClassQueryBase.klass, "clearSelectFields", VALUEFUNC(_wrap_queryBase_clearSelectFields), -1);
34795
35282
  rb_define_method(SwigClassQueryBase.klass, "addSeekKeyValue", VALUEFUNC(_wrap_queryBase_addSeekKeyValue), -1);
35283
+ rb_define_method(SwigClassQueryBase.klass, "addSeekBookmark", VALUEFUNC(_wrap_queryBase_addSeekBookmark), -1);
34796
35284
  rb_define_method(SwigClassQueryBase.klass, "reserveSeekKeyValueSize", VALUEFUNC(_wrap_queryBase_reserveSeekKeyValueSize), -1);
34797
35285
  rb_define_method(SwigClassQueryBase.klass, "queryString", VALUEFUNC(_wrap_queryBase_queryString), -1);
34798
35286
  rb_define_method(SwigClassQueryBase.klass, "reject", VALUEFUNC(_wrap_queryBase_reject), -1);
@@ -34817,6 +35305,7 @@ SWIGEXPORT void Init_transactd(void) {
34817
35305
  rb_define_method(SwigClassQueryBase.klass, "reverseAliasName", VALUEFUNC(_wrap_queryBase_reverseAliasName), -1);
34818
35306
  rb_define_method(SwigClassQueryBase.klass, "stopAtLimit", VALUEFUNC(_wrap_queryBase_stopAtLimit), -1);
34819
35307
  rb_define_method(SwigClassQueryBase.klass, "isStopAtLimit", VALUEFUNC(_wrap_queryBase_isStopAtLimit), -1);
35308
+ rb_define_method(SwigClassQueryBase.klass, "isSeekByBookmarks", VALUEFUNC(_wrap_queryBase_isSeekByBookmarks), -1);
34820
35309
  SwigClassQueryBase.mark = 0;
34821
35310
  SwigClassQueryBase.trackObjects = 0;
34822
35311