appoptics_apm 4.8.2 → 4.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +6 -1
  3. data/.travis.yml +50 -28
  4. data/CONFIG.md +1 -1
  5. data/Gemfile +6 -7
  6. data/README.md +1 -1
  7. data/appoptics_apm.gemspec +4 -1
  8. data/examples/SDK/01_basic_tracing.rb +0 -2
  9. data/ext/oboe_metal/README.md +69 -0
  10. data/ext/oboe_metal/noop/noop.c +2 -1
  11. data/ext/oboe_metal/src/VERSION +1 -1
  12. data/ext/oboe_metal/src/bson/bson.h +105 -105
  13. data/ext/oboe_metal/src/bson/platform_hacks.h +10 -10
  14. data/ext/oboe_metal/src/oboe.h +104 -73
  15. data/ext/oboe_metal/src/oboe.hpp +103 -61
  16. data/ext/oboe_metal/src/oboe_wrap.cxx +1470 -314
  17. data/lib/appoptics_apm.rb +1 -3
  18. data/lib/appoptics_apm/api.rb +0 -1
  19. data/lib/appoptics_apm/api/tracing.rb +4 -0
  20. data/lib/appoptics_apm/config.rb +16 -5
  21. data/lib/appoptics_apm/frameworks/padrino.rb +6 -36
  22. data/lib/appoptics_apm/frameworks/rails.rb +0 -1
  23. data/lib/appoptics_apm/frameworks/rails/inst/action_controller.rb +5 -5
  24. data/lib/appoptics_apm/frameworks/rails/inst/action_controller6.rb +50 -0
  25. data/lib/appoptics_apm/frameworks/rails/inst/action_view.rb +11 -24
  26. data/lib/appoptics_apm/frameworks/rails/inst/active_record.rb +3 -3
  27. data/lib/appoptics_apm/frameworks/rails/inst/connection_adapters/utils.rb +1 -1
  28. data/lib/appoptics_apm/frameworks/rails/inst/connection_adapters/utils5x.rb +1 -1
  29. data/lib/appoptics_apm/frameworks/sinatra.rb +3 -32
  30. data/lib/appoptics_apm/inst/curb.rb +6 -6
  31. data/lib/appoptics_apm/inst/faraday.rb +16 -4
  32. data/lib/appoptics_apm/inst/rack.rb +11 -11
  33. data/lib/appoptics_apm/oboe_init_options.rb +17 -4
  34. data/lib/appoptics_apm/sdk/custom_metrics.rb +2 -0
  35. data/lib/appoptics_apm/sdk/tracing.rb +118 -0
  36. data/lib/appoptics_apm/support/transaction_metrics.rb +1 -0
  37. data/lib/appoptics_apm/support/transaction_settings.rb +40 -15
  38. data/lib/appoptics_apm/support/x_trace_options.rb +110 -0
  39. data/lib/appoptics_apm/version.rb +2 -2
  40. data/lib/appoptics_apm/xtrace.rb +7 -7
  41. data/lib/rails/generators/appoptics_apm/templates/appoptics_apm_initializer.rb +37 -12
  42. metadata +7 -15
  43. data/Rakefile +0 -229
  44. data/build_gem.sh +0 -15
  45. data/build_gem_upload_to_packagecloud.sh +0 -20
  46. data/lib/appoptics_apm/api/profiling.rb +0 -203
  47. data/lib/appoptics_apm/frameworks/rails/inst/action_controller3.rb +0 -55
  48. data/lib/appoptics_apm/frameworks/rails/inst/action_view_30.rb +0 -50
  49. data/lib/appoptics_apm/legacy_method_profiling.rb +0 -90
  50. data/lib/appoptics_apm/method_profiling.rb +0 -33
  51. data/lib/oboe/README +0 -2
  52. data/lib/oboe/backward_compatibility.rb +0 -80
  53. data/lib/oboe/inst/rack.rb +0 -11
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 3.0.8
3
+ * Version 4.0.0
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -105,9 +105,11 @@ template <typename T> T SwigValueInit() {
105
105
  #endif
106
106
 
107
107
  /* exporting methods */
108
- #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
109
- # ifndef GCC_HASCLASSVISIBILITY
110
- # define GCC_HASCLASSVISIBILITY
108
+ #if defined(__GNUC__)
109
+ # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
110
+ # ifndef GCC_HASCLASSVISIBILITY
111
+ # define GCC_HASCLASSVISIBILITY
112
+ # endif
111
113
  # endif
112
114
  #endif
113
115
 
@@ -227,9 +229,11 @@ template <typename T> T SwigValueInit() {
227
229
  #endif
228
230
 
229
231
  /* exporting methods */
230
- #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
231
- # ifndef GCC_HASCLASSVISIBILITY
232
- # define GCC_HASCLASSVISIBILITY
232
+ #if defined(__GNUC__)
233
+ # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
234
+ # ifndef GCC_HASCLASSVISIBILITY
235
+ # define GCC_HASCLASSVISIBILITY
236
+ # endif
233
237
  # endif
234
238
  #endif
235
239
 
@@ -327,6 +331,7 @@ template <typename T> T SwigValueInit() {
327
331
  /* Flags for pointer conversions */
328
332
  #define SWIG_POINTER_DISOWN 0x1
329
333
  #define SWIG_CAST_NEW_MEMORY 0x2
334
+ #define SWIG_POINTER_NO_NULL 0x4
330
335
 
331
336
  /* Flags for new pointer objects */
332
337
  #define SWIG_POINTER_OWN 0x1
@@ -779,16 +784,16 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
779
784
  char d = *(c++);
780
785
  unsigned char uu;
781
786
  if ((d >= '0') && (d <= '9'))
782
- uu = ((d - '0') << 4);
787
+ uu = (unsigned char)((d - '0') << 4);
783
788
  else if ((d >= 'a') && (d <= 'f'))
784
- uu = ((d - ('a'-10)) << 4);
789
+ uu = (unsigned char)((d - ('a'-10)) << 4);
785
790
  else
786
791
  return (char *) 0;
787
792
  d = *(c++);
788
793
  if ((d >= '0') && (d <= '9'))
789
- uu |= (d - '0');
794
+ uu |= (unsigned char)(d - '0');
790
795
  else if ((d >= 'a') && (d <= 'f'))
791
- uu |= (d - ('a'-10));
796
+ uu |= (unsigned char)(d - ('a'-10));
792
797
  else
793
798
  return (char *) 0;
794
799
  *u = uu;
@@ -965,6 +970,9 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
965
970
  #ifndef RSTRUCT_PTR
966
971
  # define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
967
972
  #endif
973
+ #ifndef RTYPEDDATA_P
974
+ # define RTYPEDDATA_P(x) (TYPE(x) != T_DATA)
975
+ #endif
968
976
 
969
977
 
970
978
 
@@ -1188,7 +1196,7 @@ void Ruby_Format_OverloadedError(
1188
1196
  /* -----------------------------------------------------------------------------
1189
1197
  * rubytracking.swg
1190
1198
  *
1191
- * This file contains support for tracking mappings from
1199
+ * This file contains support for tracking mappings from
1192
1200
  * Ruby objects to C++ objects. This functionality is needed
1193
1201
  * to implement mark functions for Ruby's mark and sweep
1194
1202
  * garbage collector.
@@ -1215,7 +1223,7 @@ extern "C" {
1215
1223
  #endif
1216
1224
 
1217
1225
  /* Global hash table to store Trackings from C/C++
1218
- structs to Ruby Objects.
1226
+ structs to Ruby Objects.
1219
1227
  */
1220
1228
  static st_table* swig_ruby_trackings = NULL;
1221
1229
 
@@ -1229,7 +1237,7 @@ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
1229
1237
  /* Create a hash table to store Trackings from C++
1230
1238
  objects to Ruby objects. */
1231
1239
 
1232
- /* Try to see if some other .so has already created a
1240
+ /* Try to see if some other .so has already created a
1233
1241
  tracking hash table, which we keep hidden in an instance var
1234
1242
  in the SWIG module.
1235
1243
  This is done to allow multiple DSOs to share the same
@@ -1288,13 +1296,14 @@ SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
1288
1296
 
1289
1297
  /* This is a helper method that unlinks a Ruby object from its
1290
1298
  underlying C++ object. This is needed if the lifetime of the
1291
- Ruby object is longer than the C++ object */
1299
+ Ruby object is longer than the C++ object. */
1292
1300
  SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
1293
1301
  VALUE object = SWIG_RubyInstanceFor(ptr);
1294
1302
 
1295
1303
  if (object != Qnil) {
1296
- if (TYPE(object) != T_DATA)
1297
- abort();
1304
+ // object might have the T_ZOMBIE type, but that's just
1305
+ // because the GC has flagged it as such for a deferred
1306
+ // destruction. Until then, it's still a T_DATA object.
1298
1307
  DATA_PTR(object) = 0;
1299
1308
  }
1300
1309
  }
@@ -1527,10 +1536,11 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1527
1536
  swig_class *sklass;
1528
1537
  VALUE klass;
1529
1538
  VALUE obj;
1530
-
1539
+
1531
1540
  if (!ptr)
1532
1541
  return Qnil;
1533
-
1542
+
1543
+ assert(type);
1534
1544
  if (type->clientdata) {
1535
1545
  sklass = (swig_class *) type->clientdata;
1536
1546
 
@@ -1538,7 +1548,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1538
1548
  track = sklass->trackObjects;
1539
1549
  if (track) {
1540
1550
  obj = SWIG_RubyInstanceFor(ptr);
1541
-
1551
+
1542
1552
  /* Check the object's type and make sure it has the correct type.
1543
1553
  It might not in cases where methods do things like
1544
1554
  downcast methods. */
@@ -1570,7 +1580,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1570
1580
  obj = Data_Wrap_Struct(klass, 0, 0, ptr);
1571
1581
  }
1572
1582
  rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1573
-
1583
+
1574
1584
  return obj;
1575
1585
  }
1576
1586
 
@@ -1602,7 +1612,7 @@ typedef struct {
1602
1612
  SWIGRUNTIME swig_ruby_owntype
1603
1613
  SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) {
1604
1614
  swig_ruby_owntype oldown = {0, 0};
1605
- if (obj) {
1615
+ if (TYPE(obj) == T_DATA && !RTYPEDDATA_P(obj)) {
1606
1616
  oldown.datafree = RDATA(obj)->dfree;
1607
1617
  RDATA(obj)->dfree = own.datafree;
1608
1618
  }
@@ -1621,9 +1631,9 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1621
1631
  if (NIL_P(obj)) {
1622
1632
  if (ptr)
1623
1633
  *ptr = 0;
1624
- return SWIG_OK;
1634
+ return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
1625
1635
  } else {
1626
- if (TYPE(obj) != T_DATA) {
1636
+ if (TYPE(obj) != T_DATA || (TYPE(obj) == T_DATA && RTYPEDDATA_P(obj))) {
1627
1637
  return SWIG_ERROR;
1628
1638
  }
1629
1639
  Data_Get_Struct(obj, void, vptr);
@@ -1661,6 +1671,14 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1661
1671
 
1662
1672
  /* Do type-checking if type info was provided */
1663
1673
  if (ty) {
1674
+ if (ty->clientdata) {
1675
+ if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
1676
+ if (vptr == 0) {
1677
+ /* The object has already been deleted */
1678
+ return SWIG_ObjectPreviouslyDeletedError;
1679
+ }
1680
+ }
1681
+ }
1664
1682
  if ((c = SWIG_MangleStr(obj)) == NULL) {
1665
1683
  return SWIG_ERROR;
1666
1684
  }
@@ -1668,10 +1686,6 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1668
1686
  if (!tc) {
1669
1687
  return SWIG_ERROR;
1670
1688
  } else {
1671
- if (vptr == 0) {
1672
- /* The object has already been deleted */
1673
- return SWIG_ObjectPreviouslyDeletedError;
1674
- }
1675
1689
  if (ptr) {
1676
1690
  if (tc->type == ty) {
1677
1691
  *ptr = vptr;
@@ -1714,7 +1728,7 @@ SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
1714
1728
  return rb_str_new2(result);
1715
1729
  }
1716
1730
 
1717
- /* Convert a packed value value */
1731
+ /* Convert a packed pointer value */
1718
1732
  SWIGRUNTIME int
1719
1733
  SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
1720
1734
  swig_cast_info *tc;
@@ -1833,12 +1847,13 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1833
1847
  #define SWIGTYPE_p_oboe_metadata_t swig_types[14]
1834
1848
  #define SWIGTYPE_p_short swig_types[15]
1835
1849
  #define SWIGTYPE_p_signed_char swig_types[16]
1836
- #define SWIGTYPE_p_unsigned_char swig_types[17]
1837
- #define SWIGTYPE_p_unsigned_int swig_types[18]
1838
- #define SWIGTYPE_p_unsigned_long_long swig_types[19]
1839
- #define SWIGTYPE_p_unsigned_short swig_types[20]
1840
- static swig_type_info *swig_types[22];
1841
- static swig_module_info swig_module = {swig_types, 21, 0, 0, 0, 0};
1850
+ #define SWIGTYPE_p_std__string swig_types[17]
1851
+ #define SWIGTYPE_p_unsigned_char swig_types[18]
1852
+ #define SWIGTYPE_p_unsigned_int swig_types[19]
1853
+ #define SWIGTYPE_p_unsigned_long_long swig_types[20]
1854
+ #define SWIGTYPE_p_unsigned_short swig_types[21]
1855
+ static swig_type_info *swig_types[23];
1856
+ static swig_module_info swig_module = {swig_types, 22, 0, 0, 0, 0};
1842
1857
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1843
1858
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1844
1859
 
@@ -1853,7 +1868,7 @@ static VALUE mOboe_metal;
1853
1868
  #define SWIG_RUBY_THREAD_END_BLOCK
1854
1869
 
1855
1870
 
1856
- #define SWIGVERSION 0x030008
1871
+ #define SWIGVERSION 0x040000
1857
1872
  #define SWIG_VERSION SWIGVERSION
1858
1873
 
1859
1874
 
@@ -1915,7 +1930,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
1915
1930
  if (cptr) {
1916
1931
  if (alloc) {
1917
1932
  if (*alloc == SWIG_NEWOBJ) {
1918
- *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
1933
+ *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size)));
1919
1934
  } else {
1920
1935
  *cptr = cstr;
1921
1936
  *alloc = SWIG_OLDOBJ;
@@ -1978,7 +1993,7 @@ SWIG_ruby_failed(void)
1978
1993
  }
1979
1994
 
1980
1995
 
1981
- /*@SWIG:/usr/local/share/swig/3.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1996
+ /*@SWIG:/usr/local/share/swig/4.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1982
1997
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
1983
1998
  {
1984
1999
  VALUE obj = args[0];
@@ -2074,7 +2089,10 @@ SWIG_From_std_string (const std::string& s)
2074
2089
  }
2075
2090
 
2076
2091
 
2077
- /*@SWIG:/usr/local/share/swig/3.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2092
+
2093
+
2094
+
2095
+ /*@SWIG:/usr/local/share/swig/4.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2078
2096
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
2079
2097
  {
2080
2098
  VALUE obj = args[0];
@@ -2119,10 +2137,7 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
2119
2137
  }
2120
2138
 
2121
2139
 
2122
-
2123
-
2124
-
2125
- /*@SWIG:/usr/local/share/swig/3.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2140
+ /*@SWIG:/usr/local/share/swig/4.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2126
2141
  SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
2127
2142
  {
2128
2143
  VALUE obj = args[0];
@@ -2151,7 +2166,13 @@ SWIG_AsVal_double (VALUE obj, double *val)
2151
2166
  }
2152
2167
 
2153
2168
 
2154
- /*@SWIG:/usr/local/share/swig/3.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2169
+ #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
2170
+ # define SWIG_LONG_LONG_AVAILABLE
2171
+ #endif
2172
+
2173
+
2174
+ #ifdef SWIG_LONG_LONG_AVAILABLE
2175
+ /*@SWIG:/usr/local/share/swig/4.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2155
2176
  SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args)
2156
2177
  {
2157
2178
  VALUE obj = args[0];
@@ -2178,35 +2199,76 @@ SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
2178
2199
  }
2179
2200
  return SWIG_TypeError;
2180
2201
  }
2202
+ #endif
2203
+
2204
+
2205
+ #ifdef SWIG_LONG_LONG_AVAILABLE
2206
+ /*@SWIG:/usr/local/share/swig/4.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2207
+ SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
2208
+ {
2209
+ VALUE obj = args[0];
2210
+ VALUE type = TYPE(obj);
2211
+ long long *res = (long long *)(args[1]);
2212
+ *res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
2213
+ return obj;
2214
+ }
2215
+ /*@SWIG@*/
2216
+
2217
+ SWIGINTERN int
2218
+ SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
2219
+ {
2220
+ VALUE type = TYPE(obj);
2221
+ if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
2222
+ unsigned long long v;
2223
+ VALUE a[2];
2224
+ a[0] = obj;
2225
+ a[1] = (VALUE)(&v);
2226
+ if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
2227
+ if (val) *val = v;
2228
+ return SWIG_OK;
2229
+ }
2230
+ }
2231
+ return SWIG_TypeError;
2232
+ }
2233
+ #endif
2181
2234
 
2182
2235
 
2183
2236
  SWIGINTERNINLINE int
2184
2237
  SWIG_AsVal_size_t (VALUE obj, size_t *val)
2185
2238
  {
2186
- unsigned long v;
2187
- int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2188
- if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2239
+ int res = SWIG_TypeError;
2240
+ #ifdef SWIG_LONG_LONG_AVAILABLE
2241
+ if (sizeof(size_t) <= sizeof(unsigned long)) {
2242
+ #endif
2243
+ unsigned long v;
2244
+ res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2245
+ if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2246
+ #ifdef SWIG_LONG_LONG_AVAILABLE
2247
+ } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
2248
+ unsigned long long v;
2249
+ res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
2250
+ if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2251
+ }
2252
+ #endif
2189
2253
  return res;
2190
2254
  }
2191
2255
 
2192
2256
  static swig_class SwigClassMetadata;
2193
2257
 
2194
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
2195
2258
  SWIGINTERN VALUE
2196
- _wrap_Metadata_allocate(VALUE self) {
2259
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
2260
+ _wrap_Metadata_allocate(VALUE self)
2197
2261
  #else
2198
- SWIGINTERN VALUE
2199
- _wrap_Metadata_allocate(int argc, VALUE *argv, VALUE self) {
2262
+ _wrap_Metadata_allocate(int argc, VALUE *argv, VALUE self)
2200
2263
  #endif
2201
-
2202
-
2203
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Metadata);
2264
+ {
2265
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Metadata);
2204
2266
  #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
2205
- rb_obj_call_init(vresult, argc, argv);
2267
+ rb_obj_call_init(vresult, argc, argv);
2206
2268
  #endif
2207
- return vresult;
2208
- }
2209
-
2269
+ return vresult;
2270
+ }
2271
+
2210
2272
 
2211
2273
  SWIGINTERN VALUE
2212
2274
  _wrap_new_Metadata(int argc, VALUE *argv, VALUE self) {
@@ -2352,9 +2414,9 @@ SWIGINTERN VALUE _wrap_Metadata_makeRandom(int nargs, VALUE *args, VALUE self) {
2352
2414
  }
2353
2415
 
2354
2416
  fail:
2355
- Ruby_Format_OverloadedError( argc, 1, "makeRandom.new",
2356
- " makeRandom.new(bool sampled)\n"
2357
- " makeRandom.new()\n");
2417
+ Ruby_Format_OverloadedError( argc, 1, "Metadata.makeRandom",
2418
+ " Metadata Metadata.makeRandom(bool sampled)\n"
2419
+ " Metadata * Metadata.makeRandom()\n");
2358
2420
 
2359
2421
  return Qnil;
2360
2422
  }
@@ -2507,10 +2569,18 @@ _wrap_Context_getDecisions__SWIG_0(int argc, VALUE *argv, VALUE self) {
2507
2569
  int *arg3 = (int *) 0 ;
2508
2570
  int *arg4 = (int *) 0 ;
2509
2571
  int *arg5 = (int *) 0 ;
2510
- std::string arg6 ;
2511
- int arg7 ;
2512
- int arg8 ;
2513
- std::string arg9 ;
2572
+ int *arg6 = (int *) 0 ;
2573
+ std::string *arg7 = (std::string *) 0 ;
2574
+ std::string *arg8 = (std::string *) 0 ;
2575
+ int *arg9 = (int *) 0 ;
2576
+ char *arg10 = (char *) 0 ;
2577
+ int arg11 ;
2578
+ int arg12 ;
2579
+ int arg13 ;
2580
+ int arg14 ;
2581
+ char *arg15 = (char *) 0 ;
2582
+ char *arg16 = (char *) 0 ;
2583
+ long arg17 ;
2514
2584
  int temp1 ;
2515
2585
  int res1 = SWIG_TMPOBJ ;
2516
2586
  int temp2 ;
@@ -2521,10 +2591,33 @@ _wrap_Context_getDecisions__SWIG_0(int argc, VALUE *argv, VALUE self) {
2521
2591
  int res4 = SWIG_TMPOBJ ;
2522
2592
  int temp5 ;
2523
2593
  int res5 = SWIG_TMPOBJ ;
2524
- int val7 ;
2525
- int ecode7 = 0 ;
2526
- int val8 ;
2527
- int ecode8 = 0 ;
2594
+ int temp6 ;
2595
+ int res6 = SWIG_TMPOBJ ;
2596
+ std::string temp7 ;
2597
+ int res7 = SWIG_TMPOBJ ;
2598
+ std::string temp8 ;
2599
+ int res8 = SWIG_TMPOBJ ;
2600
+ int temp9 ;
2601
+ int res9 = SWIG_TMPOBJ ;
2602
+ int res10 ;
2603
+ char *buf10 = 0 ;
2604
+ int alloc10 = 0 ;
2605
+ int val11 ;
2606
+ int ecode11 = 0 ;
2607
+ int val12 ;
2608
+ int ecode12 = 0 ;
2609
+ int val13 ;
2610
+ int ecode13 = 0 ;
2611
+ int val14 ;
2612
+ int ecode14 = 0 ;
2613
+ int res15 ;
2614
+ char *buf15 = 0 ;
2615
+ int alloc15 = 0 ;
2616
+ int res16 ;
2617
+ char *buf16 = 0 ;
2618
+ int alloc16 = 0 ;
2619
+ long val17 ;
2620
+ int ecode17 = 0 ;
2528
2621
  VALUE vresult = Qnil;
2529
2622
 
2530
2623
  arg1 = &temp1;
@@ -2532,38 +2625,54 @@ _wrap_Context_getDecisions__SWIG_0(int argc, VALUE *argv, VALUE self) {
2532
2625
  arg3 = &temp3;
2533
2626
  arg4 = &temp4;
2534
2627
  arg5 = &temp5;
2535
- if ((argc < 4) || (argc > 4)) {
2536
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
2628
+ arg6 = &temp6;
2629
+ arg7 = &temp7;
2630
+ arg8 = &temp8;
2631
+ arg9 = &temp9;
2632
+ if ((argc < 8) || (argc > 8)) {
2633
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
2537
2634
  }
2538
- {
2539
- std::string *ptr = (std::string *)0;
2540
- int res = SWIG_AsPtr_std_string(argv[0], &ptr);
2541
- if (!SWIG_IsOK(res) || !ptr) {
2542
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::getDecisions", 6, argv[0] ));
2543
- }
2544
- arg6 = *ptr;
2545
- if (SWIG_IsNewObj(res)) delete ptr;
2635
+ res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
2636
+ if (!SWIG_IsOK(res10)) {
2637
+ SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
2546
2638
  }
2547
- ecode7 = SWIG_AsVal_int(argv[1], &val7);
2548
- if (!SWIG_IsOK(ecode7)) {
2549
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","Context::getDecisions", 7, argv[1] ));
2639
+ arg10 = reinterpret_cast< char * >(buf10);
2640
+ ecode11 = SWIG_AsVal_int(argv[1], &val11);
2641
+ if (!SWIG_IsOK(ecode11)) {
2642
+ SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
2550
2643
  }
2551
- arg7 = static_cast< int >(val7);
2552
- ecode8 = SWIG_AsVal_int(argv[2], &val8);
2553
- if (!SWIG_IsOK(ecode8)) {
2554
- SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","Context::getDecisions", 8, argv[2] ));
2644
+ arg11 = static_cast< int >(val11);
2645
+ ecode12 = SWIG_AsVal_int(argv[2], &val12);
2646
+ if (!SWIG_IsOK(ecode12)) {
2647
+ SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
2555
2648
  }
2556
- arg8 = static_cast< int >(val8);
2557
- {
2558
- std::string *ptr = (std::string *)0;
2559
- int res = SWIG_AsPtr_std_string(argv[3], &ptr);
2560
- if (!SWIG_IsOK(res) || !ptr) {
2561
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::getDecisions", 9, argv[3] ));
2562
- }
2563
- arg9 = *ptr;
2564
- if (SWIG_IsNewObj(res)) delete ptr;
2649
+ arg12 = static_cast< int >(val12);
2650
+ ecode13 = SWIG_AsVal_int(argv[3], &val13);
2651
+ if (!SWIG_IsOK(ecode13)) {
2652
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[3] ));
2653
+ }
2654
+ arg13 = static_cast< int >(val13);
2655
+ ecode14 = SWIG_AsVal_int(argv[4], &val14);
2656
+ if (!SWIG_IsOK(ecode14)) {
2657
+ SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[4] ));
2658
+ }
2659
+ arg14 = static_cast< int >(val14);
2660
+ res15 = SWIG_AsCharPtrAndSize(argv[5], &buf15, NULL, &alloc15);
2661
+ if (!SWIG_IsOK(res15)) {
2662
+ SWIG_exception_fail(SWIG_ArgError(res15), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 15, argv[5] ));
2565
2663
  }
2566
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
2664
+ arg15 = reinterpret_cast< char * >(buf15);
2665
+ res16 = SWIG_AsCharPtrAndSize(argv[6], &buf16, NULL, &alloc16);
2666
+ if (!SWIG_IsOK(res16)) {
2667
+ SWIG_exception_fail(SWIG_ArgError(res16), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 16, argv[6] ));
2668
+ }
2669
+ arg16 = reinterpret_cast< char * >(buf16);
2670
+ ecode17 = SWIG_AsVal_long(argv[7], &val17);
2671
+ if (!SWIG_IsOK(ecode17)) {
2672
+ SWIG_exception_fail(SWIG_ArgError(ecode17), Ruby_Format_TypeError( "", "long","Context::getDecisions", 17, argv[7] ));
2673
+ }
2674
+ arg17 = static_cast< long >(val17);
2675
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12,arg13,arg14,(char const *)arg15,(char const *)arg16,arg17);
2567
2676
  vresult = rb_ary_new();
2568
2677
  if (SWIG_IsTmpObj(res1)) {
2569
2678
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -2595,8 +2704,38 @@ _wrap_Context_getDecisions__SWIG_0(int argc, VALUE *argv, VALUE self) {
2595
2704
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2596
2705
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
2597
2706
  }
2707
+ if (SWIG_IsTmpObj(res6)) {
2708
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
2709
+ } else {
2710
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2711
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
2712
+ }
2713
+ if (SWIG_IsTmpObj(res7)) {
2714
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
2715
+ } else {
2716
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2717
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
2718
+ }
2719
+ if (SWIG_IsTmpObj(res8)) {
2720
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
2721
+ } else {
2722
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2723
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
2724
+ }
2725
+ if (SWIG_IsTmpObj(res9)) {
2726
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
2727
+ } else {
2728
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2729
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
2730
+ }
2731
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
2732
+ if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
2733
+ if (alloc16 == SWIG_NEWOBJ) delete[] buf16;
2598
2734
  return vresult;
2599
2735
  fail:
2736
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
2737
+ if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
2738
+ if (alloc16 == SWIG_NEWOBJ) delete[] buf16;
2600
2739
  return Qnil;
2601
2740
  }
2602
2741
 
@@ -2608,9 +2747,17 @@ _wrap_Context_getDecisions__SWIG_1(int argc, VALUE *argv, VALUE self) {
2608
2747
  int *arg3 = (int *) 0 ;
2609
2748
  int *arg4 = (int *) 0 ;
2610
2749
  int *arg5 = (int *) 0 ;
2611
- std::string arg6 ;
2612
- int arg7 ;
2613
- int arg8 ;
2750
+ int *arg6 = (int *) 0 ;
2751
+ std::string *arg7 = (std::string *) 0 ;
2752
+ std::string *arg8 = (std::string *) 0 ;
2753
+ int *arg9 = (int *) 0 ;
2754
+ char *arg10 = (char *) 0 ;
2755
+ int arg11 ;
2756
+ int arg12 ;
2757
+ int arg13 ;
2758
+ int arg14 ;
2759
+ char *arg15 = (char *) 0 ;
2760
+ char *arg16 = (char *) 0 ;
2614
2761
  int temp1 ;
2615
2762
  int res1 = SWIG_TMPOBJ ;
2616
2763
  int temp2 ;
@@ -2621,10 +2768,31 @@ _wrap_Context_getDecisions__SWIG_1(int argc, VALUE *argv, VALUE self) {
2621
2768
  int res4 = SWIG_TMPOBJ ;
2622
2769
  int temp5 ;
2623
2770
  int res5 = SWIG_TMPOBJ ;
2624
- int val7 ;
2625
- int ecode7 = 0 ;
2626
- int val8 ;
2627
- int ecode8 = 0 ;
2771
+ int temp6 ;
2772
+ int res6 = SWIG_TMPOBJ ;
2773
+ std::string temp7 ;
2774
+ int res7 = SWIG_TMPOBJ ;
2775
+ std::string temp8 ;
2776
+ int res8 = SWIG_TMPOBJ ;
2777
+ int temp9 ;
2778
+ int res9 = SWIG_TMPOBJ ;
2779
+ int res10 ;
2780
+ char *buf10 = 0 ;
2781
+ int alloc10 = 0 ;
2782
+ int val11 ;
2783
+ int ecode11 = 0 ;
2784
+ int val12 ;
2785
+ int ecode12 = 0 ;
2786
+ int val13 ;
2787
+ int ecode13 = 0 ;
2788
+ int val14 ;
2789
+ int ecode14 = 0 ;
2790
+ int res15 ;
2791
+ char *buf15 = 0 ;
2792
+ int alloc15 = 0 ;
2793
+ int res16 ;
2794
+ char *buf16 = 0 ;
2795
+ int alloc16 = 0 ;
2628
2796
  VALUE vresult = Qnil;
2629
2797
 
2630
2798
  arg1 = &temp1;
@@ -2632,29 +2800,49 @@ _wrap_Context_getDecisions__SWIG_1(int argc, VALUE *argv, VALUE self) {
2632
2800
  arg3 = &temp3;
2633
2801
  arg4 = &temp4;
2634
2802
  arg5 = &temp5;
2635
- if ((argc < 3) || (argc > 3)) {
2636
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2803
+ arg6 = &temp6;
2804
+ arg7 = &temp7;
2805
+ arg8 = &temp8;
2806
+ arg9 = &temp9;
2807
+ if ((argc < 7) || (argc > 7)) {
2808
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
2637
2809
  }
2638
- {
2639
- std::string *ptr = (std::string *)0;
2640
- int res = SWIG_AsPtr_std_string(argv[0], &ptr);
2641
- if (!SWIG_IsOK(res) || !ptr) {
2642
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::getDecisions", 6, argv[0] ));
2643
- }
2644
- arg6 = *ptr;
2645
- if (SWIG_IsNewObj(res)) delete ptr;
2810
+ res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
2811
+ if (!SWIG_IsOK(res10)) {
2812
+ SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
2646
2813
  }
2647
- ecode7 = SWIG_AsVal_int(argv[1], &val7);
2648
- if (!SWIG_IsOK(ecode7)) {
2649
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","Context::getDecisions", 7, argv[1] ));
2814
+ arg10 = reinterpret_cast< char * >(buf10);
2815
+ ecode11 = SWIG_AsVal_int(argv[1], &val11);
2816
+ if (!SWIG_IsOK(ecode11)) {
2817
+ SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
2650
2818
  }
2651
- arg7 = static_cast< int >(val7);
2652
- ecode8 = SWIG_AsVal_int(argv[2], &val8);
2653
- if (!SWIG_IsOK(ecode8)) {
2654
- SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","Context::getDecisions", 8, argv[2] ));
2819
+ arg11 = static_cast< int >(val11);
2820
+ ecode12 = SWIG_AsVal_int(argv[2], &val12);
2821
+ if (!SWIG_IsOK(ecode12)) {
2822
+ SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
2823
+ }
2824
+ arg12 = static_cast< int >(val12);
2825
+ ecode13 = SWIG_AsVal_int(argv[3], &val13);
2826
+ if (!SWIG_IsOK(ecode13)) {
2827
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[3] ));
2828
+ }
2829
+ arg13 = static_cast< int >(val13);
2830
+ ecode14 = SWIG_AsVal_int(argv[4], &val14);
2831
+ if (!SWIG_IsOK(ecode14)) {
2832
+ SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[4] ));
2655
2833
  }
2656
- arg8 = static_cast< int >(val8);
2657
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
2834
+ arg14 = static_cast< int >(val14);
2835
+ res15 = SWIG_AsCharPtrAndSize(argv[5], &buf15, NULL, &alloc15);
2836
+ if (!SWIG_IsOK(res15)) {
2837
+ SWIG_exception_fail(SWIG_ArgError(res15), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 15, argv[5] ));
2838
+ }
2839
+ arg15 = reinterpret_cast< char * >(buf15);
2840
+ res16 = SWIG_AsCharPtrAndSize(argv[6], &buf16, NULL, &alloc16);
2841
+ if (!SWIG_IsOK(res16)) {
2842
+ SWIG_exception_fail(SWIG_ArgError(res16), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 16, argv[6] ));
2843
+ }
2844
+ arg16 = reinterpret_cast< char * >(buf16);
2845
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12,arg13,arg14,(char const *)arg15,(char const *)arg16);
2658
2846
  vresult = rb_ary_new();
2659
2847
  if (SWIG_IsTmpObj(res1)) {
2660
2848
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -2686,8 +2874,38 @@ _wrap_Context_getDecisions__SWIG_1(int argc, VALUE *argv, VALUE self) {
2686
2874
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2687
2875
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
2688
2876
  }
2877
+ if (SWIG_IsTmpObj(res6)) {
2878
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
2879
+ } else {
2880
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2881
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
2882
+ }
2883
+ if (SWIG_IsTmpObj(res7)) {
2884
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
2885
+ } else {
2886
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2887
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
2888
+ }
2889
+ if (SWIG_IsTmpObj(res8)) {
2890
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
2891
+ } else {
2892
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2893
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
2894
+ }
2895
+ if (SWIG_IsTmpObj(res9)) {
2896
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
2897
+ } else {
2898
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2899
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
2900
+ }
2901
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
2902
+ if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
2903
+ if (alloc16 == SWIG_NEWOBJ) delete[] buf16;
2689
2904
  return vresult;
2690
2905
  fail:
2906
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
2907
+ if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
2908
+ if (alloc16 == SWIG_NEWOBJ) delete[] buf16;
2691
2909
  return Qnil;
2692
2910
  }
2693
2911
 
@@ -2699,8 +2917,16 @@ _wrap_Context_getDecisions__SWIG_2(int argc, VALUE *argv, VALUE self) {
2699
2917
  int *arg3 = (int *) 0 ;
2700
2918
  int *arg4 = (int *) 0 ;
2701
2919
  int *arg5 = (int *) 0 ;
2702
- std::string arg6 ;
2703
- int arg7 ;
2920
+ int *arg6 = (int *) 0 ;
2921
+ std::string *arg7 = (std::string *) 0 ;
2922
+ std::string *arg8 = (std::string *) 0 ;
2923
+ int *arg9 = (int *) 0 ;
2924
+ char *arg10 = (char *) 0 ;
2925
+ int arg11 ;
2926
+ int arg12 ;
2927
+ int arg13 ;
2928
+ int arg14 ;
2929
+ char *arg15 = (char *) 0 ;
2704
2930
  int temp1 ;
2705
2931
  int res1 = SWIG_TMPOBJ ;
2706
2932
  int temp2 ;
@@ -2711,8 +2937,28 @@ _wrap_Context_getDecisions__SWIG_2(int argc, VALUE *argv, VALUE self) {
2711
2937
  int res4 = SWIG_TMPOBJ ;
2712
2938
  int temp5 ;
2713
2939
  int res5 = SWIG_TMPOBJ ;
2714
- int val7 ;
2715
- int ecode7 = 0 ;
2940
+ int temp6 ;
2941
+ int res6 = SWIG_TMPOBJ ;
2942
+ std::string temp7 ;
2943
+ int res7 = SWIG_TMPOBJ ;
2944
+ std::string temp8 ;
2945
+ int res8 = SWIG_TMPOBJ ;
2946
+ int temp9 ;
2947
+ int res9 = SWIG_TMPOBJ ;
2948
+ int res10 ;
2949
+ char *buf10 = 0 ;
2950
+ int alloc10 = 0 ;
2951
+ int val11 ;
2952
+ int ecode11 = 0 ;
2953
+ int val12 ;
2954
+ int ecode12 = 0 ;
2955
+ int val13 ;
2956
+ int ecode13 = 0 ;
2957
+ int val14 ;
2958
+ int ecode14 = 0 ;
2959
+ int res15 ;
2960
+ char *buf15 = 0 ;
2961
+ int alloc15 = 0 ;
2716
2962
  VALUE vresult = Qnil;
2717
2963
 
2718
2964
  arg1 = &temp1;
@@ -2720,24 +2966,44 @@ _wrap_Context_getDecisions__SWIG_2(int argc, VALUE *argv, VALUE self) {
2720
2966
  arg3 = &temp3;
2721
2967
  arg4 = &temp4;
2722
2968
  arg5 = &temp5;
2723
- if ((argc < 2) || (argc > 2)) {
2724
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
2969
+ arg6 = &temp6;
2970
+ arg7 = &temp7;
2971
+ arg8 = &temp8;
2972
+ arg9 = &temp9;
2973
+ if ((argc < 6) || (argc > 6)) {
2974
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
2725
2975
  }
2726
- {
2727
- std::string *ptr = (std::string *)0;
2728
- int res = SWIG_AsPtr_std_string(argv[0], &ptr);
2729
- if (!SWIG_IsOK(res) || !ptr) {
2730
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::getDecisions", 6, argv[0] ));
2731
- }
2732
- arg6 = *ptr;
2733
- if (SWIG_IsNewObj(res)) delete ptr;
2976
+ res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
2977
+ if (!SWIG_IsOK(res10)) {
2978
+ SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
2734
2979
  }
2735
- ecode7 = SWIG_AsVal_int(argv[1], &val7);
2736
- if (!SWIG_IsOK(ecode7)) {
2737
- SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","Context::getDecisions", 7, argv[1] ));
2980
+ arg10 = reinterpret_cast< char * >(buf10);
2981
+ ecode11 = SWIG_AsVal_int(argv[1], &val11);
2982
+ if (!SWIG_IsOK(ecode11)) {
2983
+ SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
2738
2984
  }
2739
- arg7 = static_cast< int >(val7);
2740
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
2985
+ arg11 = static_cast< int >(val11);
2986
+ ecode12 = SWIG_AsVal_int(argv[2], &val12);
2987
+ if (!SWIG_IsOK(ecode12)) {
2988
+ SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
2989
+ }
2990
+ arg12 = static_cast< int >(val12);
2991
+ ecode13 = SWIG_AsVal_int(argv[3], &val13);
2992
+ if (!SWIG_IsOK(ecode13)) {
2993
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[3] ));
2994
+ }
2995
+ arg13 = static_cast< int >(val13);
2996
+ ecode14 = SWIG_AsVal_int(argv[4], &val14);
2997
+ if (!SWIG_IsOK(ecode14)) {
2998
+ SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[4] ));
2999
+ }
3000
+ arg14 = static_cast< int >(val14);
3001
+ res15 = SWIG_AsCharPtrAndSize(argv[5], &buf15, NULL, &alloc15);
3002
+ if (!SWIG_IsOK(res15)) {
3003
+ SWIG_exception_fail(SWIG_ArgError(res15), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 15, argv[5] ));
3004
+ }
3005
+ arg15 = reinterpret_cast< char * >(buf15);
3006
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12,arg13,arg14,(char const *)arg15);
2741
3007
  vresult = rb_ary_new();
2742
3008
  if (SWIG_IsTmpObj(res1)) {
2743
3009
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -2769,8 +3035,36 @@ _wrap_Context_getDecisions__SWIG_2(int argc, VALUE *argv, VALUE self) {
2769
3035
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2770
3036
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
2771
3037
  }
3038
+ if (SWIG_IsTmpObj(res6)) {
3039
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3040
+ } else {
3041
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3042
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3043
+ }
3044
+ if (SWIG_IsTmpObj(res7)) {
3045
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3046
+ } else {
3047
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3048
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3049
+ }
3050
+ if (SWIG_IsTmpObj(res8)) {
3051
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3052
+ } else {
3053
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3054
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3055
+ }
3056
+ if (SWIG_IsTmpObj(res9)) {
3057
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3058
+ } else {
3059
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3060
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3061
+ }
3062
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3063
+ if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
2772
3064
  return vresult;
2773
3065
  fail:
3066
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3067
+ if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
2774
3068
  return Qnil;
2775
3069
  }
2776
3070
 
@@ -2782,7 +3076,15 @@ _wrap_Context_getDecisions__SWIG_3(int argc, VALUE *argv, VALUE self) {
2782
3076
  int *arg3 = (int *) 0 ;
2783
3077
  int *arg4 = (int *) 0 ;
2784
3078
  int *arg5 = (int *) 0 ;
2785
- std::string arg6 ;
3079
+ int *arg6 = (int *) 0 ;
3080
+ std::string *arg7 = (std::string *) 0 ;
3081
+ std::string *arg8 = (std::string *) 0 ;
3082
+ int *arg9 = (int *) 0 ;
3083
+ char *arg10 = (char *) 0 ;
3084
+ int arg11 ;
3085
+ int arg12 ;
3086
+ int arg13 ;
3087
+ int arg14 ;
2786
3088
  int temp1 ;
2787
3089
  int res1 = SWIG_TMPOBJ ;
2788
3090
  int temp2 ;
@@ -2793,6 +3095,25 @@ _wrap_Context_getDecisions__SWIG_3(int argc, VALUE *argv, VALUE self) {
2793
3095
  int res4 = SWIG_TMPOBJ ;
2794
3096
  int temp5 ;
2795
3097
  int res5 = SWIG_TMPOBJ ;
3098
+ int temp6 ;
3099
+ int res6 = SWIG_TMPOBJ ;
3100
+ std::string temp7 ;
3101
+ int res7 = SWIG_TMPOBJ ;
3102
+ std::string temp8 ;
3103
+ int res8 = SWIG_TMPOBJ ;
3104
+ int temp9 ;
3105
+ int res9 = SWIG_TMPOBJ ;
3106
+ int res10 ;
3107
+ char *buf10 = 0 ;
3108
+ int alloc10 = 0 ;
3109
+ int val11 ;
3110
+ int ecode11 = 0 ;
3111
+ int val12 ;
3112
+ int ecode12 = 0 ;
3113
+ int val13 ;
3114
+ int ecode13 = 0 ;
3115
+ int val14 ;
3116
+ int ecode14 = 0 ;
2796
3117
  VALUE vresult = Qnil;
2797
3118
 
2798
3119
  arg1 = &temp1;
@@ -2800,19 +3121,39 @@ _wrap_Context_getDecisions__SWIG_3(int argc, VALUE *argv, VALUE self) {
2800
3121
  arg3 = &temp3;
2801
3122
  arg4 = &temp4;
2802
3123
  arg5 = &temp5;
2803
- if ((argc < 1) || (argc > 1)) {
2804
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3124
+ arg6 = &temp6;
3125
+ arg7 = &temp7;
3126
+ arg8 = &temp8;
3127
+ arg9 = &temp9;
3128
+ if ((argc < 5) || (argc > 5)) {
3129
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
2805
3130
  }
2806
- {
2807
- std::string *ptr = (std::string *)0;
2808
- int res = SWIG_AsPtr_std_string(argv[0], &ptr);
2809
- if (!SWIG_IsOK(res) || !ptr) {
2810
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::getDecisions", 6, argv[0] ));
2811
- }
2812
- arg6 = *ptr;
2813
- if (SWIG_IsNewObj(res)) delete ptr;
3131
+ res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
3132
+ if (!SWIG_IsOK(res10)) {
3133
+ SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
2814
3134
  }
2815
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6);
3135
+ arg10 = reinterpret_cast< char * >(buf10);
3136
+ ecode11 = SWIG_AsVal_int(argv[1], &val11);
3137
+ if (!SWIG_IsOK(ecode11)) {
3138
+ SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
3139
+ }
3140
+ arg11 = static_cast< int >(val11);
3141
+ ecode12 = SWIG_AsVal_int(argv[2], &val12);
3142
+ if (!SWIG_IsOK(ecode12)) {
3143
+ SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
3144
+ }
3145
+ arg12 = static_cast< int >(val12);
3146
+ ecode13 = SWIG_AsVal_int(argv[3], &val13);
3147
+ if (!SWIG_IsOK(ecode13)) {
3148
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[3] ));
3149
+ }
3150
+ arg13 = static_cast< int >(val13);
3151
+ ecode14 = SWIG_AsVal_int(argv[4], &val14);
3152
+ if (!SWIG_IsOK(ecode14)) {
3153
+ SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[4] ));
3154
+ }
3155
+ arg14 = static_cast< int >(val14);
3156
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12,arg13,arg14);
2816
3157
  vresult = rb_ary_new();
2817
3158
  if (SWIG_IsTmpObj(res1)) {
2818
3159
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -2844,8 +3185,34 @@ _wrap_Context_getDecisions__SWIG_3(int argc, VALUE *argv, VALUE self) {
2844
3185
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2845
3186
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
2846
3187
  }
3188
+ if (SWIG_IsTmpObj(res6)) {
3189
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3190
+ } else {
3191
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3192
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3193
+ }
3194
+ if (SWIG_IsTmpObj(res7)) {
3195
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3196
+ } else {
3197
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3198
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3199
+ }
3200
+ if (SWIG_IsTmpObj(res8)) {
3201
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3202
+ } else {
3203
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3204
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3205
+ }
3206
+ if (SWIG_IsTmpObj(res9)) {
3207
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3208
+ } else {
3209
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3210
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3211
+ }
3212
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
2847
3213
  return vresult;
2848
3214
  fail:
3215
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
2849
3216
  return Qnil;
2850
3217
  }
2851
3218
 
@@ -2857,6 +3224,14 @@ _wrap_Context_getDecisions__SWIG_4(int argc, VALUE *argv, VALUE self) {
2857
3224
  int *arg3 = (int *) 0 ;
2858
3225
  int *arg4 = (int *) 0 ;
2859
3226
  int *arg5 = (int *) 0 ;
3227
+ int *arg6 = (int *) 0 ;
3228
+ std::string *arg7 = (std::string *) 0 ;
3229
+ std::string *arg8 = (std::string *) 0 ;
3230
+ int *arg9 = (int *) 0 ;
3231
+ char *arg10 = (char *) 0 ;
3232
+ int arg11 ;
3233
+ int arg12 ;
3234
+ int arg13 ;
2860
3235
  int temp1 ;
2861
3236
  int res1 = SWIG_TMPOBJ ;
2862
3237
  int temp2 ;
@@ -2867,6 +3242,23 @@ _wrap_Context_getDecisions__SWIG_4(int argc, VALUE *argv, VALUE self) {
2867
3242
  int res4 = SWIG_TMPOBJ ;
2868
3243
  int temp5 ;
2869
3244
  int res5 = SWIG_TMPOBJ ;
3245
+ int temp6 ;
3246
+ int res6 = SWIG_TMPOBJ ;
3247
+ std::string temp7 ;
3248
+ int res7 = SWIG_TMPOBJ ;
3249
+ std::string temp8 ;
3250
+ int res8 = SWIG_TMPOBJ ;
3251
+ int temp9 ;
3252
+ int res9 = SWIG_TMPOBJ ;
3253
+ int res10 ;
3254
+ char *buf10 = 0 ;
3255
+ int alloc10 = 0 ;
3256
+ int val11 ;
3257
+ int ecode11 = 0 ;
3258
+ int val12 ;
3259
+ int ecode12 = 0 ;
3260
+ int val13 ;
3261
+ int ecode13 = 0 ;
2870
3262
  VALUE vresult = Qnil;
2871
3263
 
2872
3264
  arg1 = &temp1;
@@ -2874,10 +3266,34 @@ _wrap_Context_getDecisions__SWIG_4(int argc, VALUE *argv, VALUE self) {
2874
3266
  arg3 = &temp3;
2875
3267
  arg4 = &temp4;
2876
3268
  arg5 = &temp5;
2877
- if ((argc < 0) || (argc > 0)) {
2878
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3269
+ arg6 = &temp6;
3270
+ arg7 = &temp7;
3271
+ arg8 = &temp8;
3272
+ arg9 = &temp9;
3273
+ if ((argc < 4) || (argc > 4)) {
3274
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
2879
3275
  }
2880
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5);
3276
+ res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
3277
+ if (!SWIG_IsOK(res10)) {
3278
+ SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
3279
+ }
3280
+ arg10 = reinterpret_cast< char * >(buf10);
3281
+ ecode11 = SWIG_AsVal_int(argv[1], &val11);
3282
+ if (!SWIG_IsOK(ecode11)) {
3283
+ SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
3284
+ }
3285
+ arg11 = static_cast< int >(val11);
3286
+ ecode12 = SWIG_AsVal_int(argv[2], &val12);
3287
+ if (!SWIG_IsOK(ecode12)) {
3288
+ SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
3289
+ }
3290
+ arg12 = static_cast< int >(val12);
3291
+ ecode13 = SWIG_AsVal_int(argv[3], &val13);
3292
+ if (!SWIG_IsOK(ecode13)) {
3293
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[3] ));
3294
+ }
3295
+ arg13 = static_cast< int >(val13);
3296
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12,arg13);
2881
3297
  vresult = rb_ary_new();
2882
3298
  if (SWIG_IsTmpObj(res1)) {
2883
3299
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -2909,36 +3325,539 @@ _wrap_Context_getDecisions__SWIG_4(int argc, VALUE *argv, VALUE self) {
2909
3325
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2910
3326
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
2911
3327
  }
2912
- return vresult;
2913
- fail:
3328
+ if (SWIG_IsTmpObj(res6)) {
3329
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3330
+ } else {
3331
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3332
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3333
+ }
3334
+ if (SWIG_IsTmpObj(res7)) {
3335
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3336
+ } else {
3337
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3338
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3339
+ }
3340
+ if (SWIG_IsTmpObj(res8)) {
3341
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3342
+ } else {
3343
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3344
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3345
+ }
3346
+ if (SWIG_IsTmpObj(res9)) {
3347
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3348
+ } else {
3349
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3350
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3351
+ }
3352
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3353
+ return vresult;
3354
+ fail:
3355
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3356
+ return Qnil;
3357
+ }
3358
+
3359
+
3360
+ SWIGINTERN VALUE
3361
+ _wrap_Context_getDecisions__SWIG_5(int argc, VALUE *argv, VALUE self) {
3362
+ int *arg1 = (int *) 0 ;
3363
+ int *arg2 = (int *) 0 ;
3364
+ int *arg3 = (int *) 0 ;
3365
+ int *arg4 = (int *) 0 ;
3366
+ int *arg5 = (int *) 0 ;
3367
+ int *arg6 = (int *) 0 ;
3368
+ std::string *arg7 = (std::string *) 0 ;
3369
+ std::string *arg8 = (std::string *) 0 ;
3370
+ int *arg9 = (int *) 0 ;
3371
+ char *arg10 = (char *) 0 ;
3372
+ int arg11 ;
3373
+ int arg12 ;
3374
+ int temp1 ;
3375
+ int res1 = SWIG_TMPOBJ ;
3376
+ int temp2 ;
3377
+ int res2 = SWIG_TMPOBJ ;
3378
+ int temp3 ;
3379
+ int res3 = SWIG_TMPOBJ ;
3380
+ int temp4 ;
3381
+ int res4 = SWIG_TMPOBJ ;
3382
+ int temp5 ;
3383
+ int res5 = SWIG_TMPOBJ ;
3384
+ int temp6 ;
3385
+ int res6 = SWIG_TMPOBJ ;
3386
+ std::string temp7 ;
3387
+ int res7 = SWIG_TMPOBJ ;
3388
+ std::string temp8 ;
3389
+ int res8 = SWIG_TMPOBJ ;
3390
+ int temp9 ;
3391
+ int res9 = SWIG_TMPOBJ ;
3392
+ int res10 ;
3393
+ char *buf10 = 0 ;
3394
+ int alloc10 = 0 ;
3395
+ int val11 ;
3396
+ int ecode11 = 0 ;
3397
+ int val12 ;
3398
+ int ecode12 = 0 ;
3399
+ VALUE vresult = Qnil;
3400
+
3401
+ arg1 = &temp1;
3402
+ arg2 = &temp2;
3403
+ arg3 = &temp3;
3404
+ arg4 = &temp4;
3405
+ arg5 = &temp5;
3406
+ arg6 = &temp6;
3407
+ arg7 = &temp7;
3408
+ arg8 = &temp8;
3409
+ arg9 = &temp9;
3410
+ if ((argc < 3) || (argc > 3)) {
3411
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
3412
+ }
3413
+ res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
3414
+ if (!SWIG_IsOK(res10)) {
3415
+ SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
3416
+ }
3417
+ arg10 = reinterpret_cast< char * >(buf10);
3418
+ ecode11 = SWIG_AsVal_int(argv[1], &val11);
3419
+ if (!SWIG_IsOK(ecode11)) {
3420
+ SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
3421
+ }
3422
+ arg11 = static_cast< int >(val11);
3423
+ ecode12 = SWIG_AsVal_int(argv[2], &val12);
3424
+ if (!SWIG_IsOK(ecode12)) {
3425
+ SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
3426
+ }
3427
+ arg12 = static_cast< int >(val12);
3428
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12);
3429
+ vresult = rb_ary_new();
3430
+ if (SWIG_IsTmpObj(res1)) {
3431
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
3432
+ } else {
3433
+ int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3434
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
3435
+ }
3436
+ if (SWIG_IsTmpObj(res2)) {
3437
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
3438
+ } else {
3439
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3440
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
3441
+ }
3442
+ if (SWIG_IsTmpObj(res3)) {
3443
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
3444
+ } else {
3445
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3446
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
3447
+ }
3448
+ if (SWIG_IsTmpObj(res4)) {
3449
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
3450
+ } else {
3451
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3452
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
3453
+ }
3454
+ if (SWIG_IsTmpObj(res5)) {
3455
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3456
+ } else {
3457
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3458
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
3459
+ }
3460
+ if (SWIG_IsTmpObj(res6)) {
3461
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3462
+ } else {
3463
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3464
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3465
+ }
3466
+ if (SWIG_IsTmpObj(res7)) {
3467
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3468
+ } else {
3469
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3470
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3471
+ }
3472
+ if (SWIG_IsTmpObj(res8)) {
3473
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3474
+ } else {
3475
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3476
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3477
+ }
3478
+ if (SWIG_IsTmpObj(res9)) {
3479
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3480
+ } else {
3481
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3482
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3483
+ }
3484
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3485
+ return vresult;
3486
+ fail:
3487
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3488
+ return Qnil;
3489
+ }
3490
+
3491
+
3492
+ SWIGINTERN VALUE
3493
+ _wrap_Context_getDecisions__SWIG_6(int argc, VALUE *argv, VALUE self) {
3494
+ int *arg1 = (int *) 0 ;
3495
+ int *arg2 = (int *) 0 ;
3496
+ int *arg3 = (int *) 0 ;
3497
+ int *arg4 = (int *) 0 ;
3498
+ int *arg5 = (int *) 0 ;
3499
+ int *arg6 = (int *) 0 ;
3500
+ std::string *arg7 = (std::string *) 0 ;
3501
+ std::string *arg8 = (std::string *) 0 ;
3502
+ int *arg9 = (int *) 0 ;
3503
+ char *arg10 = (char *) 0 ;
3504
+ int arg11 ;
3505
+ int temp1 ;
3506
+ int res1 = SWIG_TMPOBJ ;
3507
+ int temp2 ;
3508
+ int res2 = SWIG_TMPOBJ ;
3509
+ int temp3 ;
3510
+ int res3 = SWIG_TMPOBJ ;
3511
+ int temp4 ;
3512
+ int res4 = SWIG_TMPOBJ ;
3513
+ int temp5 ;
3514
+ int res5 = SWIG_TMPOBJ ;
3515
+ int temp6 ;
3516
+ int res6 = SWIG_TMPOBJ ;
3517
+ std::string temp7 ;
3518
+ int res7 = SWIG_TMPOBJ ;
3519
+ std::string temp8 ;
3520
+ int res8 = SWIG_TMPOBJ ;
3521
+ int temp9 ;
3522
+ int res9 = SWIG_TMPOBJ ;
3523
+ int res10 ;
3524
+ char *buf10 = 0 ;
3525
+ int alloc10 = 0 ;
3526
+ int val11 ;
3527
+ int ecode11 = 0 ;
3528
+ VALUE vresult = Qnil;
3529
+
3530
+ arg1 = &temp1;
3531
+ arg2 = &temp2;
3532
+ arg3 = &temp3;
3533
+ arg4 = &temp4;
3534
+ arg5 = &temp5;
3535
+ arg6 = &temp6;
3536
+ arg7 = &temp7;
3537
+ arg8 = &temp8;
3538
+ arg9 = &temp9;
3539
+ if ((argc < 2) || (argc > 2)) {
3540
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3541
+ }
3542
+ res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
3543
+ if (!SWIG_IsOK(res10)) {
3544
+ SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
3545
+ }
3546
+ arg10 = reinterpret_cast< char * >(buf10);
3547
+ ecode11 = SWIG_AsVal_int(argv[1], &val11);
3548
+ if (!SWIG_IsOK(ecode11)) {
3549
+ SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
3550
+ }
3551
+ arg11 = static_cast< int >(val11);
3552
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11);
3553
+ vresult = rb_ary_new();
3554
+ if (SWIG_IsTmpObj(res1)) {
3555
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
3556
+ } else {
3557
+ int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3558
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
3559
+ }
3560
+ if (SWIG_IsTmpObj(res2)) {
3561
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
3562
+ } else {
3563
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3564
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
3565
+ }
3566
+ if (SWIG_IsTmpObj(res3)) {
3567
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
3568
+ } else {
3569
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3570
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
3571
+ }
3572
+ if (SWIG_IsTmpObj(res4)) {
3573
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
3574
+ } else {
3575
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3576
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
3577
+ }
3578
+ if (SWIG_IsTmpObj(res5)) {
3579
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3580
+ } else {
3581
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3582
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
3583
+ }
3584
+ if (SWIG_IsTmpObj(res6)) {
3585
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3586
+ } else {
3587
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3588
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3589
+ }
3590
+ if (SWIG_IsTmpObj(res7)) {
3591
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3592
+ } else {
3593
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3594
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3595
+ }
3596
+ if (SWIG_IsTmpObj(res8)) {
3597
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3598
+ } else {
3599
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3600
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3601
+ }
3602
+ if (SWIG_IsTmpObj(res9)) {
3603
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3604
+ } else {
3605
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3606
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3607
+ }
3608
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3609
+ return vresult;
3610
+ fail:
3611
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3612
+ return Qnil;
3613
+ }
3614
+
3615
+
3616
+ SWIGINTERN VALUE
3617
+ _wrap_Context_getDecisions__SWIG_7(int argc, VALUE *argv, VALUE self) {
3618
+ int *arg1 = (int *) 0 ;
3619
+ int *arg2 = (int *) 0 ;
3620
+ int *arg3 = (int *) 0 ;
3621
+ int *arg4 = (int *) 0 ;
3622
+ int *arg5 = (int *) 0 ;
3623
+ int *arg6 = (int *) 0 ;
3624
+ std::string *arg7 = (std::string *) 0 ;
3625
+ std::string *arg8 = (std::string *) 0 ;
3626
+ int *arg9 = (int *) 0 ;
3627
+ char *arg10 = (char *) 0 ;
3628
+ int temp1 ;
3629
+ int res1 = SWIG_TMPOBJ ;
3630
+ int temp2 ;
3631
+ int res2 = SWIG_TMPOBJ ;
3632
+ int temp3 ;
3633
+ int res3 = SWIG_TMPOBJ ;
3634
+ int temp4 ;
3635
+ int res4 = SWIG_TMPOBJ ;
3636
+ int temp5 ;
3637
+ int res5 = SWIG_TMPOBJ ;
3638
+ int temp6 ;
3639
+ int res6 = SWIG_TMPOBJ ;
3640
+ std::string temp7 ;
3641
+ int res7 = SWIG_TMPOBJ ;
3642
+ std::string temp8 ;
3643
+ int res8 = SWIG_TMPOBJ ;
3644
+ int temp9 ;
3645
+ int res9 = SWIG_TMPOBJ ;
3646
+ int res10 ;
3647
+ char *buf10 = 0 ;
3648
+ int alloc10 = 0 ;
3649
+ VALUE vresult = Qnil;
3650
+
3651
+ arg1 = &temp1;
3652
+ arg2 = &temp2;
3653
+ arg3 = &temp3;
3654
+ arg4 = &temp4;
3655
+ arg5 = &temp5;
3656
+ arg6 = &temp6;
3657
+ arg7 = &temp7;
3658
+ arg8 = &temp8;
3659
+ arg9 = &temp9;
3660
+ if ((argc < 1) || (argc > 1)) {
3661
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3662
+ }
3663
+ res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
3664
+ if (!SWIG_IsOK(res10)) {
3665
+ SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
3666
+ }
3667
+ arg10 = reinterpret_cast< char * >(buf10);
3668
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10);
3669
+ vresult = rb_ary_new();
3670
+ if (SWIG_IsTmpObj(res1)) {
3671
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
3672
+ } else {
3673
+ int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3674
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
3675
+ }
3676
+ if (SWIG_IsTmpObj(res2)) {
3677
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
3678
+ } else {
3679
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3680
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
3681
+ }
3682
+ if (SWIG_IsTmpObj(res3)) {
3683
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
3684
+ } else {
3685
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3686
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
3687
+ }
3688
+ if (SWIG_IsTmpObj(res4)) {
3689
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
3690
+ } else {
3691
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3692
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
3693
+ }
3694
+ if (SWIG_IsTmpObj(res5)) {
3695
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3696
+ } else {
3697
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3698
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
3699
+ }
3700
+ if (SWIG_IsTmpObj(res6)) {
3701
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3702
+ } else {
3703
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3704
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3705
+ }
3706
+ if (SWIG_IsTmpObj(res7)) {
3707
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3708
+ } else {
3709
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3710
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3711
+ }
3712
+ if (SWIG_IsTmpObj(res8)) {
3713
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3714
+ } else {
3715
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3716
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3717
+ }
3718
+ if (SWIG_IsTmpObj(res9)) {
3719
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3720
+ } else {
3721
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3722
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3723
+ }
3724
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3725
+ return vresult;
3726
+ fail:
3727
+ if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3728
+ return Qnil;
3729
+ }
3730
+
3731
+
3732
+ SWIGINTERN VALUE
3733
+ _wrap_Context_getDecisions__SWIG_8(int argc, VALUE *argv, VALUE self) {
3734
+ int *arg1 = (int *) 0 ;
3735
+ int *arg2 = (int *) 0 ;
3736
+ int *arg3 = (int *) 0 ;
3737
+ int *arg4 = (int *) 0 ;
3738
+ int *arg5 = (int *) 0 ;
3739
+ int *arg6 = (int *) 0 ;
3740
+ std::string *arg7 = (std::string *) 0 ;
3741
+ std::string *arg8 = (std::string *) 0 ;
3742
+ int *arg9 = (int *) 0 ;
3743
+ int temp1 ;
3744
+ int res1 = SWIG_TMPOBJ ;
3745
+ int temp2 ;
3746
+ int res2 = SWIG_TMPOBJ ;
3747
+ int temp3 ;
3748
+ int res3 = SWIG_TMPOBJ ;
3749
+ int temp4 ;
3750
+ int res4 = SWIG_TMPOBJ ;
3751
+ int temp5 ;
3752
+ int res5 = SWIG_TMPOBJ ;
3753
+ int temp6 ;
3754
+ int res6 = SWIG_TMPOBJ ;
3755
+ std::string temp7 ;
3756
+ int res7 = SWIG_TMPOBJ ;
3757
+ std::string temp8 ;
3758
+ int res8 = SWIG_TMPOBJ ;
3759
+ int temp9 ;
3760
+ int res9 = SWIG_TMPOBJ ;
3761
+ VALUE vresult = Qnil;
3762
+
3763
+ arg1 = &temp1;
3764
+ arg2 = &temp2;
3765
+ arg3 = &temp3;
3766
+ arg4 = &temp4;
3767
+ arg5 = &temp5;
3768
+ arg6 = &temp6;
3769
+ arg7 = &temp7;
3770
+ arg8 = &temp8;
3771
+ arg9 = &temp9;
3772
+ if ((argc < 0) || (argc > 0)) {
3773
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3774
+ }
3775
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
3776
+ vresult = rb_ary_new();
3777
+ if (SWIG_IsTmpObj(res1)) {
3778
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
3779
+ } else {
3780
+ int new_flags = SWIG_IsNewObj(res1) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3781
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, new_flags));
3782
+ }
3783
+ if (SWIG_IsTmpObj(res2)) {
3784
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
3785
+ } else {
3786
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3787
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
3788
+ }
3789
+ if (SWIG_IsTmpObj(res3)) {
3790
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
3791
+ } else {
3792
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3793
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
3794
+ }
3795
+ if (SWIG_IsTmpObj(res4)) {
3796
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
3797
+ } else {
3798
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3799
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
3800
+ }
3801
+ if (SWIG_IsTmpObj(res5)) {
3802
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3803
+ } else {
3804
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3805
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
3806
+ }
3807
+ if (SWIG_IsTmpObj(res6)) {
3808
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3809
+ } else {
3810
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3811
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3812
+ }
3813
+ if (SWIG_IsTmpObj(res7)) {
3814
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3815
+ } else {
3816
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3817
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3818
+ }
3819
+ if (SWIG_IsTmpObj(res8)) {
3820
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3821
+ } else {
3822
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3823
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3824
+ }
3825
+ if (SWIG_IsTmpObj(res9)) {
3826
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3827
+ } else {
3828
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3829
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3830
+ }
3831
+ return vresult;
3832
+ fail:
2914
3833
  return Qnil;
