solarwinds_apm 6.0.0.preV5 → 6.0.0.prev6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/ext/oboe_metal/extconf.rb +4 -3
  3. data/ext/oboe_metal/lib/liboboe-1.0-aarch64.so.sha256 +1 -1
  4. data/ext/oboe_metal/lib/liboboe-1.0-alpine-aarch64.so.sha256 +1 -1
  5. data/ext/oboe_metal/lib/liboboe-1.0-alpine-x86_64.so.sha256 +1 -1
  6. data/ext/oboe_metal/lib/liboboe-1.0-x86_64.so.sha256 +1 -1
  7. data/ext/oboe_metal/src/VERSION +1 -1
  8. data/ext/oboe_metal/src/oboe.h +56 -13
  9. data/ext/oboe_metal/src/oboe_api.cpp +105 -6
  10. data/ext/oboe_metal/src/oboe_api.h +121 -2
  11. data/ext/oboe_metal/src/oboe_debug.h +4 -315
  12. data/ext/oboe_metal/src/oboe_swig_wrap.cc +2987 -549
  13. data/lib/rails/generators/solarwinds_apm/templates/solarwinds_apm_initializer.rb +1 -1
  14. data/lib/solarwinds_apm/api/current_trace_info.rb +2 -3
  15. data/lib/solarwinds_apm/base.rb +0 -12
  16. data/lib/solarwinds_apm/config.rb +53 -15
  17. data/lib/solarwinds_apm/oboe_init_options.rb +26 -16
  18. data/lib/solarwinds_apm/opentelemetry/solarwinds_exporter.rb +1 -1
  19. data/lib/solarwinds_apm/opentelemetry/solarwinds_processor.rb +1 -1
  20. data/lib/solarwinds_apm/opentelemetry/solarwinds_sampler.rb +2 -1
  21. data/lib/solarwinds_apm/otel_config.rb +12 -29
  22. data/lib/solarwinds_apm/support/logger_formatter.rb +1 -1
  23. data/lib/solarwinds_apm/support/oboe_tracing_mode.rb +4 -4
  24. data/lib/solarwinds_apm/support/swomarginalia/comment.rb +2 -2
  25. data/lib/solarwinds_apm/support/swomarginalia/swomarginalia.rb +1 -1
  26. data/lib/solarwinds_apm/support/transaction_settings.rb +1 -5
  27. data/lib/solarwinds_apm/version.rb +1 -1
  28. data/lib/solarwinds_apm.rb +2 -7
  29. metadata +3 -2
@@ -1848,28 +1848,30 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1848
1848
  #define SWIGTYPE_p_Context swig_types[1]
1849
1849
  #define SWIGTYPE_p_CustomMetrics swig_types[2]
1850
1850
  #define SWIGTYPE_p_Event swig_types[3]
1851
- #define SWIGTYPE_p_FILE swig_types[4]
1851
+ #define SWIGTYPE_p_LoggingOptions swig_types[4]
1852
1852
  #define SWIGTYPE_p_Metadata swig_types[5]
1853
1853
  #define SWIGTYPE_p_MetricTags swig_types[6]
1854
- #define SWIGTYPE_p_Reporter swig_types[7]
1855
- #define SWIGTYPE_p_Span swig_types[8]
1856
- #define SWIGTYPE_p_char swig_types[9]
1857
- #define SWIGTYPE_p_double swig_types[10]
1858
- #define SWIGTYPE_p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void swig_types[11]
1859
- #define SWIGTYPE_p_int swig_types[12]
1860
- #define SWIGTYPE_p_long swig_types[13]
1861
- #define SWIGTYPE_p_long_long swig_types[14]
1862
- #define SWIGTYPE_p_oboe_metadata_t swig_types[15]
1863
- #define SWIGTYPE_p_oboe_metric_tag_t swig_types[16]
1864
- #define SWIGTYPE_p_short swig_types[17]
1865
- #define SWIGTYPE_p_signed_char swig_types[18]
1866
- #define SWIGTYPE_p_std__string swig_types[19]
1867
- #define SWIGTYPE_p_unsigned_char swig_types[20]
1868
- #define SWIGTYPE_p_unsigned_int swig_types[21]
1869
- #define SWIGTYPE_p_unsigned_long_long swig_types[22]
1870
- #define SWIGTYPE_p_unsigned_short swig_types[23]
1871
- static swig_type_info *swig_types[25];
1872
- static swig_module_info swig_module = {swig_types, 24, 0, 0, 0, 0};
1854
+ #define SWIGTYPE_p_OboeAPI swig_types[7]
1855
+ #define SWIGTYPE_p_OboeAPIOptions swig_types[8]
1856
+ #define SWIGTYPE_p_Reporter swig_types[9]
1857
+ #define SWIGTYPE_p_Span swig_types[10]
1858
+ #define SWIGTYPE_p_char swig_types[11]
1859
+ #define SWIGTYPE_p_double swig_types[12]
1860
+ #define SWIGTYPE_p_f_p_void_int_p_q_const__char_int_p_q_const__char__void swig_types[13]
1861
+ #define SWIGTYPE_p_int swig_types[14]
1862
+ #define SWIGTYPE_p_long swig_types[15]
1863
+ #define SWIGTYPE_p_long_long swig_types[16]
1864
+ #define SWIGTYPE_p_oboe_metadata_t swig_types[17]
1865
+ #define SWIGTYPE_p_oboe_metric_tag_t swig_types[18]
1866
+ #define SWIGTYPE_p_short swig_types[19]
1867
+ #define SWIGTYPE_p_signed_char swig_types[20]
1868
+ #define SWIGTYPE_p_std__string swig_types[21]
1869
+ #define SWIGTYPE_p_unsigned_char swig_types[22]
1870
+ #define SWIGTYPE_p_unsigned_int swig_types[23]
1871
+ #define SWIGTYPE_p_unsigned_long_long swig_types[24]
1872
+ #define SWIGTYPE_p_unsigned_short swig_types[25]
1873
+ static swig_type_info *swig_types[27];
1874
+ static swig_module_info swig_module = {swig_types, 26, 0, 0, 0, 0};
1873
1875
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1874
1876
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1875
1877
 
@@ -1925,6 +1927,13 @@ SWIG_From_int (int value)
1925
1927
  }
1926
1928
 
1927
1929
 
1930
+ SWIGINTERNINLINE VALUE
1931
+ SWIG_From_bool (bool value)
1932
+ {
1933
+ return value ? Qtrue : Qfalse;
1934
+ }
1935
+
1936
+
1928
1937
  SWIGINTERN VALUE
1929
1938
  SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
1930
1939
  {
@@ -1978,6 +1987,26 @@ SWIG_AsVal_int (VALUE obj, int *val)
1978
1987
  }
1979
1988
 
1980
1989
 
1990
+ SWIGINTERN int
1991
+ SWIG_AsVal_bool (VALUE obj, bool *val)
1992
+ {
1993
+ if (obj == Qtrue) {
1994
+ if (val) *val = true;
1995
+ return SWIG_OK;
1996
+ } else if (obj == Qfalse) {
1997
+ if (val) *val = false;
1998
+ return SWIG_OK;
1999
+ } else {
2000
+ int res = 0;
2001
+ if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
2002
+ if (val) *val = res ? true : false;
2003
+ return SWIG_OK;
2004
+ }
2005
+ }
2006
+ return SWIG_TypeError;
2007
+ }
2008
+
2009
+
1981
2010
  SWIGINTERN swig_type_info*
1982
2011
  SWIG_pchar_descriptor(void)
1983
2012
  {
@@ -2025,60 +2054,6 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
2025
2054
  }
2026
2055
 
2027
2056
 
2028
-
2029
-
2030
-
2031
- SWIGINTERNINLINE VALUE
2032
- SWIG_FromCharPtrAndSize(const char* carray, size_t size)
2033
- {
2034
- if (carray) {
2035
- if (size > LONG_MAX) {
2036
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2037
- return pchar_descriptor ?
2038
- SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
2039
- } else {
2040
- return rb_str_new(carray, static_cast< long >(size));
2041
- }
2042
- } else {
2043
- return Qnil;
2044
- }
2045
- }
2046
-
2047
-
2048
- SWIGINTERNINLINE VALUE
2049
- SWIG_FromCharPtr(const char *cptr)
2050
- {
2051
- return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
2052
- }
2053
-
2054
-
2055
- SWIGINTERNINLINE VALUE
2056
- SWIG_From_bool (bool value)
2057
- {
2058
- return value ? Qtrue : Qfalse;
2059
- }
2060
-
2061
-
2062
- SWIGINTERN int
2063
- SWIG_AsVal_bool (VALUE obj, bool *val)
2064
- {
2065
- if (obj == Qtrue) {
2066
- if (val) *val = true;
2067
- return SWIG_OK;
2068
- } else if (obj == Qfalse) {
2069
- if (val) *val = false;
2070
- return SWIG_OK;
2071
- } else {
2072
- int res = 0;
2073
- if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
2074
- if (val) *val = res ? true : false;
2075
- return SWIG_OK;
2076
- }
2077
- }
2078
- return SWIG_TypeError;
2079
- }
2080
-
2081
-
2082
2057
  SWIGINTERN int
2083
2058
  SWIG_AsPtr_std_string (VALUE obj, std::string **val)
2084
2059
  {
@@ -2110,6 +2085,23 @@ SWIG_AsPtr_std_string (VALUE obj, std::string **val)
2110
2085
  }
2111
2086
 
2112
2087
 
2088
+ SWIGINTERNINLINE VALUE
2089
+ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
2090
+ {
2091
+ if (carray) {
2092
+ if (size > LONG_MAX) {
2093
+ swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2094
+ return pchar_descriptor ?
2095
+ SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
2096
+ } else {
2097
+ return rb_str_new(carray, static_cast< long >(size));
2098
+ }
2099
+ } else {
2100
+ return Qnil;
2101
+ }
2102
+ }
2103
+
2104
+
2113
2105
  SWIGINTERNINLINE VALUE
2114
2106
  SWIG_From_std_string (const std::string& s)
2115
2107
  {
@@ -2117,6 +2109,9 @@ SWIG_From_std_string (const std::string& s)
2117
2109
  }
2118
2110
 
2119
2111
 
2112
+
2113
+
2114
+
2120
2115
  #define SWIG_From_double rb_float_new
2121
2116
 
2122
2117
 
@@ -2285,393 +2280,113 @@ SWIG_AsVal_size_t (VALUE obj, size_t *val)
2285
2280
  return res;
2286
2281
  }
2287
2282
 
2288
- SWIGINTERN VALUE
2289
- _wrap_oboe_debug_log_init(int argc, VALUE *argv, VALUE self) {
2290
- FILE *arg1 = (FILE *) 0 ;
2291
- void *argp1 = 0 ;
2292
- int res1 = 0 ;
2293
-
2294
- if ((argc < 1) || (argc > 1)) {
2295
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2296
- }
2297
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2298
- if (!SWIG_IsOK(res1)) {
2299
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","oboe_debug_log_init", 1, argv[0] ));
2300
- }
2301
- arg1 = reinterpret_cast< FILE * >(argp1);
2302
- oboe_debug_log_init(arg1);
2303
- return Qnil;
2304
- fail:
2305
- return Qnil;
2283
+
2284
+ SWIGINTERNINLINE VALUE
2285
+ SWIG_From_unsigned_SS_long (unsigned long value)
2286
+ {
2287
+ return ULONG2NUM(value);
2306
2288
  }
2307
2289
 
2308
2290
 
2291
+ SWIGINTERNINLINE VALUE
2292
+ SWIG_From_unsigned_SS_int (unsigned int value)
2293
+ {
2294
+ return SWIG_From_unsigned_SS_long (value);
2295
+ }
2296
+
2309
2297
  SWIGINTERN VALUE
2310
- _wrap_oboe_debug_logger(int argc, VALUE *argv, VALUE self) {
2311
- int arg1 ;
2312
- int arg2 ;
2313
- char *arg3 = (char *) 0 ;
2314
- int arg4 ;
2315
- char *arg5 = (char *) 0 ;
2316
- void *arg6 = 0 ;
2317
- int val1 ;
2318
- int ecode1 = 0 ;
2319
- int val2 ;
2320
- int ecode2 = 0 ;
2321
- int res3 ;
2322
- char *buf3 = 0 ;
2323
- int alloc3 = 0 ;
2324
- int val4 ;
2325
- int ecode4 = 0 ;
2326
- int res5 ;
2327
- char *buf5 = 0 ;
2328
- int alloc5 = 0 ;
2298
+ _wrap_oboe_debug_log_add(int argc, VALUE *argv, VALUE self) {
2299
+ OboeDebugLoggerFcn arg1 = (OboeDebugLoggerFcn) 0 ;
2300
+ void *arg2 = (void *) 0 ;
2301
+ int res2 ;
2302
+ int result;
2303
+ VALUE vresult = Qnil;
2329
2304
 
2330
- if (argc < 5) {
2331
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
2305
+ if ((argc < 2) || (argc > 2)) {
2306
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
2332
2307
  }
2333
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
2334
- if (!SWIG_IsOK(ecode1)) {
2335
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_logger", 1, argv[0] ));
2336
- }
2337
- arg1 = static_cast< int >(val1);
2338
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
2339
- if (!SWIG_IsOK(ecode2)) {
2340
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","oboe_debug_logger", 2, argv[1] ));
2341
- }
2342
- arg2 = static_cast< int >(val2);
2343
- res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
2344
- if (!SWIG_IsOK(res3)) {
2345
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","oboe_debug_logger", 3, argv[2] ));
2308
+ {
2309
+ int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_void_int_p_q_const__char_int_p_q_const__char__void);
2310
+ if (!SWIG_IsOK(res)) {
2311
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "OboeDebugLoggerFcn","oboe_debug_log_add", 1, argv[0] ));
2312
+ }
2346
2313
  }
2347
- arg3 = reinterpret_cast< char * >(buf3);
2348
- ecode4 = SWIG_AsVal_int(argv[3], &val4);
2349
- if (!SWIG_IsOK(ecode4)) {
2350
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","oboe_debug_logger", 4, argv[3] ));
2351
- }
2352
- arg4 = static_cast< int >(val4);
2353
- res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
2354
- if (!SWIG_IsOK(res5)) {
2355
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","oboe_debug_logger", 5, argv[4] ));
2314
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
2315
+ if (!SWIG_IsOK(res2)) {
2316
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","oboe_debug_log_add", 2, argv[1] ));
2356
2317
  }
2357
- arg5 = reinterpret_cast< char * >(buf5);
2358
- oboe_debug_logger(arg1,arg2,(char const *)arg3,arg4,(char const *)arg5,arg6);
2359
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2360
- if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
2361
- return Qnil;
2318
+ result = (int)oboe_debug_log_add(arg1,arg2);
2319
+ vresult = SWIG_From_int(static_cast< int >(result));
2320
+ return vresult;
2362
2321
  fail:
2363
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2364
- if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
2365
2322
  return Qnil;
2366
2323
  }
2367
2324
 
2368
2325
 
2326
+ static swig_class SwigClassMetadata;
2327
+
2369
2328
  SWIGINTERN VALUE
2370
- _wrap_oboe_debug_log_level_name(int argc, VALUE *argv, VALUE self) {
2371
- int arg1 ;
2372
- int val1 ;
2373
- int ecode1 = 0 ;
2374
- char *result = 0 ;
2375
- VALUE vresult = Qnil;
2376
-
2377
- if ((argc < 1) || (argc > 1)) {
2378
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2379
- }
2380
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
2381
- if (!SWIG_IsOK(ecode1)) {
2382
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_name", 1, argv[0] ));
2383
- }
2384
- arg1 = static_cast< int >(val1);
2385
- result = (char *)oboe_debug_log_level_name(arg1);
2386
- vresult = SWIG_FromCharPtr((const char *)result);
2329
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
2330
+ _wrap_Metadata_allocate(VALUE self)
2331
+ #else
2332
+ _wrap_Metadata_allocate(int argc, VALUE *argv, VALUE self)
2333
+ #endif
2334
+ {
2335
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Metadata);
2336
+ #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
2337
+ rb_obj_call_init(vresult, argc, argv);
2338
+ #endif
2387
2339
  return vresult;
2388
- fail:
2389
- return Qnil;
2390
2340
  }
2391
2341
 
2392
2342
 
2393
2343
  SWIGINTERN VALUE
2394
- _wrap_oboe_debug_module_name(int argc, VALUE *argv, VALUE self) {
2395
- int arg1 ;
2396
- int val1 ;
2397
- int ecode1 = 0 ;
2398
- char *result = 0 ;
2399
- VALUE vresult = Qnil;
2344
+ _wrap_new_Metadata(int argc, VALUE *argv, VALUE self) {
2345
+ oboe_metadata_t *arg1 = (oboe_metadata_t *) 0 ;
2346
+ void *argp1 = 0 ;
2347
+ int res1 = 0 ;
2348
+ Metadata *result = 0 ;
2400
2349
 
2401
2350
  if ((argc < 1) || (argc > 1)) {
2402
2351
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2403
2352
  }
2404
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
2405
- if (!SWIG_IsOK(ecode1)) {
2406
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_module_name", 1, argv[0] ));
2407
- }
2408
- arg1 = static_cast< int >(val1);
2409
- result = (char *)oboe_debug_module_name(arg1);
2410
- vresult = SWIG_FromCharPtr((const char *)result);
2411
- return vresult;
2353
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
2354
+ if (!SWIG_IsOK(res1)) {
2355
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "oboe_metadata_t const *","Metadata", 1, argv[0] ));
2356
+ }
2357
+ arg1 = reinterpret_cast< oboe_metadata_t * >(argp1);
2358
+ result = (Metadata *)new Metadata((oboe_metadata_t const *)arg1);
2359
+ DATA_PTR(self) = result;
2360
+ return self;
2412
2361
  fail:
2413
2362
  return Qnil;
2414
2363
  }
2415
2364
 
2416
2365
 
2366
+ SWIGINTERN void
2367
+ free_Metadata(void *self) {
2368
+ Metadata *arg1 = (Metadata *)self;
2369
+ delete arg1;
2370
+ }
2371
+
2417
2372
  SWIGINTERN VALUE
2418
- _wrap_oboe_debug_log_level_get(int argc, VALUE *argv, VALUE self) {
2419
- int arg1 ;
2420
- int val1 ;
2421
- int ecode1 = 0 ;
2422
- int result;
2373
+ _wrap_Metadata_createEvent(int argc, VALUE *argv, VALUE self) {
2374
+ Metadata *arg1 = (Metadata *) 0 ;
2375
+ void *argp1 = 0 ;
2376
+ int res1 = 0 ;
2377
+ Event *result = 0 ;
2423
2378
  VALUE vresult = Qnil;
2424
2379
 
2425
- if ((argc < 1) || (argc > 1)) {
2426
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2380
+ if ((argc < 0) || (argc > 0)) {
2381
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2427
2382
  }
2428
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
2429
- if (!SWIG_IsOK(ecode1)) {
2430
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_get", 1, argv[0] ));
2431
- }
2432
- arg1 = static_cast< int >(val1);
2433
- result = (int)oboe_debug_log_level_get(arg1);
2434
- vresult = SWIG_From_int(static_cast< int >(result));
2435
- return vresult;
2436
- fail:
2437
- return Qnil;
2438
- }
2439
-
2440
-
2441
- SWIGINTERN VALUE
2442
- _wrap_oboe_debug_log_level_set(int argc, VALUE *argv, VALUE self) {
2443
- FILE *arg1 = (FILE *) 0 ;
2444
- int arg2 ;
2445
- int arg3 ;
2446
- void *argp1 = 0 ;
2447
- int res1 = 0 ;
2448
- int val2 ;
2449
- int ecode2 = 0 ;
2450
- int val3 ;
2451
- int ecode3 = 0 ;
2452
-
2453
- if ((argc < 3) || (argc > 3)) {
2454
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2455
- }
2456
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2457
- if (!SWIG_IsOK(res1)) {
2458
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","oboe_debug_log_level_set", 1, argv[0] ));
2459
- }
2460
- arg1 = reinterpret_cast< FILE * >(argp1);
2461
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
2462
- if (!SWIG_IsOK(ecode2)) {
2463
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_set", 2, argv[1] ));
2464
- }
2465
- arg2 = static_cast< int >(val2);
2466
- ecode3 = SWIG_AsVal_int(argv[2], &val3);
2467
- if (!SWIG_IsOK(ecode3)) {
2468
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_set", 3, argv[2] ));
2469
- }
2470
- arg3 = static_cast< int >(val3);
2471
- oboe_debug_log_level_set(arg1,arg2,arg3);
2472
- return Qnil;
2473
- fail:
2474
- return Qnil;
2475
- }
2476
-
2477
-
2478
- SWIGINTERN VALUE
2479
- _wrap_oboe_debug_log_to_stream(int argc, VALUE *argv, VALUE self) {
2480
- FILE *arg1 = (FILE *) 0 ;
2481
- void *argp1 = 0 ;
2482
- int res1 = 0 ;
2483
- int result;
2484
- VALUE vresult = Qnil;
2485
-
2486
- if ((argc < 1) || (argc > 1)) {
2487
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2488
- }
2489
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2490
- if (!SWIG_IsOK(res1)) {
2491
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","oboe_debug_log_to_stream", 1, argv[0] ));
2492
- }
2493
- arg1 = reinterpret_cast< FILE * >(argp1);
2494
- result = (int)oboe_debug_log_to_stream(arg1);
2495
- vresult = SWIG_From_int(static_cast< int >(result));
2496
- return vresult;
2497
- fail:
2498
- return Qnil;
2499
- }
2500
-
2501
-
2502
- SWIGINTERN VALUE
2503
- _wrap_oboe_debug_log_flush(int argc, VALUE *argv, VALUE self) {
2504
- int result;
2505
- VALUE vresult = Qnil;
2506
-
2507
- if ((argc < 0) || (argc > 0)) {
2508
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2509
- }
2510
- result = (int)oboe_debug_log_flush();
2511
- vresult = SWIG_From_int(static_cast< int >(result));
2512
- return vresult;
2513
- fail:
2514
- return Qnil;
2515
- }
2516
-
2517
-
2518
- SWIGINTERN VALUE
2519
- _wrap_oboe_debug_log_to_file(int argc, VALUE *argv, VALUE self) {
2520
- char *arg1 = (char *) 0 ;
2521
- int res1 ;
2522
- char *buf1 = 0 ;
2523
- int alloc1 = 0 ;
2524
- int result;
2525
- VALUE vresult = Qnil;
2526
-
2527
- if ((argc < 1) || (argc > 1)) {
2528
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2529
- }
2530
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
2531
- if (!SWIG_IsOK(res1)) {
2532
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","oboe_debug_log_to_file", 1, argv[0] ));
2533
- }
2534
- arg1 = reinterpret_cast< char * >(buf1);
2535
- result = (int)oboe_debug_log_to_file((char const *)arg1);
2536
- vresult = SWIG_From_int(static_cast< int >(result));
2537
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2538
- return vresult;
2539
- fail:
2540
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2541
- return Qnil;
2542
- }
2543
-
2544
-
2545
- SWIGINTERN VALUE
2546
- _wrap_oboe_debug_log_add(int argc, VALUE *argv, VALUE self) {
2547
- OboeDebugLoggerFcn arg1 = (OboeDebugLoggerFcn) 0 ;
2548
- void *arg2 = (void *) 0 ;
2549
- int arg3 ;
2550
- int res2 ;
2551
- int val3 ;
2552
- int ecode3 = 0 ;
2553
- int result;
2554
- VALUE vresult = Qnil;
2555
-
2556
- if ((argc < 3) || (argc > 3)) {
2557
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2558
- }
2559
- {
2560
- int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void);
2561
- if (!SWIG_IsOK(res)) {
2562
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "OboeDebugLoggerFcn","oboe_debug_log_add", 1, argv[0] ));
2563
- }
2564
- }
2565
- res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
2566
- if (!SWIG_IsOK(res2)) {
2567
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","oboe_debug_log_add", 2, argv[1] ));
2568
- }
2569
- ecode3 = SWIG_AsVal_int(argv[2], &val3);
2570
- if (!SWIG_IsOK(ecode3)) {
2571
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","oboe_debug_log_add", 3, argv[2] ));
2572
- }
2573
- arg3 = static_cast< int >(val3);
2574
- result = (int)oboe_debug_log_add(arg1,arg2,arg3);
2575
- vresult = SWIG_From_int(static_cast< int >(result));
2576
- return vresult;
2577
- fail:
2578
- return Qnil;
2579
- }
2580
-
2581
-
2582
- SWIGINTERN VALUE
2583
- _wrap_oboe_debug_log_remove(int argc, VALUE *argv, VALUE self) {
2584
- OboeDebugLoggerFcn arg1 = (OboeDebugLoggerFcn) 0 ;
2585
- void *arg2 = (void *) 0 ;
2586
- int res2 ;
2587
- int result;
2588
- VALUE vresult = Qnil;
2589
-
2590
- if ((argc < 2) || (argc > 2)) {
2591
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
2592
- }
2593
- {
2594
- int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void);
2595
- if (!SWIG_IsOK(res)) {
2596
- SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "OboeDebugLoggerFcn","oboe_debug_log_remove", 1, argv[0] ));
2597
- }
2598
- }
2599
- res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
2600
- if (!SWIG_IsOK(res2)) {
2601
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","oboe_debug_log_remove", 2, argv[1] ));
2602
- }
2603
- result = (int)oboe_debug_log_remove(arg1,arg2);
2604
- vresult = SWIG_From_int(static_cast< int >(result));
2605
- return vresult;
2606
- fail:
2607
- return Qnil;
2608
- }
2609
-
2610
-
2611
- static swig_class SwigClassMetadata;
2612
-
2613
- SWIGINTERN VALUE
2614
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
2615
- _wrap_Metadata_allocate(VALUE self)
2616
- #else
2617
- _wrap_Metadata_allocate(int argc, VALUE *argv, VALUE self)
2618
- #endif
2619
- {
2620
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Metadata);
2621
- #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
2622
- rb_obj_call_init(vresult, argc, argv);
2623
- #endif
2624
- return vresult;
2625
- }
2626
-
2627
-
2628
- SWIGINTERN VALUE
2629
- _wrap_new_Metadata(int argc, VALUE *argv, VALUE self) {
2630
- oboe_metadata_t *arg1 = (oboe_metadata_t *) 0 ;
2631
- void *argp1 = 0 ;
2632
- int res1 = 0 ;
2633
- Metadata *result = 0 ;
2634
-
2635
- if ((argc < 1) || (argc > 1)) {
2636
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2637
- }
2638
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
2639
- if (!SWIG_IsOK(res1)) {
2640
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "oboe_metadata_t const *","Metadata", 1, argv[0] ));
2641
- }
2642
- arg1 = reinterpret_cast< oboe_metadata_t * >(argp1);
2643
- result = (Metadata *)new Metadata((oboe_metadata_t const *)arg1);
2644
- DATA_PTR(self) = result;
2645
- return self;
2646
- fail:
2647
- return Qnil;
2648
- }
2649
-
2650
-
2651
- SWIGINTERN void
2652
- free_Metadata(void *self) {
2653
- Metadata *arg1 = (Metadata *)self;
2654
- delete arg1;
2655
- }
2656
-
2657
- SWIGINTERN VALUE
2658
- _wrap_Metadata_createEvent(int argc, VALUE *argv, VALUE self) {
2659
- Metadata *arg1 = (Metadata *) 0 ;
2660
- void *argp1 = 0 ;
2661
- int res1 = 0 ;
2662
- Event *result = 0 ;
2663
- VALUE vresult = Qnil;
2664
-
2665
- if ((argc < 0) || (argc > 0)) {
2666
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2667
- }
2668
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Metadata, 0 | 0 );
2669
- if (!SWIG_IsOK(res1)) {
2670
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","createEvent", 1, self ));
2671
- }
2672
- arg1 = reinterpret_cast< Metadata * >(argp1);
2673
- result = (Event *)(arg1)->createEvent();
2674
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
2383
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Metadata, 0 | 0 );
2384
+ if (!SWIG_IsOK(res1)) {
2385
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","createEvent", 1, self ));
2386
+ }
2387
+ arg1 = reinterpret_cast< Metadata * >(argp1);
2388
+ result = (Event *)(arg1)->createEvent();
2389
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
2675
2390
  return vresult;
