transactd 2.4.3 → 2.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/RELEASE_NOTE-JA.md +21 -0
  3. data/RELEASE_NOTE.md +22 -0
  4. data/bin/common/tdclc_32_2_4.dll +0 -0
  5. data/bin/common/tdclc_64_2_4.dll +0 -0
  6. data/build/swig/ruby/tdclrb_wrap.cpp +1225 -1848
  7. data/build/swig/tdcl.i +77 -13
  8. data/build/tdclc/tdclc.rc +4 -4
  9. data/build/tdclcpp/tdclcpp.rc +4 -4
  10. data/build/tdclrb/tdclrb.rc +4 -4
  11. data/source/bzs/db/protocol/tdap/client/connectionPool.cpp +11 -14
  12. data/source/bzs/db/protocol/tdap/client/connectionPool.h +1 -6
  13. data/source/bzs/db/protocol/tdap/client/dbDef.h +5 -0
  14. data/source/bzs/db/protocol/tdap/client/dllmain.cpp +5 -10
  15. data/source/bzs/db/protocol/tdap/client/nsDatabase.cpp +6 -5
  16. data/source/bzs/db/protocol/tdap/client/nsDatabase.h +7 -2
  17. data/source/bzs/db/protocol/tdap/client/nsTable.cpp +5 -5
  18. data/source/bzs/db/protocol/tdap/client/nsTable.h +6 -1
  19. data/source/bzs/db/protocol/tdap/client/trnsctcl.def +1 -1
  20. data/source/bzs/db/protocol/tdap/mysql/request.h +7 -2
  21. data/source/bzs/db/protocol/tdap/tdapSchema.cpp +2 -3
  22. data/source/bzs/db/protocol/tdap/tdapcapi.h +4 -4
  23. data/source/bzs/netsvc/client/tcpClient.h +24 -10
  24. data/source/bzs/test/tdclphp/transactd_Test.php +34 -0
  25. data/source/bzs/test/tdclphp/transactd_pool_Test.php +0 -6
  26. data/source/bzs/test/tdclrb/transactd_spec.rb +34 -0
  27. data/source/bzs/test/trdclengn/test_trdclengn.cpp +4 -1
  28. data/source/global/tdclatl/Database.cpp +29 -7
  29. data/source/global/tdclatl/Database.h +6 -0
  30. data/source/global/tdclatl/DbDef.cpp +49 -45
  31. data/source/global/tdclatl/DbDef.h +1 -0
  32. data/source/global/tdclatl/FieldDef.cpp +14 -0
  33. data/source/global/tdclatl/FieldDef.h +4 -0
  34. data/source/global/tdclatl/FieldDefs.cpp +14 -0
  35. data/source/global/tdclatl/FieldDefs.h +4 -0
  36. data/source/global/tdclatl/GroupQuery.cpp +15 -0
  37. data/source/global/tdclatl/GroupQuery.h +4 -0
  38. data/source/global/tdclatl/KeyDef.cpp +1 -1
  39. data/source/global/tdclatl/KeyDef.h +1 -1
  40. data/source/global/tdclatl/PooledDbManager.cpp +15 -0
  41. data/source/global/tdclatl/PooledDbManager.h +4 -0
  42. data/source/global/tdclatl/PreparedQuery.cpp +15 -0
  43. data/source/global/tdclatl/PreparedQuery.h +4 -0
  44. data/source/global/tdclatl/QueryBase.cpp +15 -0
  45. data/source/global/tdclatl/QueryBase.h +4 -0
  46. data/source/global/tdclatl/Record.cpp +30 -0
  47. data/source/global/tdclatl/Record.h +8 -0
  48. data/source/global/tdclatl/Recordset.cpp +18 -3
  49. data/source/global/tdclatl/Recordset.h +5 -1
  50. data/source/global/tdclatl/RecordsetQuery.cpp +15 -1
  51. data/source/global/tdclatl/RecordsetQuery.h +5 -1
  52. data/source/global/tdclatl/Table.cpp +29 -3
  53. data/source/global/tdclatl/Table.h +5 -0
  54. data/source/global/tdclatl/TableDef.cpp +15 -0
  55. data/source/global/tdclatl/TableDef.h +4 -0
  56. data/source/global/tdclatl/activeTable.cpp +15 -0
  57. data/source/global/tdclatl/activeTable.h +4 -0
  58. data/source/global/tdclatl/tdclatl.idl +16 -10
  59. metadata +2 -2