2915
3834
  }
2916
3835
 
2917
3836
 
2918
3837
  SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self) {
2919
3838
  int argc;
2920
- VALUE argv[4];
3839
+ VALUE argv[8];
2921
3840
  int ii;
2922
3841
 
2923
3842
  argc = nargs;
2924
- if (argc > 4) SWIG_fail;
3843
+ if (argc > 8) SWIG_fail;
2925
3844
  for (ii = 0; (ii < argc); ++ii) {
2926
3845
  argv[ii] = args[ii];
2927
3846
  }
2928
3847
  if (argc == 0) {
2929
- return _wrap_Context_getDecisions__SWIG_4(nargs, args, self);
3848
+ return _wrap_Context_getDecisions__SWIG_8(nargs, args, self);
2930
3849
  }
2931
3850
  if (argc == 1) {
2932
3851
  int _v;
2933
- int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
3852
+ int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2934
3853
  _v = SWIG_CheckState(res);
2935
3854
  if (_v) {
2936
- return _wrap_Context_getDecisions__SWIG_3(nargs, args, self);
3855
+ return _wrap_Context_getDecisions__SWIG_7(nargs, args, self);
2937
3856
  }
2938
3857
  }
2939
3858
  if (argc == 2) {
2940
3859
  int _v;
2941
- int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
3860
+ int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2942
3861
  _v = SWIG_CheckState(res);
2943
3862
  if (_v) {
2944
3863
  {
@@ -2946,13 +3865,91 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
2946
3865
  _v = SWIG_CheckState(res);
2947
3866
  }
2948
3867
  if (_v) {
2949
- return _wrap_Context_getDecisions__SWIG_2(nargs, args, self);
3868
+ return _wrap_Context_getDecisions__SWIG_6(nargs, args, self);
2950
3869
  }
2951
3870
  }
2952
3871
  }
2953
3872
  if (argc == 3) {
2954
3873
  int _v;
2955
- int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
3874
+ int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3875
+ _v = SWIG_CheckState(res);
3876
+ if (_v) {
3877
+ {
3878
+ int res = SWIG_AsVal_int(argv[1], NULL);
3879
+ _v = SWIG_CheckState(res);
3880
+ }
3881
+ if (_v) {
3882
+ {
3883
+ int res = SWIG_AsVal_int(argv[2], NULL);
3884
+ _v = SWIG_CheckState(res);
3885
+ }
3886
+ if (_v) {
3887
+ return _wrap_Context_getDecisions__SWIG_5(nargs, args, self);
3888
+ }
3889
+ }
3890
+ }
3891
+ }
3892
+ if (argc == 4) {
3893
+ int _v;
3894
+ int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3895
+ _v = SWIG_CheckState(res);
3896
+ if (_v) {
3897
+ {
3898
+ int res = SWIG_AsVal_int(argv[1], NULL);
3899
+ _v = SWIG_CheckState(res);
3900
+ }
3901
+ if (_v) {
3902
+ {
3903
+ int res = SWIG_AsVal_int(argv[2], NULL);
3904
+ _v = SWIG_CheckState(res);
3905
+ }
3906
+ if (_v) {
3907
+ {
3908
+ int res = SWIG_AsVal_int(argv[3], NULL);
3909
+ _v = SWIG_CheckState(res);
3910
+ }
3911
+ if (_v) {
3912
+ return _wrap_Context_getDecisions__SWIG_4(nargs, args, self);
3913
+ }
3914
+ }
3915
+ }
3916
+ }
3917
+ }
3918
+ if (argc == 5) {
3919
+ int _v;
3920
+ int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3921
+ _v = SWIG_CheckState(res);
3922
+ if (_v) {
3923
+ {
3924
+ int res = SWIG_AsVal_int(argv[1], NULL);
3925
+ _v = SWIG_CheckState(res);
3926
+ }
3927
+ if (_v) {
3928
+ {
3929
+ int res = SWIG_AsVal_int(argv[2], NULL);
3930
+ _v = SWIG_CheckState(res);
3931
+ }
3932
+ if (_v) {
3933
+ {
3934
+ int res = SWIG_AsVal_int(argv[3], NULL);
3935
+ _v = SWIG_CheckState(res);
3936
+ }
3937
+ if (_v) {
3938
+ {
3939
+ int res = SWIG_AsVal_int(argv[4], NULL);
3940
+ _v = SWIG_CheckState(res);
3941
+ }
3942
+ if (_v) {
3943
+ return _wrap_Context_getDecisions__SWIG_3(nargs, args, self);
3944
+ }
3945
+ }
3946
+ }
3947
+ }
3948
+ }
3949
+ }
3950
+ if (argc == 6) {
3951
+ int _v;
3952
+ int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2956
3953
  _v = SWIG_CheckState(res);
2957
3954
  if (_v) {
2958
3955
  {
@@ -2965,14 +3962,70 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
2965
3962
  _v = SWIG_CheckState(res);
2966
3963
  }
2967
3964
  if (_v) {
2968
- return _wrap_Context_getDecisions__SWIG_1(nargs, args, self);
3965
+ {
3966
+ int res = SWIG_AsVal_int(argv[3], NULL);
3967
+ _v = SWIG_CheckState(res);
3968
+ }
3969
+ if (_v) {
3970
+ {
3971
+ int res = SWIG_AsVal_int(argv[4], NULL);
3972
+ _v = SWIG_CheckState(res);
3973
+ }
3974
+ if (_v) {
3975
+ int res = SWIG_AsCharPtrAndSize(argv[5], 0, NULL, 0);
3976
+ _v = SWIG_CheckState(res);
3977
+ if (_v) {
3978
+ return _wrap_Context_getDecisions__SWIG_2(nargs, args, self);
3979
+ }
3980
+ }
3981
+ }
3982
+ }
3983
+ }
3984
+ }
3985
+ }
3986
+ if (argc == 7) {
3987
+ int _v;
3988
+ int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3989
+ _v = SWIG_CheckState(res);
3990
+ if (_v) {
3991
+ {
3992
+ int res = SWIG_AsVal_int(argv[1], NULL);
3993
+ _v = SWIG_CheckState(res);
3994
+ }
3995
+ if (_v) {
3996
+ {
3997
+ int res = SWIG_AsVal_int(argv[2], NULL);
3998
+ _v = SWIG_CheckState(res);
3999
+ }
4000
+ if (_v) {
4001
+ {
4002
+ int res = SWIG_AsVal_int(argv[3], NULL);
4003
+ _v = SWIG_CheckState(res);
4004
+ }
4005
+ if (_v) {
4006
+ {
4007
+ int res = SWIG_AsVal_int(argv[4], NULL);
4008
+ _v = SWIG_CheckState(res);
4009
+ }
4010
+ if (_v) {
4011
+ int res = SWIG_AsCharPtrAndSize(argv[5], 0, NULL, 0);
4012
+ _v = SWIG_CheckState(res);
4013
+ if (_v) {
4014
+ int res = SWIG_AsCharPtrAndSize(argv[6], 0, NULL, 0);
4015
+ _v = SWIG_CheckState(res);
4016
+ if (_v) {
4017
+ return _wrap_Context_getDecisions__SWIG_1(nargs, args, self);
4018
+ }
4019
+ }
4020
+ }
4021
+ }
2969
4022
  }
2970
4023
  }
2971
4024
  }
2972
4025
  }