2676
2391
  fail:
2677
2392
  return Qnil;
@@ -7154,6 +6869,7 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
7154
6869
  std::string arg19 ;
7155
6870
  int arg20 ;
7156
6871
  int arg21 ;
6872
+ int arg22 ;
7157
6873
  int val2 ;
7158
6874
  int ecode2 = 0 ;
7159
6875
  int val4 ;
@@ -7182,10 +6898,12 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
7182
6898
  int ecode20 = 0 ;
7183
6899
  int val21 ;
7184
6900
  int ecode21 = 0 ;
6901
+ int val22 ;
6902
+ int ecode22 = 0 ;
7185
6903
  Reporter *result = 0 ;
7186
6904
 
7187
- if ((argc < 21) || (argc > 21)) {
7188
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 21)",argc); SWIG_fail;
6905
+ if ((argc < 22) || (argc > 22)) {
6906
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 22)",argc); SWIG_fail;
7189
6907
  }
7190
6908
  {
7191
6909
  std::string *ptr = (std::string *)0;
@@ -7320,7 +7038,12 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
7320
7038
  SWIG_exception_fail(SWIG_ArgError(ecode21), Ruby_Format_TypeError( "", "int","Reporter", 21, argv[20] ));
7321
7039
  }
7322
7040
  arg21 = static_cast< int >(val21);
7323
- result = (Reporter *)new Reporter(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20,arg21);
7041
+ ecode22 = SWIG_AsVal_int(argv[21], &val22);
7042
+ if (!SWIG_IsOK(ecode22)) {
7043
+ SWIG_exception_fail(SWIG_ArgError(ecode22), Ruby_Format_TypeError( "", "int","Reporter", 22, argv[21] ));
7044
+ }
7045
+ arg22 = static_cast< int >(val22);
7046
+ result = (Reporter *)new Reporter(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20,arg21,arg22);
7324
7047
  DATA_PTR(self) = result;
7325
7048
  return self;
7326
7049
  fail:
@@ -7814,31 +7537,2588 @@ SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
7814
7537
  _v = SWIG_CheckState(res);
7815
7538
  }