@@ -51,13 +51,13 @@ template <typename T> T SwigValueInit() {
51
51
 
52
52
  struct SWIG_CHAR
53
53
  {
54
- int alloc;
55
- char* str;
56
- SWIG_CHAR() :alloc(0), str(0){}
57
- ~SWIG_CHAR()
58
- {
59
- if (alloc) delete[] str;
60
- }
54
+ int alloc;
55
+ char* str;
56
+ SWIG_CHAR() :alloc(0), str(0){}
57
+ ~SWIG_CHAR()
58
+ {
59
+ if (alloc) delete[] str;
60
+ }
61
61
  };
62
62
 
63
63
  /* -----------------------------------------------------------------------------
@@ -2804,115 +2804,115 @@ _wrap_BOOKMARK_allocate(int argc, VALUE *argv, VALUE self) {
2804
2804
  #endif
2805
2805
 
2806
2806
 
2807
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_BOOKMARK);
2807
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_BOOKMARK);
2808
2808
  #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
2809
- rb_obj_call_init(vresult, argc, argv);
2809
+ rb_obj_call_init(vresult, argc, argv);
2810
2810
  #endif
2811
- return vresult;
2811
+ return vresult;
2812
2812
  }
2813
2813
 
2814
2814
 
2815
2815
  SWIGINTERN VALUE
2816
2816
  _wrap_new_BOOKMARK(int argc, VALUE *argv, VALUE self) {
2817
- BOOKMARK *result = 0;
2817
+ BOOKMARK *result = 0;
2818
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;
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
2837
  fail:
2838
- return Qnil;
2838
+ return Qnil;
2839
2839
  }
2840
2840
 
2841
2841
 
2842
2842
  SWIGINTERN VALUE
2843
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;
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
2875
  }
2876
2876
 
2877
2877
 
2878
2878
  SWIGINTERN void
2879
2879
  free_BOOKMARK(BOOKMARK *arg1) {
2880
- delete arg1;
2880
+ delete arg1;
2881
2881
  }
2882
2882
 
2883
2883
  SWIGINTERN VALUE
2884
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;
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
2916
  }
2917
2917
 
2918
2918
 
@@ -5894,15 +5894,10 @@ _wrap_tabledef_toChar(int argc, VALUE *argv, VALUE self) {
5894
5894
  int res2 ;
5895
5895
  char *buf2 = 0 ;
5896
5896
  int alloc2 = 0 ;
5897
- int res3 ;
5898
- char *buf3 = 0 ;
5899
- int alloc3 = 0 ;
5900
- int val4 ;
5901
- int ecode4 = 0 ;
5902
5897
  char *result = 0 ;
5903
5898
  VALUE vresult = Qnil;
5904
5899
 
5905
- if ((argc < 3) || (argc > 3)) {
5900
+ if (argc != 1) {
5906
5901
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
5907
5902
  }
5908
5903
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__tabledef, 0 | 0 );
@@ -5910,24 +5905,19 @@ _wrap_tabledef_toChar(int argc, VALUE *argv, VALUE self) {
5910
5905
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::tabledef *","toChar", 1, self ));
5911
5906
  }
5912
5907
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::tabledef * >(argp1);
5908
+
5913
5909
  res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
5914
5910
  if (!SWIG_IsOK(res2)) {
5915
5911
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","toChar", 2, argv[0] ));
5916
5912
  }
5917
5913
  arg2 = reinterpret_cast< char * >(buf2);
5918
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
5919
- if (!SWIG_IsOK(res3)) {
5920
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","toChar", 3, argv[1] ));
5921
- }
5922
- arg3 = reinterpret_cast< char * >(buf3);
5923
- ecode4 = SWIG_AsVal_int(argv[2], &val4);
5924
- if (!SWIG_IsOK(ecode4)) {
5925
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","toChar", 4, argv[2] ));
5926
- }
5927
- arg4 = static_cast< int >(val4);
5914
+
5915
+ arg4 = strlen(arg2) * 2;
5916
+ arg3 = new char[arg4];
5917
+
5928
5918
  {
5929
5919
  try {
5930
- result = (char *)(arg1)->toChar(arg2,(char const *)arg3,arg4);
5920
+ result = (char *)(arg1)->toChar(arg3,(char const *)arg2,arg4);
5931
5921
  } catch (bzs::rtl::exception& e) {
5932
5922
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
5933
5923
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -5940,11 +5930,11 @@ _wrap_tabledef_toChar(int argc, VALUE *argv, VALUE self) {
5940
5930
  vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
5941
5931
  }
5942
5932
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5943
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
5933
+ delete [] arg3;
5944
5934
  return vresult;
5945
5935
  fail:
5946
5936
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
5947
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
5937
+ delete [] arg3;
5948
5938
  return Qnil;
5949
5939
  }
5950
5940
 
@@ -8760,113 +8750,6 @@ fail:
8760
8750
  }
8761
8751
 
8762
8752
 
8763
- SWIGINTERN VALUE
8764
- _wrap_nstable_tdapLastErr(int argc, VALUE *argv, VALUE self) {
8765
- bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
8766
- HWND arg2 ;
8767
- _TCHAR *arg3 = (_TCHAR *) 0 ;
8768
- void *argp1 = 0 ;
8769
- int res1 = 0 ;
8770
- void *argp2 ;
8771
- int res2 = 0 ;
8772
- int res3 ;
8773
- char *buf3 = 0 ;
8774
- int alloc3 = 0 ;
8775
- short_td result;
8776
- VALUE vresult = Qnil;
8777
-
8778
- if ((argc < 2) || (argc > 2)) {
8779
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
8780
- }
8781
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0 );
8782
- if (!SWIG_IsOK(res1)) {
8783
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nstable *","tdapErr", 1, self ));
8784
- }
8785
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
8786
- {
8787
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_HWND, 0 );
8788
- if (!SWIG_IsOK(res2)) {
8789
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "HWND","tdapErr", 2, argv[0] ));
8790
- }
8791
- if (!argp2) {
8792
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "HWND","tdapErr", 2, argv[0]));
8793
- } else {
8794
- arg2 = *(reinterpret_cast< HWND * >(argp2));
8795
- }
8796
- }
8797
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
8798
- if (!SWIG_IsOK(res3)) {
8799
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR *","tdapErr", 3, argv[1] ));
8800
- }
8801
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
8802
- {
8803
- try {
8804
- result = (short_td)(arg1)->tdapErr(arg2,arg3);
8805
- } catch (bzs::rtl::exception& e) {
8806
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
8807
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
8808
- } catch (std::exception &e) {
8809
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
8810
- rb_raise(cpp_std_error, e.what());
8811
- }
8812
- }
8813
- vresult = SWIG_From_short(static_cast< short >(result));
8814
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
8815
- return vresult;
8816
- fail:
8817
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
8818
- return Qnil;
8819
- }
8820
-
8821
-
8822
- SWIGINTERN VALUE
8823
- _wrap_nstable_tdapErr__SWIG_0(int argc, VALUE *argv, VALUE self) {
8824
- bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
8825
- HWND arg2 ;
8826
- void *argp1 = 0 ;
8827
- int res1 = 0 ;
8828
- void *argp2 ;
8829
- int res2 = 0 ;
8830
- short_td result;
8831
- VALUE vresult = Qnil;
8832
-
8833
- if ((argc < 1) || (argc > 1)) {
8834
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8835
- }
8836
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0 );
8837
- if (!SWIG_IsOK(res1)) {
8838
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nstable *","tdapErr", 1, self ));
8839
- }
8840
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
8841
- {
8842
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_HWND, 0 );
8843
- if (!SWIG_IsOK(res2)) {
8844
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "HWND","tdapErr", 2, argv[0] ));
8845
- }
8846
- if (!argp2) {
8847
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "HWND","tdapErr", 2, argv[0]));
8848
- } else {
8849
- arg2 = *(reinterpret_cast< HWND * >(argp2));
8850
- }
8851
- }
8852
- {
8853
- try {
8854
- result = (short_td)(arg1)->tdapErr(arg2);
8855
- } catch (bzs::rtl::exception& e) {
8856
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
8857
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
8858
- } catch (std::exception &e) {
8859
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
8860
- rb_raise(cpp_std_error, e.what());
8861
- }
8862
- }
8863
- vresult = SWIG_From_short(static_cast< short >(result));
8864
- return vresult;
8865
- fail:
8866
- return Qnil;
8867
- }
8868
-
8869
-
8870
8753
  SWIGINTERN VALUE
8871
8754
  _wrap_nstable_beginBulkInsert(int argc, VALUE *argv, VALUE self) {
8872
8755
  bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
@@ -10201,41 +10084,41 @@ fail:
10201
10084
  }
10202
10085
 
10203
10086
 
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
-
10087
+ SWIGINTERN VALUE
10088
+ _wrap_nstable_bookmarkLen(int argc, VALUE *argv, VALUE self) {
10089
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10090
+ void *argp1 = 0;
10091
+ int res1 = 0;
10092
+ ushort_td result;
10093
+ VALUE vresult = Qnil;
10094
+
10095
+ if ((argc < 0) || (argc > 0)) {
10096
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
10097
+ }
10098
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10099
+ if (!SWIG_IsOK(res1)) {
10100
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable const *", "bookmarkLen", 1, self));
10101
+ }
10102
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10103
+ {
10104
+ try {
10105
+ result = (ushort_td)((bzs::db::protocol::tdap::client::nstable const *)arg1)->bookmarkLen();
10106
+ }
10107
+ catch (bzs::rtl::exception& e) {
10108
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10109
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10110
+ }
10111
+ catch (std::exception &e) {
10112
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10113
+ rb_raise(cpp_std_error, e.what());
10114
+ }
10115
+ }
10116
+ vresult = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result));
10117
+ return vresult;
10118
+ fail:
10119
+ return Qnil;
10120
+ }
10121
+
10239
10122
 
10240
10123
  SWIGINTERN VALUE
10241
10124
  _wrap_nstable_bookmark(int argc, VALUE *argv, VALUE self) {
@@ -10273,322 +10156,322 @@ fail:
10273
10156
 
10274
10157
  SWIGINTERN VALUE
10275
10158
  _wrap_nstable_seekByBookmark__SWIG_2(int argc, VALUE *argv, VALUE self) {
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;
10159
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10160
+ bookmark_td *arg2 = 0;
10161
+ ushort_td arg3;
10162
+ void *argp1 = 0;
10163
+ int res1 = 0;
10164
+ void *argp2 = 0;
10165
+ int res2 = 0;
10166
+ unsigned short val3;
10167
+ int ecode3 = 0;
10168
+
10169
+ if ((argc < 2) || (argc > 2)) {
10170
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)", argc); SWIG_fail;
10171
+ }
10172
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10173
+ if (!SWIG_IsOK(res1)) {
10174
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "seekByBookmark", 1, self));
10175
+ }
10176
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10177
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0);
10178
+ if (!SWIG_IsOK(res2)) {
10179
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "seekByBookmark", 2, argv[0]));
10180
+ }
10181
+ if (!argp2) {
10182
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "seekByBookmark", 2, argv[0]));
10183
+ }
10184
+ arg2 = reinterpret_cast< bookmark_td * >(argp2);
10185
+ ecode3 = SWIG_AsVal_unsigned_SS_short(argv[1], &val3);
10186
+ if (!SWIG_IsOK(ecode3)) {
10187
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError("", "ushort_td", "seekByBookmark", 3, argv[1]));
10188
+ }
10189
+ arg3 = static_cast< ushort_td >(val3);
10190
+ {
10191
+ try {
10192
+ (arg1)->seekByBookmark(*arg2, arg3);
10193
+ }
10194
+ catch (bzs::rtl::exception& e) {
10195
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10196
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10197
+ }
10198
+ catch (std::exception &e) {
10199
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10200
+ rb_raise(cpp_std_error, e.what());
10201
+ }
10202
+ }
10203
+ return Qnil;
10204
+ fail:
10205
+ return Qnil;
10323
10206
  }
10324
10207
 
10325
10208
 
10326
10209
  SWIGINTERN VALUE
10327
10210
  _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;
10211
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10212
+ bookmark_td *arg2 = 0;
10213
+ void *argp1 = 0;
10214
+ int res1 = 0;
10215
+ void *argp2 = 0;
10216
+ int res2 = 0;
10217
+
10218
+ if ((argc < 1) || (argc > 1)) {
10219
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
10220
+ }
10221
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10222
+ if (!SWIG_IsOK(res1)) {
10223
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "seekByBookmark", 1, self));
10224
+ }
10225
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10226
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0);
10227
+ if (!SWIG_IsOK(res2)) {
10228
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "seekByBookmark", 2, argv[0]));
10229
+ }
10230
+ if (!argp2) {
10231
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "seekByBookmark", 2, argv[0]));
10232
+ }
10233
+ arg2 = reinterpret_cast< bookmark_td * >(argp2);
10234
+ {
10235
+ try {
10236
+ (arg1)->seekByBookmark(*arg2);
10237
+ }
10238
+ catch (bzs::rtl::exception& e) {
10239
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10240
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10241
+ }
10242
+ catch (std::exception &e) {
10243
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10244
+ rb_raise(cpp_std_error, e.what());
10245
+ }
10246
+ }
10247
+ return Qnil;
10248
+ fail:
10249
+ return Qnil;
10367
10250
  }
10368
10251
 
10369
10252
 
10370
10253
  SWIGINTERN VALUE
10371
10254
  _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;
10255
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10256
+ void *argp1 = 0;
10257
+ int res1 = 0;
10258
+
10259
+ if ((argc < 0) || (argc > 0)) {
10260
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
10261
+ }
10262
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10263
+ if (!SWIG_IsOK(res1)) {
10264
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "seekByBookmark", 1, self));
10265
+ }
10266
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10267
+ {
10268
+ try {
10269
+ (arg1)->seekByBookmark();
10270
+ }
10271
+ catch (bzs::rtl::exception& e) {
10272
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10273
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10274
+ }
10275
+ catch (std::exception &e) {
10276
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10277
+ rb_raise(cpp_std_error, e.what());
10278
+ }
10279
+ }
10280
+ return Qnil;
10281
+ fail:
10282
+ return Qnil;
10400
10283
  }
10401
10284
 
10402
10285
 
10403
10286
  SWIGINTERN VALUE _wrap_nstable_seekByBookmark(int nargs, VALUE *args, VALUE self) {
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;
10287
+ int argc;
10288
+ VALUE argv[4];
10289
+ int ii;
10290
+
10291
+ argc = nargs + 1;
10292
+ argv[0] = self;
10293
+ if (argc > 4) SWIG_fail;
10294
+ for (ii = 1; (ii < argc); ++ii) {
10295
+ argv[ii] = args[ii - 1];
10296
+ }
10297
+ if (argc == 1) {
10298
+ int _v;
10299
+ void *vptr = 0;
10300
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10301
+ _v = SWIG_CheckState(res);
10302
+ if (_v) {
10303
+ return _wrap_nstable_seekByBookmark__SWIG_4(nargs, args, self);
10304
+ }
10305
+ }
10306
+ if (argc == 2) {
10307
+ int _v;
10308
+ void *vptr = 0;
10309
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10310
+ _v = SWIG_CheckState(res);
10311
+ if (_v) {
10312
+ void *vptr = 0;
10313
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0);
10314
+ _v = SWIG_CheckState(res);
10315
+ if (_v) {
10316
+ return _wrap_nstable_seekByBookmark__SWIG_3(nargs, args, self);
10317
+ }
10318
+ }
10319
+ }
10320
+ if (argc == 3) {
10321
+ int _v;
10322
+ void *vptr = 0;
10323
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10324
+ _v = SWIG_CheckState(res);
10325
+ if (_v) {
10326
+ void *vptr = 0;
10327
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0);
10328
+ _v = SWIG_CheckState(res);
10329
+ if (_v) {
10330
+ {
10331
+ int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL);
10332
+ _v = SWIG_CheckState(res);
10333
+ }
10334
+ if (_v) {
10335
+ return _wrap_nstable_seekByBookmark__SWIG_2(nargs, args, self);
10336
+ }
10337
+ }
10338
+ }
10339
+ }
10340
+
10341
+ fail:
10342
+ Ruby_Format_OverloadedError(argc, 4, "nstable.seekByBookmark",
10343
+ " void nstable.seekByBookmark(bookmark_td &bm, ushort_td lockBias)\n"
10344
+ " void nstable.seekByBookmark(bookmark_td &bm)\n"
10345
+ " void nstable.seekByBookmark()\n");
10346
+
10347
+ return Qnil;
10465
10348
  }
10466
10349
 
10467
10350
 
10468
10351
  SWIGINTERN VALUE
10469
10352
  _wrap_nstable_getPercentage__SWIG_0(int argc, VALUE *argv, VALUE self) {
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;
10353
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10354
+ void *argp1 = 0;
10355
+ int res1 = 0;
10356
+ percentage_td result;
10357
+ VALUE vresult = Qnil;
10358
+
10359
+ if ((argc < 0) || (argc > 0)) {
10360
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
10361
+ }
10362
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10363
+ if (!SWIG_IsOK(res1)) {
10364
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "getPercentage", 1, self));
10365
+ }
10366
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10367
+ {
10368
+ try {
10369
+ result = (percentage_td)(arg1)->getPercentage();
10370
+ }
10371
+ catch (bzs::rtl::exception& e) {
10372
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10373
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10374
+ }
10375
+ catch (std::exception &e) {
10376
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10377
+ rb_raise(cpp_std_error, e.what());
10378
+ }
10379
+ }
10380
+ vresult = SWIG_From_int(static_cast< int >(result));
10381
+ return vresult;
10382
+ fail:
10383
+ return Qnil;
10501
10384
  }
10502
10385
 
10503
10386
 
10504
10387
  SWIGINTERN VALUE
10505
10388
  _wrap_nstable_getPercentage__SWIG_1(int argc, VALUE *argv, VALUE self) {
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;
10389
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10390
+ bookmark_td *arg2 = 0;
10391
+ void *argp1 = 0;
10392
+ int res1 = 0;
10393
+ void *argp2 = 0;
10394
+ int res2 = 0;
10395
+ percentage_td result;
10396
+ VALUE vresult = Qnil;
10397
+
10398
+ if ((argc < 1) || (argc > 1)) {
10399
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
10400
+ }
10401
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10402
+ if (!SWIG_IsOK(res1)) {
10403
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "getPercentage", 1, self));
10404
+ }
10405
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10406
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0);
10407
+ if (!SWIG_IsOK(res2)) {
10408
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "getPercentage", 2, argv[0]));
10409
+ }
10410
+ if (!argp2) {
10411
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "getPercentage", 2, argv[0]));
10412
+ }
10413
+ arg2 = reinterpret_cast< bookmark_td * >(argp2);
10414
+ {
10415
+ try {
10416
+ result = (percentage_td)(arg1)->getPercentage(*arg2);
10417
+ }
10418
+ catch (bzs::rtl::exception& e) {
10419
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10420
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
10421
+ }
10422
+ catch (std::exception &e) {
10423
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
10424
+ rb_raise(cpp_std_error, e.what());
10425
+ }
10426
+ }
10427
+ vresult = SWIG_From_int(static_cast< int >(result));
10428
+ return vresult;
10429
+ fail:
10430
+ return Qnil;
10548
10431
  }
10549
10432
 
10550
10433
 
10551
10434
  SWIGINTERN VALUE _wrap_nstable_getPercentage(int nargs, VALUE *args, VALUE self) {
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;
10435
+ int argc;
10436
+ VALUE argv[3];
10437
+ int ii;
10438
+
10439
+ argc = nargs + 1;
10440
+ argv[0] = self;
10441
+ if (argc > 3) SWIG_fail;
10442
+ for (ii = 1; (ii < argc); ++ii) {
10443
+ argv[ii] = args[ii - 1];
10444
+ }
10445
+ if (argc == 1) {
10446
+ int _v;
10447
+ void *vptr = 0;
10448
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10449
+ _v = SWIG_CheckState(res);
10450
+ if (_v) {
10451
+ return _wrap_nstable_getPercentage__SWIG_0(nargs, args, self);
10452
+ }
10453
+ }
10454
+ if (argc == 2) {
10455
+ int _v;
10456
+ void *vptr = 0;
10457
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
10458
+ _v = SWIG_CheckState(res);
10459
+ if (_v) {
10460
+ void *vptr = 0;
10461
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0);
10462
+ _v = SWIG_CheckState(res);
10463
+ if (_v) {
10464
+ return _wrap_nstable_getPercentage__SWIG_1(nargs, args, self);
10465
+ }
10466
+ }
10467
+ }
10468
+
10469
+ fail:
10470
+ Ruby_Format_OverloadedError(argc, 3, "nstable.getPercentage",
10471
+ " percentage_td nstable.getPercentage()\n"
10472
+ " percentage_td nstable.getPercentage(bookmark_td &bm)\n");
10473
+
10474
+ return Qnil;
10592
10475
  }
10593
10476
 
10594
10477
 
@@ -11082,125 +10965,125 @@ fail:
11082
10965
  }
11083
10966
 
11084
10967
 
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
- }
10968
+ SWIGINTERN VALUE
10969
+ _wrap_nstable_unlock__SWIG_0(int argc, VALUE *argv, VALUE self) {
10970
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
10971
+ bookmark_td *arg2 = 0;
10972
+ void *argp1 = 0;
10973
+ int res1 = 0;
10974
+ void *argp2 = 0;
10975
+ int res2 = 0;
10976
+
10977
+ if ((argc < 1) || (argc > 1)) {
10978
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
10979
+ }
10980
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
10981
+ if (!SWIG_IsOK(res1)) {
10982
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "unlock", 1, self));
10983
+ }
10984
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
10985
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0);
10986
+ if (!SWIG_IsOK(res2)) {
10987
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "unlock", 2, argv[0]));
10988
+ }
10989
+ if (!argp2) {
10990
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "unlock", 2, argv[0]));
10991
+ }
10992
+ arg2 = reinterpret_cast< bookmark_td * >(argp2);
10993
+ {
10994
+ try {
10995
+ (arg1)->unlock(*arg2);
10996
+ }
10997
+ catch (bzs::rtl::exception& e) {
10998
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
10999
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
11000
+ }
11001
+ catch (std::exception &e) {
11002
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
11003
+ rb_raise(cpp_std_error, e.what());
11004
+ }
11005
+ }
11006
+ return Qnil;
11007
+ fail:
11008
+ return Qnil;
11009
+ }
11010
+
11011
+
11012
+ SWIGINTERN VALUE
11013
+ _wrap_nstable_unlock__SWIG_1(int argc, VALUE *argv, VALUE self) {
11014
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0;
11015
+ void *argp1 = 0;
11016
+ int res1 = 0;
11017
+
11018
+ if ((argc < 0) || (argc > 0)) {
11019
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
11020
+ }
11021
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0);
11022
+ if (!SWIG_IsOK(res1)) {
11023
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::nstable *", "unlock", 1, self));
11024
+ }
11025
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
11026
+ {
11027
+ try {
11028
+ (arg1)->unlock();
11029
+ }
11030
+ catch (bzs::rtl::exception& e) {
11031
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
11032
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
11033
+ }
11034
+ catch (std::exception &e) {
11035
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
11036
+ rb_raise(cpp_std_error, e.what());
11037
+ }
11038
+ }
11039
+ return Qnil;
11040
+ fail:
11041
+ return Qnil;
11042
+ }
11043
+
11044
+
11045
+ SWIGINTERN VALUE _wrap_nstable_unlock(int nargs, VALUE *args, VALUE self) {
11046
+ int argc;
11047
+ VALUE argv[3];
11048
+ int ii;
11049
+
11050
+ argc = nargs + 1;
11051
+ argv[0] = self;
11052
+ if (argc > 3) SWIG_fail;
11053
+ for (ii = 1; (ii < argc); ++ii) {
11054
+ argv[ii] = args[ii - 1];
11055
+ }
11056
+ if (argc == 1) {
11057
+ int _v;
11058
+ void *vptr = 0;
11059
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
11060
+ _v = SWIG_CheckState(res);
11061
+ if (_v) {
11062
+ return _wrap_nstable_unlock__SWIG_1(nargs, args, self);
11063
+ }
11064
+ }
11065
+ if (argc == 2) {
11066
+ int _v;
11067
+ void *vptr = 0;
11068
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
11069
+ _v = SWIG_CheckState(res);
11070
+ if (_v) {
11071
+ void *vptr = 0;
11072
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0);
11073
+ _v = SWIG_CheckState(res);
11074
+ if (_v) {
11075
+ return _wrap_nstable_unlock__SWIG_0(nargs, args, self);
11076
+ }
11077
+ }
11078
+ }
11079
+
11080
+ fail:
11081
+ Ruby_Format_OverloadedError(argc, 3, "nstable.unlock",
11082
+ " void nstable.unlock(bookmark_td &bm)\n"
11083
+ " void nstable.unlock()\n");
11084
+
11085
+ return Qnil;
11086
+ }
11204
11087
 
11205
11088
 
11206
11089
  SWIGINTERN VALUE
@@ -11240,29 +11123,22 @@ fail:
11240
11123
  SWIGINTERN VALUE
11241
11124
  _wrap_nstable_getFileName(int argc, VALUE *argv, VALUE self) {
11242
11125
  _TCHAR *arg1 = (_TCHAR *) 0 ;
11243
- _TCHAR *arg2 = (_TCHAR *) 0 ;
11126
+ _TCHAR arg2[1024] = {NULL} ;
11244
11127
  int res1 ;
11245
11128
  char *buf1 = 0 ;
11246
11129
  int alloc1 = 0 ;
11247
- int res2 ;
11248
- char *buf2 = 0 ;
11249
- int alloc2 = 0 ;
11250
11130
  _TCHAR *result = 0 ;
11251
11131
  VALUE vresult = Qnil;
11252
11132
 
11253
- if ((argc < 2) || (argc > 2)) {
11254
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
11133
+ if (argc != 1){
11134
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11255
11135
  }
11256
11136
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
11257
11137
  if (!SWIG_IsOK(res1)) {
11258
11138
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "_TCHAR const *","bzs::db::protocol::tdap::client::nstable::getFileName", 1, argv[0] ));
11259
11139
  }
11260
11140
  arg1 = reinterpret_cast< _TCHAR * >(buf1);
11261
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
11262
- if (!SWIG_IsOK(res2)) {
11263
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR *","bzs::db::protocol::tdap::client::nstable::getFileName", 2, argv[1] ));
11264
- }
11265
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
11141
+
11266
11142
  {
11267
11143
  try {
11268
11144
  result = (_TCHAR *)bzs::db::protocol::tdap::client::nstable::getFileName((char const *)arg1,arg2);
@@ -11278,127 +11154,34 @@ _wrap_nstable_getFileName(int argc, VALUE *argv, VALUE self) {
11278
11154
  vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
11279
11155
  }
11280
11156
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
11281
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
11282
11157
  return vresult;
11283
11158
  fail:
11284
11159
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
11285
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
11286
- return Qnil;
11287
- }
11288
-
11289
-
11290
- SWIGINTERN VALUE
11291
- _wrap_nstable_tdapErr__SWIG_1(int argc, VALUE *argv, VALUE self) {
11292
- HWND arg1 ;
11293
- short_td arg2 ;
11294
- _TCHAR *arg3 = (_TCHAR *) 0 ;
11295
- _TCHAR *arg4 = (_TCHAR *) 0 ;
11296
- void *argp1 ;
11297
- int res1 = 0 ;
11298
- short val2 ;
11299
- int ecode2 = 0 ;
11300
- int res3 ;
11301
- char *buf3 = 0 ;
11302
- int alloc3 = 0 ;
11303
- int res4 ;
11304
- char *buf4 = 0 ;
11305
- int alloc4 = 0 ;
11306
- short_td result;
11307
- VALUE vresult = Qnil;
11308
-
11309
- if ((argc < 4) || (argc > 4)) {
11310
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
11311
- }
11312
- {
11313
- res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_HWND, 0 );
11314
- if (!SWIG_IsOK(res1)) {
11315
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "HWND","bzs::db::protocol::tdap::client::nstable::tdapErr", 1, argv[0] ));
11316
- }
11317
- if (!argp1) {
11318
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "HWND","bzs::db::protocol::tdap::client::nstable::tdapErr", 1, argv[0]));
11319
- } else {
11320
- arg1 = *(reinterpret_cast< HWND * >(argp1));
11321
- }
11322
- }
11323
- ecode2 = SWIG_AsVal_short(argv[1], &val2);
11324
- if (!SWIG_IsOK(ecode2)) {
11325
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short_td","bzs::db::protocol::tdap::client::nstable::tdapErr", 2, argv[1] ));
11326
- }
11327
- arg2 = static_cast< short_td >(val2);
11328
- res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
11329
- if (!SWIG_IsOK(res3)) {
11330
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","bzs::db::protocol::tdap::client::nstable::tdapErr", 3, argv[2] ));
11331
- }
11332
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
11333
- res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
11334
- if (!SWIG_IsOK(res4)) {
11335
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "_TCHAR *","bzs::db::protocol::tdap::client::nstable::tdapErr", 4, argv[3] ));
11336
- }
11337
- arg4 = reinterpret_cast< _TCHAR * >(buf4);
11338
- {
11339
- try {
11340
- result = (short_td)bzs::db::protocol::tdap::client::nstable::tdapErr(arg1,arg2,(char const *)arg3,arg4);
11341
- } catch (bzs::rtl::exception& e) {
11342
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
11343
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
11344
- } catch (std::exception &e) {
11345
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
11346
- rb_raise(cpp_std_error, e.what());
11347
- }
11348
- }
11349
- vresult = SWIG_From_short(static_cast< short >(result));
11350
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11351
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
11352
- return vresult;
11353
- fail:
11354
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11355
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
11356
11160
  return Qnil;
11357
11161
  }
11358
11162
 
11359
11163
 
11360
11164
  SWIGINTERN VALUE
11361
- _wrap_nstable_tdapErr__SWIG_2(int argc, VALUE *argv, VALUE self) {
11362
- HWND arg1 ;
11363
- short_td arg2 ;
11364
- _TCHAR *arg3 = (_TCHAR *) 0 ;
11365
- void *argp1 ;
11165
+ _wrap_nstable_statMsg(int argc, VALUE *argv, VALUE self) {
11166
+ bzs::db::protocol::tdap::client::nstable *arg1 = (bzs::db::protocol::tdap::client::nstable *) 0 ;
11167
+ _TCHAR arg2[1024] = {NULL};
11168
+ void *argp1 = 0 ;
11366
11169
  int res1 = 0 ;
11367
- short val2 ;
11368
- int ecode2 = 0 ;
11369
- int res3 ;
11370
- char *buf3 = 0 ;
11371
- int alloc3 = 0 ;
11372
- short_td result;
11170
+ _TCHAR *result = 0 ;
11373
11171
  VALUE vresult = Qnil;
11374
11172
 
11375
- if ((argc < 3) || (argc > 3)) {
11376
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
11377
- }
11378
- {
11379
- res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_HWND, 0 );
11380
- if (!SWIG_IsOK(res1)) {
11381
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "HWND","bzs::db::protocol::tdap::client::nstable::tdapErr", 1, argv[0] ));
11382
- }
11383
- if (!argp1) {
11384
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "HWND","bzs::db::protocol::tdap::client::nstable::tdapErr", 1, argv[0]));
11385
- } else {
11386
- arg1 = *(reinterpret_cast< HWND * >(argp1));
11387
- }
11173
+ if (argc != 0){
11174
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
11388
11175
  }
11389
- ecode2 = SWIG_AsVal_short(argv[1], &val2);
11390
- if (!SWIG_IsOK(ecode2)) {
11391
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short_td","bzs::db::protocol::tdap::client::nstable::tdapErr", 2, argv[1] ));
11392
- }
11393
- arg2 = static_cast< short_td >(val2);
11394
- res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
11395
- if (!SWIG_IsOK(res3)) {
11396
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR const *","bzs::db::protocol::tdap::client::nstable::tdapErr", 3, argv[2] ));
11176
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0 | 0 );
11177
+ if (!SWIG_IsOK(res1)) {
11178
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nstable *","statMsg", 1, self ));
11397
11179
  }
11398
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
11180
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nstable * >(argp1);
11399
11181
  {
11400
11182
  try {
11401
- result = (short_td)bzs::db::protocol::tdap::client::nstable::tdapErr(arg1,arg2,(char const *)arg3);
11183
+ arg1->tdapErr((HWND)0, arg2);
11184
+ result = arg2;
11402
11185
  } catch (bzs::rtl::exception& e) {
11403
11186
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
11404
11187
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -11407,182 +11190,34 @@ _wrap_nstable_tdapErr__SWIG_2(int argc, VALUE *argv, VALUE self) {
11407
11190
  rb_raise(cpp_std_error, e.what());
11408
11191
  }
11409
11192
  }
11410
- vresult = SWIG_From_short(static_cast< short >(result));
11411
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11412
- return vresult;
11413
- fail:
11414
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11415
- return Qnil;
11416
- }
11417
-
11418
-
11419
- SWIGINTERN VALUE
11420
- _wrap_nstable_tdapErr__SWIG_3(int argc, VALUE *argv, VALUE self) {
11421
- HWND arg1 ;
11422
- short_td arg2 ;
11423
- void *argp1 ;
11424
- int res1 = 0 ;
11425
- short val2 ;
11426
- int ecode2 = 0 ;
11427
- short_td result;
11428
- VALUE vresult = Qnil;
11429
-
11430
- if ((argc < 2) || (argc > 2)) {
11431
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
11432
- }
11433
- {
11434
- res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_HWND, 0 );
11435
- if (!SWIG_IsOK(res1)) {
11436
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "HWND","bzs::db::protocol::tdap::client::nstable::tdapErr", 1, argv[0] ));
11437
- }
11438
- if (!argp1) {
11439
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "HWND","bzs::db::protocol::tdap::client::nstable::tdapErr", 1, argv[0]));
11440
- } else {
11441
- arg1 = *(reinterpret_cast< HWND * >(argp1));
11442
- }
11443
- }
11444
- ecode2 = SWIG_AsVal_short(argv[1], &val2);
11445
- if (!SWIG_IsOK(ecode2)) {
11446
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short_td","bzs::db::protocol::tdap::client::nstable::tdapErr", 2, argv[1] ));
11447
- }
11448
- arg2 = static_cast< short_td >(val2);
11449
11193
  {
11450
- try {
11451
- result = (short_td)bzs::db::protocol::tdap::client::nstable::tdapErr(arg1,arg2);
11452
- } catch (bzs::rtl::exception& e) {
11453
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
11454
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
11455
- } catch (std::exception &e) {
11456
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
11457
- rb_raise(cpp_std_error, e.what());
11458
- }
11194
+ vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
11459
11195
  }
11460
- vresult = SWIG_From_short(static_cast< short >(result));
11461
11196
  return vresult;
11462
11197
  fail:
11463
11198
  return Qnil;
11464
11199
  }
11465
11200
 
11466
11201
 
11467
- SWIGINTERN VALUE _wrap_nstable_tdapErr(int nargs, VALUE *args, VALUE self) {
11468
- int argc;
11469
- VALUE argv[4];
11470
- int ii;
11471
-
11472
- argc = nargs;
11473
- if (argc > 4) SWIG_fail;
11474
- for (ii = 0; (ii < argc); ++ii) {
11475
- argv[ii] = args[ii];
11476
- }
11477
- if (argc == 2) {
11478
- int _v;
11479
- void *vptr = 0;
11480
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nstable, 0);
11481
- _v = SWIG_CheckState(res);
11482
- if (_v) {
11483
- void *vptr = 0;
11484
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_HWND, 0);
11485
- _v = SWIG_CheckState(res);
11486
- if (_v) {
11487
- return _wrap_nstable_tdapErr__SWIG_0(nargs, args, self);
11488
- }
11489
- }
11490
- }
11491
- if (argc == 2) {
11492
- int _v;
11493
- void *vptr = 0;
11494
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HWND, 0);
11495
- _v = SWIG_CheckState(res);
11496
- if (_v) {
11497
- {
11498
- int res = SWIG_AsVal_short(argv[1], NULL);
11499
- _v = SWIG_CheckState(res);
11500
- }
11501
- if (_v) {
11502
- return _wrap_nstable_tdapErr__SWIG_3(nargs, args, self);
11503
- }
11504
- }
11505
- }
11506
- if (argc == 3) {
11507
- int _v;
11508
- void *vptr = 0;
11509
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HWND, 0);
11510
- _v = SWIG_CheckState(res);
11511
- if (_v) {
11512
- {
11513
- int res = SWIG_AsVal_short(argv[1], NULL);
11514
- _v = SWIG_CheckState(res);
11515
- }
11516
- if (_v) {
11517
- int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
11518
- _v = SWIG_CheckState(res);
11519
- if (_v) {
11520
- return _wrap_nstable_tdapErr__SWIG_2(nargs, args, self);
11521
- }
11522
- }
11523
- }
11524
- }
11525
- if (argc == 4) {
11526
- int _v;
11527
- void *vptr = 0;
11528
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_HWND, 0);
11529
- _v = SWIG_CheckState(res);
11530
- if (_v) {
11531
- {
11532
- int res = SWIG_AsVal_short(argv[1], NULL);
11533
- _v = SWIG_CheckState(res);
11534
- }
11535
- if (_v) {
11536
- int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
11537
- _v = SWIG_CheckState(res);
11538
- if (_v) {
11539
- int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0);
11540
- _v = SWIG_CheckState(res);
11541
- if (_v) {
11542
- return _wrap_nstable_tdapErr__SWIG_1(nargs, args, self);
11543
- }
11544
- }
11545
- }
11546
- }
11547
- }
11548
-
11549
- fail:
11550
- Ruby_Format_OverloadedError( argc, 4, "nstable.tdapErr",
11551
- " short_td nstable.tdapErr(bzs::db::protocol::tdap::client::nstable *self, HWND hWnd)\n"
11552
- " short_td nstable.tdapErr(HWND hWnd, short_td status, _TCHAR const *tableName, _TCHAR *retbuf)\n"
11553
- " short_td nstable.tdapErr(HWND hWnd, short_td status, _TCHAR const *tableName)\n"
11554
- " short_td nstable.tdapErr(HWND hWnd, short_td status)\n");
11555
-
11556
- return Qnil;
11557
- }
11558
-
11559
-
11560
11202
  SWIGINTERN VALUE
11561
11203
  _wrap_nstable_getDirURI(int argc, VALUE *argv, VALUE self) {
11562
11204
  _TCHAR *arg1 = (_TCHAR *) 0 ;
11563
- _TCHAR *arg2 = (_TCHAR *) 0 ;
11205
+ _TCHAR arg2[1024] = {NULL};
11564
11206
  int res1 ;
11565
11207
  char *buf1 = 0 ;
11566
11208
  int alloc1 = 0 ;
11567
- int res2 ;
11568
- char *buf2 = 0 ;
11569
- int alloc2 = 0 ;
11570
11209
  _TCHAR *result = 0 ;
11571
11210
  VALUE vresult = Qnil;
11572
11211
 
11573
- if ((argc < 2) || (argc > 2)) {
11574
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
11212
+ if ((argc < 1) || (argc > 1)) {
11213
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11575
11214
  }
11576
11215
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
11577
11216
  if (!SWIG_IsOK(res1)) {
11578
11217
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "_TCHAR const *","bzs::db::protocol::tdap::client::nstable::getDirURI", 1, argv[0] ));
11579
11218
  }
11580
11219
  arg1 = reinterpret_cast< _TCHAR * >(buf1);
11581
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
11582
- if (!SWIG_IsOK(res2)) {
11583
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR *","bzs::db::protocol::tdap::client::nstable::getDirURI", 2, argv[1] ));
11584
- }
11585
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
11220
+
11586
11221
  {
11587
11222
  try {
11588
11223
  result = (_TCHAR *)bzs::db::protocol::tdap::client::nstable::getDirURI((char const *)arg1,arg2);
@@ -11598,11 +11233,9 @@ _wrap_nstable_getDirURI(int argc, VALUE *argv, VALUE self) {
11598
11233
  vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
11599
11234
  }
11600
11235
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
11601
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
11602
11236
  return vresult;
11603
11237
  fail:
11604
11238
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
11605
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
11606
11239
  return Qnil;
11607
11240
  }
11608
11241
 
@@ -11905,47 +11538,47 @@ fail:
11905
11538
  }
11906
11539
 
11907
11540
 
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;
11541
+ SWIGINTERN VALUE
11542
+ _wrap_dbdef_validateTableDef(int argc, VALUE *argv, VALUE self) {
11543
+ bzs::db::protocol::tdap::client::dbdef *arg1 = (bzs::db::protocol::tdap::client::dbdef *) 0;
11544
+ short arg2;
11545
+ void *argp1 = 0;
11546
+ int res1 = 0;
11547
+ short val2;
11548
+ int ecode2 = 0;
11549
+ short result;
11550
+ VALUE vresult = Qnil;
11551
+
11552
+ if ((argc < 1) || (argc > 1)) {
11553
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
11554
+ }
11555
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__dbdef, 0 | 0);
11556
+ if (!SWIG_IsOK(res1)) {
11557
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::dbdef *", "validateTableDef", 1, self));
11558
+ }
11559
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::dbdef * >(argp1);
11560
+ ecode2 = SWIG_AsVal_short(argv[0], &val2);
11561
+ if (!SWIG_IsOK(ecode2)) {
11562
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "short", "validateTableDef", 2, argv[0]));
11563
+ }
11564
+ arg2 = static_cast< short >(val2);
11565
+ {
11566
+ try {
11567
+ result = (short)(arg1)->validateTableDef(arg2);
11568
+ }
11569
+ catch (bzs::rtl::exception& e) {
11570
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
11571
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
11572
+ }
11573
+ catch (std::exception &e) {
11574
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
11575
+ rb_raise(cpp_std_error, e.what());
11576
+ }
11577
+ }
11578
+ vresult = SWIG_From_short(static_cast< short >(result));
11579
+ return vresult;
11580
+ fail:
11581
+ return Qnil;
11949
11582
  }
11950
11583
 
11951
11584
 
@@ -12652,47 +12285,26 @@ fail:
12652
12285
 
12653
12286
 
12654
12287
  SWIGINTERN VALUE
12655
- _wrap_dbdef_tdapErr__SWIG_0(int argc, VALUE *argv, VALUE self) {
12288
+ _wrap_dbdef_statMsg(int argc, VALUE *argv, VALUE self) {
12656
12289
  bzs::db::protocol::tdap::client::dbdef *arg1 = (bzs::db::protocol::tdap::client::dbdef *) 0 ;
12657
- HWND arg2 ;
12658
- _TCHAR *arg3 = (_TCHAR *) 0 ;
12290
+ _TCHAR arg2[1024] = {NULL};
12659
12291
  void *argp1 = 0 ;
12660
12292
  int res1 = 0 ;
12661
- void *argp2 ;
12662
- int res2 = 0 ;
12663
- int res3 ;
12664
- char *buf3 = 0 ;
12665
- int alloc3 = 0 ;
12666
- short_td result;
12293
+ _TCHAR *result = 0 ;
12667
12294
  VALUE vresult = Qnil;
12668
12295
 
12669
- if ((argc < 2) || (argc > 2)) {
12670
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12296
+ if (argc != 0){
12297
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
12671
12298
  }
12672
12299
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__dbdef, 0 | 0 );
12673
12300
  if (!SWIG_IsOK(res1)) {
12674
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::dbdef *","tdapErr", 1, self ));
12301
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::dbdef *","statMsg", 1, self ));
12675
12302
  }
12676
12303
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::dbdef * >(argp1);
12677
- {
12678
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_HWND, 0 );
12679
- if (!SWIG_IsOK(res2)) {
12680
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "HWND","tdapErr", 2, argv[0] ));
12681
- }
12682
- if (!argp2) {
12683
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "HWND","tdapErr", 2, argv[0]));
12684
- } else {
12685
- arg2 = *(reinterpret_cast< HWND * >(argp2));
12686
- }
12687
- }
12688
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
12689
- if (!SWIG_IsOK(res3)) {
12690
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR *","tdapErr", 3, argv[1] ));
12691
- }
12692
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
12693
12304
  {
12694
12305
  try {
12695
- result = (short_td)(arg1)->tdapErr(arg2,arg3);
12306
+ arg1->tdapErr((HWND)0, arg2);
12307
+ result = arg2;
12696
12308
  } catch (bzs::rtl::exception& e) {
12697
12309
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12698
12310
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -12701,116 +12313,15 @@ _wrap_dbdef_tdapErr__SWIG_0(int argc, VALUE *argv, VALUE self) {
12701
12313
  rb_raise(cpp_std_error, e.what());
12702
12314
  }
12703
12315
  }
12704
- vresult = SWIG_From_short(static_cast< short >(result));
12705
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12706
- return vresult;
12707
- fail:
12708
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
12709
- return Qnil;
12710
- }
12711
-
12712
-
12713
- SWIGINTERN VALUE
12714
- _wrap_dbdef_tdapErr__SWIG_1(int argc, VALUE *argv, VALUE self) {
12715
- bzs::db::protocol::tdap::client::dbdef *arg1 = (bzs::db::protocol::tdap::client::dbdef *) 0 ;
12716
- HWND arg2 ;
12717
- void *argp1 = 0 ;
12718
- int res1 = 0 ;
12719
- void *argp2 ;
12720
- int res2 = 0 ;
12721
- short_td result;
12722
- VALUE vresult = Qnil;
12723
-
12724
- if ((argc < 1) || (argc > 1)) {
12725
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
12726
- }
12727
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__dbdef, 0 | 0 );
12728
- if (!SWIG_IsOK(res1)) {
12729
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::dbdef *","tdapErr", 1, self ));
12730
- }
12731
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::dbdef * >(argp1);
12732
- {
12733
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_HWND, 0 );
12734
- if (!SWIG_IsOK(res2)) {
12735
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "HWND","tdapErr", 2, argv[0] ));
12736
- }
12737
- if (!argp2) {
12738
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "HWND","tdapErr", 2, argv[0]));
12739
- } else {
12740
- arg2 = *(reinterpret_cast< HWND * >(argp2));
12741
- }
12742
- }
12743
12316
  {
12744
- try {
12745
- result = (short_td)(arg1)->tdapErr(arg2);
12746
- } catch (bzs::rtl::exception& e) {
12747
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12748
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
12749
- } catch (std::exception &e) {
12750
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
12751
- rb_raise(cpp_std_error, e.what());
12752
- }
12317
+ vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
12753
12318
  }
12754
- vresult = SWIG_From_short(static_cast< short >(result));
12755
12319
  return vresult;
12756
12320
  fail:
12757
12321
  return Qnil;
12758
12322
  }
12759
12323
 
12760
12324
 
12761
- SWIGINTERN VALUE _wrap_dbdef_tdapErr(int nargs, VALUE *args, VALUE self) {
12762
- int argc;
12763
- VALUE argv[4];
12764
- int ii;
12765
-
12766
- argc = nargs + 1;
12767
- argv[0] = self;
12768
- if (argc > 4) SWIG_fail;
12769
- for (ii = 1; (ii < argc); ++ii) {
12770
- argv[ii] = args[ii-1];
12771
- }
12772
- if (argc == 2) {
12773
- int _v;
12774
- void *vptr = 0;
12775
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__dbdef, 0);
12776
- _v = SWIG_CheckState(res);
12777
- if (_v) {
12778
- void *vptr = 0;
12779
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_HWND, 0);
12780
- _v = SWIG_CheckState(res);
12781
- if (_v) {
12782
- return _wrap_dbdef_tdapErr__SWIG_1(nargs, args, self);
12783
- }
12784
- }
12785
- }
12786
- if (argc == 3) {
12787
- int _v;
12788
- void *vptr = 0;
12789
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__dbdef, 0);
12790
- _v = SWIG_CheckState(res);
12791
- if (_v) {
12792
- void *vptr = 0;
12793
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_HWND, 0);
12794
- _v = SWIG_CheckState(res);
12795
- if (_v) {
12796
- int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
12797
- _v = SWIG_CheckState(res);
12798
- if (_v) {
12799
- return _wrap_dbdef_tdapErr__SWIG_0(nargs, args, self);
12800
- }
12801
- }
12802
- }
12803
- }
12804
-
12805
- fail:
12806
- Ruby_Format_OverloadedError( argc, 4, "dbdef.tdapErr",
12807
- " short_td dbdef.tdapErr(HWND hWnd, _TCHAR *retbuf)\n"
12808
- " short_td dbdef.tdapErr(HWND hWnd)\n");
12809
-
12810
- return Qnil;
12811
- }
12812
-
12813
-
12814
12325
  SWIGINTERN VALUE
12815
12326
  _wrap_dbdef_reopen__SWIG_0(int argc, VALUE *argv, VALUE self) {
12816
12327
  bzs::db::protocol::tdap::client::dbdef *arg1 = (bzs::db::protocol::tdap::client::dbdef *) 0 ;
@@ -13349,48 +12860,48 @@ fail:
13349
12860
  }
13350
12861
 
13351
12862
 
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
- }
12863
+ SWIGINTERN VALUE
12864
+ _wrap_table_bookmarks(int argc, VALUE *argv, VALUE self) {
12865
+ bzs::db::protocol::tdap::client::table *arg1 = (bzs::db::protocol::tdap::client::table *) 0;
12866
+ unsigned int arg2;
12867
+ void *argp1 = 0;
12868
+ int res1 = 0;
12869
+ unsigned int val2;
12870
+ int ecode2 = 0;
12871
+ bookmark_td result;
12872
+ VALUE vresult = Qnil;
12873
+
12874
+ if ((argc < 1) || (argc > 1)) {
12875
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
12876
+ }
12877
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__table, 0 | 0);
12878
+ if (!SWIG_IsOK(res1)) {
12879
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::table const *", "bookmarks", 1, self));
12880
+ }
12881
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::table * >(argp1);
12882
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
12883
+ if (!SWIG_IsOK(ecode2)) {
12884
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "unsigned int", "bookmarks", 2, argv[0]));
12885
+ }
12886
+ arg2 = static_cast< unsigned int >(val2);
12887
+ {
12888
+ try {
12889
+ result = ((bzs::db::protocol::tdap::client::table const *)arg1)->bookmarks(arg2);
12890
+ }
12891
+ catch (bzs::rtl::exception& e) {
12892
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12893
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
12894
+ }
12895
+ catch (std::exception &e) {
12896
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
12897
+ rb_raise(cpp_std_error, e.what());
12898
+ }
12899
+ }
12900
+ vresult = SWIG_NewPointerObj((new bookmark_td(static_cast< const bookmark_td& >(result))), SWIGTYPE_p_BOOKMARK, SWIG_POINTER_OWN | 0);
12901
+ return vresult;
12902
+ fail:
12903
+ return Qnil;
12904
+ }
13394
12905
 
13395
12906
 
13396
12907
  SWIGINTERN VALUE
@@ -14001,7 +13512,7 @@ _wrap_table_bookmarkFindCurrent(int argc, VALUE *argv, VALUE self) {
14001
13512
  rb_raise(cpp_std_error, e.what());
14002
13513
  }
14003
13514
  }
14004
- vresult = SWIG_NewPointerObj((new bookmark_td(static_cast< const bookmark_td& >(result))), SWIGTYPE_p_BOOKMARK, SWIG_POINTER_OWN | 0);
13515
+ vresult = SWIG_NewPointerObj((new bookmark_td(static_cast< const bookmark_td& >(result))), SWIGTYPE_p_BOOKMARK, SWIG_POINTER_OWN | 0);
14005
13516
  return vresult;
14006
13517
  fail:
14007
13518
  return Qnil;
@@ -15403,8 +14914,8 @@ _wrap_table_setFV(int argc, VALUE *argv, VALUE self) {
15403
14914
  }
15404
14915
  index = (short)v;
15405
14916
  }else if (type == T_STRING){
15406
- SWIG_CHAR v1;
15407
- int ret = SWIG_AsCharPtrAndSize(argv[0], &v1.str, NULL, &v1.alloc);
14917
+ SWIG_CHAR v1;
14918
+ int ret = SWIG_AsCharPtrAndSize(argv[0], &v1.str, NULL, &v1.alloc);
15408
14919
  if (!SWIG_IsOK(ret)) {
15409
14920
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","setFV", 2, argv[0]));
15410
14921
  }
@@ -15422,10 +14933,10 @@ _wrap_table_setFV(int argc, VALUE *argv, VALUE self) {
15422
14933
  arg1->setFV(index, v);
15423
14934
  }
15424
14935
  else if (type == T_STRING){
15425
- SWIG_CHAR v2;
15426
- int ret = 0;
15427
-
15428
- SWIG_AsCharPtrAndSize(argv[1], &v2.str, NULL, &v2.alloc);
14936
+ SWIG_CHAR v2;
14937
+ int ret = 0;
14938
+
14939
+ SWIG_AsCharPtrAndSize(argv[1], &v2.str, NULL, &v2.alloc);
15429
14940
  if (!SWIG_IsOK(ret)) {
15430
14941
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","setFV", 3, argv[1]));
15431
14942
  }
@@ -15437,7 +14948,7 @@ _wrap_table_setFV(int argc, VALUE *argv, VALUE self) {
15437
14948
  if (!SWIG_IsOK(ecode4)) {
15438
14949
  SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint_td","setFV", 4, argv[2] ));
15439
14950
  }
15440
- arg1->setFV(index, v2.str, val4);
14951
+ arg1->setFV(index, v2.str, val4);
15441
14952
  }
15442
14953
  }
15443
14954
  else if (type == T_FLOAT){
@@ -16093,147 +15604,147 @@ fail:
16093
15604
  }
16094
15605
 
16095
15606
 
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
- }
15607
+ SWIGINTERN VALUE _wrap_queryBase_addSeekKeyValue(int nargs, VALUE *args, VALUE self) {
15608
+ long long lv = 0;
15609
+ double dv = 0;
15610
+ bool reset = false;
15611
+ SWIG_CHAR buf;
15612
+ int res = 0;
15613
+ bzs::db::protocol::tdap::client::queryBase *q = 0;
15614
+ void* q_tmp;
15615
+
15616
+ if (nargs < 1) goto fail2;
15617
+
15618
+ if (nargs > 2) goto fail2;
15619
+
15620
+ res = SWIG_ConvertPtr(self, &q_tmp, SWIGTYPE_p_bzs__db__protocol__tdap__client__queryBase, 0);
15621
+ if (!SWIG_IsOK(res)) {
15622
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::queryBase *", "addSeekKeyValue", 1, self));
15623
+ }
15624
+ q = reinterpret_cast< bzs::db::protocol::tdap::client::queryBase * >(q_tmp);
15625
+
15626
+ try
15627
+ {
15628
+
15629
+ VALUE type = TYPE(args[0]);
15630
+ if ((type == T_FIXNUM) || (type == T_BIGNUM)){
15631
+ res = SWIG_AsVal_long_SS_long(args[0], &lv);
15632
+ if (!SWIG_IsOK(res)) {
15633
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "__int64", "addSeekKeyValue", 2, args[0]));
15634
+ }
15635
+ }
15636
+ else if (type == T_STRING){
15637
+ res = SWIG_AsCharPtrAndSize(args[0], &buf.str, NULL, &buf.alloc);
15638
+ if (!SWIG_IsOK(res)) {
15639
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "char *const", "addSeekKeyValue", 2, args[0]));
15640
+ }
15641
+ }
15642
+ else if (type == T_FLOAT){
15643
+ res = SWIG_AsVal_double(args[0], &dv);
15644
+ if (!SWIG_IsOK(res)) {
15645
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "double", "addSeekKeyValue", 2, args[0]));
15646
+ }
15647
+ }
15648
+ else
15649
+ goto fail2;
15650
+
15651
+ if (nargs > 1)
15652
+ {
15653
+ res = SWIG_AsVal_bool(args[1], &reset);
15654
+ if (!SWIG_IsOK(res)) {
15655
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bool", "addSeekKeyValue", 3, args[1]));
15656
+ }
15657
+ }
15658
+ if ((type == T_FIXNUM) || (type == T_BIGNUM))
15659
+ q->addSeekKeyValue(lexical_cast(lv).c_str(), reset);
15660
+ else if (type == T_STRING)
15661
+ q->addSeekKeyValue(buf.str, reset);
15662
+ else if (type == T_FLOAT)
15663
+ q->addSeekKeyValue(lexical_cast(dv).c_str(), reset);
15664
+
15665
+ }
15666
+ catch (bzs::rtl::exception& e)
15667
+ {
15668
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
15669
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
15670
+ }
15671
+ catch (std::exception &e)
15672
+ {
15673
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
15674
+ rb_raise(cpp_std_error, e.what());
15675
+ }
15676
+ return Qnil;
15677
+ fail:
15678
+ return Qnil;
15679
+ fail2:
15680
+ Ruby_Format_OverloadedError(nargs + 1, 5, "queryBase.addSeekKeyValue",
15681
+ " void queryBase.addSeekKeyValue(const T value, bool reset)\n"
15682
+ " void queryBase.addSeekKeyValue(const T value)\n");
15683
+
15684
+ return Qnil;
15685
+ }
15686
+
15687
+ SWIGINTERN VALUE _wrap_queryBase_addSeekBookmark(int nargs, VALUE *args, VALUE self) {
15688
+ bookmark_td *bm = 0;
15689
+ int len = 0;
15690
+ bool reset = false;
15691
+ int res = 0;
15692
+ bzs::db::protocol::tdap::client::queryBase *q = 0;
15693
+ void* q_tmp;
15694
+
15695
+ if (nargs < 2) goto fail2;
15696
+
15697
+ if (nargs > 3) goto fail2;
15698
+
15699
+ res = SWIG_ConvertPtr(self, &q_tmp, SWIGTYPE_p_bzs__db__protocol__tdap__client__queryBase, 0);
15700
+ if (!SWIG_IsOK(res)) {
15701
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::queryBase *", "addSeekBookmark", 1, self));
15702
+ }
15703
+ q = reinterpret_cast< bzs::db::protocol::tdap::client::queryBase * >(q_tmp);
15704
+
15705
+ try
15706
+ {
15707
+ void* bm_tmp = 0;
15708
+ res = SWIG_ConvertPtr(args[0], &bm_tmp, SWIGTYPE_p_BOOKMARK, 0);
15709
+ if (!SWIG_IsOK(res)) {
15710
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bookmark_td *", "addSeekBookmark", 2, args[0]));
15711
+ }
15712
+ bm = reinterpret_cast< bookmark_td* >(bm_tmp);
15713
+
15714
+ res = SWIG_AsVal_int(args[1], &len);
15715
+ if (!SWIG_IsOK(res)) {
15716
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "int", "addSeekBookmark", 3, args[1]));
15717
+ }
15718
+ if (nargs > 2)
15719
+ {
15720
+ res = SWIG_AsVal_bool(args[2], &reset);
15721
+ if (!SWIG_IsOK(res)) {
15722
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError("", "bool", "addSeekBookmark", 4, args[2]));
15723
+ }
15724
+ }
15725
+
15726
+ q->addSeekBookmark(*bm, len, reset);
15727
+ }
15728
+ catch (bzs::rtl::exception& e)
15729
+ {
15730
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
15731
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
15732
+ }
15733
+ catch (std::exception &e)
15734
+ {
15735
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
15736
+ rb_raise(cpp_std_error, e.what());
15737
+ }
15738
+ return Qnil;
15739
+ fail:
15740
+ return Qnil;
15741
+ fail2:
15742
+ Ruby_Format_OverloadedError(nargs + 1, 5, "queryBase.addSeekBookmark",
15743
+ " void queryBase.addSeekBookmark(const T value, bool reset)\n"
15744
+ " void queryBase.addSeekBookmark(const T value)\n");
15745
+
15746
+ return Qnil;
15747
+ }
16237
15748
 
16238
15749
 
16239
15750
  SWIGINTERN VALUE
@@ -17261,41 +16772,41 @@ fail:
17261
16772
  }
17262
16773
 
17263
16774
 
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
-
16775
+ SWIGINTERN VALUE
16776
+ _wrap_queryBase_isSeekByBookmarks(int argc, VALUE *argv, VALUE self) {
16777
+ bzs::db::protocol::tdap::client::queryBase *arg1 = (bzs::db::protocol::tdap::client::queryBase *) 0;
16778
+ void *argp1 = 0;
16779
+ int res1 = 0;
16780
+ bool result;
16781
+ VALUE vresult = Qnil;
16782
+
16783
+ if ((argc < 0) || (argc > 0)) {
16784
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
16785
+ }
16786
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__queryBase, 0 | 0);
16787
+ if (!SWIG_IsOK(res1)) {
16788
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::queryBase const *", "isSeekByBookmarks", 1, self));
16789
+ }
16790
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::queryBase * >(argp1);
16791
+ {
16792
+ try {
16793
+ result = (bool)((bzs::db::protocol::tdap::client::queryBase const *)arg1)->isSeekByBookmarks();
16794
+ }
16795
+ catch (bzs::rtl::exception& e) {
16796
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
16797
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
16798
+ }
16799
+ catch (std::exception &e) {
16800
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
16801
+ rb_raise(cpp_std_error, e.what());
16802
+ }
16803
+ }
16804
+ vresult = SWIG_From_bool(static_cast< bool >(result));
16805
+ return vresult;
16806
+ fail:
16807
+ return Qnil;
16808
+ }
16809
+
17299
16810
 
17300
16811
 
17301
16812
  static swig_class SwigClassQuery;
@@ -17471,12 +16982,12 @@ _wrap_query_where(int argc, VALUE *argv, VALUE self) {
17471
16982
  arg1->where(arg2, arg3, v);
17472
16983
  }
17473
16984
  else if (type == T_STRING){
17474
- SWIG_CHAR buf4;
17475
- int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
16985
+ SWIG_CHAR buf4;
16986
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
17476
16987
  if (!SWIG_IsOK(ret)) {
17477
16988
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","where", 3, argv[2]));
17478
16989
  }
17479
- arg1->where(arg2, arg3, buf4.str);
16990
+ arg1->where(arg2, arg3, buf4.str);
17480
16991
  }
17481
16992
  else if (type == T_FLOAT){
17482
16993
  double v = 0;
@@ -17549,12 +17060,12 @@ _wrap_query_and_(int argc, VALUE *argv, VALUE self) {
17549
17060
  arg1->and_(arg2, arg3, v);
17550
17061
  }
17551
17062
  else if (type == T_STRING){
17552
- SWIG_CHAR buf4;
17553
- int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
17063
+ SWIG_CHAR buf4;
17064
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
17554
17065
  if (!SWIG_IsOK(ret)) {
17555
17066
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","and_", 3, argv[2]));
17556
17067
  }
17557
- arg1->and_(arg2, arg3, buf4.str);
17068
+ arg1->and_(arg2, arg3, buf4.str);
17558
17069
 
17559
17070
  }
17560
17071
  else if (type == T_FLOAT){
@@ -17626,12 +17137,12 @@ _wrap_query_or_(int argc, VALUE *argv, VALUE self) {
17626
17137
  arg1->or_(arg2, arg3, v);
17627
17138
  }
17628
17139
  else if (type == T_STRING){
17629
- SWIG_CHAR buf4;
17630
- int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
17140
+ SWIG_CHAR buf4;
17141
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
17631
17142
  if (!SWIG_IsOK(ret)) {
17632
17143
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","or_", 3, argv[2]));
17633
17144
  }
17634
- arg1->or_(arg2, arg3, buf4.str);
17145
+ arg1->or_(arg2, arg3, buf4.str);
17635
17146
  }
17636
17147
  else if (type == T_FLOAT){
17637
17148
  double v = 0;
@@ -17688,12 +17199,12 @@ _wrap_query_in(int nargs, VALUE *args, VALUE self) {
17688
17199
  arg1->addSeekKeyValue(lexical_cast(v).c_str());
17689
17200
  }
17690
17201
  else if (type == T_STRING){
17691
- SWIG_CHAR buf;
17692
- int ret = SWIG_AsCharPtrAndSize(args[i], &buf.str, NULL, &buf.alloc);
17202
+ SWIG_CHAR buf;
17203
+ int ret = SWIG_AsCharPtrAndSize(args[i], &buf.str, NULL, &buf.alloc);
17693
17204
  if (!SWIG_IsOK(ret)) {
17694
17205
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","in", i+1, args[i]));
17695
17206
  }
17696
- arg1->addSeekKeyValue(buf.str);
17207
+ arg1->addSeekKeyValue(buf.str);
17697
17208
  }
17698
17209
  else if (type == T_FLOAT){
17699
17210
  double v = 0;
@@ -18647,47 +18158,26 @@ fail:
18647
18158
 
18648
18159
 
18649
18160
  SWIGINTERN VALUE
18650
- _wrap_nsdatabase_tdapErr__SWIG_0(int argc, VALUE *argv, VALUE self) {
18161
+ _wrap_nsdatabase_statMsg(int argc, VALUE *argv, VALUE self) {
18651
18162
  bzs::db::protocol::tdap::client::nsdatabase *arg1 = (bzs::db::protocol::tdap::client::nsdatabase *) 0 ;
18652
- HWND arg2 ;
18653
- _TCHAR *arg3 = (_TCHAR *) 0 ;
18163
+ _TCHAR arg2[1024] = {NULL};
18654
18164
  void *argp1 = 0 ;
18655
18165
  int res1 = 0 ;
18656
- void *argp2 ;
18657
- int res2 = 0 ;
18658
- int res3 ;
18659
- char *buf3 = 0 ;
18660
- int alloc3 = 0 ;
18661
- short_td result;
18166
+ _TCHAR *result = 0 ;
18662
18167
  VALUE vresult = Qnil;
18663
18168
 
18664
- if ((argc < 2) || (argc > 2)) {
18665
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
18169
+ if (argc != 0){
18170
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
18666
18171
  }
18667
18172
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nsdatabase, 0 | 0 );
18668
18173
  if (!SWIG_IsOK(res1)) {
18669
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nsdatabase *","tdapErr", 1, self ));
18174
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nsdatabase *","statMsg", 1, self ));
18670
18175
  }
18671
18176
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nsdatabase * >(argp1);
18672
- {
18673
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_HWND, 0 );
18674
- if (!SWIG_IsOK(res2)) {
18675
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "HWND","tdapErr", 2, argv[0] ));
18676
- }
18677
- if (!argp2) {
18678
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "HWND","tdapErr", 2, argv[0]));
18679
- } else {
18680
- arg2 = *(reinterpret_cast< HWND * >(argp2));
18681
- }
18682
- }
18683
- res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
18684
- if (!SWIG_IsOK(res3)) {
18685
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "_TCHAR *","tdapErr", 3, argv[1] ));
18686
- }
18687
- arg3 = reinterpret_cast< _TCHAR * >(buf3);
18688
18177
  {
18689
18178
  try {
18690
- result = (short_td)(arg1)->tdapErr(arg2,arg3);
18179
+ arg1->tdapErr((HWND)0, arg2);
18180
+ result = arg2;
18691
18181
  } catch (bzs::rtl::exception& e) {
18692
18182
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
18693
18183
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -18696,116 +18186,15 @@ _wrap_nsdatabase_tdapErr__SWIG_0(int argc, VALUE *argv, VALUE self) {
18696
18186
  rb_raise(cpp_std_error, e.what());
18697
18187
  }
18698
18188
  }
18699
- vresult = SWIG_From_short(static_cast< short >(result));
18700
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
18701
- return vresult;
18702
- fail:
18703
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
18704
- return Qnil;
18705
- }
18706
-
18707
-
18708
- SWIGINTERN VALUE
18709
- _wrap_nsdatabase_tdapErr__SWIG_1(int argc, VALUE *argv, VALUE self) {
18710
- bzs::db::protocol::tdap::client::nsdatabase *arg1 = (bzs::db::protocol::tdap::client::nsdatabase *) 0 ;
18711
- HWND arg2 ;
18712
- void *argp1 = 0 ;
18713
- int res1 = 0 ;
18714
- void *argp2 ;
18715
- int res2 = 0 ;
18716
- short_td result;
18717
- VALUE vresult = Qnil;
18718
-
18719
- if ((argc < 1) || (argc > 1)) {
18720
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
18721
- }
18722
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nsdatabase, 0 | 0 );
18723
- if (!SWIG_IsOK(res1)) {
18724
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nsdatabase *","tdapErr", 1, self ));
18725
- }
18726
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nsdatabase * >(argp1);
18727
18189
  {
18728
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_HWND, 0 );
18729
- if (!SWIG_IsOK(res2)) {
18730
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "HWND","tdapErr", 2, argv[0] ));
18731
- }
18732
- if (!argp2) {
18733
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "HWND","tdapErr", 2, argv[0]));
18734
- } else {
18735
- arg2 = *(reinterpret_cast< HWND * >(argp2));
18736
- }
18737
- }
18738
- {
18739
- try {
18740
- result = (short_td)(arg1)->tdapErr(arg2);
18741
- } catch (bzs::rtl::exception& e) {
18742
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
18743
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
18744
- } catch (std::exception &e) {
18745
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
18746
- rb_raise(cpp_std_error, e.what());
18747
- }
18190
+ vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
18748
18191
  }
18749
- vresult = SWIG_From_short(static_cast< short >(result));
18750
18192
  return vresult;
18751
18193
  fail:
18752
18194
  return Qnil;
18753
18195
  }
18754
18196
 
18755
18197
 
18756
- SWIGINTERN VALUE _wrap_nsdatabase_tdapErr(int nargs, VALUE *args, VALUE self) {
18757
- int argc;
18758
- VALUE argv[4];
18759
- int ii;
18760
-
18761
- argc = nargs + 1;
18762
- argv[0] = self;
18763
- if (argc > 4) SWIG_fail;
18764
- for (ii = 1; (ii < argc); ++ii) {
18765
- argv[ii] = args[ii-1];
18766
- }
18767
- if (argc == 2) {
18768
- int _v;
18769
- void *vptr = 0;
18770
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nsdatabase, 0);
18771
- _v = SWIG_CheckState(res);
18772
- if (_v) {
18773
- void *vptr = 0;
18774
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_HWND, 0);
18775
- _v = SWIG_CheckState(res);
18776
- if (_v) {
18777
- return _wrap_nsdatabase_tdapErr__SWIG_1(nargs, args, self);
18778
- }
18779
- }
18780
- }
18781
- if (argc == 3) {
18782
- int _v;
18783
- void *vptr = 0;
18784
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__nsdatabase, 0);
18785
- _v = SWIG_CheckState(res);
18786
- if (_v) {
18787
- void *vptr = 0;
18788
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_HWND, 0);
18789
- _v = SWIG_CheckState(res);
18790
- if (_v) {
18791
- int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
18792
- _v = SWIG_CheckState(res);
18793
- if (_v) {
18794
- return _wrap_nsdatabase_tdapErr__SWIG_0(nargs, args, self);
18795
- }
18796
- }
18797
- }
18798
- }
18799
-
18800
- fail:
18801
- Ruby_Format_OverloadedError( argc, 4, "nsdatabase.tdapErr",
18802
- " short_td nsdatabase.tdapErr(HWND hWnd, _TCHAR *retbuf)\n"
18803
- " short_td nsdatabase.tdapErr(HWND hWnd)\n");
18804
-
18805
- return Qnil;
18806
- }
18807
-
18808
-
18809
18198
  SWIGINTERN VALUE
18810
18199
  _wrap_nsdatabase_useLongFilename(int argc, VALUE *argv, VALUE self) {
18811
18200
  bzs::db::protocol::tdap::client::nsdatabase *arg1 = (bzs::db::protocol::tdap::client::nsdatabase *) 0 ;
@@ -18995,37 +18384,25 @@ fail:
18995
18384
  SWIGINTERN VALUE
18996
18385
  _wrap_nsdatabase_readDatabaseDirectory(int argc, VALUE *argv, VALUE self) {
18997
18386
  bzs::db::protocol::tdap::client::nsdatabase *arg1 = (bzs::db::protocol::tdap::client::nsdatabase *) 0 ;
18998
- _TCHAR *arg2 = (_TCHAR *) 0 ;
18999
- uchar_td arg3 ;
18387
+ _TCHAR arg2[255] = {NULL} ;
18388
+ uchar_td arg3 = 255 ;
19000
18389
  void *argp1 = 0 ;
19001
18390
  int res1 = 0 ;
19002
- int res2 ;
19003
- char *buf2 = 0 ;
19004
- int alloc2 = 0 ;
19005
- unsigned char val3 ;
19006
- int ecode3 = 0 ;
18391
+ VALUE vresult = Qnil;
18392
+
19007
18393
 
19008
- if ((argc < 2) || (argc > 2)) {
19009
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
18394
+ if (argc != 0) {
18395
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
19010
18396
  }
19011
18397
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__nsdatabase, 0 | 0 );
19012
18398
  if (!SWIG_IsOK(res1)) {
19013
18399
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::nsdatabase *","readDatabaseDirectory", 1, self ));
19014
18400
  }
19015
18401
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::nsdatabase * >(argp1);
19016
- res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
19017
- if (!SWIG_IsOK(res2)) {
19018
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "_TCHAR *","readDatabaseDirectory", 2, argv[0] ));
19019
- }
19020
- arg2 = reinterpret_cast< _TCHAR * >(buf2);
19021
- ecode3 = SWIG_AsVal_unsigned_SS_char(argv[1], &val3);
19022
- if (!SWIG_IsOK(ecode3)) {
19023
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uchar_td","readDatabaseDirectory", 3, argv[1] ));
19024
- }
19025
- arg3 = static_cast< uchar_td >(val3);
18402
+
19026
18403
  {
19027
18404
  try {
19028
- (arg1)->readDatabaseDirectory(arg2,arg3);
18405
+ (arg1)->readDatabaseDirectory(arg2, arg3);
19029
18406
  } catch (bzs::rtl::exception& e) {
19030
18407
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
19031
18408
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -19034,10 +18411,11 @@ _wrap_nsdatabase_readDatabaseDirectory(int argc, VALUE *argv, VALUE self) {
19034
18411
  rb_raise(cpp_std_error, e.what());
19035
18412
  }
19036
18413
  }
19037
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
19038
- return Qnil;
18414
+ {
18415
+ vresult = rb_enc_str_new(arg2, strlen(arg2), rb_enc_find_from_codepage(CP_UTF8));
18416
+ }
18417
+ return vresult;
19039
18418
  fail:
19040
- if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
19041
18419
  return Qnil;
19042
18420
  }
19043
18421
 
@@ -20472,125 +19850,125 @@ fail:
20472
19850
  return Qnil;
20473
19851
  }
20474
19852
 
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
-
19853
+
19854
+ SWIGINTERN VALUE
19855
+ _wrap_database_close__SWIG_0(int argc, VALUE *argv, VALUE self) {
19856
+ bzs::db::protocol::tdap::client::database *arg1 = (bzs::db::protocol::tdap::client::database *) 0;
19857
+ bool arg2;
19858
+ void *argp1 = 0;
19859
+ int res1 = 0;
19860
+ bool val2;
19861
+ int ecode2 = 0;
19862
+
19863
+ if ((argc < 1) || (argc > 1)) {
19864
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
19865
+ }
19866
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0 | 0);
19867
+ if (!SWIG_IsOK(res1)) {
19868
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::database *", "close", 1, self));
19869
+ }
19870
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::database * >(argp1);
19871
+ ecode2 = SWIG_AsVal_bool(argv[0], &val2);
19872
+ if (!SWIG_IsOK(ecode2)) {
19873
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "bool", "close", 2, argv[0]));
19874
+ }
19875
+ arg2 = static_cast< bool >(val2);
19876
+ {
19877
+ try {
19878
+ (arg1)->close(arg2);
19879
+ }
19880
+ catch (bzs::rtl::exception& e) {
19881
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
19882
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
19883
+ }
19884
+ catch (std::exception &e) {
19885
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
19886
+ rb_raise(cpp_std_error, e.what());
19887
+ }
19888
+ }
19889
+ return Qnil;
19890
+ fail:
19891
+ return Qnil;
19892
+ }
19893
+
19894
+
19895
+ SWIGINTERN VALUE
19896
+ _wrap_database_close__SWIG_1(int argc, VALUE *argv, VALUE self) {
19897
+ bzs::db::protocol::tdap::client::database *arg1 = (bzs::db::protocol::tdap::client::database *) 0;
19898
+ void *argp1 = 0;
19899
+ int res1 = 0;
19900
+
19901
+ if ((argc < 0) || (argc > 0)) {
19902
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
19903
+ }
19904
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0 | 0);
19905
+ if (!SWIG_IsOK(res1)) {
19906
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::database *", "close", 1, self));
19907
+ }
19908
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::database * >(argp1);
19909
+ {
19910
+ try {
19911
+ (arg1)->close();
19912
+ }
19913
+ catch (bzs::rtl::exception& e) {
19914
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
19915
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
19916
+ }
19917
+ catch (std::exception &e) {
19918
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
19919
+ rb_raise(cpp_std_error, e.what());
19920
+ }
19921
+ }
19922
+ return Qnil;
19923
+ fail:
19924
+ return Qnil;
19925
+ }
19926
+
19927
+
19928
+ SWIGINTERN VALUE _wrap_database_close(int nargs, VALUE *args, VALUE self) {
19929
+ int argc;
19930
+ VALUE argv[3];
19931
+ int ii;
19932
+
19933
+ argc = nargs + 1;
19934
+ argv[0] = self;
19935
+ if (argc > 3) SWIG_fail;
19936
+ for (ii = 1; (ii < argc); ++ii) {
19937
+ argv[ii] = args[ii - 1];
19938
+ }
19939
+ if (argc == 1) {
19940
+ int _v;
19941
+ void *vptr = 0;
19942
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0);
19943
+ _v = SWIG_CheckState(res);
19944
+ if (_v) {
19945
+ return _wrap_database_close__SWIG_1(nargs, args, self);
19946
+ }
19947
+ }
19948
+ if (argc == 2) {
19949
+ int _v;
19950
+ void *vptr = 0;
19951
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0);
19952
+ _v = SWIG_CheckState(res);
19953
+ if (_v) {
19954
+ {
19955
+ int res = SWIG_AsVal_bool(argv[1], NULL);
19956
+ _v = SWIG_CheckState(res);
19957
+ }
19958
+ if (_v) {
19959
+ return _wrap_database_close__SWIG_0(nargs, args, self);
19960
+ }
19961
+ }
19962
+ }
19963
+
19964
+ fail:
19965
+ Ruby_Format_OverloadedError(argc, 3, "database.close",
19966
+ " void database.close(bool withDropDefaultSchema)\n"
19967
+ " void database.close()\n");
19968
+
19969
+ return Qnil;
19970
+ }
19971
+
20594
19972
 
20595
19973
  SWIGINTERN VALUE
20596
19974
  _wrap_database_aclReload(int argc, VALUE *argv, VALUE self) {
@@ -26876,191 +26254,191 @@ fail:
26876
26254
 
26877
26255
  static swig_class SwigClassWritableRecord;
26878
26256
 
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;
26257
+
26258
+ SWIGINTERN VALUE
26259
+ _wrap_writableRecord_read__SWIG_0(int argc, VALUE *argv, VALUE self) {
26260
+ bzs::db::protocol::tdap::client::writableRecord *arg1 = (bzs::db::protocol::tdap::client::writableRecord *) 0;
26261
+ bool arg2;
26262
+ void *argp1 = 0;
26263
+ int res1 = 0;
26264
+ bool val2;
26265
+ int ecode2 = 0;
26266
+ bool result;
26267
+ VALUE vresult = Qnil;
26268
+
26269
+ if ((argc < 1) || (argc > 1)) {
26270
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
26271
+ }
26272
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0 | 0);
26273
+ if (!SWIG_IsOK(res1)) {
26274
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::writableRecord *", "read", 1, self));
26275
+ }
26276
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::writableRecord * >(argp1);
26277
+ ecode2 = SWIG_AsVal_bool(argv[0], &val2);
26278
+ if (!SWIG_IsOK(ecode2)) {
26279
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError("", "bool", "read", 2, argv[0]));
26280
+ }
26281
+ arg2 = static_cast< bool >(val2);
26282
+ {
26283
+ try {
26284
+ result = (bool)(arg1)->read(arg2);
26285
+ }
26286
+ catch (bzs::rtl::exception& e) {
26287
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
26288
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
26289
+ }
26290
+ catch (std::exception &e) {
26291
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
26292
+ rb_raise(cpp_std_error, e.what());
26293
+ }
26294
+ }
26295
+ vresult = SWIG_From_bool(static_cast< bool >(result));
26296
+ return vresult;
26297
+ fail:
26298
+ return Qnil;
26299
+ }
26300
+
26301
+
26302
+ SWIGINTERN VALUE
26303
+ _wrap_writableRecord_read__SWIG_1(int argc, VALUE *argv, VALUE self) {
26304
+ bzs::db::protocol::tdap::client::writableRecord *arg1 = (bzs::db::protocol::tdap::client::writableRecord *) 0;
26305
+ void *argp1 = 0;
26306
+ int res1 = 0;
26307
+ bool result;
26308
+ VALUE vresult = Qnil;
26309
+
26310
+ if ((argc < 0) || (argc > 0)) {
26311
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)", argc); SWIG_fail;
26312
+ }
26313
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0 | 0);
26314
+ if (!SWIG_IsOK(res1)) {
26315
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::writableRecord *", "read", 1, self));
26316
+ }
26317
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::writableRecord * >(argp1);
26318
+ {
26319
+ try {
26320
+ result = (bool)(arg1)->read();
26321
+ }
26322
+ catch (bzs::rtl::exception& e) {
26323
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
26324
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
26325
+ }
26326
+ catch (std::exception &e) {
26327
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
26328
+ rb_raise(cpp_std_error, e.what());
26329
+ }
26330
+ }
26331
+ vresult = SWIG_From_bool(static_cast< bool >(result));
26332
+ return vresult;
26333
+ fail:
26334
+ return Qnil;
26335
+ }
26336
+
26337
+
26338
+ SWIGINTERN VALUE
26339
+ _wrap_writableRecord_read__SWIG_2(int argc, VALUE *argv, VALUE self) {
26340
+ bzs::db::protocol::tdap::client::writableRecord *arg1 = (bzs::db::protocol::tdap::client::writableRecord *) 0;
26341
+ bookmark_td *arg2 = 0;
26342
+ void *argp1 = 0;
26343
+ int res1 = 0;
26344
+ void *argp2 = 0;
26345
+ int res2 = 0;
26346
+ bool result;
26347
+ VALUE vresult = Qnil;
26348
+
26349
+ if ((argc < 1) || (argc > 1)) {
26350
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
26351
+ }
26352
+ res1 = SWIG_ConvertPtr(self, &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0 | 0);
26353
+ if (!SWIG_IsOK(res1)) {
26354
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError("", "bzs::db::protocol::tdap::client::writableRecord *", "read", 1, self));
26355
+ }
26356
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::writableRecord * >(argp1);
26357
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_BOOKMARK, 0);
26358
+ if (!SWIG_IsOK(res2)) {
26359
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError("", "bookmark_td &", "read", 2, argv[0]));
26360
+ }
26361
+ if (!argp2) {
26362
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bookmark_td &", "read", 2, argv[0]));
26363
+ }
26364
+ arg2 = reinterpret_cast< bookmark_td * >(argp2);
26365
+ {
26366
+ try {
26367
+ result = (bool)(arg1)->read(*arg2);
26368
+ }
26369
+ catch (bzs::rtl::exception& e) {
26370
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
26371
+ rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
26372
+ }
26373
+ catch (std::exception &e) {
26374
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
26375
+ rb_raise(cpp_std_error, e.what());
26376
+ }
26377
+ }
26378
+ vresult = SWIG_From_bool(static_cast< bool >(result));
26379
+ return vresult;
26380
+ fail:
26381
+ return Qnil;
26382
+ }
26383
+
26384
+
26385
+ SWIGINTERN VALUE _wrap_writableRecord_read(int nargs, VALUE *args, VALUE self) {
26386
+ int argc;
26387
+ VALUE argv[3];
26388
+ int ii;
26389
+
26390
+ argc = nargs + 1;
26391
+ argv[0] = self;
26392
+ if (argc > 3) SWIG_fail;
26393
+ for (ii = 1; (ii < argc); ++ii) {
26394
+ argv[ii] = args[ii - 1];
26395
+ }
26396
+ if (argc == 1) {
26397
+ int _v;
26398
+ void *vptr = 0;
26399
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0);
26400
+ _v = SWIG_CheckState(res);
26401
+ if (_v) {
26402
+ return _wrap_writableRecord_read__SWIG_1(nargs, args, self);
26403
+ }
26404
+ }
26405
+ if (argc == 2) {
26406
+ int _v;
26407
+ void *vptr = 0;
26408
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0);
26409
+ _v = SWIG_CheckState(res);
26410
+ if (_v) {
26411
+ void *vptr = 0;
26412
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BOOKMARK, 0);
26413
+ _v = SWIG_CheckState(res);
26414
+ if (_v) {
26415
+ return _wrap_writableRecord_read__SWIG_2(nargs, args, self);
26416
+ }
26417
+ }
26418
+ }
26419
+ if (argc == 2) {
26420
+ int _v;
26421
+ void *vptr = 0;
26422
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__writableRecord, 0);
26423
+ _v = SWIG_CheckState(res);
26424
+ if (_v) {
26425
+ {
26426
+ int res = SWIG_AsVal_bool(argv[1], NULL);
26427
+ _v = SWIG_CheckState(res);
26428
+ }
26429
+ if (_v) {
26430
+ return _wrap_writableRecord_read__SWIG_0(nargs, args, self);
26431
+ }
26432
+ }
26433
+ }
26434
+
26435
+ fail:
26436
+ Ruby_Format_OverloadedError(argc, 3, "writableRecord.read",
26437
+ " bool writableRecord.read(bool KeysetAlrady)\n"
26438
+ " bool writableRecord.read()\n"
26439
+ " bool writableRecord.read(bookmark_td &bm)\n");
26440
+
26441
+ return Qnil;
27064
26442
  }
27065
26443
 
27066
26444
 
@@ -27303,13 +26681,13 @@ _wrap_writableRecord___setitem__(int argc, VALUE *argv, VALUE self) {
27303
26681
  SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "uint_td","__setitem__", 2, argv[0] ));
27304
26682
  }
27305
26683
  }else if (type == T_STRING){
27306
- SWIG_CHAR buf;
27307
- int ret = SWIG_AsCharPtrAndSize(argv[0], &buf.str, NULL, &buf.alloc);
26684
+ SWIG_CHAR buf;
26685
+ int ret = SWIG_AsCharPtrAndSize(argv[0], &buf.str, NULL, &buf.alloc);
27308
26686
  if (!SWIG_IsOK(ret)) {
27309
26687
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","__setitem__", 2, argv[0]));
27310
26688
  }
27311
26689
  try {
27312
- index = arg1->indexByName(buf.str);
26690
+ index = arg1->indexByName(buf.str);
27313
26691
  }
27314
26692
  catch (bzs::rtl::exception& e) {
27315
26693
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
@@ -27334,12 +26712,12 @@ _wrap_writableRecord___setitem__(int argc, VALUE *argv, VALUE self) {
27334
26712
  arg1->operator[]((short)index) = v;
27335
26713
  }
27336
26714
  else if (type == T_STRING){
27337
- SWIG_CHAR buf;
27338
- int ret = SWIG_AsCharPtrAndSize(argv[1], &buf.str, NULL, &buf.alloc);
26715
+ SWIG_CHAR buf;
26716
+ int ret = SWIG_AsCharPtrAndSize(argv[1], &buf.str, NULL, &buf.alloc);
27339
26717
  if (!SWIG_IsOK(ret)) {
27340
26718
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","__setitem__", 3, argv[1]));
27341
26719
  }
27342
- arg1->operator[]((short)index) = buf.str;
26720
+ arg1->operator[]((short)index) = buf.str;
27343
26721
  }
27344
26722
  else if (type == T_FLOAT){
27345
26723
  double v = 0;
@@ -28644,12 +28022,12 @@ _wrap_recordsetQuery_when(int argc, VALUE *argv, VALUE self) {
28644
28022
  arg1->when(arg2, arg3, v);
28645
28023
  }
28646
28024
  else if (type == T_STRING){
28647
- SWIG_CHAR buf4;
28648
- int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
28025
+ SWIG_CHAR buf4;
28026
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
28649
28027
  if (!SWIG_IsOK(ret)) {
28650
28028
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","when", 3, argv[2]));
28651
28029
  }
28652
- arg1->when(arg2, arg3, buf4.str);
28030
+ arg1->when(arg2, arg3, buf4.str);
28653
28031
  }
28654
28032
  else if (type == T_FLOAT){
28655
28033
  double v = 0;
@@ -28719,12 +28097,12 @@ _wrap_recordsetQuery_and_(int argc, VALUE *argv, VALUE self) {
28719
28097
  arg1->and_(arg2, arg3, v);
28720
28098
  }
28721
28099
  else if (type == T_STRING){
28722
- SWIG_CHAR buf4;
28723
- int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
28100
+ SWIG_CHAR buf4;
28101
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
28724
28102
  if (!SWIG_IsOK(ret)) {
28725
28103
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","and_", 3, argv[2]));
28726
28104
  }
28727
- arg1->and_(arg2, arg3, buf4.str);
28105
+ arg1->and_(arg2, arg3, buf4.str);
28728
28106
  }
28729
28107
  else if (type == T_FLOAT){
28730
28108
  double v = 0;
@@ -28794,12 +28172,12 @@ _wrap_recordsetQuery_or_(int argc, VALUE *argv, VALUE self) {
28794
28172
  arg1->or_(arg2, arg3, v);
28795
28173
  }
28796
28174
  else if (type == T_STRING){
28797
- SWIG_CHAR buf4;
28798
- int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
28175
+ SWIG_CHAR buf4;
28176
+ int ret = SWIG_AsCharPtrAndSize(argv[2], &buf4.str, NULL, &buf4.alloc);
28799
28177
  if (!SWIG_IsOK(ret)) {
28800
28178
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","or_", 3, argv[2]));
28801
28179
  }
28802
- arg1->or_(arg2, arg3, buf4.str);
28180
+ arg1->or_(arg2, arg3, buf4.str);
28803
28181
  }
28804
28182
  else if (type == T_FLOAT){
28805
28183
  double v = 0;
@@ -32144,15 +31522,15 @@ _wrap_new_activeTable__SWIG_1(int argc, VALUE *argv, VALUE self) {
32144
31522
 
32145
31523
  if (argc == 3)
32146
31524
  {
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
- }
31525
+ VALUE type = TYPE(argv[2]);
31526
+ if ((type == T_FIXNUM) || (type == T_BIGNUM))
31527
+ {
31528
+ long long val = 0;
31529
+ int ecode = SWIG_AsVal_long_SS_long(argv[2], &val);
31530
+ if (!SWIG_IsOK(ecode))
31531
+ SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError("", "short", "mode", 3, argv[2]));
31532
+ arg3 = (short)val;
31533
+ }
32156
31534
  }
32157
31535
 
32158
31536
  {
@@ -32214,17 +31592,17 @@ SWIGINTERN VALUE _wrap_new_activeTable(int nargs, VALUE *args, VALUE self) {
32214
31592
  }
32215
31593
 
32216
31594
  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
- }
31595
+ int _v;
31596
+ void *vptr = 0;
31597
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0);
31598
+ _v = SWIG_CheckState(res);
31599
+ if (_v) {
31600
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
31601
+ _v = SWIG_CheckState(res);
31602
+ if (_v) {
31603
+ return _wrap_new_activeTable__SWIG_1(nargs, args, self);
31604
+ }
31605
+ }
32228
31606
  }
32229
31607
 
32230
31608
  fail:
@@ -32336,8 +31714,8 @@ _wrap_activeTable_read__SWIG_1(int argc, VALUE *argv, VALUE self) {
32336
31714
  arg2->addValue((__int64)val);
32337
31715
  }
32338
31716
  else if (type == T_STRING){
32339
- SWIG_CHAR buf;
32340
- int ret = SWIG_AsCharPtrAndSize(argv[i], &buf.str, NULL, &buf.alloc);
31717
+ SWIG_CHAR buf;
31718
+ int ret = SWIG_AsCharPtrAndSize(argv[i], &buf.str, NULL, &buf.alloc);
32341
31719
  if (!SWIG_IsOK(ret)) {
32342
31720
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","read", i+2, argv[i]));
32343
31721
  }
@@ -32898,8 +32276,8 @@ SWIGINTERN VALUE _wrap_activeTable_keyValue(int nargs, VALUE *args, VALUE self)
32898
32276
  tb->setFV(fnum, (__int64)val);
32899
32277
  }
32900
32278
  else if (type == T_STRING){
32901
- SWIG_CHAR buf;
32902
- int ret = SWIG_AsCharPtrAndSize(args[i], &buf.str, NULL, &buf.alloc);
32279
+ SWIG_CHAR buf;
32280
+ int ret = SWIG_AsCharPtrAndSize(args[i], &buf.str, NULL, &buf.alloc);
32903
32281
  if (!SWIG_IsOK(ret)) {
32904
32282
  SWIG_exception_fail(SWIG_ArgError(ret), Ruby_Format_TypeError( "", "char *const","keyValue", i+1, args[i]));
32905
32283
  }
@@ -35150,7 +34528,6 @@ SWIGEXPORT void Init_transactd(void) {
35150
34528
  rb_define_method(SwigClassNstable.klass, "createIndex", VALUEFUNC(_wrap_nstable_createIndex), -1);
35151
34529
  rb_define_method(SwigClassNstable.klass, "dropIndex", VALUEFUNC(_wrap_nstable_dropIndex), -1);
35152
34530
  rb_define_method(SwigClassNstable.klass, "recordCount", VALUEFUNC(_wrap_nstable_recordCount), -1);
35153
- rb_define_method(SwigClassNstable.klass, "tdapLastErr", VALUEFUNC(_wrap_nstable_tdapLastErr), -1);
35154
34531
  rb_define_method(SwigClassNstable.klass, "beginBulkInsert", VALUEFUNC(_wrap_nstable_beginBulkInsert), -1);
35155
34532
  rb_define_method(SwigClassNstable.klass, "abortBulkInsert", VALUEFUNC(_wrap_nstable_abortBulkInsert), -1);
35156
34533
  rb_define_method(SwigClassNstable.klass, "commitBulkInsert", VALUEFUNC(_wrap_nstable_commitBulkInsert), -1);
@@ -35165,7 +34542,7 @@ SWIGEXPORT void Init_transactd(void) {
35165
34542
  rb_define_method(SwigClassNstable.klass, "stepLast", VALUEFUNC(_wrap_nstable_stepLast), -1);
35166
34543
  rb_define_method(SwigClassNstable.klass, "stepPrev", VALUEFUNC(_wrap_nstable_stepPrev), -1);
35167
34544
  rb_define_method(SwigClassNstable.klass, "stepNext", VALUEFUNC(_wrap_nstable_stepNext), -1);
35168
- rb_define_method(SwigClassNstable.klass, "bookmarkLen", VALUEFUNC(_wrap_nstable_bookmarkLen), -1);
34545
+ rb_define_method(SwigClassNstable.klass, "bookmarkLen", VALUEFUNC(_wrap_nstable_bookmarkLen), -1);
35169
34546
  rb_define_method(SwigClassNstable.klass, "bookmark", VALUEFUNC(_wrap_nstable_bookmark), -1);
35170
34547
  rb_define_method(SwigClassNstable.klass, "seekByBookmark", VALUEFUNC(_wrap_nstable_seekByBookmark), -1);
35171
34548
  rb_define_method(SwigClassNstable.klass, "getPercentage", VALUEFUNC(_wrap_nstable_getPercentage), -1);
@@ -35176,8 +34553,8 @@ SWIGEXPORT void Init_transactd(void) {
35176
34553
  rb_define_method(SwigClassNstable.klass, "stats", VALUEFUNC(_wrap_nstable_stats), -1);
35177
34554
  rb_define_method(SwigClassNstable.klass, "unlock", VALUEFUNC(_wrap_nstable_unlock), -1);
35178
34555
  rb_define_method(SwigClassNstable.klass, "mode", VALUEFUNC(_wrap_nstable_mode), -1);
34556
+ rb_define_method(SwigClassNstable.klass, "statMsg", VALUEFUNC(_wrap_nstable_statMsg), -1);
35179
34557
  rb_define_singleton_method(SwigClassNstable.klass, "getFileName", VALUEFUNC(_wrap_nstable_getFileName), -1);
35180
- rb_define_singleton_method(SwigClassNstable.klass, "tdapErr", VALUEFUNC(_wrap_nstable_tdapErr), -1);
35181
34558
  rb_define_singleton_method(SwigClassNstable.klass, "getDirURI", VALUEFUNC(_wrap_nstable_getDirURI), -1);
35182
34559
  rb_define_singleton_method(SwigClassNstable.klass, "existsFile", VALUEFUNC(_wrap_nstable_existsFile), -1);
35183
34560
  SwigClassNstable.mark = 0;
@@ -35197,7 +34574,7 @@ SWIGEXPORT void Init_transactd(void) {
35197
34574
  rb_define_method(SwigClassDbdef.klass, "tableDefPtr", VALUEFUNC(_wrap_dbdef_tableDefPtr), -1);
35198
34575
  rb_define_method(SwigClassDbdef.klass, "setVersion", VALUEFUNC(_wrap_dbdef_setVersion), -1);
35199
34576
  rb_define_method(SwigClassDbdef.klass, "version", VALUEFUNC(_wrap_dbdef_version), -1);
35200
- rb_define_method(SwigClassDbdef.klass, "validateTableDef", VALUEFUNC(_wrap_dbdef_validateTableDef), -1);
34577
+ rb_define_method(SwigClassDbdef.klass, "validateTableDef", VALUEFUNC(_wrap_dbdef_validateTableDef), -1);
35201
34578
  rb_define_method(SwigClassDbdef.klass, "stat", VALUEFUNC(_wrap_dbdef_stat), -1);
35202
34579
  rb_define_method(SwigClassDbdef.klass, "updateTableDef", VALUEFUNC(_wrap_dbdef_updateTableDef), -1);
35203
34580
  rb_define_method(SwigClassDbdef.klass, "insertField", VALUEFUNC(_wrap_dbdef_insertField), -1);
@@ -35212,7 +34589,7 @@ SWIGEXPORT void Init_transactd(void) {
35212
34589
  rb_define_method(SwigClassDbdef.klass, "findKeynumByFieldNum", VALUEFUNC(_wrap_dbdef_findKeynumByFieldNum), -1);
35213
34590
  rb_define_method(SwigClassDbdef.klass, "fieldNumByName", VALUEFUNC(_wrap_dbdef_fieldNumByName), -1);
35214
34591
  rb_define_method(SwigClassDbdef.klass, "fieldValidLength", VALUEFUNC(_wrap_dbdef_fieldValidLength), -1);
35215
- rb_define_method(SwigClassDbdef.klass, "tdapErr", VALUEFUNC(_wrap_dbdef_tdapErr), -1);
34592
+ rb_define_method(SwigClassDbdef.klass, "statMsg", VALUEFUNC(_wrap_dbdef_statMsg), -1);
35216
34593
  rb_define_method(SwigClassDbdef.klass, "reopen", VALUEFUNC(_wrap_dbdef_reopen), -1);
35217
34594
  rb_define_method(SwigClassDbdef.klass, "mode", VALUEFUNC(_wrap_dbdef_mode), -1);
35218
34595
  SwigClassDbdef.mark = 0;
@@ -35233,7 +34610,7 @@ SWIGEXPORT void Init_transactd(void) {
35233
34610
  rb_define_method(SwigClassTable.klass, "myDateTimeValueByBtrv", VALUEFUNC(_wrap_table_myDateTimeValueByBtrv), -1);
35234
34611
  rb_define_method(SwigClassTable.klass, "bookmarksCount", VALUEFUNC(_wrap_table_bookmarksCount), -1);
35235
34612
  rb_define_method(SwigClassTable.klass, "moveBookmarks", VALUEFUNC(_wrap_table_moveBookmarks), -1);
35236
- rb_define_method(SwigClassTable.klass, "bookmarks", VALUEFUNC(_wrap_table_bookmarks), -1);
34613
+ rb_define_method(SwigClassTable.klass, "bookmarks", VALUEFUNC(_wrap_table_bookmarks), -1);
35237
34614
  rb_define_method(SwigClassTable.klass, "clearBuffer", VALUEFUNC(_wrap_table_clearBuffer), -1);
35238
34615
  rb_define_method(SwigClassTable.klass, "getRecordHash", VALUEFUNC(_wrap_table_getRecordHash), -1);
35239
34616
  rb_define_method(SwigClassTable.klass, "smartUpdate", VALUEFUNC(_wrap_table_smartUpdate), -1);
@@ -35305,7 +34682,7 @@ SWIGEXPORT void Init_transactd(void) {
35305
34682
  rb_define_method(SwigClassQueryBase.klass, "reverseAliasName", VALUEFUNC(_wrap_queryBase_reverseAliasName), -1);
35306
34683
  rb_define_method(SwigClassQueryBase.klass, "stopAtLimit", VALUEFUNC(_wrap_queryBase_stopAtLimit), -1);
35307
34684
  rb_define_method(SwigClassQueryBase.klass, "isStopAtLimit", VALUEFUNC(_wrap_queryBase_isStopAtLimit), -1);
35308
- rb_define_method(SwigClassQueryBase.klass, "isSeekByBookmarks", VALUEFUNC(_wrap_queryBase_isSeekByBookmarks), -1);
34685
+ rb_define_method(SwigClassQueryBase.klass, "isSeekByBookmarks", VALUEFUNC(_wrap_queryBase_isSeekByBookmarks), -1);
35309
34686
  SwigClassQueryBase.mark = 0;
35310
34687
  SwigClassQueryBase.trackObjects = 0;
35311
34688
 
@@ -35348,7 +34725,7 @@ SWIGEXPORT void Init_transactd(void) {
35348
34725
  rb_define_method(SwigClassNsdatabase.klass, "endSnapshot", VALUEFUNC(_wrap_nsdatabase_endSnapshot), -1);
35349
34726
  rb_define_method(SwigClassNsdatabase.klass, "trxIsolationServer", VALUEFUNC(_wrap_nsdatabase_trxIsolationServer), -1);
35350
34727
  rb_define_method(SwigClassNsdatabase.klass, "trxLockWaitTimeoutServer", VALUEFUNC(_wrap_nsdatabase_trxLockWaitTimeoutServer), -1);
35351
- rb_define_method(SwigClassNsdatabase.klass, "tdapErr", VALUEFUNC(_wrap_nsdatabase_tdapErr), -1);
34728
+ rb_define_method(SwigClassNsdatabase.klass, "statMsg", VALUEFUNC(_wrap_nsdatabase_statMsg), -1);
35352
34729
  rb_define_method(SwigClassNsdatabase.klass, "useLongFilename", VALUEFUNC(_wrap_nsdatabase_useLongFilename), -1);
35353
34730
  rb_define_method(SwigClassNsdatabase.klass, "setUseLongFilename", VALUEFUNC(_wrap_nsdatabase_setUseLongFilename), -1);
35354
34731
  rb_define_method(SwigClassNsdatabase.klass, "setUseTransactd", VALUEFUNC(_wrap_nsdatabase_setUseTransactd), -1);