2973
- if (argc == 4) {
4026
+ if (argc == 8) {
2974
4027
  int _v;
2975
- int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
4028
+ int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2976
4029
  _v = SWIG_CheckState(res);
2977
4030
  if (_v) {
2978
4031
  {
@@ -2985,10 +4038,32 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
2985
4038
  _v = SWIG_CheckState(res);
2986
4039
  }
2987
4040
  if (_v) {
2988
- int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
2989
- _v = SWIG_CheckState(res);
4041
+ {
4042
+ int res = SWIG_AsVal_int(argv[3], NULL);
4043
+ _v = SWIG_CheckState(res);
4044
+ }
2990
4045
  if (_v) {
2991
- return _wrap_Context_getDecisions__SWIG_0(nargs, args, self);
4046
+ {
4047
+ int res = SWIG_AsVal_int(argv[4], NULL);
4048
+ _v = SWIG_CheckState(res);
4049
+ }
4050
+ if (_v) {
4051
+ int res = SWIG_AsCharPtrAndSize(argv[5], 0, NULL, 0);
4052
+ _v = SWIG_CheckState(res);
4053
+ if (_v) {
4054
+ int res = SWIG_AsCharPtrAndSize(argv[6], 0, NULL, 0);
4055
+ _v = SWIG_CheckState(res);
4056
+ if (_v) {
4057
+ {
4058
+ int res = SWIG_AsVal_long(argv[7], NULL);
4059
+ _v = SWIG_CheckState(res);
4060
+ }
4061
+ if (_v) {
4062
+ return _wrap_Context_getDecisions__SWIG_0(nargs, args, self);
4063
+ }
4064
+ }
4065
+ }
4066
+ }
2992
4067
  }
2993
4068
  }
2994
4069
  }
@@ -2996,49 +4071,17 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
2996
4071
  }
2997
4072
 
2998
4073
  fail:
2999
- Ruby_Format_OverloadedError( argc, 4, "Context.getDecisions",
3000
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *return_value, std::string in_xtrace, int custom_tracing_mode, int custom_sample_rate, std::string service_name)\n"
3001
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *return_value, std::string in_xtrace, int custom_tracing_mode, int custom_sample_rate)\n"
3002
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *return_value, std::string in_xtrace, int custom_tracing_mode)\n"
3003
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *return_value, std::string in_xtrace)\n"
3004
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *return_value)\n");
3005
-
3006
- return Qnil;
3007
- }
3008
-
3009
-
3010
- SWIGINTERN VALUE
3011
- _wrap_Context_sampleRequest(int argc, VALUE *argv, VALUE self) {
3012
- std::string arg1 ;
3013
- std::string arg2 ;
3014
- int result;
3015
- VALUE vresult = Qnil;
4074
+ Ruby_Format_OverloadedError( argc, 8, "Context.getDecisions",
4075
+ " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode, char const *header_options, char const *header_signature, long header_timestamp)\n"
4076
+ " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode, char const *header_options, char const *header_signature)\n"
4077
+ " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode, char const *header_options)\n"
4078
+ " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode)\n"
4079
+ " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate, int request_type)\n"
4080
+ " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate)\n"
4081
+ " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode)\n"
4082
+ " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace)\n"
4083
+ " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status)\n");
3016
4084
 
3017
- if ((argc < 2) || (argc > 2)) {
3018
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3019
- }
3020
- {
3021
- std::string *ptr = (std::string *)0;
3022
- int res = SWIG_AsPtr_std_string(argv[0], &ptr);
3023
- if (!SWIG_IsOK(res) || !ptr) {
3024
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::sampleRequest", 1, argv[0] ));
3025
- }
3026
- arg1 = *ptr;
3027
- if (SWIG_IsNewObj(res)) delete ptr;
3028
- }
3029
- {
3030
- std::string *ptr = (std::string *)0;
3031
- int res = SWIG_AsPtr_std_string(argv[1], &ptr);
3032
- if (!SWIG_IsOK(res) || !ptr) {
3033
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::sampleRequest", 2, argv[1] ));
3034
- }
3035
- arg2 = *ptr;
3036
- if (SWIG_IsNewObj(res)) delete ptr;
3037
- }
3038
- result = (int)Context::sampleRequest(arg1,arg2);
3039
- vresult = SWIG_From_int(static_cast< int >(result));
3040
- return vresult;
3041
- fail:
3042
4085
  return Qnil;
3043
4086
  }