7816
7539
  if (_v) {
7817
- return _wrap_Reporter_sendStatus__SWIG_0(nargs, args, self);
7540
+ return _wrap_Reporter_sendStatus__SWIG_0(nargs, args, self);
7541
+ }
7542
+ }
7543
+ }
7544
+ }
7545
+ if (argc == 4) {
7546
+ int _v;
7547
+ void *vptr = 0;
7548
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
7549
+ _v = SWIG_CheckState(res);
7550
+ if (_v) {
7551
+ void *vptr = 0;
7552
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
7553
+ _v = SWIG_CheckState(res);
7554
+ if (_v) {
7555
+ void *vptr = 0;
7556
+ int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
7557
+ _v = SWIG_CheckState(res);
7558
+ if (_v) {
7559
+ {
7560
+ int res = SWIG_AsVal_bool(argv[3], NULL);
7561
+ _v = SWIG_CheckState(res);
7562
+ }
7563
+ if (_v) {
7564
+ return _wrap_Reporter_sendStatus__SWIG_2(nargs, args, self);
7565
+ }
7566
+ }
7567
+ }
7568
+ }
7569
+ }
7570
+
7571
+ fail:
7572
+ Ruby_Format_OverloadedError( argc, 5, "Reporter.sendStatus",
7573
+ " bool Reporter.sendStatus(Event *evt, bool with_system_timestamp)\n"
7574
+ " bool Reporter.sendStatus(Event *evt)\n"
7575
+ " bool Reporter.sendStatus(Event *evt, oboe_metadata_t *md, bool with_system_timestamp)\n"
7576
+ " bool Reporter.sendStatus(Event *evt, oboe_metadata_t *md)\n");
7577
+
7578
+ return Qnil;
7579
+ }
7580
+
7581
+
7582
+ SWIGINTERN VALUE
7583
+ _wrap_Reporter_flush(int argc, VALUE *argv, VALUE self) {
7584
+ Reporter *arg1 = (Reporter *) 0 ;
7585
+ void *argp1 = 0 ;
7586
+ int res1 = 0 ;
7587
+
7588
+ if ((argc < 0) || (argc > 0)) {
7589
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7590
+ }
7591
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
7592
+ if (!SWIG_IsOK(res1)) {
7593
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","flush", 1, self ));
7594
+ }
7595
+ arg1 = reinterpret_cast< Reporter * >(argp1);
7596
+ (arg1)->flush();
7597
+ return Qnil;
7598
+ fail:
7599
+ return Qnil;
7600
+ }
7601
+
7602
+
7603
+ SWIGINTERN VALUE
7604
+ _wrap_Reporter_getType(int argc, VALUE *argv, VALUE self) {
7605
+ Reporter *arg1 = (Reporter *) 0 ;
7606
+ void *argp1 = 0 ;
7607
+ int res1 = 0 ;
7608
+ std::string result;
7609
+ VALUE vresult = Qnil;
7610
+
7611
+ if ((argc < 0) || (argc > 0)) {
7612
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7613
+ }
7614
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
7615
+ if (!SWIG_IsOK(res1)) {
7616
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","getType", 1, self ));
7617
+ }
7618
+ arg1 = reinterpret_cast< Reporter * >(argp1);
7619
+ result = (arg1)->getType();
7620
+ vresult = SWIG_From_std_string(static_cast< std::string >(result));
7621
+ return vresult;
7622
+ fail:
7623
+ return Qnil;
7624
+ }
7625
+
7626
+
7627
+ static swig_class SwigClassConfig;
7628
+
7629
+ SWIGINTERN VALUE
7630
+ _wrap_Config_checkVersion(int argc, VALUE *argv, VALUE self) {
7631
+ int arg1 ;
7632
+ int arg2 ;
7633
+ int val1 ;
7634
+ int ecode1 = 0 ;
7635
+ int val2 ;
7636
+ int ecode2 = 0 ;
7637
+ bool result;
7638
+ VALUE vresult = Qnil;
7639
+
7640
+ if ((argc < 2) || (argc > 2)) {
7641
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
7642
+ }
7643
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
7644
+ if (!SWIG_IsOK(ecode1)) {
7645
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Config::checkVersion", 1, argv[0] ));
7646
+ }
7647
+ arg1 = static_cast< int >(val1);
7648
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
7649
+ if (!SWIG_IsOK(ecode2)) {
7650
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Config::checkVersion", 2, argv[1] ));
7651
+ }
7652
+ arg2 = static_cast< int >(val2);
7653
+ result = (bool)Config::checkVersion(arg1,arg2);
7654
+ vresult = SWIG_From_bool(static_cast< bool >(result));
7655
+ return vresult;
7656
+ fail:
7657
+ return Qnil;
7658
+ }
7659
+
7660
+
7661
+ SWIGINTERN VALUE
7662
+ _wrap_Config_getVersionString(int argc, VALUE *argv, VALUE self) {
7663
+ std::string result;
7664
+ VALUE vresult = Qnil;
7665
+
7666
+ if ((argc < 0) || (argc > 0)) {
7667
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7668
+ }
7669
+ result = Config::getVersionString();
7670
+ vresult = SWIG_From_std_string(static_cast< std::string >(result));
7671
+ return vresult;
7672
+ fail:
7673
+ return Qnil;
7674
+ }
7675
+
7676
+
7677
+ SWIGINTERN VALUE
7678
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
7679
+ _wrap_Config_allocate(VALUE self)
7680
+ #else
7681
+ _wrap_Config_allocate(int argc, VALUE *argv, VALUE self)
7682
+ #endif
7683
+ {
7684
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Config);
7685
+ #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
7686
+ rb_obj_call_init(vresult, argc, argv);
7687
+ #endif
7688
+ return vresult;
7689
+ }
7690
+
7691
+
7692
+ SWIGINTERN VALUE
7693
+ _wrap_new_Config(int argc, VALUE *argv, VALUE self) {
7694
+ Config *result = 0 ;
7695
+
7696
+ if ((argc < 0) || (argc > 0)) {
7697
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7698
+ }
7699
+ result = (Config *)new Config();
7700
+ DATA_PTR(self) = result;
7701
+ return self;
7702
+ fail:
7703
+ return Qnil;
7704
+ }
7705
+
7706
+
7707
+ SWIGINTERN void
7708
+ free_Config(void *self) {
7709
+ Config *arg1 = (Config *)self;
7710
+ delete arg1;
7711
+ }
7712
+
7713
+ static swig_class SwigClassLoggingOptions;
7714
+
7715
+ SWIGINTERN VALUE
7716
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
7717
+ _wrap_LoggingOptions_allocate(VALUE self)
7718
+ #else
7719
+ _wrap_LoggingOptions_allocate(int argc, VALUE *argv, VALUE self)
7720
+ #endif
7721
+ {
7722
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_LoggingOptions);
7723
+ #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
7724
+ rb_obj_call_init(vresult, argc, argv);
7725
+ #endif
7726
+ return vresult;
7727
+ }
7728
+
7729
+
7730
+ SWIGINTERN VALUE
7731
+ _wrap_new_LoggingOptions(int argc, VALUE *argv, VALUE self) {
7732
+ LoggingOptions *result = 0 ;
7733
+
7734
+ if ((argc < 0) || (argc > 0)) {
7735
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7736
+ }
7737
+ result = (LoggingOptions *)new LoggingOptions();
7738
+ DATA_PTR(self) = result;
7739
+ return self;
7740
+ fail:
7741
+ return Qnil;
7742
+ }
7743
+
7744
+
7745
+ SWIGINTERN VALUE
7746
+ _wrap_LoggingOptions_level_set(int argc, VALUE *argv, VALUE self) {
7747
+ LoggingOptions *arg1 = (LoggingOptions *) 0 ;
7748
+ int arg2 ;
7749
+ void *argp1 = 0 ;
7750
+ int res1 = 0 ;
7751
+ int val2 ;
7752
+ int ecode2 = 0 ;
7753
+
7754
+ if ((argc < 1) || (argc > 1)) {
7755
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7756
+ }
7757
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_LoggingOptions, 0 | 0 );
7758
+ if (!SWIG_IsOK(res1)) {
7759
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "LoggingOptions *","level", 1, self ));
7760
+ }
7761
+ arg1 = reinterpret_cast< LoggingOptions * >(argp1);
7762
+ ecode2 = SWIG_AsVal_int(argv[0], &val2);
7763
+ if (!SWIG_IsOK(ecode2)) {
7764
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","level", 2, argv[0] ));
7765
+ }
7766
+ arg2 = static_cast< int >(val2);
7767
+ if (arg1) (arg1)->level = arg2;
7768
+ return Qnil;
7769
+ fail:
7770
+ return Qnil;
7771
+ }
7772
+
7773
+
7774
+ SWIGINTERN VALUE
7775
+ _wrap_LoggingOptions_level_get(int argc, VALUE *argv, VALUE self) {
7776
+ LoggingOptions *arg1 = (LoggingOptions *) 0 ;
7777
+ void *argp1 = 0 ;
7778
+ int res1 = 0 ;
7779
+ int result;
7780
+ VALUE vresult = Qnil;
7781
+
7782
+ if ((argc < 0) || (argc > 0)) {
7783
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7784
+ }
7785
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_LoggingOptions, 0 | 0 );
7786
+ if (!SWIG_IsOK(res1)) {
7787
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "LoggingOptions *","level", 1, self ));
7788
+ }
7789
+ arg1 = reinterpret_cast< LoggingOptions * >(argp1);
7790
+ result = (int) ((arg1)->level);
7791
+ vresult = SWIG_From_int(static_cast< int >(result));
7792
+ return vresult;
7793
+ fail:
7794
+ return Qnil;
7795
+ }
7796
+
7797
+
7798
+ SWIGINTERN VALUE
7799
+ _wrap_LoggingOptions_type_set(int argc, VALUE *argv, VALUE self) {
7800
+ LoggingOptions *arg1 = (LoggingOptions *) 0 ;
7801
+ int arg2 ;
7802
+ void *argp1 = 0 ;
7803
+ int res1 = 0 ;
7804
+ int val2 ;
7805
+ int ecode2 = 0 ;
7806
+
7807
+ if ((argc < 1) || (argc > 1)) {
7808
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7809
+ }
7810
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_LoggingOptions, 0 | 0 );
7811
+ if (!SWIG_IsOK(res1)) {
7812
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "LoggingOptions *","type", 1, self ));
7813
+ }
7814
+ arg1 = reinterpret_cast< LoggingOptions * >(argp1);
7815
+ ecode2 = SWIG_AsVal_int(argv[0], &val2);
7816
+ if (!SWIG_IsOK(ecode2)) {
7817
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","type", 2, argv[0] ));
7818
+ }
7819
+ arg2 = static_cast< int >(val2);
7820
+ if (arg1) (arg1)->type = arg2;
7821
+ return Qnil;
7822
+ fail:
7823
+ return Qnil;
7824
+ }
7825
+
7826
+
7827
+ SWIGINTERN VALUE
7828
+ _wrap_LoggingOptions_type_get(int argc, VALUE *argv, VALUE self) {
7829
+ LoggingOptions *arg1 = (LoggingOptions *) 0 ;
7830
+ void *argp1 = 0 ;
7831
+ int res1 = 0 ;
7832
+ int result;
7833
+ VALUE vresult = Qnil;
7834
+
7835
+ if ((argc < 0) || (argc > 0)) {
7836
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7837
+ }
7838
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_LoggingOptions, 0 | 0 );
7839
+ if (!SWIG_IsOK(res1)) {
7840
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "LoggingOptions *","type", 1, self ));
7841
+ }
7842
+ arg1 = reinterpret_cast< LoggingOptions * >(argp1);
7843
+ result = (int) ((arg1)->type);
7844
+ vresult = SWIG_From_int(static_cast< int >(result));
7845
+ return vresult;
7846
+ fail:
7847
+ return Qnil;
7848
+ }
7849
+
7850
+
7851
+ SWIGINTERN void
7852
+ free_LoggingOptions(void *self) {
7853
+ LoggingOptions *arg1 = (LoggingOptions *)self;
7854
+ delete arg1;
7855
+ }
7856
+
7857
+ static swig_class SwigClassOboeAPIOptions;
7858
+
7859
+ SWIGINTERN VALUE
7860
+ _wrap_OboeAPIOptions_logging_options_set(int argc, VALUE *argv, VALUE self) {
7861
+ OboeAPIOptions *arg1 = (OboeAPIOptions *) 0 ;
7862
+ LoggingOptions *arg2 = (LoggingOptions *) 0 ;
7863
+ void *argp1 = 0 ;
7864
+ int res1 = 0 ;
7865
+ void *argp2 = 0 ;
7866
+ int res2 = 0 ;
7867
+
7868
+ if ((argc < 1) || (argc > 1)) {
7869
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7870
+ }
7871
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPIOptions, 0 | 0 );
7872
+ if (!SWIG_IsOK(res1)) {
7873
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPIOptions *","logging_options", 1, self ));
7874
+ }
7875
+ arg1 = reinterpret_cast< OboeAPIOptions * >(argp1);
7876
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_LoggingOptions, 0 | 0 );
7877
+ if (!SWIG_IsOK(res2)) {
7878
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "LoggingOptions *","logging_options", 2, argv[0] ));
7879
+ }
7880
+ arg2 = reinterpret_cast< LoggingOptions * >(argp2);
7881
+ if (arg1) (arg1)->logging_options = *arg2;
7882
+ return Qnil;
7883
+ fail:
7884
+ return Qnil;
7885
+ }
7886
+
7887
+
7888
+ SWIGINTERN VALUE
7889
+ _wrap_OboeAPIOptions_logging_options_get(int argc, VALUE *argv, VALUE self) {
7890
+ OboeAPIOptions *arg1 = (OboeAPIOptions *) 0 ;
7891
+ void *argp1 = 0 ;
7892
+ int res1 = 0 ;
7893
+ LoggingOptions *result = 0 ;
7894
+ VALUE vresult = Qnil;
7895
+
7896
+ if ((argc < 0) || (argc > 0)) {
7897
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7898
+ }
7899
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPIOptions, 0 | 0 );
7900
+ if (!SWIG_IsOK(res1)) {
7901
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPIOptions *","logging_options", 1, self ));
7902
+ }
7903
+ arg1 = reinterpret_cast< OboeAPIOptions * >(argp1);
7904
+ result = (LoggingOptions *)& ((arg1)->logging_options);
7905
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LoggingOptions, 0 | 0 );
7906
+ return vresult;
7907
+ fail:
7908
+ return Qnil;
7909
+ }
7910
+
7911
+
7912
+ SWIGINTERN VALUE
7913
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
7914
+ _wrap_OboeAPIOptions_allocate(VALUE self)
7915
+ #else
7916
+ _wrap_OboeAPIOptions_allocate(int argc, VALUE *argv, VALUE self)
7917
+ #endif
7918
+ {
7919
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OboeAPIOptions);
7920
+ #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
7921
+ rb_obj_call_init(vresult, argc, argv);
7922
+ #endif
7923
+ return vresult;
7924
+ }
7925
+
7926
+
7927
+ SWIGINTERN VALUE
7928
+ _wrap_new_OboeAPIOptions(int argc, VALUE *argv, VALUE self) {
7929
+ OboeAPIOptions *result = 0 ;
7930
+
7931
+ if ((argc < 0) || (argc > 0)) {
7932
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7933
+ }
7934
+ result = (OboeAPIOptions *)new OboeAPIOptions();
7935
+ DATA_PTR(self) = result;
7936
+ return self;
7937
+ fail:
7938
+ return Qnil;
7939
+ }
7940
+
7941
+
7942
+ SWIGINTERN void
7943
+ free_OboeAPIOptions(void *self) {
7944
+ OboeAPIOptions *arg1 = (OboeAPIOptions *)self;
7945
+ delete arg1;
7946
+ }
7947
+
7948
+ static swig_class SwigClassOboeAPI;
7949
+
7950
+ SWIGINTERN VALUE
7951
+ _wrap_new_OboeAPI__SWIG_0(int argc, VALUE *argv, VALUE self) {
7952
+ OboeAPIOptions *arg1 = 0 ;
7953
+ void *argp1 ;
7954
+ int res1 = 0 ;
7955
+ OboeAPI *result = 0 ;
7956
+
7957
+ if ((argc < 1) || (argc > 1)) {
7958
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7959
+ }
7960
+ res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_OboeAPIOptions, 0 );
7961
+ if (!SWIG_IsOK(res1)) {
7962
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPIOptions const &","OboeAPI", 1, argv[0] ));
7963
+ }
7964
+ if (!argp1) {
7965
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OboeAPIOptions const &","OboeAPI", 1, argv[0]));
7966
+ }
7967
+ arg1 = reinterpret_cast< OboeAPIOptions * >(argp1);
7968
+ result = (OboeAPI *)new OboeAPI((OboeAPIOptions const &)*arg1);
7969
+ DATA_PTR(self) = result;
7970
+ return self;
7971
+ fail:
7972
+ return Qnil;
7973
+ }
7974
+
7975
+
7976
+ SWIGINTERN VALUE
7977
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
7978
+ _wrap_OboeAPI_allocate(VALUE self)
7979
+ #else
7980
+ _wrap_OboeAPI_allocate(int argc, VALUE *argv, VALUE self)
7981
+ #endif
7982
+ {
7983
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OboeAPI);
7984
+ #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
7985
+ rb_obj_call_init(vresult, argc, argv);
7986
+ #endif
7987
+ return vresult;
7988
+ }
7989
+
7990
+
7991
+ SWIGINTERN VALUE
7992
+ _wrap_new_OboeAPI__SWIG_1(int argc, VALUE *argv, VALUE self) {
7993
+ OboeAPI *result = 0 ;
7994
+
7995
+ if ((argc < 0) || (argc > 0)) {
7996
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7997
+ }
7998
+ result = (OboeAPI *)new OboeAPI();
7999
+ DATA_PTR(self) = result;
8000
+ return self;
8001
+ fail:
8002
+ return Qnil;
8003
+ }
8004
+
8005
+
8006
+ SWIGINTERN VALUE _wrap_new_OboeAPI(int nargs, VALUE *args, VALUE self) {
8007
+ int argc;
8008
+ VALUE argv[1];
8009
+ int ii;
8010
+
8011
+ argc = nargs;
8012
+ if (argc > 1) SWIG_fail;
8013
+ for (ii = 0; (ii < argc); ++ii) {
8014
+ argv[ii] = args[ii];
8015
+ }
8016
+ if (argc == 0) {
8017
+ return _wrap_new_OboeAPI__SWIG_1(nargs, args, self);
8018
+ }
8019
+ if (argc == 1) {
8020
+ int _v;
8021
+ void *vptr = 0;
8022
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPIOptions, SWIG_POINTER_NO_NULL);
8023
+ _v = SWIG_CheckState(res);
8024
+ if (_v) {
8025
+ return _wrap_new_OboeAPI__SWIG_0(nargs, args, self);
8026
+ }
8027
+ }
8028
+
8029
+ fail:
8030
+ Ruby_Format_OverloadedError( argc, 1, "OboeAPI.new",
8031
+ " OboeAPI.new(OboeAPIOptions const &options)\n"
8032
+ " OboeAPI.new()\n");
8033
+
8034
+ return Qnil;
8035
+ }
8036
+
8037
+
8038
+ SWIGINTERN void
8039
+ free_OboeAPI(void *self) {
8040
+ OboeAPI *arg1 = (OboeAPI *)self;
8041
+ delete arg1;
8042
+ }
8043
+
8044
+ SWIGINTERN VALUE
8045
+ _wrap_OboeAPI_getTracingDecision__SWIG_0(int argc, VALUE *argv, VALUE self) {
8046
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
8047
+ int *arg2 = (int *) 0 ;
8048
+ int *arg3 = (int *) 0 ;
8049
+ int *arg4 = (int *) 0 ;
8050
+ int *arg5 = (int *) 0 ;
8051
+ double *arg6 = (double *) 0 ;
8052
+ double *arg7 = (double *) 0 ;
8053
+ int *arg8 = (int *) 0 ;
8054
+ int *arg9 = (int *) 0 ;
8055
+ std::string *arg10 = (std::string *) 0 ;
8056
+ std::string *arg11 = (std::string *) 0 ;
8057
+ int *arg12 = (int *) 0 ;
8058
+ char *arg13 = (char *) 0 ;
8059
+ char *arg14 = (char *) 0 ;
8060
+ int arg15 ;
8061
+ int arg16 ;
8062
+ int arg17 ;
8063
+ int arg18 ;
8064
+ char *arg19 = (char *) 0 ;
8065
+ char *arg20 = (char *) 0 ;
8066
+ long arg21 ;
8067
+ void *argp1 = 0 ;
8068
+ int res1 = 0 ;
8069
+ int temp2 ;
8070
+ int res2 = SWIG_TMPOBJ ;
8071
+ int temp3 ;
8072
+ int res3 = SWIG_TMPOBJ ;
8073
+ int temp4 ;
8074
+ int res4 = SWIG_TMPOBJ ;
8075
+ int temp5 ;
8076
+ int res5 = SWIG_TMPOBJ ;
8077
+ double temp6 ;
8078
+ int res6 = SWIG_TMPOBJ ;
8079
+ double temp7 ;
8080
+ int res7 = SWIG_TMPOBJ ;
8081
+ int temp8 ;
8082
+ int res8 = SWIG_TMPOBJ ;
8083
+ int temp9 ;
8084
+ int res9 = SWIG_TMPOBJ ;
8085
+ std::string temp10 ;
8086
+ int res10 = SWIG_TMPOBJ ;
8087
+ std::string temp11 ;
8088
+ int res11 = SWIG_TMPOBJ ;
8089
+ int temp12 ;
8090
+ int res12 = SWIG_TMPOBJ ;
8091
+ int res13 ;
8092
+ char *buf13 = 0 ;
8093
+ int alloc13 = 0 ;
8094
+ int res14 ;
8095
+ char *buf14 = 0 ;
8096
+ int alloc14 = 0 ;
8097
+ int val15 ;
8098
+ int ecode15 = 0 ;
8099
+ int val16 ;
8100
+ int ecode16 = 0 ;
8101
+ int val17 ;
8102
+ int ecode17 = 0 ;
8103
+ int val18 ;
8104
+ int ecode18 = 0 ;
8105
+ int res19 ;
8106
+ char *buf19 = 0 ;
8107
+ int alloc19 = 0 ;
8108
+ int res20 ;
8109
+ char *buf20 = 0 ;
8110
+ int alloc20 = 0 ;
8111
+ long val21 ;
8112
+ int ecode21 = 0 ;
8113
+ VALUE vresult = Qnil;
8114
+
8115
+ arg2 = &temp2;
8116
+ arg3 = &temp3;
8117
+ arg4 = &temp4;
8118
+ arg5 = &temp5;
8119
+ arg6 = &temp6;
8120
+ arg7 = &temp7;
8121
+ arg8 = &temp8;
8122
+ arg9 = &temp9;
8123
+ arg10 = &temp10;
8124
+ arg11 = &temp11;
8125
+ arg12 = &temp12;
8126
+ if ((argc < 9) || (argc > 9)) {
8127
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
8128
+ }
8129
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
8130
+ if (!SWIG_IsOK(res1)) {
8131
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getTracingDecision", 1, self ));
8132
+ }
8133
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
8134
+ res13 = SWIG_AsCharPtrAndSize(argv[0], &buf13, NULL, &alloc13);
8135
+ if (!SWIG_IsOK(res13)) {
8136
+ SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 13, argv[0] ));
8137
+ }
8138
+ arg13 = reinterpret_cast< char * >(buf13);
8139
+ res14 = SWIG_AsCharPtrAndSize(argv[1], &buf14, NULL, &alloc14);
8140
+ if (!SWIG_IsOK(res14)) {
8141
+ SWIG_exception_fail(SWIG_ArgError(res14), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 14, argv[1] ));
8142
+ }
8143
+ arg14 = reinterpret_cast< char * >(buf14);
8144
+ ecode15 = SWIG_AsVal_int(argv[2], &val15);
8145
+ if (!SWIG_IsOK(ecode15)) {
8146
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","getTracingDecision", 15, argv[2] ));
8147
+ }
8148
+ arg15 = static_cast< int >(val15);
8149
+ ecode16 = SWIG_AsVal_int(argv[3], &val16);
8150
+ if (!SWIG_IsOK(ecode16)) {
8151
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","getTracingDecision", 16, argv[3] ));
8152
+ }
8153
+ arg16 = static_cast< int >(val16);
8154
+ ecode17 = SWIG_AsVal_int(argv[4], &val17);
8155
+ if (!SWIG_IsOK(ecode17)) {
8156
+ SWIG_exception_fail(SWIG_ArgError(ecode17), Ruby_Format_TypeError( "", "int","getTracingDecision", 17, argv[4] ));
8157
+ }
8158
+ arg17 = static_cast< int >(val17);
8159
+ ecode18 = SWIG_AsVal_int(argv[5], &val18);
8160
+ if (!SWIG_IsOK(ecode18)) {
8161
+ SWIG_exception_fail(SWIG_ArgError(ecode18), Ruby_Format_TypeError( "", "int","getTracingDecision", 18, argv[5] ));
8162
+ }
8163
+ arg18 = static_cast< int >(val18);
8164
+ res19 = SWIG_AsCharPtrAndSize(argv[6], &buf19, NULL, &alloc19);
8165
+ if (!SWIG_IsOK(res19)) {
8166
+ SWIG_exception_fail(SWIG_ArgError(res19), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 19, argv[6] ));
8167
+ }
8168
+ arg19 = reinterpret_cast< char * >(buf19);
8169
+ res20 = SWIG_AsCharPtrAndSize(argv[7], &buf20, NULL, &alloc20);
8170
+ if (!SWIG_IsOK(res20)) {
8171
+ SWIG_exception_fail(SWIG_ArgError(res20), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 20, argv[7] ));
8172
+ }
8173
+ arg20 = reinterpret_cast< char * >(buf20);
8174
+ ecode21 = SWIG_AsVal_long(argv[8], &val21);
8175
+ if (!SWIG_IsOK(ecode21)) {
8176
+ SWIG_exception_fail(SWIG_ArgError(ecode21), Ruby_Format_TypeError( "", "long","getTracingDecision", 21, argv[8] ));
8177
+ }
8178
+ arg21 = static_cast< long >(val21);
8179
+ (arg1)->getTracingDecision(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,(char const *)arg13,(char const *)arg14,arg15,arg16,arg17,arg18,(char const *)arg19,(char const *)arg20,arg21);
8180
+ vresult = rb_ary_new();
8181
+ if (SWIG_IsTmpObj(res2)) {
8182
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
8183
+ } else {
8184
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8185
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8186
+ }
8187
+ if (SWIG_IsTmpObj(res3)) {
8188
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
8189
+ } else {
8190
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8191
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8192
+ }
8193
+ if (SWIG_IsTmpObj(res4)) {
8194
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
8195
+ } else {
8196
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8197
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
8198
+ }
8199
+ if (SWIG_IsTmpObj(res5)) {
8200
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
8201
+ } else {
8202
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8203
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
8204
+ }
8205
+ if (SWIG_IsTmpObj(res6)) {
8206
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
8207
+ } else {
8208
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8209
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
8210
+ }
8211
+ if (SWIG_IsTmpObj(res7)) {
8212
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
8213
+ } else {
8214
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8215
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
8216
+ }
8217
+ if (SWIG_IsTmpObj(res8)) {
8218
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
8219
+ } else {
8220
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8221
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
8222
+ }
8223
+ if (SWIG_IsTmpObj(res9)) {
8224
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
8225
+ } else {
8226
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8227
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
8228
+ }
8229
+ if (SWIG_IsTmpObj(res10)) {
8230
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
8231
+ } else {
8232
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8233
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
8234
+ }
8235
+ if (SWIG_IsTmpObj(res11)) {
8236
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg11)));
8237
+ } else {
8238
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8239
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_std__string, new_flags));
8240
+ }
8241
+ if (SWIG_IsTmpObj(res12)) {
8242
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg12)));
8243
+ } else {
8244
+ int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8245
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_int, new_flags));
8246
+ }
8247
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
8248
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
8249
+ if (alloc19 == SWIG_NEWOBJ) delete[] buf19;
8250
+ if (alloc20 == SWIG_NEWOBJ) delete[] buf20;
8251
+ return vresult;
8252
+ fail:
8253
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
8254
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
8255
+ if (alloc19 == SWIG_NEWOBJ) delete[] buf19;
8256
+ if (alloc20 == SWIG_NEWOBJ) delete[] buf20;
8257
+ return Qnil;
8258
+ }
8259
+
8260
+
8261
+ SWIGINTERN VALUE
8262
+ _wrap_OboeAPI_getTracingDecision__SWIG_1(int argc, VALUE *argv, VALUE self) {
8263
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
8264
+ int *arg2 = (int *) 0 ;
8265
+ int *arg3 = (int *) 0 ;
8266
+ int *arg4 = (int *) 0 ;
8267
+ int *arg5 = (int *) 0 ;
8268
+ double *arg6 = (double *) 0 ;
8269
+ double *arg7 = (double *) 0 ;
8270
+ int *arg8 = (int *) 0 ;
8271
+ int *arg9 = (int *) 0 ;
8272
+ std::string *arg10 = (std::string *) 0 ;
8273
+ std::string *arg11 = (std::string *) 0 ;
8274
+ int *arg12 = (int *) 0 ;
8275
+ char *arg13 = (char *) 0 ;
8276
+ char *arg14 = (char *) 0 ;
8277
+ int arg15 ;
8278
+ int arg16 ;
8279
+ int arg17 ;
8280
+ int arg18 ;
8281
+ char *arg19 = (char *) 0 ;
8282
+ char *arg20 = (char *) 0 ;
8283
+ void *argp1 = 0 ;
8284
+ int res1 = 0 ;
8285
+ int temp2 ;
8286
+ int res2 = SWIG_TMPOBJ ;
8287
+ int temp3 ;
8288
+ int res3 = SWIG_TMPOBJ ;
8289
+ int temp4 ;
8290
+ int res4 = SWIG_TMPOBJ ;
8291
+ int temp5 ;
8292
+ int res5 = SWIG_TMPOBJ ;
8293
+ double temp6 ;
8294
+ int res6 = SWIG_TMPOBJ ;
8295
+ double temp7 ;
8296
+ int res7 = SWIG_TMPOBJ ;
8297
+ int temp8 ;
8298
+ int res8 = SWIG_TMPOBJ ;
8299
+ int temp9 ;
8300
+ int res9 = SWIG_TMPOBJ ;
8301
+ std::string temp10 ;
8302
+ int res10 = SWIG_TMPOBJ ;
8303
+ std::string temp11 ;
8304
+ int res11 = SWIG_TMPOBJ ;
8305
+ int temp12 ;
8306
+ int res12 = SWIG_TMPOBJ ;
8307
+ int res13 ;
8308
+ char *buf13 = 0 ;
8309
+ int alloc13 = 0 ;
8310
+ int res14 ;
8311
+ char *buf14 = 0 ;
8312
+ int alloc14 = 0 ;
8313
+ int val15 ;
8314
+ int ecode15 = 0 ;
8315
+ int val16 ;
8316
+ int ecode16 = 0 ;
8317
+ int val17 ;
8318
+ int ecode17 = 0 ;
8319
+ int val18 ;
8320
+ int ecode18 = 0 ;
8321
+ int res19 ;
8322
+ char *buf19 = 0 ;
8323
+ int alloc19 = 0 ;
8324
+ int res20 ;
8325
+ char *buf20 = 0 ;
8326
+ int alloc20 = 0 ;
8327
+ VALUE vresult = Qnil;
8328
+
8329
+ arg2 = &temp2;
8330
+ arg3 = &temp3;
8331
+ arg4 = &temp4;
8332
+ arg5 = &temp5;
8333
+ arg6 = &temp6;
8334
+ arg7 = &temp7;
8335
+ arg8 = &temp8;
8336
+ arg9 = &temp9;
8337
+ arg10 = &temp10;
8338
+ arg11 = &temp11;
8339
+ arg12 = &temp12;
8340
+ if ((argc < 8) || (argc > 8)) {
8341
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
8342
+ }
8343
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
8344
+ if (!SWIG_IsOK(res1)) {
8345
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getTracingDecision", 1, self ));
8346
+ }
8347
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
8348
+ res13 = SWIG_AsCharPtrAndSize(argv[0], &buf13, NULL, &alloc13);
8349
+ if (!SWIG_IsOK(res13)) {
8350
+ SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 13, argv[0] ));
8351
+ }
8352
+ arg13 = reinterpret_cast< char * >(buf13);
8353
+ res14 = SWIG_AsCharPtrAndSize(argv[1], &buf14, NULL, &alloc14);
8354
+ if (!SWIG_IsOK(res14)) {
8355
+ SWIG_exception_fail(SWIG_ArgError(res14), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 14, argv[1] ));
8356
+ }
8357
+ arg14 = reinterpret_cast< char * >(buf14);
8358
+ ecode15 = SWIG_AsVal_int(argv[2], &val15);
8359
+ if (!SWIG_IsOK(ecode15)) {
8360
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","getTracingDecision", 15, argv[2] ));
8361
+ }
8362
+ arg15 = static_cast< int >(val15);
8363
+ ecode16 = SWIG_AsVal_int(argv[3], &val16);
8364
+ if (!SWIG_IsOK(ecode16)) {
8365
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","getTracingDecision", 16, argv[3] ));
8366
+ }
8367
+ arg16 = static_cast< int >(val16);
8368
+ ecode17 = SWIG_AsVal_int(argv[4], &val17);
8369
+ if (!SWIG_IsOK(ecode17)) {
8370
+ SWIG_exception_fail(SWIG_ArgError(ecode17), Ruby_Format_TypeError( "", "int","getTracingDecision", 17, argv[4] ));
8371
+ }
8372
+ arg17 = static_cast< int >(val17);
8373
+ ecode18 = SWIG_AsVal_int(argv[5], &val18);
8374
+ if (!SWIG_IsOK(ecode18)) {
8375
+ SWIG_exception_fail(SWIG_ArgError(ecode18), Ruby_Format_TypeError( "", "int","getTracingDecision", 18, argv[5] ));
8376
+ }
8377
+ arg18 = static_cast< int >(val18);
8378
+ res19 = SWIG_AsCharPtrAndSize(argv[6], &buf19, NULL, &alloc19);
8379
+ if (!SWIG_IsOK(res19)) {
8380
+ SWIG_exception_fail(SWIG_ArgError(res19), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 19, argv[6] ));
8381
+ }
8382
+ arg19 = reinterpret_cast< char * >(buf19);
8383
+ res20 = SWIG_AsCharPtrAndSize(argv[7], &buf20, NULL, &alloc20);
8384
+ if (!SWIG_IsOK(res20)) {
8385
+ SWIG_exception_fail(SWIG_ArgError(res20), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 20, argv[7] ));
8386
+ }
8387
+ arg20 = reinterpret_cast< char * >(buf20);
8388
+ (arg1)->getTracingDecision(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,(char const *)arg13,(char const *)arg14,arg15,arg16,arg17,arg18,(char const *)arg19,(char const *)arg20);
8389
+ vresult = rb_ary_new();
8390
+ if (SWIG_IsTmpObj(res2)) {
8391
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
8392
+ } else {
8393
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8394
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8395
+ }
8396
+ if (SWIG_IsTmpObj(res3)) {
8397
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
8398
+ } else {
8399
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8400
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8401
+ }
8402
+ if (SWIG_IsTmpObj(res4)) {
8403
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
8404
+ } else {
8405
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8406
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
8407
+ }
8408
+ if (SWIG_IsTmpObj(res5)) {
8409
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
8410
+ } else {
8411
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8412
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
8413
+ }
8414
+ if (SWIG_IsTmpObj(res6)) {
8415
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
8416
+ } else {
8417
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8418
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
8419
+ }
8420
+ if (SWIG_IsTmpObj(res7)) {
8421
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
8422
+ } else {
8423
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8424
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
8425
+ }
8426
+ if (SWIG_IsTmpObj(res8)) {
8427
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
8428
+ } else {
8429
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8430
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
8431
+ }
8432
+ if (SWIG_IsTmpObj(res9)) {
8433
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
8434
+ } else {
8435
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8436
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
8437
+ }
8438
+ if (SWIG_IsTmpObj(res10)) {
8439
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
8440
+ } else {
8441
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8442
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
8443
+ }
8444
+ if (SWIG_IsTmpObj(res11)) {
8445
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg11)));
8446
+ } else {
8447
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8448
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_std__string, new_flags));
8449
+ }
8450
+ if (SWIG_IsTmpObj(res12)) {
8451
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg12)));
8452
+ } else {
8453
+ int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8454
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_int, new_flags));
8455
+ }
8456
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
8457
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
8458
+ if (alloc19 == SWIG_NEWOBJ) delete[] buf19;
8459
+ if (alloc20 == SWIG_NEWOBJ) delete[] buf20;
8460
+ return vresult;
8461
+ fail:
8462
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
8463
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
8464
+ if (alloc19 == SWIG_NEWOBJ) delete[] buf19;
8465
+ if (alloc20 == SWIG_NEWOBJ) delete[] buf20;
8466
+ return Qnil;
8467
+ }
8468
+
8469
+
8470
+ SWIGINTERN VALUE
8471
+ _wrap_OboeAPI_getTracingDecision__SWIG_2(int argc, VALUE *argv, VALUE self) {
8472
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
8473
+ int *arg2 = (int *) 0 ;
8474
+ int *arg3 = (int *) 0 ;
8475
+ int *arg4 = (int *) 0 ;
8476
+ int *arg5 = (int *) 0 ;
8477
+ double *arg6 = (double *) 0 ;
8478
+ double *arg7 = (double *) 0 ;
8479
+ int *arg8 = (int *) 0 ;
8480
+ int *arg9 = (int *) 0 ;
8481
+ std::string *arg10 = (std::string *) 0 ;
8482
+ std::string *arg11 = (std::string *) 0 ;
8483
+ int *arg12 = (int *) 0 ;
8484
+ char *arg13 = (char *) 0 ;
8485
+ char *arg14 = (char *) 0 ;
8486
+ int arg15 ;
8487
+ int arg16 ;
8488
+ int arg17 ;
8489
+ int arg18 ;
8490
+ char *arg19 = (char *) 0 ;
8491
+ void *argp1 = 0 ;
8492
+ int res1 = 0 ;
8493
+ int temp2 ;
8494
+ int res2 = SWIG_TMPOBJ ;
8495
+ int temp3 ;
8496
+ int res3 = SWIG_TMPOBJ ;
8497
+ int temp4 ;
8498
+ int res4 = SWIG_TMPOBJ ;
8499
+ int temp5 ;
8500
+ int res5 = SWIG_TMPOBJ ;
8501
+ double temp6 ;
8502
+ int res6 = SWIG_TMPOBJ ;
8503
+ double temp7 ;
8504
+ int res7 = SWIG_TMPOBJ ;
8505
+ int temp8 ;
8506
+ int res8 = SWIG_TMPOBJ ;
8507
+ int temp9 ;
8508
+ int res9 = SWIG_TMPOBJ ;
8509
+ std::string temp10 ;
8510
+ int res10 = SWIG_TMPOBJ ;
8511
+ std::string temp11 ;
8512
+ int res11 = SWIG_TMPOBJ ;
8513
+ int temp12 ;
8514
+ int res12 = SWIG_TMPOBJ ;
8515
+ int res13 ;
8516
+ char *buf13 = 0 ;
8517
+ int alloc13 = 0 ;
8518
+ int res14 ;
8519
+ char *buf14 = 0 ;
8520
+ int alloc14 = 0 ;
8521
+ int val15 ;
8522
+ int ecode15 = 0 ;
8523
+ int val16 ;
8524
+ int ecode16 = 0 ;
8525
+ int val17 ;
8526
+ int ecode17 = 0 ;
8527
+ int val18 ;
8528
+ int ecode18 = 0 ;
8529
+ int res19 ;
8530
+ char *buf19 = 0 ;
8531
+ int alloc19 = 0 ;
8532
+ VALUE vresult = Qnil;
8533
+
8534
+ arg2 = &temp2;
8535
+ arg3 = &temp3;
8536
+ arg4 = &temp4;
8537
+ arg5 = &temp5;
8538
+ arg6 = &temp6;
8539
+ arg7 = &temp7;
8540
+ arg8 = &temp8;
8541
+ arg9 = &temp9;
8542
+ arg10 = &temp10;
8543
+ arg11 = &temp11;
8544
+ arg12 = &temp12;
8545
+ if ((argc < 7) || (argc > 7)) {
8546
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
8547
+ }
8548
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
8549
+ if (!SWIG_IsOK(res1)) {
8550
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getTracingDecision", 1, self ));
8551
+ }
8552
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
8553
+ res13 = SWIG_AsCharPtrAndSize(argv[0], &buf13, NULL, &alloc13);
8554
+ if (!SWIG_IsOK(res13)) {
8555
+ SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 13, argv[0] ));
8556
+ }
8557
+ arg13 = reinterpret_cast< char * >(buf13);
8558
+ res14 = SWIG_AsCharPtrAndSize(argv[1], &buf14, NULL, &alloc14);
8559
+ if (!SWIG_IsOK(res14)) {
8560
+ SWIG_exception_fail(SWIG_ArgError(res14), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 14, argv[1] ));
8561
+ }
8562
+ arg14 = reinterpret_cast< char * >(buf14);
8563
+ ecode15 = SWIG_AsVal_int(argv[2], &val15);
8564
+ if (!SWIG_IsOK(ecode15)) {
8565
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","getTracingDecision", 15, argv[2] ));
8566
+ }
8567
+ arg15 = static_cast< int >(val15);
8568
+ ecode16 = SWIG_AsVal_int(argv[3], &val16);
8569
+ if (!SWIG_IsOK(ecode16)) {
8570
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","getTracingDecision", 16, argv[3] ));
8571
+ }
8572
+ arg16 = static_cast< int >(val16);
8573
+ ecode17 = SWIG_AsVal_int(argv[4], &val17);
8574
+ if (!SWIG_IsOK(ecode17)) {
8575
+ SWIG_exception_fail(SWIG_ArgError(ecode17), Ruby_Format_TypeError( "", "int","getTracingDecision", 17, argv[4] ));
8576
+ }
8577
+ arg17 = static_cast< int >(val17);
8578
+ ecode18 = SWIG_AsVal_int(argv[5], &val18);
8579
+ if (!SWIG_IsOK(ecode18)) {
8580
+ SWIG_exception_fail(SWIG_ArgError(ecode18), Ruby_Format_TypeError( "", "int","getTracingDecision", 18, argv[5] ));
8581
+ }
8582
+ arg18 = static_cast< int >(val18);
8583
+ res19 = SWIG_AsCharPtrAndSize(argv[6], &buf19, NULL, &alloc19);
8584
+ if (!SWIG_IsOK(res19)) {
8585
+ SWIG_exception_fail(SWIG_ArgError(res19), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 19, argv[6] ));
8586
+ }
8587
+ arg19 = reinterpret_cast< char * >(buf19);
8588
+ (arg1)->getTracingDecision(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,(char const *)arg13,(char const *)arg14,arg15,arg16,arg17,arg18,(char const *)arg19);
8589
+ vresult = rb_ary_new();
8590
+ if (SWIG_IsTmpObj(res2)) {
8591
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
8592
+ } else {
8593
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8594
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8595
+ }
8596
+ if (SWIG_IsTmpObj(res3)) {
8597
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
8598
+ } else {
8599
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8600
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8601
+ }
8602
+ if (SWIG_IsTmpObj(res4)) {
8603
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
8604
+ } else {
8605
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8606
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
8607
+ }
8608
+ if (SWIG_IsTmpObj(res5)) {
8609
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
8610
+ } else {
8611
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8612
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
8613
+ }
8614
+ if (SWIG_IsTmpObj(res6)) {
8615
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
8616
+ } else {
8617
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8618
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
8619
+ }
8620
+ if (SWIG_IsTmpObj(res7)) {
8621
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
8622
+ } else {
8623
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8624
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
8625
+ }
8626
+ if (SWIG_IsTmpObj(res8)) {
8627
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
8628
+ } else {
8629
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8630
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
8631
+ }
8632
+ if (SWIG_IsTmpObj(res9)) {
8633
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
8634
+ } else {
8635
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8636
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
8637
+ }
8638
+ if (SWIG_IsTmpObj(res10)) {
8639
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
8640
+ } else {
8641
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8642
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
8643
+ }
8644
+ if (SWIG_IsTmpObj(res11)) {
8645
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg11)));
8646
+ } else {
8647
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8648
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_std__string, new_flags));
8649
+ }
8650
+ if (SWIG_IsTmpObj(res12)) {
8651
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg12)));
8652
+ } else {
8653
+ int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8654
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_int, new_flags));
8655
+ }
8656
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
8657
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
8658
+ if (alloc19 == SWIG_NEWOBJ) delete[] buf19;
8659
+ return vresult;
8660
+ fail:
8661
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
8662
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
8663
+ if (alloc19 == SWIG_NEWOBJ) delete[] buf19;
8664
+ return Qnil;
8665
+ }
8666
+
8667
+
8668
+ SWIGINTERN VALUE
8669
+ _wrap_OboeAPI_getTracingDecision__SWIG_3(int argc, VALUE *argv, VALUE self) {
8670
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
8671
+ int *arg2 = (int *) 0 ;
8672
+ int *arg3 = (int *) 0 ;
8673
+ int *arg4 = (int *) 0 ;
8674
+ int *arg5 = (int *) 0 ;
8675
+ double *arg6 = (double *) 0 ;
8676
+ double *arg7 = (double *) 0 ;
8677
+ int *arg8 = (int *) 0 ;
8678
+ int *arg9 = (int *) 0 ;
8679
+ std::string *arg10 = (std::string *) 0 ;
8680
+ std::string *arg11 = (std::string *) 0 ;
8681
+ int *arg12 = (int *) 0 ;
8682
+ char *arg13 = (char *) 0 ;
8683
+ char *arg14 = (char *) 0 ;
8684
+ int arg15 ;
8685
+ int arg16 ;
8686
+ int arg17 ;
8687
+ int arg18 ;
8688
+ void *argp1 = 0 ;
8689
+ int res1 = 0 ;
8690
+ int temp2 ;
8691
+ int res2 = SWIG_TMPOBJ ;
8692
+ int temp3 ;
8693
+ int res3 = SWIG_TMPOBJ ;
8694
+ int temp4 ;
8695
+ int res4 = SWIG_TMPOBJ ;
8696
+ int temp5 ;
8697
+ int res5 = SWIG_TMPOBJ ;
8698
+ double temp6 ;
8699
+ int res6 = SWIG_TMPOBJ ;
8700
+ double temp7 ;
8701
+ int res7 = SWIG_TMPOBJ ;
8702
+ int temp8 ;
8703
+ int res8 = SWIG_TMPOBJ ;
8704
+ int temp9 ;
8705
+ int res9 = SWIG_TMPOBJ ;
8706
+ std::string temp10 ;
8707
+ int res10 = SWIG_TMPOBJ ;
8708
+ std::string temp11 ;
8709
+ int res11 = SWIG_TMPOBJ ;
8710
+ int temp12 ;
8711
+ int res12 = SWIG_TMPOBJ ;
8712
+ int res13 ;
8713
+ char *buf13 = 0 ;
8714
+ int alloc13 = 0 ;
8715
+ int res14 ;
8716
+ char *buf14 = 0 ;
8717
+ int alloc14 = 0 ;
8718
+ int val15 ;
8719
+ int ecode15 = 0 ;
8720
+ int val16 ;
8721
+ int ecode16 = 0 ;
8722
+ int val17 ;
8723
+ int ecode17 = 0 ;
8724
+ int val18 ;
8725
+ int ecode18 = 0 ;
8726
+ VALUE vresult = Qnil;
8727
+
8728
+ arg2 = &temp2;
8729
+ arg3 = &temp3;
8730
+ arg4 = &temp4;
8731
+ arg5 = &temp5;
8732
+ arg6 = &temp6;
8733
+ arg7 = &temp7;
8734
+ arg8 = &temp8;
8735
+ arg9 = &temp9;
8736
+ arg10 = &temp10;
8737
+ arg11 = &temp11;
8738
+ arg12 = &temp12;
8739
+ if ((argc < 6) || (argc > 6)) {
8740
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
8741
+ }
8742
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
8743
+ if (!SWIG_IsOK(res1)) {
8744
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getTracingDecision", 1, self ));
8745
+ }
8746
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
8747
+ res13 = SWIG_AsCharPtrAndSize(argv[0], &buf13, NULL, &alloc13);
8748
+ if (!SWIG_IsOK(res13)) {
8749
+ SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 13, argv[0] ));
8750
+ }
8751
+ arg13 = reinterpret_cast< char * >(buf13);
8752
+ res14 = SWIG_AsCharPtrAndSize(argv[1], &buf14, NULL, &alloc14);
8753
+ if (!SWIG_IsOK(res14)) {
8754
+ SWIG_exception_fail(SWIG_ArgError(res14), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 14, argv[1] ));
8755
+ }
8756
+ arg14 = reinterpret_cast< char * >(buf14);
8757
+ ecode15 = SWIG_AsVal_int(argv[2], &val15);
8758
+ if (!SWIG_IsOK(ecode15)) {
8759
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","getTracingDecision", 15, argv[2] ));
8760
+ }
8761
+ arg15 = static_cast< int >(val15);
8762
+ ecode16 = SWIG_AsVal_int(argv[3], &val16);
8763
+ if (!SWIG_IsOK(ecode16)) {
8764
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","getTracingDecision", 16, argv[3] ));
8765
+ }
8766
+ arg16 = static_cast< int >(val16);
8767
+ ecode17 = SWIG_AsVal_int(argv[4], &val17);
8768
+ if (!SWIG_IsOK(ecode17)) {
8769
+ SWIG_exception_fail(SWIG_ArgError(ecode17), Ruby_Format_TypeError( "", "int","getTracingDecision", 17, argv[4] ));
8770
+ }
8771
+ arg17 = static_cast< int >(val17);
8772
+ ecode18 = SWIG_AsVal_int(argv[5], &val18);
8773
+ if (!SWIG_IsOK(ecode18)) {
8774
+ SWIG_exception_fail(SWIG_ArgError(ecode18), Ruby_Format_TypeError( "", "int","getTracingDecision", 18, argv[5] ));
8775
+ }
8776
+ arg18 = static_cast< int >(val18);
8777
+ (arg1)->getTracingDecision(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,(char const *)arg13,(char const *)arg14,arg15,arg16,arg17,arg18);
8778
+ vresult = rb_ary_new();
8779
+ if (SWIG_IsTmpObj(res2)) {
8780
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
8781
+ } else {
8782
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8783
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8784
+ }
8785
+ if (SWIG_IsTmpObj(res3)) {
8786
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
8787
+ } else {
8788
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8789
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8790
+ }
8791
+ if (SWIG_IsTmpObj(res4)) {
8792
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
8793
+ } else {
8794
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8795
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
8796
+ }
8797
+ if (SWIG_IsTmpObj(res5)) {
8798
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
8799
+ } else {
8800
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8801
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
8802
+ }
8803
+ if (SWIG_IsTmpObj(res6)) {
8804
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
8805
+ } else {
8806
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8807
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
8808
+ }
8809
+ if (SWIG_IsTmpObj(res7)) {
8810
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
8811
+ } else {
8812
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8813
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
8814
+ }
8815
+ if (SWIG_IsTmpObj(res8)) {
8816
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
8817
+ } else {
8818
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8819
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
8820
+ }
8821
+ if (SWIG_IsTmpObj(res9)) {
8822
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
8823
+ } else {
8824
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8825
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
8826
+ }
8827
+ if (SWIG_IsTmpObj(res10)) {
8828
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
8829
+ } else {
8830
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8831
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
8832
+ }
8833
+ if (SWIG_IsTmpObj(res11)) {
8834
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg11)));
8835
+ } else {
8836
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8837
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_std__string, new_flags));
8838
+ }
8839
+ if (SWIG_IsTmpObj(res12)) {
8840
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg12)));
8841
+ } else {
8842
+ int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8843
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_int, new_flags));
8844
+ }
8845
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
8846
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
8847
+ return vresult;
8848
+ fail:
8849
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
8850
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
8851
+ return Qnil;
8852
+ }
8853
+
8854
+
8855
+ SWIGINTERN VALUE
8856
+ _wrap_OboeAPI_getTracingDecision__SWIG_4(int argc, VALUE *argv, VALUE self) {
8857
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
8858
+ int *arg2 = (int *) 0 ;
8859
+ int *arg3 = (int *) 0 ;
8860
+ int *arg4 = (int *) 0 ;
8861
+ int *arg5 = (int *) 0 ;
8862
+ double *arg6 = (double *) 0 ;
8863
+ double *arg7 = (double *) 0 ;
8864
+ int *arg8 = (int *) 0 ;
8865
+ int *arg9 = (int *) 0 ;
8866
+ std::string *arg10 = (std::string *) 0 ;
8867
+ std::string *arg11 = (std::string *) 0 ;
8868
+ int *arg12 = (int *) 0 ;
8869
+ char *arg13 = (char *) 0 ;
8870
+ char *arg14 = (char *) 0 ;
8871
+ int arg15 ;
8872
+ int arg16 ;
8873
+ int arg17 ;
8874
+ void *argp1 = 0 ;
8875
+ int res1 = 0 ;
8876
+ int temp2 ;
8877
+ int res2 = SWIG_TMPOBJ ;
8878
+ int temp3 ;
8879
+ int res3 = SWIG_TMPOBJ ;
8880
+ int temp4 ;
8881
+ int res4 = SWIG_TMPOBJ ;
8882
+ int temp5 ;
8883
+ int res5 = SWIG_TMPOBJ ;
8884
+ double temp6 ;
8885
+ int res6 = SWIG_TMPOBJ ;
8886
+ double temp7 ;
8887
+ int res7 = SWIG_TMPOBJ ;
8888
+ int temp8 ;
8889
+ int res8 = SWIG_TMPOBJ ;
8890
+ int temp9 ;
8891
+ int res9 = SWIG_TMPOBJ ;
8892
+ std::string temp10 ;
8893
+ int res10 = SWIG_TMPOBJ ;
8894
+ std::string temp11 ;
8895
+ int res11 = SWIG_TMPOBJ ;
8896
+ int temp12 ;
8897
+ int res12 = SWIG_TMPOBJ ;
8898
+ int res13 ;
8899
+ char *buf13 = 0 ;
8900
+ int alloc13 = 0 ;
8901
+ int res14 ;
8902
+ char *buf14 = 0 ;
8903
+ int alloc14 = 0 ;
8904
+ int val15 ;
8905
+ int ecode15 = 0 ;
8906
+ int val16 ;
8907
+ int ecode16 = 0 ;
8908
+ int val17 ;
8909
+ int ecode17 = 0 ;
8910
+ VALUE vresult = Qnil;
8911
+
8912
+ arg2 = &temp2;
8913
+ arg3 = &temp3;
8914
+ arg4 = &temp4;
8915
+ arg5 = &temp5;
8916
+ arg6 = &temp6;
8917
+ arg7 = &temp7;
8918
+ arg8 = &temp8;
8919
+ arg9 = &temp9;
8920
+ arg10 = &temp10;
8921
+ arg11 = &temp11;
8922
+ arg12 = &temp12;
8923
+ if ((argc < 5) || (argc > 5)) {
8924
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
8925
+ }
8926
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
8927
+ if (!SWIG_IsOK(res1)) {
8928
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getTracingDecision", 1, self ));
8929
+ }
8930
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
8931
+ res13 = SWIG_AsCharPtrAndSize(argv[0], &buf13, NULL, &alloc13);
8932
+ if (!SWIG_IsOK(res13)) {
8933
+ SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 13, argv[0] ));
8934
+ }
8935
+ arg13 = reinterpret_cast< char * >(buf13);
8936
+ res14 = SWIG_AsCharPtrAndSize(argv[1], &buf14, NULL, &alloc14);
8937
+ if (!SWIG_IsOK(res14)) {
8938
+ SWIG_exception_fail(SWIG_ArgError(res14), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 14, argv[1] ));
8939
+ }
8940
+ arg14 = reinterpret_cast< char * >(buf14);
8941
+ ecode15 = SWIG_AsVal_int(argv[2], &val15);
8942
+ if (!SWIG_IsOK(ecode15)) {
8943
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","getTracingDecision", 15, argv[2] ));
8944
+ }
8945
+ arg15 = static_cast< int >(val15);
8946
+ ecode16 = SWIG_AsVal_int(argv[3], &val16);
8947
+ if (!SWIG_IsOK(ecode16)) {
8948
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","getTracingDecision", 16, argv[3] ));
8949
+ }
8950
+ arg16 = static_cast< int >(val16);
8951
+ ecode17 = SWIG_AsVal_int(argv[4], &val17);
8952
+ if (!SWIG_IsOK(ecode17)) {
8953
+ SWIG_exception_fail(SWIG_ArgError(ecode17), Ruby_Format_TypeError( "", "int","getTracingDecision", 17, argv[4] ));
8954
+ }
8955
+ arg17 = static_cast< int >(val17);
8956
+ (arg1)->getTracingDecision(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,(char const *)arg13,(char const *)arg14,arg15,arg16,arg17);
8957
+ vresult = rb_ary_new();
8958
+ if (SWIG_IsTmpObj(res2)) {
8959
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
8960
+ } else {
8961
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8962
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
8963
+ }
8964
+ if (SWIG_IsTmpObj(res3)) {
8965
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
8966
+ } else {
8967
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8968
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
8969
+ }
8970
+ if (SWIG_IsTmpObj(res4)) {
8971
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
8972
+ } else {
8973
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8974
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
8975
+ }
8976
+ if (SWIG_IsTmpObj(res5)) {
8977
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
8978
+ } else {
8979
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8980
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
8981
+ }
8982
+ if (SWIG_IsTmpObj(res6)) {
8983
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
8984
+ } else {
8985
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8986
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
8987
+ }
8988
+ if (SWIG_IsTmpObj(res7)) {
8989
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
8990
+ } else {
8991
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8992
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
8993
+ }
8994
+ if (SWIG_IsTmpObj(res8)) {
8995
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
8996
+ } else {
8997
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
8998
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
8999
+ }
9000
+ if (SWIG_IsTmpObj(res9)) {
9001
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
9002
+ } else {
9003
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9004
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
9005
+ }
9006
+ if (SWIG_IsTmpObj(res10)) {
9007
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
9008
+ } else {
9009
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9010
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
9011
+ }
9012
+ if (SWIG_IsTmpObj(res11)) {
9013
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg11)));
9014
+ } else {
9015
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9016
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_std__string, new_flags));
9017
+ }
9018
+ if (SWIG_IsTmpObj(res12)) {
9019
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg12)));
9020
+ } else {
9021
+ int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9022
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_int, new_flags));
9023
+ }
9024
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
9025
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
9026
+ return vresult;
9027
+ fail:
9028
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
9029
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
9030
+ return Qnil;
9031
+ }
9032
+
9033
+
9034
+ SWIGINTERN VALUE
9035
+ _wrap_OboeAPI_getTracingDecision__SWIG_5(int argc, VALUE *argv, VALUE self) {
9036
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
9037
+ int *arg2 = (int *) 0 ;
9038
+ int *arg3 = (int *) 0 ;
9039
+ int *arg4 = (int *) 0 ;
9040
+ int *arg5 = (int *) 0 ;
9041
+ double *arg6 = (double *) 0 ;
9042
+ double *arg7 = (double *) 0 ;
9043
+ int *arg8 = (int *) 0 ;
9044
+ int *arg9 = (int *) 0 ;
9045
+ std::string *arg10 = (std::string *) 0 ;
9046
+ std::string *arg11 = (std::string *) 0 ;
9047
+ int *arg12 = (int *) 0 ;
9048
+ char *arg13 = (char *) 0 ;
9049
+ char *arg14 = (char *) 0 ;
9050
+ int arg15 ;
9051
+ int arg16 ;
9052
+ void *argp1 = 0 ;
9053
+ int res1 = 0 ;
9054
+ int temp2 ;
9055
+ int res2 = SWIG_TMPOBJ ;
9056
+ int temp3 ;
9057
+ int res3 = SWIG_TMPOBJ ;
9058
+ int temp4 ;
9059
+ int res4 = SWIG_TMPOBJ ;
9060
+ int temp5 ;
9061
+ int res5 = SWIG_TMPOBJ ;
9062
+ double temp6 ;
9063
+ int res6 = SWIG_TMPOBJ ;
9064
+ double temp7 ;
9065
+ int res7 = SWIG_TMPOBJ ;
9066
+ int temp8 ;
9067
+ int res8 = SWIG_TMPOBJ ;
9068
+ int temp9 ;
9069
+ int res9 = SWIG_TMPOBJ ;
9070
+ std::string temp10 ;
9071
+ int res10 = SWIG_TMPOBJ ;
9072
+ std::string temp11 ;
9073
+ int res11 = SWIG_TMPOBJ ;
9074
+ int temp12 ;
9075
+ int res12 = SWIG_TMPOBJ ;
9076
+ int res13 ;
9077
+ char *buf13 = 0 ;
9078
+ int alloc13 = 0 ;
9079
+ int res14 ;
9080
+ char *buf14 = 0 ;
9081
+ int alloc14 = 0 ;
9082
+ int val15 ;
9083
+ int ecode15 = 0 ;
9084
+ int val16 ;
9085
+ int ecode16 = 0 ;
9086
+ VALUE vresult = Qnil;
9087
+
9088
+ arg2 = &temp2;
9089
+ arg3 = &temp3;
9090
+ arg4 = &temp4;
9091
+ arg5 = &temp5;
9092
+ arg6 = &temp6;
9093
+ arg7 = &temp7;
9094
+ arg8 = &temp8;
9095
+ arg9 = &temp9;
9096
+ arg10 = &temp10;
9097
+ arg11 = &temp11;
9098
+ arg12 = &temp12;
9099
+ if ((argc < 4) || (argc > 4)) {
9100
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
9101
+ }
9102
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
9103
+ if (!SWIG_IsOK(res1)) {
9104
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getTracingDecision", 1, self ));
9105
+ }
9106
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
9107
+ res13 = SWIG_AsCharPtrAndSize(argv[0], &buf13, NULL, &alloc13);
9108
+ if (!SWIG_IsOK(res13)) {
9109
+ SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 13, argv[0] ));
9110
+ }
9111
+ arg13 = reinterpret_cast< char * >(buf13);
9112
+ res14 = SWIG_AsCharPtrAndSize(argv[1], &buf14, NULL, &alloc14);
9113
+ if (!SWIG_IsOK(res14)) {
9114
+ SWIG_exception_fail(SWIG_ArgError(res14), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 14, argv[1] ));
9115
+ }
9116
+ arg14 = reinterpret_cast< char * >(buf14);
9117
+ ecode15 = SWIG_AsVal_int(argv[2], &val15);
9118
+ if (!SWIG_IsOK(ecode15)) {
9119
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","getTracingDecision", 15, argv[2] ));
9120
+ }
9121
+ arg15 = static_cast< int >(val15);
9122
+ ecode16 = SWIG_AsVal_int(argv[3], &val16);
9123
+ if (!SWIG_IsOK(ecode16)) {
9124
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","getTracingDecision", 16, argv[3] ));
9125
+ }
9126
+ arg16 = static_cast< int >(val16);
9127
+ (arg1)->getTracingDecision(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,(char const *)arg13,(char const *)arg14,arg15,arg16);
9128
+ vresult = rb_ary_new();
9129
+ if (SWIG_IsTmpObj(res2)) {
9130
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
9131
+ } else {
9132
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9133
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
9134
+ }
9135
+ if (SWIG_IsTmpObj(res3)) {
9136
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
9137
+ } else {
9138
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9139
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
9140
+ }
9141
+ if (SWIG_IsTmpObj(res4)) {
9142
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
9143
+ } else {
9144
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9145
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
9146
+ }
9147
+ if (SWIG_IsTmpObj(res5)) {
9148
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
9149
+ } else {
9150
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9151
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
9152
+ }
9153
+ if (SWIG_IsTmpObj(res6)) {
9154
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
9155
+ } else {
9156
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9157
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
9158
+ }
9159
+ if (SWIG_IsTmpObj(res7)) {
9160
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
9161
+ } else {
9162
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9163
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
9164
+ }
9165
+ if (SWIG_IsTmpObj(res8)) {
9166
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
9167
+ } else {
9168
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9169
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
9170
+ }
9171
+ if (SWIG_IsTmpObj(res9)) {
9172
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
9173
+ } else {
9174
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9175
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
9176
+ }
9177
+ if (SWIG_IsTmpObj(res10)) {
9178
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
9179
+ } else {
9180
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9181
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
9182
+ }
9183
+ if (SWIG_IsTmpObj(res11)) {
9184
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg11)));
9185
+ } else {
9186
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9187
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_std__string, new_flags));
9188
+ }
9189
+ if (SWIG_IsTmpObj(res12)) {
9190
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg12)));
9191
+ } else {
9192
+ int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9193
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_int, new_flags));
9194
+ }
9195
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
9196
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
9197
+ return vresult;
9198
+ fail:
9199
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
9200
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
9201
+ return Qnil;
9202
+ }
9203
+
9204
+
9205
+ SWIGINTERN VALUE
9206
+ _wrap_OboeAPI_getTracingDecision__SWIG_6(int argc, VALUE *argv, VALUE self) {
9207
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
9208
+ int *arg2 = (int *) 0 ;
9209
+ int *arg3 = (int *) 0 ;
9210
+ int *arg4 = (int *) 0 ;
9211
+ int *arg5 = (int *) 0 ;
9212
+ double *arg6 = (double *) 0 ;
9213
+ double *arg7 = (double *) 0 ;
9214
+ int *arg8 = (int *) 0 ;
9215
+ int *arg9 = (int *) 0 ;
9216
+ std::string *arg10 = (std::string *) 0 ;
9217
+ std::string *arg11 = (std::string *) 0 ;
9218
+ int *arg12 = (int *) 0 ;
9219
+ char *arg13 = (char *) 0 ;
9220
+ char *arg14 = (char *) 0 ;
9221
+ int arg15 ;
9222
+ void *argp1 = 0 ;
9223
+ int res1 = 0 ;
9224
+ int temp2 ;
9225
+ int res2 = SWIG_TMPOBJ ;
9226
+ int temp3 ;
9227
+ int res3 = SWIG_TMPOBJ ;
9228
+ int temp4 ;
9229
+ int res4 = SWIG_TMPOBJ ;
9230
+ int temp5 ;
9231
+ int res5 = SWIG_TMPOBJ ;
9232
+ double temp6 ;
9233
+ int res6 = SWIG_TMPOBJ ;
9234
+ double temp7 ;
9235
+ int res7 = SWIG_TMPOBJ ;
9236
+ int temp8 ;
9237
+ int res8 = SWIG_TMPOBJ ;
9238
+ int temp9 ;
9239
+ int res9 = SWIG_TMPOBJ ;
9240
+ std::string temp10 ;
9241
+ int res10 = SWIG_TMPOBJ ;
9242
+ std::string temp11 ;
9243
+ int res11 = SWIG_TMPOBJ ;
9244
+ int temp12 ;
9245
+ int res12 = SWIG_TMPOBJ ;
9246
+ int res13 ;
9247
+ char *buf13 = 0 ;
9248
+ int alloc13 = 0 ;
9249
+ int res14 ;
9250
+ char *buf14 = 0 ;
9251
+ int alloc14 = 0 ;
9252
+ int val15 ;
9253
+ int ecode15 = 0 ;
9254
+ VALUE vresult = Qnil;
9255
+
9256
+ arg2 = &temp2;
9257
+ arg3 = &temp3;
9258
+ arg4 = &temp4;
9259
+ arg5 = &temp5;
9260
+ arg6 = &temp6;
9261
+ arg7 = &temp7;
9262
+ arg8 = &temp8;
9263
+ arg9 = &temp9;
9264
+ arg10 = &temp10;
9265
+ arg11 = &temp11;
9266
+ arg12 = &temp12;
9267
+ if ((argc < 3) || (argc > 3)) {
9268
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
9269
+ }
9270
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
9271
+ if (!SWIG_IsOK(res1)) {
9272
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getTracingDecision", 1, self ));
9273
+ }
9274
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
9275
+ res13 = SWIG_AsCharPtrAndSize(argv[0], &buf13, NULL, &alloc13);
9276
+ if (!SWIG_IsOK(res13)) {
9277
+ SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 13, argv[0] ));
9278
+ }
9279
+ arg13 = reinterpret_cast< char * >(buf13);
9280
+ res14 = SWIG_AsCharPtrAndSize(argv[1], &buf14, NULL, &alloc14);
9281
+ if (!SWIG_IsOK(res14)) {
9282
+ SWIG_exception_fail(SWIG_ArgError(res14), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 14, argv[1] ));
9283
+ }
9284
+ arg14 = reinterpret_cast< char * >(buf14);
9285
+ ecode15 = SWIG_AsVal_int(argv[2], &val15);
9286
+ if (!SWIG_IsOK(ecode15)) {
9287
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","getTracingDecision", 15, argv[2] ));
9288
+ }
9289
+ arg15 = static_cast< int >(val15);
9290
+ (arg1)->getTracingDecision(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,(char const *)arg13,(char const *)arg14,arg15);
9291
+ vresult = rb_ary_new();
9292
+ if (SWIG_IsTmpObj(res2)) {
9293
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
9294
+ } else {
9295
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9296
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
9297
+ }
9298
+ if (SWIG_IsTmpObj(res3)) {
9299
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
9300
+ } else {
9301
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9302
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
9303
+ }
9304
+ if (SWIG_IsTmpObj(res4)) {
9305
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
9306
+ } else {
9307
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9308
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
9309
+ }
9310
+ if (SWIG_IsTmpObj(res5)) {
9311
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
9312
+ } else {
9313
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9314
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
9315
+ }
9316
+ if (SWIG_IsTmpObj(res6)) {
9317
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
9318
+ } else {
9319
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9320
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
9321
+ }
9322
+ if (SWIG_IsTmpObj(res7)) {
9323
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
9324
+ } else {
9325
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9326
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
9327
+ }
9328
+ if (SWIG_IsTmpObj(res8)) {
9329
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
9330
+ } else {
9331
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9332
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
9333
+ }
9334
+ if (SWIG_IsTmpObj(res9)) {
9335
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
9336
+ } else {
9337
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9338
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
9339
+ }
9340
+ if (SWIG_IsTmpObj(res10)) {
9341
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
9342
+ } else {
9343
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9344
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
9345
+ }
9346
+ if (SWIG_IsTmpObj(res11)) {
9347
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg11)));
9348
+ } else {
9349
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9350
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_std__string, new_flags));
9351
+ }
9352
+ if (SWIG_IsTmpObj(res12)) {
9353
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg12)));
9354
+ } else {
9355
+ int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9356
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_int, new_flags));
9357
+ }
9358
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
9359
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
9360
+ return vresult;
9361
+ fail:
9362
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
9363
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
9364
+ return Qnil;
9365
+ }
9366
+
9367
+
9368
+ SWIGINTERN VALUE
9369
+ _wrap_OboeAPI_getTracingDecision__SWIG_7(int argc, VALUE *argv, VALUE self) {
9370
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
9371
+ int *arg2 = (int *) 0 ;
9372
+ int *arg3 = (int *) 0 ;
9373
+ int *arg4 = (int *) 0 ;
9374
+ int *arg5 = (int *) 0 ;
9375
+ double *arg6 = (double *) 0 ;
9376
+ double *arg7 = (double *) 0 ;
9377
+ int *arg8 = (int *) 0 ;
9378
+ int *arg9 = (int *) 0 ;
9379
+ std::string *arg10 = (std::string *) 0 ;
9380
+ std::string *arg11 = (std::string *) 0 ;
9381
+ int *arg12 = (int *) 0 ;
9382
+ char *arg13 = (char *) 0 ;
9383
+ char *arg14 = (char *) 0 ;
9384
+ void *argp1 = 0 ;
9385
+ int res1 = 0 ;
9386
+ int temp2 ;
9387
+ int res2 = SWIG_TMPOBJ ;
9388
+ int temp3 ;
9389
+ int res3 = SWIG_TMPOBJ ;
9390
+ int temp4 ;
9391
+ int res4 = SWIG_TMPOBJ ;
9392
+ int temp5 ;
9393
+ int res5 = SWIG_TMPOBJ ;
9394
+ double temp6 ;
9395
+ int res6 = SWIG_TMPOBJ ;
9396
+ double temp7 ;
9397
+ int res7 = SWIG_TMPOBJ ;
9398
+ int temp8 ;
9399
+ int res8 = SWIG_TMPOBJ ;
9400
+ int temp9 ;
9401
+ int res9 = SWIG_TMPOBJ ;
9402
+ std::string temp10 ;
9403
+ int res10 = SWIG_TMPOBJ ;
9404
+ std::string temp11 ;
9405
+ int res11 = SWIG_TMPOBJ ;
9406
+ int temp12 ;
9407
+ int res12 = SWIG_TMPOBJ ;
9408
+ int res13 ;
9409
+ char *buf13 = 0 ;
9410
+ int alloc13 = 0 ;
9411
+ int res14 ;
9412
+ char *buf14 = 0 ;
9413
+ int alloc14 = 0 ;
9414
+ VALUE vresult = Qnil;
9415
+
9416
+ arg2 = &temp2;
9417
+ arg3 = &temp3;
9418
+ arg4 = &temp4;
9419
+ arg5 = &temp5;
9420
+ arg6 = &temp6;
9421
+ arg7 = &temp7;
9422
+ arg8 = &temp8;
9423
+ arg9 = &temp9;
9424
+ arg10 = &temp10;
9425
+ arg11 = &temp11;
9426
+ arg12 = &temp12;
9427
+ if ((argc < 2) || (argc > 2)) {
9428
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
9429
+ }
9430
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
9431
+ if (!SWIG_IsOK(res1)) {
9432
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getTracingDecision", 1, self ));
9433
+ }
9434
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
9435
+ res13 = SWIG_AsCharPtrAndSize(argv[0], &buf13, NULL, &alloc13);
9436
+ if (!SWIG_IsOK(res13)) {
9437
+ SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 13, argv[0] ));
9438
+ }
9439
+ arg13 = reinterpret_cast< char * >(buf13);
9440
+ res14 = SWIG_AsCharPtrAndSize(argv[1], &buf14, NULL, &alloc14);
9441
+ if (!SWIG_IsOK(res14)) {
9442
+ SWIG_exception_fail(SWIG_ArgError(res14), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 14, argv[1] ));
9443
+ }
9444
+ arg14 = reinterpret_cast< char * >(buf14);
9445
+ (arg1)->getTracingDecision(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,(char const *)arg13,(char const *)arg14);
9446
+ vresult = rb_ary_new();
9447
+ if (SWIG_IsTmpObj(res2)) {
9448
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
9449
+ } else {
9450
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9451
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
9452
+ }
9453
+ if (SWIG_IsTmpObj(res3)) {
9454
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
9455
+ } else {
9456
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9457
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
9458
+ }
9459
+ if (SWIG_IsTmpObj(res4)) {
9460
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
9461
+ } else {
9462
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9463
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
9464
+ }
9465
+ if (SWIG_IsTmpObj(res5)) {
9466
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
9467
+ } else {
9468
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9469
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
9470
+ }
9471
+ if (SWIG_IsTmpObj(res6)) {
9472
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
9473
+ } else {
9474
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9475
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
9476
+ }
9477
+ if (SWIG_IsTmpObj(res7)) {
9478
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
9479
+ } else {
9480
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9481
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
9482
+ }
9483
+ if (SWIG_IsTmpObj(res8)) {
9484
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
9485
+ } else {
9486
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9487
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
9488
+ }
9489
+ if (SWIG_IsTmpObj(res9)) {
9490
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
9491
+ } else {
9492
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9493
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
9494
+ }
9495
+ if (SWIG_IsTmpObj(res10)) {
9496
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
9497
+ } else {
9498
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9499
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
9500
+ }
9501
+ if (SWIG_IsTmpObj(res11)) {
9502
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg11)));
9503
+ } else {
9504
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9505
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_std__string, new_flags));
9506
+ }
9507
+ if (SWIG_IsTmpObj(res12)) {
9508
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg12)));
9509
+ } else {
9510
+ int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9511
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_int, new_flags));
9512
+ }
9513
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
9514
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
9515
+ return vresult;
9516
+ fail:
9517
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
9518
+ if (alloc14 == SWIG_NEWOBJ) delete[] buf14;
9519
+ return Qnil;
9520
+ }
9521
+
9522
+
9523
+ SWIGINTERN VALUE
9524
+ _wrap_OboeAPI_getTracingDecision__SWIG_8(int argc, VALUE *argv, VALUE self) {
9525
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
9526
+ int *arg2 = (int *) 0 ;
9527
+ int *arg3 = (int *) 0 ;
9528
+ int *arg4 = (int *) 0 ;
9529
+ int *arg5 = (int *) 0 ;
9530
+ double *arg6 = (double *) 0 ;
9531
+ double *arg7 = (double *) 0 ;
9532
+ int *arg8 = (int *) 0 ;
9533
+ int *arg9 = (int *) 0 ;
9534
+ std::string *arg10 = (std::string *) 0 ;
9535
+ std::string *arg11 = (std::string *) 0 ;
9536
+ int *arg12 = (int *) 0 ;
9537
+ char *arg13 = (char *) 0 ;
9538
+ void *argp1 = 0 ;
9539
+ int res1 = 0 ;
9540
+ int temp2 ;
9541
+ int res2 = SWIG_TMPOBJ ;
9542
+ int temp3 ;
9543
+ int res3 = SWIG_TMPOBJ ;
9544
+ int temp4 ;
9545
+ int res4 = SWIG_TMPOBJ ;
9546
+ int temp5 ;
9547
+ int res5 = SWIG_TMPOBJ ;
9548
+ double temp6 ;
9549
+ int res6 = SWIG_TMPOBJ ;
9550
+ double temp7 ;
9551
+ int res7 = SWIG_TMPOBJ ;
9552
+ int temp8 ;
9553
+ int res8 = SWIG_TMPOBJ ;
9554
+ int temp9 ;
9555
+ int res9 = SWIG_TMPOBJ ;
9556
+ std::string temp10 ;
9557
+ int res10 = SWIG_TMPOBJ ;
9558
+ std::string temp11 ;
9559
+ int res11 = SWIG_TMPOBJ ;
9560
+ int temp12 ;
9561
+ int res12 = SWIG_TMPOBJ ;
9562
+ int res13 ;
9563
+ char *buf13 = 0 ;
9564
+ int alloc13 = 0 ;
9565
+ VALUE vresult = Qnil;
9566
+
9567
+ arg2 = &temp2;
9568
+ arg3 = &temp3;
9569
+ arg4 = &temp4;
9570
+ arg5 = &temp5;
9571
+ arg6 = &temp6;
9572
+ arg7 = &temp7;
9573
+ arg8 = &temp8;
9574
+ arg9 = &temp9;
9575
+ arg10 = &temp10;
9576
+ arg11 = &temp11;
9577
+ arg12 = &temp12;
9578
+ if ((argc < 1) || (argc > 1)) {
9579
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9580
+ }
9581
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
9582
+ if (!SWIG_IsOK(res1)) {
9583
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getTracingDecision", 1, self ));
9584
+ }
9585
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
9586
+ res13 = SWIG_AsCharPtrAndSize(argv[0], &buf13, NULL, &alloc13);
9587
+ if (!SWIG_IsOK(res13)) {
9588
+ SWIG_exception_fail(SWIG_ArgError(res13), Ruby_Format_TypeError( "", "char const *","getTracingDecision", 13, argv[0] ));
9589
+ }
9590
+ arg13 = reinterpret_cast< char * >(buf13);
9591
+ (arg1)->getTracingDecision(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,(char const *)arg13);
9592
+ vresult = rb_ary_new();
9593
+ if (SWIG_IsTmpObj(res2)) {
9594
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
9595
+ } else {
9596
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9597
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
9598
+ }
9599
+ if (SWIG_IsTmpObj(res3)) {
9600
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
9601
+ } else {
9602
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9603
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
9604
+ }
9605
+ if (SWIG_IsTmpObj(res4)) {
9606
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
9607
+ } else {
9608
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9609
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
9610
+ }
9611
+ if (SWIG_IsTmpObj(res5)) {
9612
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
9613
+ } else {
9614
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9615
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
9616
+ }
9617
+ if (SWIG_IsTmpObj(res6)) {
9618
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
9619
+ } else {
9620
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9621
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
9622
+ }
9623
+ if (SWIG_IsTmpObj(res7)) {
9624
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
9625
+ } else {
9626
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9627
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
9628
+ }
9629
+ if (SWIG_IsTmpObj(res8)) {
9630
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
9631
+ } else {
9632
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9633
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
9634
+ }
9635
+ if (SWIG_IsTmpObj(res9)) {
9636
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
9637
+ } else {
9638
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9639
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
9640
+ }
9641
+ if (SWIG_IsTmpObj(res10)) {
9642
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
9643
+ } else {
9644
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9645
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
9646
+ }
9647
+ if (SWIG_IsTmpObj(res11)) {
9648
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg11)));
9649
+ } else {
9650
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9651
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_std__string, new_flags));
9652
+ }
9653
+ if (SWIG_IsTmpObj(res12)) {
9654
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg12)));
9655
+ } else {
9656
+ int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9657
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_int, new_flags));
9658
+ }
9659
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
9660
+ return vresult;
9661
+ fail:
9662
+ if (alloc13 == SWIG_NEWOBJ) delete[] buf13;
9663
+ return Qnil;
9664
+ }
9665
+
9666
+
9667
+ SWIGINTERN VALUE
9668
+ _wrap_OboeAPI_getTracingDecision__SWIG_9(int argc, VALUE *argv, VALUE self) {
9669
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
9670
+ int *arg2 = (int *) 0 ;
9671
+ int *arg3 = (int *) 0 ;
9672
+ int *arg4 = (int *) 0 ;
9673
+ int *arg5 = (int *) 0 ;
9674
+ double *arg6 = (double *) 0 ;
9675
+ double *arg7 = (double *) 0 ;
9676
+ int *arg8 = (int *) 0 ;
9677
+ int *arg9 = (int *) 0 ;
9678
+ std::string *arg10 = (std::string *) 0 ;
9679
+ std::string *arg11 = (std::string *) 0 ;
9680
+ int *arg12 = (int *) 0 ;
9681
+ void *argp1 = 0 ;
9682
+ int res1 = 0 ;
9683
+ int temp2 ;
9684
+ int res2 = SWIG_TMPOBJ ;
9685
+ int temp3 ;
9686
+ int res3 = SWIG_TMPOBJ ;
9687
+ int temp4 ;
9688
+ int res4 = SWIG_TMPOBJ ;
9689
+ int temp5 ;
9690
+ int res5 = SWIG_TMPOBJ ;
9691
+ double temp6 ;
9692
+ int res6 = SWIG_TMPOBJ ;
9693
+ double temp7 ;
9694
+ int res7 = SWIG_TMPOBJ ;
9695
+ int temp8 ;
9696
+ int res8 = SWIG_TMPOBJ ;
9697
+ int temp9 ;
9698
+ int res9 = SWIG_TMPOBJ ;
9699
+ std::string temp10 ;
9700
+ int res10 = SWIG_TMPOBJ ;
9701
+ std::string temp11 ;
9702
+ int res11 = SWIG_TMPOBJ ;
9703
+ int temp12 ;
9704
+ int res12 = SWIG_TMPOBJ ;
9705
+ VALUE vresult = Qnil;
9706
+
9707
+ arg2 = &temp2;
9708
+ arg3 = &temp3;
9709
+ arg4 = &temp4;
9710
+ arg5 = &temp5;
9711
+ arg6 = &temp6;
9712
+ arg7 = &temp7;
9713
+ arg8 = &temp8;
9714
+ arg9 = &temp9;
9715
+ arg10 = &temp10;
9716
+ arg11 = &temp11;
9717
+ arg12 = &temp12;
9718
+ if ((argc < 0) || (argc > 0)) {
9719
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9720
+ }
9721
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
9722
+ if (!SWIG_IsOK(res1)) {
9723
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getTracingDecision", 1, self ));
9724
+ }
9725
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
9726
+ (arg1)->getTracingDecision(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
9727
+ vresult = rb_ary_new();
9728
+ if (SWIG_IsTmpObj(res2)) {
9729
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg2)));
9730
+ } else {
9731
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9732
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
9733
+ }
9734
+ if (SWIG_IsTmpObj(res3)) {
9735
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg3)));
9736
+ } else {
9737
+ int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9738
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
9739
+ }
9740
+ if (SWIG_IsTmpObj(res4)) {
9741
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg4)));
9742
+ } else {
9743
+ int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9744
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
9745
+ }
9746
+ if (SWIG_IsTmpObj(res5)) {
9747
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
9748
+ } else {
9749
+ int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9750
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
9751
+ }
9752
+ if (SWIG_IsTmpObj(res6)) {
9753
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg6)));
9754
+ } else {
9755
+ int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9756
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
9757
+ }
9758
+ if (SWIG_IsTmpObj(res7)) {
9759
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_double((*arg7)));
9760
+ } else {
9761
+ int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9762
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
9763
+ }
9764
+ if (SWIG_IsTmpObj(res8)) {
9765
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
9766
+ } else {
9767
+ int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9768
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
9769
+ }
9770
+ if (SWIG_IsTmpObj(res9)) {
9771
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
9772
+ } else {
9773
+ int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9774
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
9775
+ }
9776
+ if (SWIG_IsTmpObj(res10)) {
9777
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
9778
+ } else {
9779
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9780
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
9781
+ }
9782
+ if (SWIG_IsTmpObj(res11)) {
9783
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg11)));
9784
+ } else {
9785
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9786
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_std__string, new_flags));
9787
+ }
9788
+ if (SWIG_IsTmpObj(res12)) {
9789
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg12)));
9790
+ } else {
9791
+ int new_flags = SWIG_IsNewObj(res12) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
9792
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg12), SWIGTYPE_p_int, new_flags));
9793
+ }
9794
+ return vresult;
9795
+ fail:
9796
+ return Qnil;
9797
+ }
9798
+
9799
+
9800
+ SWIGINTERN VALUE _wrap_OboeAPI_getTracingDecision(int nargs, VALUE *args, VALUE self) {
9801
+ int argc;
9802
+ VALUE argv[11];
9803
+ int ii;
9804
+
9805
+ argc = nargs + 1;
9806
+ argv[0] = self;
9807
+ if (argc > 11) SWIG_fail;
9808
+ for (ii = 1; (ii < argc); ++ii) {
9809
+ argv[ii] = args[ii-1];
9810
+ }
9811
+ if (argc == 1) {
9812
+ int _v;
9813
+ void *vptr = 0;
9814
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9815
+ _v = SWIG_CheckState(res);
9816
+ if (_v) {
9817
+ return _wrap_OboeAPI_getTracingDecision__SWIG_9(nargs, args, self);
9818
+ }
9819
+ }
9820
+ if (argc == 2) {
9821
+ int _v;
9822
+ void *vptr = 0;
9823
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9824
+ _v = SWIG_CheckState(res);
9825
+ if (_v) {
9826
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
9827
+ _v = SWIG_CheckState(res);
9828
+ if (_v) {
9829
+ return _wrap_OboeAPI_getTracingDecision__SWIG_8(nargs, args, self);
9830
+ }
9831
+ }
9832
+ }
9833
+ if (argc == 3) {
9834
+ int _v;
9835
+ void *vptr = 0;
9836
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9837
+ _v = SWIG_CheckState(res);
9838
+ if (_v) {
9839
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
9840
+ _v = SWIG_CheckState(res);
9841
+ if (_v) {
9842
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
9843
+ _v = SWIG_CheckState(res);
9844
+ if (_v) {
9845
+ return _wrap_OboeAPI_getTracingDecision__SWIG_7(nargs, args, self);
9846
+ }
9847
+ }
9848
+ }
9849
+ }
9850
+ if (argc == 4) {
9851
+ int _v;
9852
+ void *vptr = 0;
9853
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9854
+ _v = SWIG_CheckState(res);
9855
+ if (_v) {
9856
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
9857
+ _v = SWIG_CheckState(res);
9858
+ if (_v) {
9859
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
9860
+ _v = SWIG_CheckState(res);
9861
+ if (_v) {
9862
+ {
9863
+ int res = SWIG_AsVal_int(argv[3], NULL);
9864
+ _v = SWIG_CheckState(res);
9865
+ }
9866
+ if (_v) {
9867
+ return _wrap_OboeAPI_getTracingDecision__SWIG_6(nargs, args, self);
9868
+ }
9869
+ }
9870
+ }
9871
+ }
9872
+ }
9873
+ if (argc == 5) {
9874
+ int _v;
9875
+ void *vptr = 0;
9876
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9877
+ _v = SWIG_CheckState(res);
9878
+ if (_v) {
9879
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
9880
+ _v = SWIG_CheckState(res);
9881
+ if (_v) {
9882
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
9883
+ _v = SWIG_CheckState(res);
9884
+ if (_v) {
9885
+ {
9886
+ int res = SWIG_AsVal_int(argv[3], NULL);
9887
+ _v = SWIG_CheckState(res);
9888
+ }
9889
+ if (_v) {
9890
+ {
9891
+ int res = SWIG_AsVal_int(argv[4], NULL);
9892
+ _v = SWIG_CheckState(res);
9893
+ }
9894
+ if (_v) {
9895
+ return _wrap_OboeAPI_getTracingDecision__SWIG_5(nargs, args, self);
9896
+ }
9897
+ }
9898
+ }
9899
+ }
9900
+ }
9901
+ }
9902
+ if (argc == 6) {
9903
+ int _v;
9904
+ void *vptr = 0;
9905
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9906
+ _v = SWIG_CheckState(res);
9907
+ if (_v) {
9908
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
9909
+ _v = SWIG_CheckState(res);
9910
+ if (_v) {
9911
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
9912
+ _v = SWIG_CheckState(res);
9913
+ if (_v) {
9914
+ {
9915
+ int res = SWIG_AsVal_int(argv[3], NULL);
9916
+ _v = SWIG_CheckState(res);
9917
+ }
9918
+ if (_v) {
9919
+ {
9920
+ int res = SWIG_AsVal_int(argv[4], NULL);
9921
+ _v = SWIG_CheckState(res);
9922
+ }
9923
+ if (_v) {
9924
+ {
9925
+ int res = SWIG_AsVal_int(argv[5], NULL);
9926
+ _v = SWIG_CheckState(res);
9927
+ }
9928
+ if (_v) {
9929
+ return _wrap_OboeAPI_getTracingDecision__SWIG_4(nargs, args, self);
9930
+ }
9931
+ }
9932
+ }
9933
+ }
9934
+ }
9935
+ }
9936
+ }
9937
+ if (argc == 7) {
9938
+ int _v;
9939
+ void *vptr = 0;
9940
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9941
+ _v = SWIG_CheckState(res);
9942
+ if (_v) {
9943
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
9944
+ _v = SWIG_CheckState(res);
9945
+ if (_v) {
9946
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
9947
+ _v = SWIG_CheckState(res);
9948
+ if (_v) {
9949
+ {
9950
+ int res = SWIG_AsVal_int(argv[3], NULL);
9951
+ _v = SWIG_CheckState(res);
9952
+ }
9953
+ if (_v) {
9954
+ {
9955
+ int res = SWIG_AsVal_int(argv[4], NULL);
9956
+ _v = SWIG_CheckState(res);
9957
+ }
9958
+ if (_v) {
9959
+ {
9960
+ int res = SWIG_AsVal_int(argv[5], NULL);
9961
+ _v = SWIG_CheckState(res);
9962
+ }
9963
+ if (_v) {
9964
+ {
9965
+ int res = SWIG_AsVal_int(argv[6], NULL);
9966
+ _v = SWIG_CheckState(res);
9967
+ }
9968
+ if (_v) {
9969
+ return _wrap_OboeAPI_getTracingDecision__SWIG_3(nargs, args, self);
9970
+ }
9971
+ }
9972
+ }
9973
+ }
9974
+ }
9975
+ }
9976
+ }
9977
+ }
9978
+ if (argc == 8) {
9979
+ int _v;
9980
+ void *vptr = 0;
9981
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
9982
+ _v = SWIG_CheckState(res);
9983
+ if (_v) {
9984
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
9985
+ _v = SWIG_CheckState(res);
9986
+ if (_v) {
9987
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
9988
+ _v = SWIG_CheckState(res);
9989
+ if (_v) {
9990
+ {
9991
+ int res = SWIG_AsVal_int(argv[3], NULL);
9992
+ _v = SWIG_CheckState(res);
9993
+ }
9994
+ if (_v) {
9995
+ {
9996
+ int res = SWIG_AsVal_int(argv[4], NULL);
9997
+ _v = SWIG_CheckState(res);
9998
+ }
9999
+ if (_v) {
10000
+ {
10001
+ int res = SWIG_AsVal_int(argv[5], NULL);
10002
+ _v = SWIG_CheckState(res);
10003
+ }
10004
+ if (_v) {
10005
+ {
10006
+ int res = SWIG_AsVal_int(argv[6], NULL);
10007
+ _v = SWIG_CheckState(res);
10008
+ }
10009
+ if (_v) {
10010
+ int res = SWIG_AsCharPtrAndSize(argv[7], 0, NULL, 0);
10011
+ _v = SWIG_CheckState(res);
10012
+ if (_v) {
10013
+ return _wrap_OboeAPI_getTracingDecision__SWIG_2(nargs, args, self);
10014
+ }
10015
+ }
10016
+ }
10017
+ }
10018
+ }
10019
+ }
10020
+ }
10021
+ }
10022
+ }
10023
+ if (argc == 9) {
10024
+ int _v;
10025
+ void *vptr = 0;
10026
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
10027
+ _v = SWIG_CheckState(res);
10028
+ if (_v) {
10029
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
10030
+ _v = SWIG_CheckState(res);
10031
+ if (_v) {
10032
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
10033
+ _v = SWIG_CheckState(res);
10034
+ if (_v) {
10035
+ {
10036
+ int res = SWIG_AsVal_int(argv[3], NULL);
10037
+ _v = SWIG_CheckState(res);
10038
+ }
10039
+ if (_v) {
10040
+ {
10041
+ int res = SWIG_AsVal_int(argv[4], NULL);
10042
+ _v = SWIG_CheckState(res);
10043
+ }
10044
+ if (_v) {
10045
+ {
10046
+ int res = SWIG_AsVal_int(argv[5], NULL);
10047
+ _v = SWIG_CheckState(res);
10048
+ }
10049
+ if (_v) {
10050
+ {
10051
+ int res = SWIG_AsVal_int(argv[6], NULL);
10052
+ _v = SWIG_CheckState(res);
10053
+ }
10054
+ if (_v) {
10055
+ int res = SWIG_AsCharPtrAndSize(argv[7], 0, NULL, 0);
10056
+ _v = SWIG_CheckState(res);
10057
+ if (_v) {
10058
+ int res = SWIG_AsCharPtrAndSize(argv[8], 0, NULL, 0);
10059
+ _v = SWIG_CheckState(res);
10060
+ if (_v) {
10061
+ return _wrap_OboeAPI_getTracingDecision__SWIG_1(nargs, args, self);
10062
+ }
10063
+ }
10064
+ }
10065
+ }
10066
+ }
10067
+ }
7818
10068
  }
7819
10069
  }
7820
10070
  }
7821
10071
  }
7822
- if (argc == 4) {
10072
+ if (argc == 10) {
7823
10073
  int _v;
7824
10074
  void *vptr = 0;
7825
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
10075
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OboeAPI, 0);
7826
10076
  _v = SWIG_CheckState(res);
7827
10077
  if (_v) {
7828
- void *vptr = 0;
7829
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
10078
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
7830
10079
  _v = SWIG_CheckState(res);
7831
10080
  if (_v) {
7832
- void *vptr = 0;
7833
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
10081
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
7834
10082
  _v = SWIG_CheckState(res);
7835
10083
  if (_v) {
7836
10084
  {
7837
- int res = SWIG_AsVal_bool(argv[3], NULL);
10085
+ int res = SWIG_AsVal_int(argv[3], NULL);
7838
10086
  _v = SWIG_CheckState(res);
7839
10087
  }
7840
10088
  if (_v) {
7841
- return _wrap_Reporter_sendStatus__SWIG_2(nargs, args, self);
10089
+ {
10090
+ int res = SWIG_AsVal_int(argv[4], NULL);
10091
+ _v = SWIG_CheckState(res);
10092
+ }
10093
+ if (_v) {
10094
+ {
10095
+ int res = SWIG_AsVal_int(argv[5], NULL);
10096
+ _v = SWIG_CheckState(res);
10097
+ }
10098
+ if (_v) {
10099
+ {
10100
+ int res = SWIG_AsVal_int(argv[6], NULL);
10101
+ _v = SWIG_CheckState(res);
10102
+ }
10103
+ if (_v) {
10104
+ int res = SWIG_AsCharPtrAndSize(argv[7], 0, NULL, 0);
10105
+ _v = SWIG_CheckState(res);
10106
+ if (_v) {
10107
+ int res = SWIG_AsCharPtrAndSize(argv[8], 0, NULL, 0);
10108
+ _v = SWIG_CheckState(res);
10109
+ if (_v) {
10110
+ {
10111
+ int res = SWIG_AsVal_long(argv[9], NULL);
10112
+ _v = SWIG_CheckState(res);
10113
+ }
10114
+ if (_v) {
10115
+ return _wrap_OboeAPI_getTracingDecision__SWIG_0(nargs, args, self);
10116
+ }
10117
+ }
10118
+ }
10119
+ }
10120
+ }
10121
+ }
7842
10122
  }
7843
10123
  }
7844
10124
  }
@@ -7846,89 +10126,152 @@ SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
7846
10126
  }
7847
10127
 
7848
10128
  fail:
7849
- Ruby_Format_OverloadedError( argc, 5, "Reporter.sendStatus",
7850
- " bool Reporter.sendStatus(Event *evt, bool with_system_timestamp)\n"
7851
- " bool Reporter.sendStatus(Event *evt)\n"
7852
- " bool Reporter.sendStatus(Event *evt, oboe_metadata_t *md, bool with_system_timestamp)\n"
7853
- " bool Reporter.sendStatus(Event *evt, oboe_metadata_t *md)\n");
10129
+ Ruby_Format_OverloadedError( argc, 11, "OboeAPI.getTracingDecision",
10130
+ " void OboeAPI.getTracingDecision(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, double *bucket_rate, double *bucket_cap, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, char const *tracestate, 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"
10131
+ " void OboeAPI.getTracingDecision(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, double *bucket_rate, double *bucket_cap, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, char const *tracestate, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode, char const *header_options, char const *header_signature)\n"
10132
+ " void OboeAPI.getTracingDecision(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, double *bucket_rate, double *bucket_cap, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, char const *tracestate, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode, char const *header_options)\n"
10133
+ " void OboeAPI.getTracingDecision(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, double *bucket_rate, double *bucket_cap, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, char const *tracestate, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode)\n"
10134
+ " void OboeAPI.getTracingDecision(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, double *bucket_rate, double *bucket_cap, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, char const *tracestate, int custom_tracing_mode, int custom_sample_rate, int request_type)\n"
10135
+ " void OboeAPI.getTracingDecision(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, double *bucket_rate, double *bucket_cap, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, char const *tracestate, int custom_tracing_mode, int custom_sample_rate)\n"
10136
+ " void OboeAPI.getTracingDecision(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, double *bucket_rate, double *bucket_cap, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, char const *tracestate, int custom_tracing_mode)\n"
10137
+ " void OboeAPI.getTracingDecision(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, double *bucket_rate, double *bucket_cap, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, char const *tracestate)\n"
10138
+ " void OboeAPI.getTracingDecision(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, double *bucket_rate, double *bucket_cap, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace)\n"
10139
+ " void OboeAPI.getTracingDecision(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, double *bucket_rate, double *bucket_cap, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status)\n");
7854
10140
 
7855
10141
  return Qnil;
7856
10142
  }
7857
10143
 
7858
10144
 
7859
10145
  SWIGINTERN VALUE
7860
- _wrap_Reporter_flush(int argc, VALUE *argv, VALUE self) {
7861
- Reporter *arg1 = (Reporter *) 0 ;
10146
+ _wrap_OboeAPI_consumeRequestCount(int argc, VALUE *argv, VALUE self) {
10147
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
10148
+ unsigned int *arg2 = 0 ;
7862
10149
  void *argp1 = 0 ;
7863
10150
  int res1 = 0 ;
10151
+ unsigned int temp2 ;
10152
+ int res2 = SWIG_TMPOBJ ;
10153
+ bool result;
10154
+ VALUE vresult = Qnil;
7864
10155
 
10156
+ arg2 = &temp2;
7865
10157
  if ((argc < 0) || (argc > 0)) {
7866
10158
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7867
10159
  }
7868
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
10160
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
7869
10161
  if (!SWIG_IsOK(res1)) {
7870
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","flush", 1, self ));
10162
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","consumeRequestCount", 1, self ));
7871
10163
  }
7872
- arg1 = reinterpret_cast< Reporter * >(argp1);
7873
- (arg1)->flush();
7874
- return Qnil;
10164
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
10165
+ result = (bool)(arg1)->consumeRequestCount(*arg2);
10166
+ vresult = SWIG_From_bool(static_cast< bool >(result));
10167
+ if (SWIG_IsTmpObj(res2)) {
10168
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg2)));
10169
+ } else {
10170
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
10171
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags));
10172
+ }
10173
+ return vresult;
7875
10174
  fail:
7876
10175
  return Qnil;
7877
10176
  }
7878
10177
 
7879
10178
 
7880
10179
  SWIGINTERN VALUE
7881
- _wrap_Reporter_getType(int argc, VALUE *argv, VALUE self) {
7882
- Reporter *arg1 = (Reporter *) 0 ;
10180
+ _wrap_OboeAPI_consumeTokenBucketExhaustionCount(int argc, VALUE *argv, VALUE self) {
10181
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
10182
+ unsigned int *arg2 = 0 ;
7883
10183
  void *argp1 = 0 ;
7884
10184
  int res1 = 0 ;
7885
- std::string result;
10185
+ unsigned int temp2 ;
10186
+ int res2 = SWIG_TMPOBJ ;
10187
+ bool result;
7886
10188
  VALUE vresult = Qnil;
7887
10189
 
10190
+ arg2 = &temp2;
7888
10191
  if ((argc < 0) || (argc > 0)) {
7889
10192
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7890
10193
  }
7891
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
10194
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
7892
10195
  if (!SWIG_IsOK(res1)) {
7893
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","getType", 1, self ));
10196
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","consumeTokenBucketExhaustionCount", 1, self ));
10197
+ }
10198
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
10199
+ result = (bool)(arg1)->consumeTokenBucketExhaustionCount(*arg2);
10200
+ vresult = SWIG_From_bool(static_cast< bool >(result));
10201
+ if (SWIG_IsTmpObj(res2)) {
10202
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg2)));
10203
+ } else {
10204
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
10205
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags));
7894
10206
  }