3044
4087
 
@@ -3193,6 +4236,79 @@ fail:
3193
4236
 
3194
4237
  SWIGINTERN VALUE
3195
4238
  _wrap_Context_init__SWIG_0(int argc, VALUE *argv, VALUE self) {
4239
+ std::string arg1 ;
4240
+ std::string arg2 ;
4241
+ int arg3 ;
4242
+ int arg4 ;
4243
+ int arg5 ;
4244
+ int arg6 ;
4245
+ int arg7 ;
4246
+ int val3 ;
4247
+ int ecode3 = 0 ;
4248
+ int val4 ;
4249
+ int ecode4 = 0 ;
4250
+ int val5 ;
4251
+ int ecode5 = 0 ;
4252
+ int val6 ;
4253
+ int ecode6 = 0 ;
4254
+ int val7 ;
4255
+ int ecode7 = 0 ;
4256
+
4257
+ if ((argc < 7) || (argc > 7)) {
4258
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
4259
+ }
4260
+ {
4261
+ std::string *ptr = (std::string *)0;
4262
+ int res = SWIG_AsPtr_std_string(argv[0], &ptr);
4263
+ if (!SWIG_IsOK(res) || !ptr) {
4264
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::init", 1, argv[0] ));
4265
+ }
4266
+ arg1 = *ptr;
4267
+ if (SWIG_IsNewObj(res)) delete ptr;
4268
+ }
4269
+ {
4270
+ std::string *ptr = (std::string *)0;
4271
+ int res = SWIG_AsPtr_std_string(argv[1], &ptr);
4272
+ if (!SWIG_IsOK(res) || !ptr) {
4273
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::init", 2, argv[1] ));
4274
+ }
4275
+ arg2 = *ptr;
4276
+ if (SWIG_IsNewObj(res)) delete ptr;
4277
+ }
4278
+ ecode3 = SWIG_AsVal_int(argv[2], &val3);
4279
+ if (!SWIG_IsOK(ecode3)) {
4280
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","Context::init", 3, argv[2] ));
4281
+ }
4282
+ arg3 = static_cast< int >(val3);
4283
+ ecode4 = SWIG_AsVal_int(argv[3], &val4);
4284
+ if (!SWIG_IsOK(ecode4)) {
4285
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","Context::init", 4, argv[3] ));
4286
+ }
4287
+ arg4 = static_cast< int >(val4);
4288
+ ecode5 = SWIG_AsVal_int(argv[4], &val5);
4289
+ if (!SWIG_IsOK(ecode5)) {
4290
+ SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","Context::init", 5, argv[4] ));
4291
+ }
4292
+ arg5 = static_cast< int >(val5);
4293
+ ecode6 = SWIG_AsVal_int(argv[5], &val6);
4294
+ if (!SWIG_IsOK(ecode6)) {
4295
+ SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","Context::init", 6, argv[5] ));
4296
+ }
4297
+ arg6 = static_cast< int >(val6);
4298
+ ecode7 = SWIG_AsVal_int(argv[6], &val7);
4299
+ if (!SWIG_IsOK(ecode7)) {
4300
+ SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","Context::init", 7, argv[6] ));
4301
+ }
4302
+ arg7 = static_cast< int >(val7);
4303
+ Context::init(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
4304
+ return Qnil;
4305
+ fail:
4306
+ return Qnil;
4307
+ }
4308
+
4309
+
4310
+ SWIGINTERN VALUE
4311
+ _wrap_Context_init__SWIG_1(int argc, VALUE *argv, VALUE self) {
3196
4312
  std::string arg1 ;
3197
4313
  std::string arg2 ;
3198
4314
  int arg3 ;
@@ -3257,7 +4373,7 @@ fail:
3257
4373
 
3258
4374
 
3259
4375
  SWIGINTERN VALUE
3260
- _wrap_Context_init__SWIG_1(int argc, VALUE *argv, VALUE self) {
4376
+ _wrap_Context_init__SWIG_2(int argc, VALUE *argv, VALUE self) {
3261
4377
  std::string arg1 ;
3262
4378
  std::string arg2 ;
3263
4379
  int arg3 ;
@@ -3314,7 +4430,7 @@ fail:
3314
4430
 
3315
4431
 
3316
4432
  SWIGINTERN VALUE
3317
- _wrap_Context_init__SWIG_2(int argc, VALUE *argv, VALUE self) {
4433
+ _wrap_Context_init__SWIG_3(int argc, VALUE *argv, VALUE self) {
3318
4434
  std::string arg1 ;
3319
4435
  std::string arg2 ;
3320
4436
  int arg3 ;
@@ -3363,7 +4479,7 @@ fail:
3363
4479
 
3364
4480
 
3365
4481
  SWIGINTERN VALUE
3366
- _wrap_Context_init__SWIG_3(int argc, VALUE *argv, VALUE self) {
4482
+ _wrap_Context_init__SWIG_4(int argc, VALUE *argv, VALUE self) {
3367
4483
  std::string arg1 ;
3368
4484
  std::string arg2 ;
3369
4485
  int arg3 ;
@@ -3404,7 +4520,7 @@ fail:
3404
4520
 
3405
4521
 
3406
4522
  SWIGINTERN VALUE
3407
- _wrap_Context_init__SWIG_4(int argc, VALUE *argv, VALUE self) {
4523
+ _wrap_Context_init__SWIG_5(int argc, VALUE *argv, VALUE self) {
3408
4524
  std::string arg1 ;
3409
4525
  std::string arg2 ;
3410
4526
 
@@ -3437,7 +4553,7 @@ fail:
3437
4553
 
3438
4554
 
3439
4555
  SWIGINTERN VALUE
3440
- _wrap_Context_init__SWIG_5(int argc, VALUE *argv, VALUE self) {
4556
+ _wrap_Context_init__SWIG_6(int argc, VALUE *argv, VALUE self) {
3441
4557
  std::string arg1 ;
3442
4558
 
3443
4559
  if ((argc < 1) || (argc > 1)) {
@@ -3460,7 +4576,7 @@ fail:
3460
4576
 
3461
4577
 
3462
4578
  SWIGINTERN VALUE
3463
- _wrap_Context_init__SWIG_6(int argc, VALUE *argv, VALUE self) {
4579
+ _wrap_Context_init__SWIG_7(int argc, VALUE *argv, VALUE self) {
3464
4580
  if ((argc < 0) || (argc > 0)) {
3465
4581
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3466
4582
  }
@@ -3473,23 +4589,23 @@ fail:
3473
4589
 
3474
4590
  SWIGINTERN VALUE _wrap_Context_init(int nargs, VALUE *args, VALUE self) {
3475
4591
  int argc;
3476
- VALUE argv[6];
4592
+ VALUE argv[7];
3477
4593
  int ii;
3478
4594
 
3479
4595
  argc = nargs;
3480
- if (argc > 6) SWIG_fail;
4596
+ if (argc > 7) SWIG_fail;
3481
4597
  for (ii = 0; (ii < argc); ++ii) {
3482
4598
  argv[ii] = args[ii];
3483
4599
  }
3484
4600
  if (argc == 0) {
3485
- return _wrap_Context_init__SWIG_6(nargs, args, self);
4601
+ return _wrap_Context_init__SWIG_7(nargs, args, self);
3486
4602
  }
3487
4603
  if (argc == 1) {
3488
4604
  int _v;
3489
4605
  int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
3490
4606
  _v = SWIG_CheckState(res);
3491
4607
  if (_v) {
3492
- return _wrap_Context_init__SWIG_5(nargs, args, self);
4608
+ return _wrap_Context_init__SWIG_6(nargs, args, self);
3493
4609
  }
3494
4610
  }
3495
4611
  if (argc == 2) {
@@ -3500,7 +4616,7 @@ SWIGINTERN VALUE _wrap_Context_init(int nargs, VALUE *args, VALUE self) {
3500
4616
  int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
3501
4617
  _v = SWIG_CheckState(res);
3502
4618
  if (_v) {
3503
- return _wrap_Context_init__SWIG_4(nargs, args, self);
4619
+ return _wrap_Context_init__SWIG_5(nargs, args, self);
3504
4620
  }
3505
4621
  }
3506
4622
  }
@@ -3517,7 +4633,7 @@ SWIGINTERN VALUE _wrap_Context_init(int nargs, VALUE *args, VALUE self) {
3517
4633
  _v = SWIG_CheckState(res);
3518
4634
  }
3519
4635
  if (_v) {
3520
- return _wrap_Context_init__SWIG_3(nargs, args, self);
4636
+ return _wrap_Context_init__SWIG_4(nargs, args, self);
3521
4637
  }
3522
4638
  }
3523
4639
  }
@@ -3540,7 +4656,7 @@ SWIGINTERN VALUE _wrap_Context_init(int nargs, VALUE *args, VALUE self) {
3540
4656
  _v = SWIG_CheckState(res);
3541
4657
  }
3542
4658
  if (_v) {
3543
- return _wrap_Context_init__SWIG_2(nargs, args, self);
4659
+ return _wrap_Context_init__SWIG_3(nargs, args, self);
3544
4660
  }
3545
4661
  }
3546
4662
  }
@@ -3569,7 +4685,7 @@ SWIGINTERN VALUE _wrap_Context_init(int nargs, VALUE *args, VALUE self) {
3569
4685
  _v = SWIG_CheckState(res);
3570
4686
  }
3571
4687
  if (_v) {
3572
- return _wrap_Context_init__SWIG_1(nargs, args, self);
4688
+ return _wrap_Context_init__SWIG_2(nargs, args, self);
3573
4689
  }
3574
4690
  }
3575
4691
  }
@@ -3604,7 +4720,49 @@ SWIGINTERN VALUE _wrap_Context_init(int nargs, VALUE *args, VALUE self) {
3604
4720
  _v = SWIG_CheckState(res);
3605
4721
  }
3606
4722
  if (_v) {
3607
- return _wrap_Context_init__SWIG_0(nargs, args, self);
4723
+ return _wrap_Context_init__SWIG_1(nargs, args, self);
4724
+ }
4725
+ }
4726
+ }
4727
+ }
4728
+ }
4729
+ }
4730
+ }
4731
+ if (argc == 7) {
4732
+ int _v;
4733
+ int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
4734
+ _v = SWIG_CheckState(res);
4735
+ if (_v) {
4736
+ int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
4737
+ _v = SWIG_CheckState(res);
4738
+ if (_v) {
4739
+ {
4740
+ int res = SWIG_AsVal_int(argv[2], NULL);
4741
+ _v = SWIG_CheckState(res);
4742
+ }
4743
+ if (_v) {
4744
+ {
4745
+ int res = SWIG_AsVal_int(argv[3], NULL);
4746
+ _v = SWIG_CheckState(res);
4747
+ }
4748
+ if (_v) {
4749
+ {
4750
+ int res = SWIG_AsVal_int(argv[4], NULL);
4751
+ _v = SWIG_CheckState(res);
4752
+ }
4753
+ if (_v) {
4754
+ {
4755
+ int res = SWIG_AsVal_int(argv[5], NULL);
4756
+ _v = SWIG_CheckState(res);
4757
+ }
4758
+ if (_v) {
4759
+ {
4760
+ int res = SWIG_AsVal_int(argv[6], NULL);
4761
+ _v = SWIG_CheckState(res);
4762
+ }
4763
+ if (_v) {
4764
+ return _wrap_Context_init__SWIG_0(nargs, args, self);
4765
+ }
3608
4766
  }
3609
4767
  }
3610
4768
  }
@@ -3614,7 +4772,8 @@ SWIGINTERN VALUE _wrap_Context_init(int nargs, VALUE *args, VALUE self) {
3614
4772
  }
3615
4773
 
3616
4774
  fail:
3617
- Ruby_Format_OverloadedError( argc, 6, "Context.init",
4775
+ Ruby_Format_OverloadedError( argc, 7, "Context.init",
4776
+ " void Context.init(std::string access_key, std::string hostname_alias, int log_level, int max_flush_wait_time, int events_flush_interval, int events_flush_batch_size, int ec2_metadata_timeout)\n"
3618
4777
  " void Context.init(std::string access_key, std::string hostname_alias, int log_level, int max_flush_wait_time, int events_flush_interval, int events_flush_batch_size)\n"
3619
4778
  " void Context.init(std::string access_key, std::string hostname_alias, int log_level, int max_flush_wait_time, int events_flush_interval)\n"
3620
4779
  " void Context.init(std::string access_key, std::string hostname_alias, int log_level, int max_flush_wait_time)\n"
@@ -3721,22 +4880,20 @@ fail:
3721
4880
  }
3722
4881
 
3723
4882
 
3724
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
3725
4883
  SWIGINTERN VALUE
3726
- _wrap_Context_allocate(VALUE self) {
4884
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
4885
+ _wrap_Context_allocate(VALUE self)
3727
4886
  #else
3728
- SWIGINTERN VALUE
3729
- _wrap_Context_allocate(int argc, VALUE *argv, VALUE self) {
4887
+ _wrap_Context_allocate(int argc, VALUE *argv, VALUE self)
3730
4888
  #endif
3731
-
3732
-
3733
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Context);
4889
+ {
4890
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Context);
3734
4891
  #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
3735
- rb_obj_call_init(vresult, argc, argv);
4892
+ rb_obj_call_init(vresult, argc, argv);
3736
4893
  #endif
3737
- return vresult;
3738
- }
3739
-
4894
+ return vresult;
4895
+ }
4896
+
3740
4897
 
3741
4898
  SWIGINTERN VALUE
3742
4899
  _wrap_new_Context(int argc, VALUE *argv, VALUE self) {
@@ -4651,22 +5808,20 @@ fail:
4651
5808
  }
4652
5809
 
4653
5810
 
4654
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
4655
5811
  SWIGINTERN VALUE
4656
- _wrap_Span_allocate(VALUE self) {
5812
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
5813
+ _wrap_Span_allocate(VALUE self)
4657
5814
  #else
4658
- SWIGINTERN VALUE
4659
- _wrap_Span_allocate(int argc, VALUE *argv, VALUE self) {
5815
+ _wrap_Span_allocate(int argc, VALUE *argv, VALUE self)
4660
5816
  #endif
4661
-
4662
-
4663
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Span);
5817
+ {
5818
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Span);
4664
5819
  #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
4665
- rb_obj_call_init(vresult, argc, argv);
5820
+ rb_obj_call_init(vresult, argc, argv);
4666
5821
  #endif
4667
- return vresult;
4668
- }
4669
-
5822
+ return vresult;
5823
+ }
5824
+
4670
5825
 
4671
5826
  SWIGINTERN VALUE
4672
5827
  _wrap_new_Span(int argc, VALUE *argv, VALUE self) {
@@ -4691,22 +5846,20 @@ free_Span(void *self) {
4691
5846
 
4692
5847
  static swig_class SwigClassMetricTags;
4693
5848
 
4694
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
4695
5849
  SWIGINTERN VALUE
4696
- _wrap_MetricTags_allocate(VALUE self) {
5850
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
5851
+ _wrap_MetricTags_allocate(VALUE self)
4697
5852
  #else
4698
- SWIGINTERN VALUE
4699
- _wrap_MetricTags_allocate(int argc, VALUE *argv, VALUE self) {
5853
+ _wrap_MetricTags_allocate(int argc, VALUE *argv, VALUE self)
4700
5854
  #endif
4701
-
4702
-
4703
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_MetricTags);
5855
+ {
5856
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_MetricTags);
4704
5857
  #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
4705
- rb_obj_call_init(vresult, argc, argv);
5858
+ rb_obj_call_init(vresult, argc, argv);
4706
5859
  #endif
4707
- return vresult;
4708
- }
4709
-
5860
+ return vresult;
5861
+ }
5862
+
4710
5863
 
4711
5864
  SWIGINTERN VALUE
4712
5865
  _wrap_new_MetricTags(int argc, VALUE *argv, VALUE self) {
@@ -4941,22 +6094,20 @@ fail:
4941
6094
  }
4942
6095
 
4943
6096
 
4944
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
4945
6097
  SWIGINTERN VALUE
4946
- _wrap_CustomMetrics_allocate(VALUE self) {
6098
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
6099
+ _wrap_CustomMetrics_allocate(VALUE self)
4947
6100
  #else
4948
- SWIGINTERN VALUE
4949
- _wrap_CustomMetrics_allocate(int argc, VALUE *argv, VALUE self) {
6101
+ _wrap_CustomMetrics_allocate(int argc, VALUE *argv, VALUE self)
4950
6102
  #endif
4951
-
4952
-
4953
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CustomMetrics);
6103
+ {
6104
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CustomMetrics);
4954
6105
  #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
4955
- rb_obj_call_init(vresult, argc, argv);
6106
+ rb_obj_call_init(vresult, argc, argv);
4956
6107
  #endif
4957
- return vresult;
4958
- }
4959
-
6108
+ return vresult;
6109
+ }
6110
+
4960
6111
 
4961
6112
  SWIGINTERN VALUE
4962
6113
  _wrap_new_CustomMetrics(int argc, VALUE *argv, VALUE self) {
@@ -5034,22 +6185,20 @@ fail:
5034
6185
  }
5035
6186
 
5036
6187
 
5037
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
5038
6188
  SWIGINTERN VALUE
5039
- _wrap_Reporter_allocate(VALUE self) {
6189
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
6190
+ _wrap_Reporter_allocate(VALUE self)
5040
6191
  #else
5041
- SWIGINTERN VALUE
5042
- _wrap_Reporter_allocate(int argc, VALUE *argv, VALUE self) {
6192
+ _wrap_Reporter_allocate(int argc, VALUE *argv, VALUE self)
5043
6193
  #endif
5044
-
5045
-
5046
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Reporter);
6194
+ {
6195
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Reporter);
5047
6196
  #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
5048
- rb_obj_call_init(vresult, argc, argv);
6197
+ rb_obj_call_init(vresult, argc, argv);
5049
6198
  #endif
5050
- return vresult;
5051
- }
5052
-
6199
+ return vresult;
6200
+ }
6201
+
5053
6202
 
5054
6203
  SWIGINTERN VALUE
5055
6204
  _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
@@ -5070,6 +6219,7 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
5070
6219
  int arg15 ;
5071
6220
  int arg16 ;
5072
6221
  int arg17 ;
6222
+ int arg18 ;
5073
6223
  int val2 ;
5074
6224
  int ecode2 = 0 ;
5075
6225
  int val4 ;
@@ -5092,10 +6242,12 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
5092
6242
  int ecode16 = 0 ;
5093
6243
  int val17 ;
5094
6244
  int ecode17 = 0 ;
6245
+ int val18 ;
6246
+ int ecode18 = 0 ;
5095
6247
  Reporter *result = 0 ;
5096
6248
 
5097
- if ((argc < 17) || (argc > 17)) {
5098
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 17)",argc); SWIG_fail;
6249
+ if ((argc < 18) || (argc > 18)) {
6250
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 18)",argc); SWIG_fail;
5099
6251
  }
5100
6252
  {
5101
6253
  std::string *ptr = (std::string *)0;
@@ -5206,7 +6358,12 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
5206
6358
  SWIG_exception_fail(SWIG_ArgError(ecode17), Ruby_Format_TypeError( "", "int","Reporter", 17, argv[16] ));
5207
6359
  }
5208
6360
  arg17 = static_cast< int >(val17);
5209
- result = (Reporter *)new Reporter(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17);
6361
+ ecode18 = SWIG_AsVal_int(argv[17], &val18);
6362
+ if (!SWIG_IsOK(ecode18)) {
6363
+ SWIG_exception_fail(SWIG_ArgError(ecode18), Ruby_Format_TypeError( "", "int","Reporter", 18, argv[17] ));
6364
+ }
6365
+ arg18 = static_cast< int >(val18);
6366
+ result = (Reporter *)new Reporter(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18);
5210
6367
  DATA_PTR(self) = result;
5211
6368
  return self;
5212
6369
  fail:
@@ -5881,22 +7038,20 @@ fail:
5881
7038
  }
5882
7039
 
5883
7040
 
5884
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
5885
7041
  SWIGINTERN VALUE
5886
- _wrap_DebugLog_allocate(VALUE self) {
7042
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
7043
+ _wrap_DebugLog_allocate(VALUE self)
5887
7044
  #else
5888
- SWIGINTERN VALUE
5889
- _wrap_DebugLog_allocate(int argc, VALUE *argv, VALUE self) {
7045
+ _wrap_DebugLog_allocate(int argc, VALUE *argv, VALUE self)
5890
7046
  #endif
5891
-
5892
-
5893
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_DebugLog);
7047
+ {
7048
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_DebugLog);
5894
7049
  #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
5895
- rb_obj_call_init(vresult, argc, argv);
7050
+ rb_obj_call_init(vresult, argc, argv);
5896
7051
  #endif
5897
- return vresult;
5898
- }
5899
-
7052
+ return vresult;
7053
+ }
7054
+
5900
7055
 
5901
7056
  SWIGINTERN VALUE
5902
7057
  _wrap_new_DebugLog(int argc, VALUE *argv, VALUE self) {
@@ -5985,22 +7140,20 @@ fail:
5985
7140
  }
5986
7141
 
5987
7142
 
5988
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
5989
7143
  SWIGINTERN VALUE
5990
- _wrap_Config_allocate(VALUE self) {
7144
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
7145
+ _wrap_Config_allocate(VALUE self)
5991
7146
  #else
5992
- SWIGINTERN VALUE
5993
- _wrap_Config_allocate(int argc, VALUE *argv, VALUE self) {
7147
+ _wrap_Config_allocate(int argc, VALUE *argv, VALUE self)
5994
7148
  #endif
5995
-
5996
-
5997
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Config);
7149
+ {
7150
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Config);
5998
7151
  #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
5999
- rb_obj_call_init(vresult, argc, argv);
7152
+ rb_obj_call_init(vresult, argc, argv);
6000
7153
  #endif
6001
- return vresult;
6002
- }
6003
-
7154
+ return vresult;
7155
+ }
7156
+
6004
7157
 
6005
7158
  SWIGINTERN VALUE
6006
7159
  _wrap_new_Config(int argc, VALUE *argv, VALUE self) {
@@ -6046,6 +7199,7 @@ static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|in
6046
7199
  static swig_type_info _swigt__p_oboe_metadata_t = {"_p_oboe_metadata_t", "oboe_metadata_t *", 0, 0, (void*)0, 0};
6047
7200
  static swig_type_info _swigt__p_short = {"_p_short", "short *|int_least16_t *|int16_t *", 0, 0, (void*)0, 0};
6048
7201
  static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (void*)0, 0};
7202
+ static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
6049
7203
  static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint_least8_t *|uint_fast8_t *|uint8_t *", 0, 0, (void*)0, 0};
6050
7204
  static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uintptr_t *|uint_least32_t *|uint_fast32_t *|uint32_t *|unsigned int *|uint_fast16_t *", 0, 0, (void*)0, 0};
6051
7205
  static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint_least64_t *|uint_fast64_t *|uint64_t *|unsigned long long *|uintmax_t *", 0, 0, (void*)0, 0};
@@ -6069,6 +7223,7 @@ static swig_type_info *swig_type_initial[] = {
6069
7223
  &_swigt__p_oboe_metadata_t,
6070
7224
  &_swigt__p_short,
6071
7225
  &_swigt__p_signed_char,
7226
+ &_swigt__p_std__string,
6072
7227
  &_swigt__p_unsigned_char,
6073
7228
  &_swigt__p_unsigned_int,
6074
7229
  &_swigt__p_unsigned_long_long,
@@ -6092,6 +7247,7 @@ static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0}
6092
7247
  static swig_cast_info _swigc__p_oboe_metadata_t[] = { {&_swigt__p_Metadata, _p_MetadataTo_p_oboe_metadata_t, 0, 0}, {&_swigt__p_oboe_metadata_t, 0, 0, 0},{0, 0, 0, 0}};
6093
7248
  static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
6094
7249
  static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
7250
+ static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}};
6095
7251
  static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