7895
- arg1 = reinterpret_cast< Reporter * >(argp1);
7896
- result = (arg1)->getType();
7897
- vresult = SWIG_From_std_string(static_cast< std::string >(result));
7898
10207
  return vresult;
7899
10208
  fail:
7900
10209
  return Qnil;
7901
10210
  }
7902
10211
 
7903
10212
 
7904
- static swig_class SwigClassConfig;
10213
+ SWIGINTERN VALUE
10214
+ _wrap_OboeAPI_consumeTraceCount(int argc, VALUE *argv, VALUE self) {
10215
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
10216
+ unsigned int *arg2 = 0 ;
10217
+ void *argp1 = 0 ;
10218
+ int res1 = 0 ;
10219
+ unsigned int temp2 ;
10220
+ int res2 = SWIG_TMPOBJ ;
10221
+ bool result;
10222
+ VALUE vresult = Qnil;
10223
+
10224
+ arg2 = &temp2;
10225
+ if ((argc < 0) || (argc > 0)) {
10226
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10227
+ }
10228
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
10229
+ if (!SWIG_IsOK(res1)) {
10230
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","consumeTraceCount", 1, self ));
10231
+ }
10232
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
10233
+ result = (bool)(arg1)->consumeTraceCount(*arg2);
10234
+ vresult = SWIG_From_bool(static_cast< bool >(result));
10235
+ if (SWIG_IsTmpObj(res2)) {
10236
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg2)));
10237
+ } else {
10238
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
10239
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags));
10240
+ }
10241
+ return vresult;
10242
+ fail:
10243
+ return Qnil;
10244
+ }
10245
+
7905
10246
 
7906
10247
  SWIGINTERN VALUE
7907
- _wrap_Config_checkVersion(int argc, VALUE *argv, VALUE self) {
7908
- int arg1 ;
7909
- int arg2 ;
7910
- int val1 ;
7911
- int ecode1 = 0 ;
7912
- int val2 ;
7913
- int ecode2 = 0 ;
10248
+ _wrap_OboeAPI_consumeSampleCount(int argc, VALUE *argv, VALUE self) {
10249
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
10250
+ unsigned int *arg2 = 0 ;
10251
+ void *argp1 = 0 ;
10252
+ int res1 = 0 ;
10253
+ unsigned int temp2 ;
10254
+ int res2 = SWIG_TMPOBJ ;
7914
10255
  bool result;
7915
10256
  VALUE vresult = Qnil;
7916
10257
 
7917
- if ((argc < 2) || (argc > 2)) {
7918
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
10258
+ arg2 = &temp2;
10259
+ if ((argc < 0) || (argc > 0)) {
10260
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7919
10261
  }
7920
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
7921
- if (!SWIG_IsOK(ecode1)) {
7922
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Config::checkVersion", 1, argv[0] ));
7923
- }
7924
- arg1 = static_cast< int >(val1);
7925
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
7926
- if (!SWIG_IsOK(ecode2)) {
7927
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Config::checkVersion", 2, argv[1] ));
7928
- }
7929
- arg2 = static_cast< int >(val2);
7930
- result = (bool)Config::checkVersion(arg1,arg2);
10262
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
10263
+ if (!SWIG_IsOK(res1)) {
10264
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","consumeSampleCount", 1, self ));
10265
+ }
10266
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
10267
+ result = (bool)(arg1)->consumeSampleCount(*arg2);
7931
10268
  vresult = SWIG_From_bool(static_cast< bool >(result));
10269
+ if (SWIG_IsTmpObj(res2)) {
10270
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg2)));
10271
+ } else {
10272
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
10273
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags));
10274
+ }
7932
10275
  return vresult;