6096
7252
  static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
6097
7253
  static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
@@ -6115,6 +7271,7 @@ static swig_cast_info *swig_cast_initial[] = {
6115
7271
  _swigc__p_oboe_metadata_t,
6116
7272
  _swigc__p_short,
6117
7273
  _swigc__p_signed_char,
7274
+ _swigc__p_std__string,
6118
7275
  _swigc__p_unsigned_char,
6119
7276
  _swigc__p_unsigned_int,
6120
7277
  _swigc__p_unsigned_long_long,
@@ -6224,7 +7381,7 @@ SWIG_InitializeModule(void *clientdata) {
6224
7381
 
6225
7382
  /* Now work on filling in swig_module.types */
6226
7383
  #ifdef SWIGRUNTIME_DEBUG
6227
- printf("SWIG_InitializeModule: size %d\n", swig_module.size);
7384
+ printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
6228
7385
  #endif
6229
7386
  for (i = 0; i < swig_module.size; ++i) {
6230
7387
  swig_type_info *type = 0;
@@ -6232,7 +7389,7 @@ SWIG_InitializeModule(void *clientdata) {
6232
7389
  swig_cast_info *cast;
6233
7390
 
6234
7391
  #ifdef SWIGRUNTIME_DEBUG
6235
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
7392
+ printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
6236
7393
  #endif
6237
7394
 
6238
7395
  /* if there is another module already loaded */
@@ -6308,7 +7465,7 @@ SWIG_InitializeModule(void *clientdata) {
6308
7465
  for (i = 0; i < swig_module.size; ++i) {
6309
7466
  int j = 0;
6310
7467
  swig_cast_info *cast = swig_module.cast_initial[i];
6311
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
7468
+ printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
6312
7469
  while (cast->type) {
6313
7470
  printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
6314
7471
  cast++;
@@ -6415,7 +7572,6 @@ SWIGEXPORT void Init_oboe_metal(void) {
6415
7572
  rb_define_singleton_method(SwigClassContext.klass, "setTracingMode", VALUEFUNC(_wrap_Context_setTracingMode), -1);
6416
7573
  rb_define_singleton_method(SwigClassContext.klass, "setDefaultSampleRate", VALUEFUNC(_wrap_Context_setDefaultSampleRate), -1);
6417
7574
  rb_define_singleton_method(SwigClassContext.klass, "getDecisions", VALUEFUNC(_wrap_Context_getDecisions), -1);
6418
- rb_define_singleton_method(SwigClassContext.klass, "sampleRequest", VALUEFUNC(_wrap_Context_sampleRequest), -1);
6419
7575
  rb_define_singleton_method(SwigClassContext.klass, "get", VALUEFUNC(_wrap_Context_get), -1);
6420
7576
  rb_define_singleton_method(SwigClassContext.klass, "toString", VALUEFUNC(_wrap_Context_toString), -1);
6421
7577
  rb_define_singleton_method(SwigClassContext.klass, "set", VALUEFUNC(_wrap_Context_set), -1);