7933
10276
  fail:
7934
10277
  return Qnil;
@@ -7936,15 +10279,33 @@ fail:
7936
10279
 
7937
10280
 
7938
10281
  SWIGINTERN VALUE
7939
- _wrap_Config_getVersionString(int argc, VALUE *argv, VALUE self) {
7940
- std::string result;
10282
+ _wrap_OboeAPI_consumeThroughTraceCount(int argc, VALUE *argv, VALUE self) {
10283
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
10284
+ unsigned int *arg2 = 0 ;
10285
+ void *argp1 = 0 ;
10286
+ int res1 = 0 ;
10287
+ unsigned int temp2 ;
10288
+ int res2 = SWIG_TMPOBJ ;
10289
+ bool result;
7941
10290
  VALUE vresult = Qnil;
7942
10291
 
10292
+ arg2 = &temp2;
7943
10293
  if ((argc < 0) || (argc > 0)) {
7944
10294
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7945
10295
  }
7946
- result = Config::getVersionString();
7947
- vresult = SWIG_From_std_string(static_cast< std::string >(result));
10296
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
10297
+ if (!SWIG_IsOK(res1)) {
10298
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","consumeThroughTraceCount", 1, self ));
10299
+ }
10300
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
10301
+ result = (bool)(arg1)->consumeThroughTraceCount(*arg2);
10302
+ vresult = SWIG_From_bool(static_cast< bool >(result));
10303
+ if (SWIG_IsTmpObj(res2)) {
10304
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg2)));
10305
+ } else {
10306
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
10307
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags));
10308
+ }
7948
10309
  return vresult;
7949
10310
  fail:
7950
10311
  return Qnil;
@@ -7952,42 +10313,108 @@ fail:
7952
10313
 
7953
10314
 
7954
10315
  SWIGINTERN VALUE
7955
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
7956
- _wrap_Config_allocate(VALUE self)
7957
- #else
7958
- _wrap_Config_allocate(int argc, VALUE *argv, VALUE self)
7959
- #endif
7960
- {
7961
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Config);
7962
- #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
7963
- rb_obj_call_init(vresult, argc, argv);
7964
- #endif
10316
+ _wrap_OboeAPI_consumeTriggeredTraceCount(int argc, VALUE *argv, VALUE self) {
10317
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
10318
+ unsigned int *arg2 = 0 ;
10319
+ void *argp1 = 0 ;
10320
+ int res1 = 0 ;
10321
+ unsigned int temp2 ;
10322
+ int res2 = SWIG_TMPOBJ ;
10323
+ bool result;
10324
+ VALUE vresult = Qnil;
10325
+
10326
+ arg2 = &temp2;
10327
+ if ((argc < 0) || (argc > 0)) {
10328
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10329
+ }
10330
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
10331
+ if (!SWIG_IsOK(res1)) {
10332
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","consumeTriggeredTraceCount", 1, self ));
10333
+ }
10334
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
10335
+ result = (bool)(arg1)->consumeTriggeredTraceCount(*arg2);
10336
+ vresult = SWIG_From_bool(static_cast< bool >(result));
10337
+ if (SWIG_IsTmpObj(res2)) {
10338
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg2)));
10339
+ } else {
10340
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
10341
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags));
10342
+ }
7965
10343
  return vresult;
10344
+ fail:
10345
+ return Qnil;
7966
10346
  }
7967
10347
 
7968
10348
 
7969
10349
  SWIGINTERN VALUE
7970
- _wrap_new_Config(int argc, VALUE *argv, VALUE self) {
7971
- Config *result = 0 ;
10350
+ _wrap_OboeAPI_getLastUsedSampleRate(int argc, VALUE *argv, VALUE self) {
10351
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
10352
+ unsigned int *arg2 = 0 ;
10353
+ void *argp1 = 0 ;
10354
+ int res1 = 0 ;
10355
+ unsigned int temp2 ;
10356
+ int res2 = SWIG_TMPOBJ ;
10357
+ bool result;
10358
+ VALUE vresult = Qnil;
7972
10359
 
10360
+ arg2 = &temp2;
7973
10361
  if ((argc < 0) || (argc > 0)) {
7974
10362
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7975
10363
  }
7976
- result = (Config *)new Config();
7977
- DATA_PTR(self) = result;
7978
- return self;
10364
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
10365
+ if (!SWIG_IsOK(res1)) {
10366
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getLastUsedSampleRate", 1, self ));
10367
+ }
10368
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
10369
+ result = (bool)(arg1)->getLastUsedSampleRate(*arg2);
10370
+ vresult = SWIG_From_bool(static_cast< bool >(result));
10371
+ if (SWIG_IsTmpObj(res2)) {
10372
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg2)));
10373
+ } else {
10374
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
10375
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags));
10376
+ }
10377
+ return vresult;
7979
10378
  fail:
7980
10379
  return Qnil;
7981
10380
  }
7982
10381
 
7983
10382
 
7984
- SWIGINTERN void
7985
- free_Config(void *self) {
7986
- Config *arg1 = (Config *)self;
7987
- delete arg1;
10383
+ SWIGINTERN VALUE
10384
+ _wrap_OboeAPI_getLastUsedSampleSource(int argc, VALUE *argv, VALUE self) {
10385
+ OboeAPI *arg1 = (OboeAPI *) 0 ;
10386
+ unsigned int *arg2 = 0 ;
10387
+ void *argp1 = 0 ;
10388
+ int res1 = 0 ;
10389
+ unsigned int temp2 ;
10390
+ int res2 = SWIG_TMPOBJ ;
10391
+ bool result;
10392
+ VALUE vresult = Qnil;
10393
+
10394
+ arg2 = &temp2;
10395
+ if ((argc < 0) || (argc > 0)) {
10396
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10397
+ }
10398
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OboeAPI, 0 | 0 );
10399
+ if (!SWIG_IsOK(res1)) {
10400
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OboeAPI *","getLastUsedSampleSource", 1, self ));
10401
+ }
10402
+ arg1 = reinterpret_cast< OboeAPI * >(argp1);
10403
+ result = (bool)(arg1)->getLastUsedSampleSource(*arg2);
10404
+ vresult = SWIG_From_bool(static_cast< bool >(result));
10405
+ if (SWIG_IsTmpObj(res2)) {
10406
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg2)));
10407
+ } else {
10408
+ int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
10409
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_int, new_flags));
10410
+ }
10411
+ return vresult;
10412
+ fail:
10413
+ return Qnil;
7988
10414
  }
7989
10415
 
7990
10416
 
10417
+
7991
10418
  /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
7992
10419
 
7993
10420
  static void *_p_MetadataTo_p_oboe_metadata_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
@@ -7997,14 +10424,16 @@ static swig_type_info _swigt__p_Config = {"_p_Config", "Config *", 0, 0, (void*)
7997
10424
  static swig_type_info _swigt__p_Context = {"_p_Context", "Context *", 0, 0, (void*)0, 0};
7998
10425
  static swig_type_info _swigt__p_CustomMetrics = {"_p_CustomMetrics", "CustomMetrics *", 0, 0, (void*)0, 0};
7999
10426
  static swig_type_info _swigt__p_Event = {"_p_Event", "Event *", 0, 0, (void*)0, 0};
8000
- static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
10427
+ static swig_type_info _swigt__p_LoggingOptions = {"_p_LoggingOptions", "LoggingOptions *", 0, 0, (void*)0, 0};
8001
10428
  static swig_type_info _swigt__p_Metadata = {"_p_Metadata", "Metadata *", 0, 0, (void*)0, 0};
8002
10429
  static swig_type_info _swigt__p_MetricTags = {"_p_MetricTags", "MetricTags *", 0, 0, (void*)0, 0};
10430
+ static swig_type_info _swigt__p_OboeAPI = {"_p_OboeAPI", "OboeAPI *", 0, 0, (void*)0, 0};
10431
+ static swig_type_info _swigt__p_OboeAPIOptions = {"_p_OboeAPIOptions", "OboeAPIOptions *", 0, 0, (void*)0, 0};
8003
10432
  static swig_type_info _swigt__p_Reporter = {"_p_Reporter", "Reporter *", 0, 0, (void*)0, 0};
8004
10433
  static swig_type_info _swigt__p_Span = {"_p_Span", "Span *", 0, 0, (void*)0, 0};
8005
10434
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
8006
10435
  static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
8007
- static swig_type_info _swigt__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void = {"_p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void", "OboeDebugLoggerFcn|void (*)(void *,int,int,char const *,int,char const *)", 0, 0, (void*)0, 0};
10436
+ static swig_type_info _swigt__p_f_p_void_int_p_q_const__char_int_p_q_const__char__void = {"_p_f_p_void_int_p_q_const__char_int_p_q_const__char__void", "void (*)(void *,int,char const *,int,char const *)|OboeDebugLoggerFcn", 0, 0, (void*)0, 0};
8008
10437
  static swig_type_info _swigt__p_int = {"_p_int", "intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t *", 0, 0, (void*)0, 0};
8009
10438
  static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
8010
10439
  static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (void*)0, 0};
@@ -8023,14 +10452,16 @@ static swig_type_info *swig_type_initial[] = {
8023
10452
  &_swigt__p_Context,
8024
10453
  &_swigt__p_CustomMetrics,
8025
10454
  &_swigt__p_Event,
8026
- &_swigt__p_FILE,
10455
+ &_swigt__p_LoggingOptions,
8027
10456
  &_swigt__p_Metadata,
8028
10457
  &_swigt__p_MetricTags,
10458
+ &_swigt__p_OboeAPI,
10459
+ &_swigt__p_OboeAPIOptions,
8029
10460
  &_swigt__p_Reporter,
8030
10461
  &_swigt__p_Span,
8031
10462
  &_swigt__p_char,
8032
10463
  &_swigt__p_double,
8033
- &_swigt__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void,
10464
+ &_swigt__p_f_p_void_int_p_q_const__char_int_p_q_const__char__void,
8034
10465
  &_swigt__p_int,
8035
10466
  &_swigt__p_long,
8036
10467
  &_swigt__p_long_long,
@@ -8049,14 +10480,16 @@ static swig_cast_info _swigc__p_Config[] = { {&_swigt__p_Config, 0, 0, 0},{0, 0
8049
10480
  static swig_cast_info _swigc__p_Context[] = { {&_swigt__p_Context, 0, 0, 0},{0, 0, 0, 0}};
8050
10481
  static swig_cast_info _swigc__p_CustomMetrics[] = { {&_swigt__p_CustomMetrics, 0, 0, 0},{0, 0, 0, 0}};
8051
10482
  static swig_cast_info _swigc__p_Event[] = { {&_swigt__p_Event, 0, 0, 0},{0, 0, 0, 0}};
8052
- static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
10483
+ static swig_cast_info _swigc__p_LoggingOptions[] = { {&_swigt__p_LoggingOptions, 0, 0, 0},{0, 0, 0, 0}};
8053
10484
  static swig_cast_info _swigc__p_Metadata[] = { {&_swigt__p_Metadata, 0, 0, 0},{0, 0, 0, 0}};
8054
10485
  static swig_cast_info _swigc__p_MetricTags[] = { {&_swigt__p_MetricTags, 0, 0, 0},{0, 0, 0, 0}};
10486
+ static swig_cast_info _swigc__p_OboeAPI[] = { {&_swigt__p_OboeAPI, 0, 0, 0},{0, 0, 0, 0}};
10487
+ static swig_cast_info _swigc__p_OboeAPIOptions[] = { {&_swigt__p_OboeAPIOptions, 0, 0, 0},{0, 0, 0, 0}};
8055
10488
  static swig_cast_info _swigc__p_Reporter[] = { {&_swigt__p_Reporter, 0, 0, 0},{0, 0, 0, 0}};
8056
10489
  static swig_cast_info _swigc__p_Span[] = { {&_swigt__p_Span, 0, 0, 0},{0, 0, 0, 0}};
8057
10490
  static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
8058
10491
  static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
8059
- static swig_cast_info _swigc__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void[] = { {&_swigt__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void, 0, 0, 0},{0, 0, 0, 0}};
10492
+ static swig_cast_info _swigc__p_f_p_void_int_p_q_const__char_int_p_q_const__char__void[] = { {&_swigt__p_f_p_void_int_p_q_const__char_int_p_q_const__char__void, 0, 0, 0},{0, 0, 0, 0}};
8060
10493
  static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
8061
10494
  static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
8062
10495
  static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
@@ -8075,14 +10508,16 @@ static swig_cast_info *swig_cast_initial[] = {
8075
10508
  _swigc__p_Context,
8076
10509
  _swigc__p_CustomMetrics,
8077
10510
  _swigc__p_Event,
8078
- _swigc__p_FILE,
10511
+ _swigc__p_LoggingOptions,
8079
10512
  _swigc__p_Metadata,
8080
10513
  _swigc__p_MetricTags,
10514
+ _swigc__p_OboeAPI,
10515
+ _swigc__p_OboeAPIOptions,
8081
10516
  _swigc__p_Reporter,
8082
10517
  _swigc__p_Span,
8083
10518
  _swigc__p_char,
8084
10519
  _swigc__p_double,
8085
- _swigc__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void,
10520
+ _swigc__p_f_p_void_int_p_q_const__char_int_p_q_const__char__void,
8086
10521
  _swigc__p_int,
8087
10522
  _swigc__p_long,
8088
10523
  _swigc__p_long_long,
@@ -8349,43 +10784,7 @@ SWIGEXPORT void Init_oboe_metal(void) {
8349
10784
  }
8350
10785
 
8351
10786
  SWIG_RubyInitializeTrackings();
8352
- rb_define_const(mOboe_metal, "OBOE_DEBUG_DISABLED", SWIG_From_int(static_cast< int >(OBOE_DEBUG_DISABLED)));
8353
- rb_define_const(mOboe_metal, "OBOE_DEBUG_FATAL", SWIG_From_int(static_cast< int >(OBOE_DEBUG_FATAL)));
8354
- rb_define_const(mOboe_metal, "OBOE_DEBUG_ERROR", SWIG_From_int(static_cast< int >(OBOE_DEBUG_ERROR)));
8355
- rb_define_const(mOboe_metal, "OBOE_DEBUG_WARNING", SWIG_From_int(static_cast< int >(OBOE_DEBUG_WARNING)));
8356
- rb_define_const(mOboe_metal, "OBOE_DEBUG_INFO", SWIG_From_int(static_cast< int >(OBOE_DEBUG_INFO)));
8357
- rb_define_const(mOboe_metal, "OBOE_DEBUG_LOW", SWIG_From_int(static_cast< int >(OBOE_DEBUG_LOW)));
8358
- rb_define_const(mOboe_metal, "OBOE_DEBUG_MEDIUM", SWIG_From_int(static_cast< int >(OBOE_DEBUG_MEDIUM)));
8359
- rb_define_const(mOboe_metal, "OBOE_DEBUG_HIGH", SWIG_From_int(static_cast< int >(OBOE_DEBUG_HIGH)));
8360
- rb_define_const(mOboe_metal, "OBOE_MODULE_ALL", SWIG_From_int(static_cast< int >(OBOE_MODULE_ALL)));
8361
- rb_define_const(mOboe_metal, "OBOE_MODULE_UNDEF", SWIG_From_int(static_cast< int >(OBOE_MODULE_UNDEF)));
8362
- rb_define_const(mOboe_metal, "OBOE_MODULE_LIBOBOE", SWIG_From_int(static_cast< int >(OBOE_MODULE_LIBOBOE)));
8363
- rb_define_const(mOboe_metal, "OBOE_MODULE_SETTINGS", SWIG_From_int(static_cast< int >(OBOE_MODULE_SETTINGS)));
8364
- rb_define_const(mOboe_metal, "OBOE_MODULE_REPORTER_FILE", SWIG_From_int(static_cast< int >(OBOE_MODULE_REPORTER_FILE)));
8365
- rb_define_const(mOboe_metal, "OBOE_MODULE_REPORTER_UDP", SWIG_From_int(static_cast< int >(OBOE_MODULE_REPORTER_UDP)));
8366
- rb_define_const(mOboe_metal, "OBOE_MODULE_REPORTER_SSL", SWIG_From_int(static_cast< int >(OBOE_MODULE_REPORTER_SSL)));
8367
- rb_define_const(mOboe_metal, "OBOE_MODULE_REPORTER_LAMBDA", SWIG_From_int(static_cast< int >(OBOE_MODULE_REPORTER_LAMBDA)));
8368
- rb_define_const(mOboe_metal, "OBOE_MODULE_APACHE", SWIG_From_int(static_cast< int >(OBOE_MODULE_APACHE)));
8369
- rb_define_const(mOboe_metal, "OBOE_MODULE_NGINX", SWIG_From_int(static_cast< int >(OBOE_MODULE_NGINX)));
8370
- rb_define_const(mOboe_metal, "OBOE_MODULE_PHP", SWIG_From_int(static_cast< int >(OBOE_MODULE_PHP)));
8371
- rb_define_const(mOboe_metal, "OBOE_MODULE_DOTNET", SWIG_From_int(static_cast< int >(OBOE_MODULE_DOTNET)));
8372
- rb_define_const(mOboe_metal, "OBOE_MODULE_RUBY", SWIG_From_int(static_cast< int >(OBOE_MODULE_RUBY)));
8373
- rb_define_const(mOboe_metal, "OBOE_MODULE_HOST_ID_SERVICE", SWIG_From_int(static_cast< int >(OBOE_MODULE_HOST_ID_SERVICE)));
8374
- rb_define_const(mOboe_metal, "OBOE_MODULE_AWS_RESOURCE_PROVIDER", SWIG_From_int(static_cast< int >(OBOE_MODULE_AWS_RESOURCE_PROVIDER)));
8375
- rb_define_const(mOboe_metal, "OBOE_MODULE_AZURE_RESOURCE_PROVIDER", SWIG_From_int(static_cast< int >(OBOE_MODULE_AZURE_RESOURCE_PROVIDER)));
8376
- rb_define_const(mOboe_metal, "OBOE_MODULE_UAMSCLIENT_RESOURCE_PROVIDER", SWIG_From_int(static_cast< int >(OBOE_MODULE_UAMSCLIENT_RESOURCE_PROVIDER)));
8377
- rb_define_const(mOboe_metal, "MAX_DEBUG_MSG_COUNT", SWIG_From_int(static_cast< int >(1)));
8378
- rb_define_module_function(mOboe_metal, "oboe_debug_log_init", VALUEFUNC(_wrap_oboe_debug_log_init), -1);
8379
- rb_define_module_function(mOboe_metal, "oboe_debug_logger", VALUEFUNC(_wrap_oboe_debug_logger), -1);
8380
- rb_define_module_function(mOboe_metal, "oboe_debug_log_level_name", VALUEFUNC(_wrap_oboe_debug_log_level_name), -1);
8381
- rb_define_module_function(mOboe_metal, "oboe_debug_module_name", VALUEFUNC(_wrap_oboe_debug_module_name), -1);
8382
- rb_define_module_function(mOboe_metal, "oboe_debug_log_level_get", VALUEFUNC(_wrap_oboe_debug_log_level_get), -1);
8383
- rb_define_module_function(mOboe_metal, "oboe_debug_log_level_set", VALUEFUNC(_wrap_oboe_debug_log_level_set), -1);
8384
- rb_define_module_function(mOboe_metal, "oboe_debug_log_to_stream", VALUEFUNC(_wrap_oboe_debug_log_to_stream), -1);
8385
- rb_define_module_function(mOboe_metal, "oboe_debug_log_flush", VALUEFUNC(_wrap_oboe_debug_log_flush), -1);
8386
- rb_define_module_function(mOboe_metal, "oboe_debug_log_to_file", VALUEFUNC(_wrap_oboe_debug_log_to_file), -1);
8387
10787
  rb_define_module_function(mOboe_metal, "oboe_debug_log_add", VALUEFUNC(_wrap_oboe_debug_log_add), -1);
8388
- rb_define_module_function(mOboe_metal, "oboe_debug_log_remove", VALUEFUNC(_wrap_oboe_debug_log_remove), -1);
8389
10788
 
8390
10789
  SwigClassMetadata.klass = rb_define_class_under(mOboe_metal, "Metadata", rb_cObject);
8391
10790
  SWIG_TypeClientData(SWIGTYPE_p_Metadata, (void *) &SwigClassMetadata);
@@ -8504,5 +10903,44 @@ SWIGEXPORT void Init_oboe_metal(void) {
8504
10903
  SwigClassConfig.mark = 0;
8505
10904
  SwigClassConfig.destroy = (void (*)(void *)) free_Config;
8506
10905
  SwigClassConfig.trackObjects = 0;
10906
+
10907
+ SwigClassLoggingOptions.klass = rb_define_class_under(mOboe_metal, "LoggingOptions", rb_cObject);
10908
+ SWIG_TypeClientData(SWIGTYPE_p_LoggingOptions, (void *) &SwigClassLoggingOptions);
10909
+ rb_define_alloc_func(SwigClassLoggingOptions.klass, _wrap_LoggingOptions_allocate);
10910
+ rb_define_method(SwigClassLoggingOptions.klass, "initialize", VALUEFUNC(_wrap_new_LoggingOptions), -1);
10911
+ rb_define_method(SwigClassLoggingOptions.klass, "level=", VALUEFUNC(_wrap_LoggingOptions_level_set), -1);
10912
+ rb_define_method(SwigClassLoggingOptions.klass, "level", VALUEFUNC(_wrap_LoggingOptions_level_get), -1);
10913
+ rb_define_method(SwigClassLoggingOptions.klass, "type=", VALUEFUNC(_wrap_LoggingOptions_type_set), -1);
10914
+ rb_define_method(SwigClassLoggingOptions.klass, "type", VALUEFUNC(_wrap_LoggingOptions_type_get), -1);
10915
+ SwigClassLoggingOptions.mark = 0;
10916
+ SwigClassLoggingOptions.destroy = (void (*)(void *)) free_LoggingOptions;
10917
+ SwigClassLoggingOptions.trackObjects = 0;
10918
+
10919
+ SwigClassOboeAPIOptions.klass = rb_define_class_under(mOboe_metal, "OboeAPIOptions", rb_cObject);
10920
+ SWIG_TypeClientData(SWIGTYPE_p_OboeAPIOptions, (void *) &SwigClassOboeAPIOptions);
10921
+ rb_define_alloc_func(SwigClassOboeAPIOptions.klass, _wrap_OboeAPIOptions_allocate);
10922
+ rb_define_method(SwigClassOboeAPIOptions.klass, "initialize", VALUEFUNC(_wrap_new_OboeAPIOptions), -1);
10923
+ rb_define_method(SwigClassOboeAPIOptions.klass, "logging_options=", VALUEFUNC(_wrap_OboeAPIOptions_logging_options_set), -1);
10924
+ rb_define_method(SwigClassOboeAPIOptions.klass, "logging_options", VALUEFUNC(_wrap_OboeAPIOptions_logging_options_get), -1);
10925
+ SwigClassOboeAPIOptions.mark = 0;
10926
+ SwigClassOboeAPIOptions.destroy = (void (*)(void *)) free_OboeAPIOptions;
10927
+ SwigClassOboeAPIOptions.trackObjects = 0;
10928
+
10929
+ SwigClassOboeAPI.klass = rb_define_class_under(mOboe_metal, "OboeAPI", rb_cObject);
10930
+ SWIG_TypeClientData(SWIGTYPE_p_OboeAPI, (void *) &SwigClassOboeAPI);
10931
+ rb_define_alloc_func(SwigClassOboeAPI.klass, _wrap_OboeAPI_allocate);
10932
+ rb_define_method(SwigClassOboeAPI.klass, "initialize", VALUEFUNC(_wrap_new_OboeAPI), -1);
10933
+ rb_define_method(SwigClassOboeAPI.klass, "getTracingDecision", VALUEFUNC(_wrap_OboeAPI_getTracingDecision), -1);
10934
+ rb_define_method(SwigClassOboeAPI.klass, "consumeRequestCount", VALUEFUNC(_wrap_OboeAPI_consumeRequestCount), -1);
10935
+ rb_define_method(SwigClassOboeAPI.klass, "consumeTokenBucketExhaustionCount", VALUEFUNC(_wrap_OboeAPI_consumeTokenBucketExhaustionCount), -1);
10936
+ rb_define_method(SwigClassOboeAPI.klass, "consumeTraceCount", VALUEFUNC(_wrap_OboeAPI_consumeTraceCount), -1);
10937
+ rb_define_method(SwigClassOboeAPI.klass, "consumeSampleCount", VALUEFUNC(_wrap_OboeAPI_consumeSampleCount), -1);
10938
+ rb_define_method(SwigClassOboeAPI.klass, "consumeThroughTraceCount", VALUEFUNC(_wrap_OboeAPI_consumeThroughTraceCount), -1);
10939
+ rb_define_method(SwigClassOboeAPI.klass, "consumeTriggeredTraceCount", VALUEFUNC(_wrap_OboeAPI_consumeTriggeredTraceCount), -1);
10940
+ rb_define_method(SwigClassOboeAPI.klass, "getLastUsedSampleRate", VALUEFUNC(_wrap_OboeAPI_getLastUsedSampleRate), -1);
10941
+ rb_define_method(SwigClassOboeAPI.klass, "getLastUsedSampleSource", VALUEFUNC(_wrap_OboeAPI_getLastUsedSampleSource), -1);
10942
+ SwigClassOboeAPI.mark = 0;
10943
+ SwigClassOboeAPI.destroy = (void (*)(void *)) free_OboeAPI;
10944
+ SwigClassOboeAPI.trackObjects = 0;
8507
10945
  }
8508
10946