appoptics_apm 4.11.2 → 4.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build_and_release_gem.yml +103 -0
  3. data/.github/workflows/build_for_packagecloud.yml +70 -0
  4. data/.github/workflows/docker-images.yml +47 -0
  5. data/.github/workflows/run_cpluplus_tests.yml +73 -0
  6. data/.github/workflows/run_tests.yml +168 -0
  7. data/.github/workflows/scripts/test_install.rb +23 -0
  8. data/.github/workflows/swig/swig-v4.0.2.tar.gz +0 -0
  9. data/.github/workflows/test_on_4_linux.yml +159 -0
  10. data/.gitignore +26 -25
  11. data/.travis.yml +30 -23
  12. data/Gemfile +2 -26
  13. data/LICENSE +202 -193
  14. data/README.md +6 -6
  15. data/appoptics_apm.gemspec +15 -8
  16. data/examples/prepend.rb +13 -0
  17. data/examples/sdk_examples.rb +16 -0
  18. data/ext/oboe_metal/README.md +2 -2
  19. data/ext/oboe_metal/extconf.rb +45 -22
  20. data/ext/oboe_metal/lib/liboboe-1.0-alpine-x86_64.so.0.0.0.sha256 +1 -0
  21. data/ext/oboe_metal/lib/liboboe-1.0-x86_64.so.0.0.0.sha256 +1 -0
  22. data/ext/oboe_metal/src/README.md +6 -0
  23. data/ext/oboe_metal/src/VERSION +2 -1
  24. data/ext/oboe_metal/src/frames.cc +246 -0
  25. data/ext/oboe_metal/src/frames.h +40 -0
  26. data/ext/oboe_metal/src/init_appoptics_apm.cc +21 -0
  27. data/ext/oboe_metal/src/logging.cc +95 -0
  28. data/ext/oboe_metal/src/logging.h +35 -0
  29. data/ext/oboe_metal/src/oboe.h +46 -23
  30. data/ext/oboe_metal/src/oboe_api.cpp +652 -0
  31. data/ext/oboe_metal/src/oboe_api.hpp +431 -0
  32. data/ext/oboe_metal/src/oboe_debug.h +2 -0
  33. data/ext/oboe_metal/src/{oboe_wrap.cxx → oboe_swig_wrap.cc} +1523 -1327
  34. data/ext/oboe_metal/src/profiling.cc +435 -0
  35. data/ext/oboe_metal/src/profiling.h +78 -0
  36. data/ext/oboe_metal/test/CMakeLists.txt +53 -0
  37. data/ext/oboe_metal/test/FindGMock.cmake +43 -0
  38. data/ext/oboe_metal/test/README.md +56 -0
  39. data/ext/oboe_metal/test/frames_test.cc +164 -0
  40. data/ext/oboe_metal/test/profiling_test.cc +93 -0
  41. data/ext/oboe_metal/test/ruby_inc_dir.rb +8 -0
  42. data/ext/oboe_metal/test/ruby_prefix.rb +8 -0
  43. data/ext/oboe_metal/test/ruby_test_helper.rb +67 -0
  44. data/ext/oboe_metal/test/test.h +11 -0
  45. data/ext/oboe_metal/test/test_main.cc +32 -0
  46. data/lib/appoptics_apm/api/metrics.rb +7 -1
  47. data/lib/appoptics_apm/base.rb +1 -1
  48. data/lib/appoptics_apm/config.rb +20 -10
  49. data/lib/appoptics_apm/frameworks/rails/inst/action_view.rb +64 -21
  50. data/lib/appoptics_apm/frameworks/rails/inst/connection_adapters/utils5x.rb +7 -1
  51. data/lib/appoptics_apm/frameworks/rails.rb +7 -1
  52. data/lib/appoptics_apm/inst/http.rb +67 -59
  53. data/lib/appoptics_apm/inst/rack.rb +13 -6
  54. data/lib/appoptics_apm/inst/rack_cache.rb +35 -0
  55. data/lib/appoptics_apm/inst/redis.rb +1 -2
  56. data/lib/appoptics_apm/noop/context.rb +4 -3
  57. data/lib/appoptics_apm/noop/metadata.rb +4 -1
  58. data/lib/appoptics_apm/noop/profiling.rb +21 -0
  59. data/lib/appoptics_apm/oboe_init_options.rb +41 -23
  60. data/lib/appoptics_apm/sdk/current_trace.rb +5 -9
  61. data/lib/appoptics_apm/support/profiling.rb +18 -0
  62. data/lib/appoptics_apm/support/transaction_metrics.rb +1 -1
  63. data/lib/appoptics_apm/support/transaction_settings.rb +3 -3
  64. data/lib/appoptics_apm/support/x_trace_options.rb +2 -2
  65. data/lib/appoptics_apm/support_report.rb +2 -2
  66. data/lib/appoptics_apm/test.rb +5 -4
  67. data/lib/appoptics_apm/util.rb +4 -3
  68. data/lib/appoptics_apm/version.rb +4 -3
  69. data/lib/appoptics_apm/xtrace.rb +1 -1
  70. data/lib/appoptics_apm.rb +4 -2
  71. data/lib/oboe_metal.rb +2 -2
  72. data/lib/rails/generators/appoptics_apm/templates/appoptics_apm_initializer.rb +80 -20
  73. data/log/.keep +0 -0
  74. metadata +47 -14
  75. data/.travis/bundle.sh +0 -9
  76. data/ext/oboe_metal/src/oboe.hpp +0 -874
@@ -0,0 +1,431 @@
1
+ /**
2
+ * @file oboe_api.hpp - C++ liboboe wrapper primarily for generating SWIG interfaces
3
+ * and used by Ruby c++ extension for profiling
4
+ *
5
+ * TODO: This doc is outdated
6
+ * This API should follow https://github.com/tracelytics/tracelons/wiki/Instrumentation-API
7
+ */
8
+
9
+ #ifndef OBOE_API_HPP
10
+ #define OBOE_API_HPP
11
+
12
+ #include <unistd.h>
13
+ #include <cstdlib>
14
+ #include <cstring>
15
+ #include <iostream>
16
+ #include <string>
17
+ #include <vector>
18
+
19
+ #include "oboe.h"
20
+
21
+ class Event;
22
+ class Reporter;
23
+ class Context;
24
+
25
+ // exclude some stuff that unnecessarily bloats the swig interface
26
+ #ifndef SWIG
27
+ // FrameData is for profiling and only used via Ruby directly compiled c++ code
28
+ typedef struct frame_data {
29
+ std::string klass;
30
+ std::string method;
31
+ std::string file;
32
+ int lineno = 0;
33
+ } FrameData;
34
+ #endif // SWIG exclusion
35
+
36
+ /**
37
+ * Metadata is the X-Trace identifier and the information needed to work with it.
38
+ */
39
+ class Metadata : private oboe_metadata_t {
40
+ friend class Reporter;
41
+ friend class Context;
42
+
43
+ public:
44
+ Metadata(const oboe_metadata_t *md);
45
+ ~Metadata();
46
+
47
+ // these new objects are managed by SWIG %newobject
48
+ /**
49
+ * Create a new event object using this Metadata's context.
50
+ *
51
+ * NOTE: The returned object must be "delete"d.
52
+ */
53
+ Event *createEvent();
54
+
55
+ Metadata *copy();
56
+ bool isValid();
57
+ bool isSampled();
58
+
59
+ static Metadata *makeRandom(bool sampled = true);
60
+ static Metadata *fromString(std::string s);
61
+
62
+ oboe_metadata_t *metadata();
63
+
64
+ #ifdef SWIGJAVA
65
+ std::string toStr();
66
+ #else
67
+ std::string toString();
68
+ #endif
69
+ };
70
+
71
+ /**
72
+ * The Context class manages the metadata and the settings configuration.
73
+ *
74
+ * The metadata includes the X-Trace identifier fields and the information work working with it.
75
+ * The metadata is needed before any trace messages can be sent and must either be generated for
76
+ * new traces or derived from the X-Trace header of an existing trace.
77
+ *
78
+ * The settings information is used primarily to determine when a new request should be traced.
79
+ * The information begins with configuration values for tracing_mode and sample_rate and then
80
+ * updates are received periodically from the collector to adjust the rate at which traces
81
+ * are generated.
82
+ */
83
+ class Context {
84
+ public:
85
+ /**
86
+ * Set the tracing mode.
87
+ *
88
+ * @param newMode One of
89
+ * - OBOE_TRACE_DISABLED(0) to disable tracing,
90
+ * - OBOE_TRACE_ENABLED(1) to start a new trace if needed, or
91
+ * - OBOE_TRACE_THROUGH(2) to only add to an existing trace.
92
+ */
93
+ static void setTracingMode(int newMode);
94
+
95
+ /**
96
+ * Set the default sample rate.
97
+ *
98
+ * This rate is used until overridden by the AppOptics servers. If not set then the
99
+ * value comes from settings records downloaded from AppOptics.
100
+ *
101
+ * The rate is interpreted as a ratio out of OBOE_SAMPLE_RESOLUTION (currently 1,000,000).
102
+ *
103
+ * @param newRate A number between 0 (none) and OBOE_SAMPLE_RESOLUTION (a million)
104
+ */
105
+ static void setDefaultSampleRate(int newRate);
106
+
107
+ /**
108
+ * Ask the collector for the final tracing decisions
109
+ *
110
+ * call once per request
111
+ *
112
+ * when compiled via SWIG this function takes 0-8 input argss and returns 9 output args
113
+ *
114
+ * inputs (0-8, all optional):
115
+ * @param in_xtrace, a valid xtrace string
116
+ * @param custom_sample_rate, 0-1000000
117
+ * @param custom_tracing_mode, 0(disabled) or 1(enabled)
118
+ * @param request_type, 0 normal sampling, 1 trigger trace
119
+ * @param custom_custom_trigger_mode, 0(disabled) or 1(enabled)
120
+ * @param header_options, the string from the X-Trace-Options header
121
+ * @param header_signature, the string from the X-Trace-Options-Signature header
122
+ * @param header_timestamp, the timestamp inside the X-Trace-Options header
123
+ *
124
+ * returns:
125
+ * @param do_metrics, ignore when using SWIG, it will be mapped to the first return value
126
+ * @param do_sample, ignore when using SWIG, it will be mapped to the second return value
127
+ * @param sample_rate, ignore when using SWIG, it will be mapped to the third return value
128
+ * @param sample_source, ignore when using SWIG, it will be mapped to the forth return value
129
+ * @param type, 0 normal sampling, 1 - trigger trace
130
+ * @param auth, 0 success, 1 failure, -1 not requested
131
+ * @param status_msg, message describing the trigger tracing decision
132
+ * @param auth_msg, message describing the success/failure of the authorization
133
+ *
134
+ * @status one of the OBOE_TRACING_DECISION_* codes
135
+ */
136
+
137
+ static void getDecisions(
138
+ // output
139
+ int *do_metrics,
140
+ int *do_sample,
141
+ int *sample_rate,
142
+ int *sample_source,
143
+ double *bucket_rate,
144
+ double *bucket_cap,
145
+ int *type,
146
+ int *auth,
147
+ std::string *status_msg,
148
+ std::string *auth_msg,
149
+ int *status,
150
+ // input
151
+ const char *in_xtrace = NULL,
152
+ int custom_tracing_mode = OBOE_SETTINGS_UNSET,
153
+ int custom_sample_rate = OBOE_SETTINGS_UNSET,
154
+ int request_type = 0,
155
+ int custom_trigger_mode = 0,
156
+ const char *header_options = NULL,
157
+ const char *header_signature = NULL,
158
+ long header_timestamp = 0);
159
+
160
+ /**
161
+ * Get a pointer to the current context (from thread-local storage)
162
+ */
163
+ static oboe_metadata_t *get();
164
+
165
+ /**
166
+ * Get the current context as a printable string.
167
+ */
168
+ #ifdef SWIGJAVA
169
+ static std::string toStr();
170
+ #else
171
+ static std::string toString();
172
+ #endif
173
+
174
+ /**
175
+ * Set the current context (this updates thread-local storage).
176
+ */
177
+ static void set(oboe_metadata_t *md);
178
+
179
+ /**
180
+ * Set the current context from a string.
181
+ */
182
+ static void fromString(std::string s);
183
+
184
+ // this new object is managed by SWIG %newobject
185
+ static Metadata *copy();
186
+
187
+ static void setSampledFlag();
188
+
189
+ static void clear();
190
+
191
+ static bool isValid();
192
+
193
+ static bool isSampled();
194
+
195
+ /**
196
+ * Perform validation and replacement of invalid characters on the given service key.
197
+ */
198
+ static std::string validateTransformServiceName(std::string service_key);
199
+
200
+ /**
201
+ * Shut down the Oboe library.
202
+ *
203
+ * This releases any resources held by the library which may include terminating
204
+ * child threads.
205
+ */
206
+ static void shutdown();
207
+
208
+ /**
209
+ * check if oboe is ready for tracing
210
+ *
211
+ * @param timeout an optional timeout (in milli seconds) to block this function until ready
212
+ * @return one of the return codes (see oboe.h):
213
+ * - OBOE_SERVER_RESPONSE_UNKNOWN
214
+ * - OBOE_SERVER_RESPONSE_OK
215
+ * - OBOE_SERVER_RESPONSE_TRY_LATER
216
+ * - OBOE_SERVER_RESPONSE_LIMIT_EXCEEDED
217
+ * - OBOE_SERVER_RESPONSE_INVALID_API_KEY
218
+ * - OBOE_SERVER_RESPONSE_CONNECT_ERROR
219
+ */
220
+ static int isReady(unsigned int timeout);
221
+
222
+ /**
223
+ * check if oboe is running in a AWS Lambda environment
224
+ */
225
+ static bool isLambda();
226
+
227
+ // these new objects are managed by SWIG %newobject
228
+ /**
229
+ * Create a new event object using the thread's context.
230
+ *
231
+ * NOTE: The returned object must be "delete"d.
232
+ */
233
+ static Event *createEvent();
234
+ static Event *startTrace();
235
+ };
236
+
237
+ class Event : private oboe_event_t {
238
+ friend class Reporter;
239
+ friend class Context;
240
+ friend class Metadata;
241
+
242
+ private:
243
+ Event();
244
+ Event(const oboe_metadata_t *md, bool addEdge = true);
245
+
246
+ public:
247
+ ~Event();
248
+
249
+ // called e.g. from Python e.addInfo("Key", None) & Ruby e.addInfo("Key", nil)
250
+ bool addInfo(char *key, void *val);
251
+ bool addInfo(char *key, const std::string &val);
252
+ bool addInfo(char *key, long val);
253
+ bool addInfo(char *key, double val);
254
+ bool addInfo(char *key, bool val);
255
+ bool addInfo(char *key, const long *vals, int num);
256
+
257
+ #ifndef SWIG // for profiling only used by Ruby gem cpp-code
258
+ bool addInfo(char *key, const std::vector<FrameData> &vals);
259
+ #endif
260
+
261
+ bool addEdge(oboe_metadata_t *md);
262
+ bool addEdgeStr(const std::string &val);
263
+ bool addContextOpId(const oboe_metadata_t *md);
264
+
265
+ bool addHostname();
266
+
267
+ /**
268
+ * Get a new copy of this metadata.
269
+ *
270
+ * NOTE: The returned object must be "delete"d.
271
+ */
272
+ Metadata *getMetadata();
273
+ std::string metadataString();
274
+ std::string opIdString();
275
+
276
+ /**
277
+ * Report this event.
278
+ *
279
+ * This sends the event using the default reporter.
280
+ *
281
+ * @return True on success; otherwise an error message is logged.
282
+ */
283
+ bool send();
284
+
285
+ /**
286
+ * Report a profiling event
287
+ *
288
+ * This sends the event using the dafault reporter
289
+ * It doesn't add a timestamp
290
+ * The timestamp needs to be precise for profiling and therefor
291
+ * needs to be added by the agent when the snapshot is taken
292
+ */
293
+ bool sendProfiling();
294
+
295
+ bool addSpanRef(const oboe_metadata_t *md);
296
+ bool addProfileEdge(std::string id);
297
+
298
+ /**
299
+ * Create a new event object using the given metadata context.
300
+ *
301
+ * NOTE: The metadata context must be unique to the new trace.
302
+ *
303
+ * NOTE: The returned object must be "delete"d.
304
+ *
305
+ * @param md The metadata object to use when creating the new event.
306
+ */
307
+ static Event *startTrace(const oboe_metadata_t *md);
308
+ };
309
+
310
+ class Span {
311
+ public:
312
+ /**
313
+ * these functions return the final transaction name
314
+ * to be used in the exit event of the trace
315
+ */
316
+ static std::string createSpan(const char *transaction, const char *domain, const int64_t duration, const int has_error, const char *service_name = NULL);
317
+
318
+ static std::string createHttpSpan(const char *transaction, const char *url, const char *domain, const int64_t duration,
319
+ const int status, const char *method, const int has_error, const char *service_name = NULL);
320
+ };
321
+
322
+ class MetricTags {
323
+ friend class CustomMetrics;
324
+
325
+ public:
326
+ MetricTags(size_t count);
327
+ ~MetricTags();
328
+ bool add(size_t index, const char *k, const char *v);
329
+ /**
330
+ * Get oboe_metric_tag_t function
331
+ * Please note that SWIG doesn't have the definition of
332
+ * oboe_metric_tag_t.
333
+ * Ruby and Python should not call this method
334
+ * @return oboe_metric_tag_t*
335
+ */
336
+ oboe_metric_tag_t *get() const;
337
+ private:
338
+ oboe_metric_tag_t *tags;
339
+ size_t size;
340
+ };
341
+
342
+ class CustomMetrics {
343
+ public:
344
+ static int summary(const char *name, const double value, const int count, const int host_tag,
345
+ const char *service_name, const MetricTags *tags, size_t tags_count);
346
+
347
+ static int increment(const char *name, const int count, const int host_tag,
348
+ const char *service_name, const MetricTags *tags, size_t tags_count);
349
+ };
350
+
351
+ #ifndef SWIG // for profiling only used by Ruby gem c++-code
352
+ class OboeProfiling {
353
+ public:
354
+ static int get_interval();
355
+ };
356
+ #endif
357
+
358
+ class Reporter : private oboe_reporter_t {
359
+ friend class Context; // Access to the private oboe_reporter_t base structure.
360
+ public:
361
+ int init_status;
362
+
363
+ /**
364
+ * Initialize a reporter structure.
365
+ *
366
+ * See the wrapped Context::init for more details.
367
+ *
368
+ * @params these correspond to the keys of the oboe_init_options struct
369
+ */
370
+ Reporter(
371
+ std::string hostname_alias, // optional hostname alias
372
+ int log_level, // level at which log messages will be written to log file (0-6)
373
+ std::string log_file_path, // file name including path for log file
374
+
375
+ int max_transactions, // maximum number of transaction names to track
376
+ int max_flush_wait_time, // maximum wait time for flushing data before terminating in milli seconds
377
+ int events_flush_interval, // events flush timeout in seconds (threshold for batching messages before sending off)
378
+ int max_request_size_bytes, // events flush batch size in KB (threshold for batching messages before sending off)
379
+
380
+ std::string reporter, // the reporter to be used ("ssl", "upd", "file", "null")
381
+ std::string host, // collector endpoint (reporter=ssl), udp address (reporter=udp), or file path (reporter=file)
382
+ std::string service_key, // the service key (also known as access_key)
383
+ std::string trusted_path, // path to the SSL certificate (only for ssl)
384
+
385
+ int buffer_size, // size of the message buffer
386
+ int trace_metrics, // flag indicating if trace metrics reporting should be enabled (default) or disabled
387
+ int histogram_precision, // the histogram precision (only for ssl)
388
+ double token_bucket_capacity, // custom token bucket capacity
389
+ double token_bucket_rate, // custom token bucket rate
390
+ int file_single, // use single files in file reporter for each event
391
+
392
+ int ec2_metadata_timeout, // the timeout (milli seconds) for retrieving EC2 metadata
393
+ std::string grpc_proxy, // HTTP proxy address and port to be used for the gRPC connection
394
+ int stdout_clear_nonblocking, // flag indicating if the O_NONBLOCK flag on stdout should be cleared,
395
+ // only used in lambda reporter (off=0, on=1, default off)
396
+ int is_grpc_clean_hack_enabled // flag indicating if custom grpc clean hack enabled (default 0)
397
+ );
398
+
399
+ ~Reporter();
400
+
401
+ bool sendReport(Event *evt);
402
+ bool sendReport(Event *evt, oboe_metadata_t *md);
403
+ bool sendStatus(Event *evt);
404
+ bool sendStatus(Event *evt, oboe_metadata_t *md);
405
+ void flush();
406
+ std::string getType();
407
+ };
408
+
409
+ class Config {
410
+ public:
411
+ /**
412
+ * Check if the Oboe library is compatible with a given version.revision.
413
+ *
414
+ * This will succeed if the library is at least as recent as specified and if no
415
+ * definitions have been removed since that revision.
416
+ *
417
+ * @param version The library's version number which increments every time the API changes.
418
+ * @param revision The revision of the current version of the library.
419
+ * @return Non-zero if the Oboe library is considered compatible with the specified revision.
420
+ */
421
+ static bool checkVersion(int version, int revision);
422
+
423
+ /**
424
+ * Get the complete Oboe library version number as a string, e.g. '10.0.3'
425
+ *
426
+ * @return The library's version string
427
+ */
428
+ static std::string getVersionString();
429
+ };
430
+
431
+ #endif // OBOE_API_HPP
@@ -38,10 +38,12 @@ enum OBOE_DEBUG_MODULE {
38
38
  OBOE_MODULE_REPORTER_FILE, /*!< File reporter */
39
39
  OBOE_MODULE_REPORTER_UDP, /*!< UDP (Tracelyzer) reporter */
40
40
  OBOE_MODULE_REPORTER_SSL, /*!< SSL reporter */
41
+ OBOE_MODULE_REPORTER_LAMBDA, /*!< lambda wrapper */
41
42
  OBOE_MODULE_APACHE, /*!< Apache webserver */
42
43
  OBOE_MODULE_NGINX, /*!< Nginx webserver */
43
44
  OBOE_MODULE_PHP, /*!< PHP interpreter */
44
45
  OBOE_MODULE_DOTNET, /*!< dotnet wrapper */
46
+ OBOE_MODULE_RUBY, /*!< ruby c++ extension */
45
47
  };
46
48
 
47
49
  /**
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.0
3
+ * Version 4.0.2
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -977,38 +977,46 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
977
977
 
978
978
 
979
979
  /*
980
- * Need to be very careful about how these macros are defined, especially
981
- * when compiling C++ code or C code with an ANSI C compiler.
980
+ * The following macros are used for providing the correct type of a
981
+ * function pointer to the Ruby C API.
982
+ * Starting with Ruby 2.7 (corresponding to RB_METHOD_DEFINITION_DECL being
983
+ * defined) these macros act transparently due to Ruby's moving away from
984
+ * ANYARGS and instead employing strict function signatures.
982
985
  *
983
- * VALUEFUNC(f) is a macro used to typecast a C function that implements
984
- * a Ruby method so that it can be passed as an argument to API functions
985
- * like rb_define_method() and rb_define_singleton_method().
986
+ * Note: In case of C (not C++) the macros are transparent even before
987
+ * Ruby 2.7 due to the fact that the Ruby C API used function declarators
988
+ * with empty parentheses, which allows for an unspecified number of
989
+ * arguments.
986
990
  *
987
- * VOIDFUNC(f) is a macro used to typecast a C function that implements
988
- * either the "mark" or "free" stuff for a Ruby Data object, so that it
989
- * can be passed as an argument to API functions like Data_Wrap_Struct()
991
+ * PROTECTFUNC(f) is used for the function pointer argument of the Ruby
992
+ * C API function rb_protect().
993
+ *
994
+ * VALUEFUNC(f) is used for the function pointer argument(s) of Ruby C API
995
+ * functions like rb_define_method() and rb_define_singleton_method().
996
+ *
997
+ * VOIDFUNC(f) is used to typecast a C function that implements either
998
+ * the "mark" or "free" stuff for a Ruby Data object, so that it can be
999
+ * passed as an argument to Ruby C API functions like Data_Wrap_Struct()
990
1000
  * and Data_Make_Struct().
1001
+ *
1002
+ * SWIG_RUBY_VOID_ANYARGS_FUNC(f) is used for the function pointer
1003
+ * argument(s) of Ruby C API functions like rb_define_virtual_variable().
1004
+ *
1005
+ * SWIG_RUBY_INT_ANYARGS_FUNC(f) is used for the function pointer
1006
+ * argument(s) of Ruby C API functions like st_foreach().
991
1007
  */
992
-
993
- #ifdef __cplusplus
994
- # ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
995
- # define PROTECTFUNC(f) ((VALUE (*)()) f)
996
- # define VALUEFUNC(f) ((VALUE (*)()) f)
997
- # define VOIDFUNC(f) ((void (*)()) f)
998
- # else
999
- # ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
1000
- # define PROTECTFUNC(f) ((VALUE (*)()) f)
1001
- # define VALUEFUNC(f) ((VALUE (*)()) f)
1002
- # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
1003
- # else /* These definitions should work for Ruby 1.7+ */
1004
- # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
1005
- # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
1006
- # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
1007
- # endif
1008
- # endif
1008
+ #if defined(__cplusplus) && !defined(RB_METHOD_DEFINITION_DECL)
1009
+ # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
1010
+ # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
1011
+ # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
1012
+ # define SWIG_RUBY_VOID_ANYARGS_FUNC(f) ((void (*)(ANYARGS))(f))
1013
+ # define SWIG_RUBY_INT_ANYARGS_FUNC(f) ((int (*)(ANYARGS))(f))
1009
1014
  #else
1015
+ # define PROTECTFUNC(f) (f)
1010
1016
  # define VALUEFUNC(f) (f)
1011
1017
  # define VOIDFUNC(f) (f)
1018
+ # define SWIG_RUBY_VOID_ANYARGS_FUNC(f) (f)
1019
+ # define SWIG_RUBY_INT_ANYARGS_FUNC(f) (f)
1012
1020
  #endif
1013
1021
 
1014
1022
  /* Don't use for expressions have side effect */
@@ -1227,7 +1235,7 @@ extern "C" {
1227
1235
  */
1228
1236
  static st_table* swig_ruby_trackings = NULL;
1229
1237
 
1230
- static VALUE swig_ruby_trackings_count(ANYARGS) {
1238
+ static VALUE swig_ruby_trackings_count(ID id, VALUE *var) {
1231
1239
  return SWIG2NUM(swig_ruby_trackings->num_entries);
1232
1240
  }
1233
1241
 
@@ -1264,7 +1272,9 @@ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
1264
1272
  swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value);
1265
1273
  }
1266
1274
 
1267
- rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", swig_ruby_trackings_count, NULL);
1275
+ rb_define_virtual_variable("SWIG_TRACKINGS_COUNT",
1276
+ VALUEFUNC(swig_ruby_trackings_count),
1277
+ SWIG_RUBY_VOID_ANYARGS_FUNC((rb_gvar_setter_t*)NULL));
1268
1278
  }
1269
1279
 
1270
1280
  /* Add a Tracking from a C/C++ struct to a Ruby object */
@@ -1313,13 +1323,15 @@ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
1313
1323
  to the passed callback function. */
1314
1324
 
1315
1325
  /* Proxy method to abstract the internal trackings datatype */
1316
- static int swig_ruby_internal_iterate_callback(void* ptr, VALUE obj, void(*meth)(void* ptr, VALUE obj)) {
1317
- (*meth)(ptr, obj);
1326
+ static int swig_ruby_internal_iterate_callback(st_data_t ptr, st_data_t obj, st_data_t meth) {
1327
+ ((void (*) (void *, VALUE))meth)((void *)ptr, (VALUE)obj);
1318
1328
  return ST_CONTINUE;
1319
1329
  }
1320
1330
 
1321
1331
  SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) {
1322
- st_foreach(swig_ruby_trackings, (int (*)(ANYARGS))&swig_ruby_internal_iterate_callback, (st_data_t)meth);
1332
+ st_foreach(swig_ruby_trackings,
1333
+ SWIG_RUBY_INT_ANYARGS_FUNC(swig_ruby_internal_iterate_callback),
1334
+ (st_data_t)meth);
1323
1335
  }
1324
1336
 
1325
1337
  #ifdef __cplusplus
@@ -1600,6 +1612,8 @@ SWIGRUNTIMEINLINE char *
1600
1612
  SWIG_Ruby_MangleStr(VALUE obj)
1601
1613
  {
1602
1614
  VALUE stype = rb_iv_get(obj, "@__swigtype__");
1615
+ if (NIL_P(stype))
1616
+ return NULL;
1603
1617
  return StringValuePtr(stype);
1604
1618
  }
1605
1619
 
@@ -1833,18 +1847,18 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1833
1847
  #define SWIGTYPE_p_Config swig_types[0]
1834
1848
  #define SWIGTYPE_p_Context swig_types[1]
1835
1849
  #define SWIGTYPE_p_CustomMetrics swig_types[2]
1836
- #define SWIGTYPE_p_DebugLog swig_types[3]
1837
- #define SWIGTYPE_p_DebugLogger swig_types[4]
1838
- #define SWIGTYPE_p_Event swig_types[5]
1839
- #define SWIGTYPE_p_FILE swig_types[6]
1840
- #define SWIGTYPE_p_Metadata swig_types[7]
1841
- #define SWIGTYPE_p_MetricTags swig_types[8]
1842
- #define SWIGTYPE_p_Reporter swig_types[9]
1843
- #define SWIGTYPE_p_Span swig_types[10]
1844
- #define SWIGTYPE_p_char swig_types[11]
1845
- #define SWIGTYPE_p_int swig_types[12]
1846
- #define SWIGTYPE_p_long_long swig_types[13]
1847
- #define SWIGTYPE_p_oboe_metadata_t swig_types[14]
1850
+ #define SWIGTYPE_p_Event swig_types[3]
1851
+ #define SWIGTYPE_p_Metadata swig_types[4]
1852
+ #define SWIGTYPE_p_MetricTags swig_types[5]
1853
+ #define SWIGTYPE_p_Reporter swig_types[6]
1854
+ #define SWIGTYPE_p_Span swig_types[7]
1855
+ #define SWIGTYPE_p_char swig_types[8]
1856
+ #define SWIGTYPE_p_double swig_types[9]
1857
+ #define SWIGTYPE_p_int swig_types[10]
1858
+ #define SWIGTYPE_p_long swig_types[11]
1859
+ #define SWIGTYPE_p_long_long swig_types[12]
1860
+ #define SWIGTYPE_p_oboe_metadata_t swig_types[13]
1861
+ #define SWIGTYPE_p_oboe_metric_tag_t swig_types[14]
1848
1862
  #define SWIGTYPE_p_short swig_types[15]
1849
1863
  #define SWIGTYPE_p_signed_char swig_types[16]
1850
1864
  #define SWIGTYPE_p_std__string swig_types[17]
@@ -1868,7 +1882,7 @@ static VALUE mOboe_metal;
1868
1882
  #define SWIG_RUBY_THREAD_END_BLOCK
1869
1883
 
1870
1884
 
1871
- #define SWIGVERSION 0x040000
1885
+ #define SWIGVERSION 0x040002
1872
1886
  #define SWIG_VERSION SWIGVERSION
1873
1887
 
1874
1888
 
@@ -1879,7 +1893,7 @@ static VALUE mOboe_metal;
1879
1893
  #include <stdexcept>
1880
1894
 
1881
1895
 
1882
- #include "oboe.hpp"
1896
+ #include "oboe_api.hpp"
1883
1897
 
1884
1898
 
1885
1899
  #include <limits.h>
@@ -1908,6 +1922,86 @@ SWIG_From_int (int value)
1908
1922
  #include <string>
1909
1923
 
1910
1924
 
1925
+ SWIGINTERNINLINE VALUE
1926
+ SWIG_From_bool (bool value)
1927
+ {
1928
+ return value ? Qtrue : Qfalse;
1929
+ }
1930
+
1931
+
1932
+ SWIGINTERN VALUE
1933
+ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
1934
+ {
1935
+ return Qnil;
1936
+ }
1937
+
1938
+
1939
+ /*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1940
+ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
1941
+ {
1942
+ VALUE *args = (VALUE *)arg;
1943
+ VALUE obj = args[0];
1944
+ VALUE type = TYPE(obj);
1945
+ long *res = (long *)(args[1]);
1946
+ *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
1947
+ return obj;
1948
+ }
1949
+ /*@SWIG@*/
1950
+
1951
+ SWIGINTERN int
1952
+ SWIG_AsVal_long (VALUE obj, long* val)
1953
+ {
1954
+ VALUE type = TYPE(obj);
1955
+ if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
1956
+ long v;
1957
+ VALUE a[2];
1958
+ a[0] = obj;
1959
+ a[1] = (VALUE)(&v);
1960
+ if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
1961
+ if (val) *val = v;
1962
+ return SWIG_OK;
1963
+ }
1964
+ }
1965
+ return SWIG_TypeError;
1966
+ }
1967
+
1968
+
1969
+ SWIGINTERN int
1970
+ SWIG_AsVal_int (VALUE obj, int *val)
1971
+ {
1972
+ long v;
1973
+ int res = SWIG_AsVal_long (obj, &v);
1974
+ if (SWIG_IsOK(res)) {
1975
+ if ((v < INT_MIN || v > INT_MAX)) {
1976
+ return SWIG_OverflowError;
1977
+ } else {
1978
+ if (val) *val = static_cast< int >(v);
1979
+ }
1980
+ }
1981
+ return res;
1982
+ }
1983
+
1984
+
1985
+ SWIGINTERN int
1986
+ SWIG_AsVal_bool (VALUE obj, bool *val)
1987
+ {
1988
+ if (obj == Qtrue) {
1989
+ if (val) *val = true;
1990
+ return SWIG_OK;
1991
+ } else if (obj == Qfalse) {
1992
+ if (val) *val = false;
1993
+ return SWIG_OK;
1994
+ } else {
1995
+ int res = 0;
1996
+ if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
1997
+ if (val) *val = res ? true : false;
1998
+ return SWIG_OK;
1999
+ }
2000
+ }
2001
+ return SWIG_TypeError;
2002
+ }
2003
+
2004
+
1911
2005
  SWIGINTERN swig_type_info*
1912
2006
  SWIG_pchar_descriptor(void)
1913
2007
  {
@@ -1986,85 +2080,6 @@ SWIG_AsPtr_std_string (VALUE obj, std::string **val)
1986
2080
  }
1987
2081
 
1988
2082
 
1989
- SWIGINTERN VALUE
1990
- SWIG_ruby_failed(void)
1991
- {
1992
- return Qnil;
1993
- }
1994
-
1995
-
1996
- /*@SWIG:/usr/local/share/swig/4.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1997
- SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
1998
- {
1999
- VALUE obj = args[0];
2000
- VALUE type = TYPE(obj);
2001
- long *res = (long *)(args[1]);
2002
- *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
2003
- return obj;
2004
- }
2005
- /*@SWIG@*/
2006
-
2007
- SWIGINTERN int
2008
- SWIG_AsVal_long (VALUE obj, long* val)
2009
- {
2010
- VALUE type = TYPE(obj);
2011
- if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
2012
- long v;
2013
- VALUE a[2];
2014
- a[0] = obj;
2015
- a[1] = (VALUE)(&v);
2016
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
2017
- if (val) *val = v;
2018
- return SWIG_OK;
2019
- }
2020
- }
2021
- return SWIG_TypeError;
2022
- }
2023
-
2024
-
2025
- SWIGINTERN int
2026
- SWIG_AsVal_int (VALUE obj, int *val)
2027
- {
2028
- long v;
2029
- int res = SWIG_AsVal_long (obj, &v);
2030
- if (SWIG_IsOK(res)) {
2031
- if ((v < INT_MIN || v > INT_MAX)) {
2032
- return SWIG_OverflowError;
2033
- } else {
2034
- if (val) *val = static_cast< int >(v);
2035
- }
2036
- }
2037
- return res;
2038
- }
2039
-
2040
-
2041
- SWIGINTERN int
2042
- SWIG_AsVal_bool (VALUE obj, bool *val)
2043
- {
2044
- if (obj == Qtrue) {
2045
- if (val) *val = true;
2046
- return SWIG_OK;
2047
- } else if (obj == Qfalse) {
2048
- if (val) *val = false;
2049
- return SWIG_OK;
2050
- } else {
2051
- int res = 0;
2052
- if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
2053
- if (val) *val = res ? true : false;
2054
- return SWIG_OK;
2055
- }
2056
- }
2057
- return SWIG_TypeError;
2058
- }
2059
-
2060
-
2061
- SWIGINTERNINLINE VALUE
2062
- SWIG_From_bool (bool value)
2063
- {
2064
- return value ? Qtrue : Qfalse;
2065
- }
2066
-
2067
-
2068
2083
  SWIGINTERNINLINE VALUE
2069
2084
  SWIG_FromCharPtrAndSize(const char* carray, size_t size)
2070
2085
  {
@@ -2092,9 +2107,10 @@ SWIG_From_std_string (const std::string& s)
2092
2107
 
2093
2108
 
2094
2109
 
2095
- /*@SWIG:/usr/local/share/swig/4.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2096
- SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
2110
+ /*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2111
+ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
2097
2112
  {
2113
+ VALUE *args = (VALUE *)arg;
2098
2114
  VALUE obj = args[0];
2099
2115
  VALUE type = TYPE(obj);
2100
2116
  unsigned long *res = (unsigned long *)(args[1]);
@@ -2112,7 +2128,7 @@ SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
2112
2128
  VALUE a[2];
2113
2129
  a[0] = obj;
2114
2130
  a[1] = (VALUE)(&v);
2115
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
2131
+ if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
2116
2132
  if (val) *val = v;
2117
2133
  return SWIG_OK;
2118
2134
  }
@@ -2137,9 +2153,10 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
2137
2153
  }
2138
2154
 
2139
2155
 
2140
- /*@SWIG:/usr/local/share/swig/4.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2141
- SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
2156
+ /*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2157
+ SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
2142
2158
  {
2159
+ VALUE *args = (VALUE *)arg;
2143
2160
  VALUE obj = args[0];
2144
2161
  VALUE type = TYPE(obj);
2145
2162
  double *res = (double *)(args[1]);
@@ -2157,7 +2174,7 @@ SWIG_AsVal_double (VALUE obj, double *val)
2157
2174
  VALUE a[2];
2158
2175
  a[0] = obj;
2159
2176
  a[1] = (VALUE)(&v);
2160
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
2177
+ if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2DBL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
2161
2178
  if (val) *val = v;
2162
2179
  return SWIG_OK;
2163
2180
  }
@@ -2172,9 +2189,10 @@ SWIG_AsVal_double (VALUE obj, double *val)
2172
2189
 
2173
2190
 
2174
2191
  #ifdef SWIG_LONG_LONG_AVAILABLE
2175
- /*@SWIG:/usr/local/share/swig/4.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2176
- SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args)
2192
+ /*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2193
+ SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
2177
2194
  {
2195
+ VALUE *args = (VALUE *)arg;
2178
2196
  VALUE obj = args[0];
2179
2197
  VALUE type = TYPE(obj);
2180
2198
  long long *res = (long long *)(args[1]);
@@ -2192,7 +2210,7 @@ SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
2192
2210
  VALUE a[2];
2193
2211
  a[0] = obj;
2194
2212
  a[1] = (VALUE)(&v);
2195
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
2213
+ if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
2196
2214
  if (val) *val = v;
2197
2215
  return SWIG_OK;
2198
2216
  }
@@ -2203,9 +2221,10 @@ SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
2203
2221
 
2204
2222
 
2205
2223
  #ifdef SWIG_LONG_LONG_AVAILABLE
2206
- /*@SWIG:/usr/local/share/swig/4.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2207
- SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
2224
+ /*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2225
+ SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE arg)
2208
2226
  {
2227
+ VALUE *args = (VALUE *)arg;
2209
2228
  VALUE obj = args[0];
2210
2229
  VALUE type = TYPE(obj);
2211
2230
  long long *res = (long long *)(args[1]);
@@ -2223,7 +2242,7 @@ SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
2223
2242
  VALUE a[2];
2224
2243
  a[0] = obj;
2225
2244
  a[1] = (VALUE)(&v);
2226
- if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
2245
+ if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2ULL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
2227
2246
  if (val) *val = v;
2228
2247
  return SWIG_OK;
2229
2248
  }
@@ -2282,10 +2301,10 @@ _wrap_new_Metadata(int argc, VALUE *argv, VALUE self) {
2282
2301
  }
2283
2302
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
2284
2303
  if (!SWIG_IsOK(res1)) {
2285
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "oboe_metadata_t *","Metadata", 1, argv[0] ));
2304
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "oboe_metadata_t const *","Metadata", 1, argv[0] ));
2286
2305
  }
2287
2306
  arg1 = reinterpret_cast< oboe_metadata_t * >(argp1);
2288
- result = (Metadata *)new Metadata(arg1);
2307
+ result = (Metadata *)new Metadata((oboe_metadata_t const *)arg1);
2289
2308
  DATA_PTR(self) = result;
2290
2309
  return self;
2291
2310
  fail:
@@ -2300,24 +2319,46 @@ free_Metadata(void *self) {
2300
2319
  }
2301
2320
 
2302
2321
  SWIGINTERN VALUE
2303
- _wrap_Metadata_fromString(int argc, VALUE *argv, VALUE self) {
2304
- std::string arg1 ;
2322
+ _wrap_Metadata_createEvent(int argc, VALUE *argv, VALUE self) {
2323
+ Metadata *arg1 = (Metadata *) 0 ;
2324
+ void *argp1 = 0 ;
2325
+ int res1 = 0 ;
2326
+ Event *result = 0 ;
2327
+ VALUE vresult = Qnil;
2328
+
2329
+ if ((argc < 0) || (argc > 0)) {
2330
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2331
+ }
2332
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Metadata, 0 | 0 );
2333
+ if (!SWIG_IsOK(res1)) {
2334
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","createEvent", 1, self ));
2335
+ }
2336
+ arg1 = reinterpret_cast< Metadata * >(argp1);
2337
+ result = (Event *)(arg1)->createEvent();
2338
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
2339
+ return vresult;
2340
+ fail:
2341
+ return Qnil;
2342
+ }
2343
+
2344
+
2345
+ SWIGINTERN VALUE
2346
+ _wrap_Metadata_copy(int argc, VALUE *argv, VALUE self) {
2347
+ Metadata *arg1 = (Metadata *) 0 ;
2348
+ void *argp1 = 0 ;
2349
+ int res1 = 0 ;
2305
2350
  Metadata *result = 0 ;
2306
2351
  VALUE vresult = Qnil;
2307
2352
 
2308
- if ((argc < 1) || (argc > 1)) {
2309
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2353
+ if ((argc < 0) || (argc > 0)) {
2354
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2310
2355
  }
2311
- {
2312
- std::string *ptr = (std::string *)0;
2313
- int res = SWIG_AsPtr_std_string(argv[0], &ptr);
2314
- if (!SWIG_IsOK(res) || !ptr) {
2315
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Metadata::fromString", 1, argv[0] ));
2316
- }
2317
- arg1 = *ptr;
2318
- if (SWIG_IsNewObj(res)) delete ptr;
2356
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Metadata, 0 | 0 );
2357
+ if (!SWIG_IsOK(res1)) {
2358
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","copy", 1, self ));
2319
2359
  }
2320
- result = (Metadata *)Metadata::fromString(arg1);
2360
+ arg1 = reinterpret_cast< Metadata * >(argp1);
2361
+ result = (Metadata *)(arg1)->copy();
2321
2362
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, SWIG_POINTER_OWN | 0 );
2322
2363
  return vresult;
2323
2364
  fail:
@@ -2326,11 +2367,11 @@ fail:
2326
2367
 
2327
2368
 
2328
2369
  SWIGINTERN VALUE
2329
- _wrap_Metadata_createEvent(int argc, VALUE *argv, VALUE self) {
2370
+ _wrap_Metadata_isValid(int argc, VALUE *argv, VALUE self) {
2330
2371
  Metadata *arg1 = (Metadata *) 0 ;
2331
2372
  void *argp1 = 0 ;
2332
2373
  int res1 = 0 ;
2333
- Event *result = 0 ;
2374
+ bool result;
2334
2375
  VALUE vresult = Qnil;
2335
2376
 
2336
2377
  if ((argc < 0) || (argc > 0)) {
@@ -2338,11 +2379,35 @@ _wrap_Metadata_createEvent(int argc, VALUE *argv, VALUE self) {
2338
2379
  }
2339
2380
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Metadata, 0 | 0 );
2340
2381
  if (!SWIG_IsOK(res1)) {
2341
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","createEvent", 1, self ));
2382
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","isValid", 1, self ));
2342
2383
  }
2343
2384
  arg1 = reinterpret_cast< Metadata * >(argp1);
2344
- result = (Event *)(arg1)->createEvent();
2345
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
2385
+ result = (bool)(arg1)->isValid();
2386
+ vresult = SWIG_From_bool(static_cast< bool >(result));
2387
+ return vresult;
2388
+ fail:
2389
+ return Qnil;
2390
+ }
2391
+
2392
+
2393
+ SWIGINTERN VALUE
2394
+ _wrap_Metadata_isSampled(int argc, VALUE *argv, VALUE self) {
2395
+ Metadata *arg1 = (Metadata *) 0 ;
2396
+ void *argp1 = 0 ;
2397
+ int res1 = 0 ;
2398
+ bool result;
2399
+ VALUE vresult = Qnil;
2400
+
2401
+ if ((argc < 0) || (argc > 0)) {
2402
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2403
+ }
2404
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Metadata, 0 | 0 );
2405
+ if (!SWIG_IsOK(res1)) {
2406
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","isSampled", 1, self ));
2407
+ }
2408
+ arg1 = reinterpret_cast< Metadata * >(argp1);
2409
+ result = (bool)(arg1)->isSampled();
2410
+ vresult = SWIG_From_bool(static_cast< bool >(result));
2346
2411
  return vresult;
2347
2412
  fail:
2348
2413
  return Qnil;
@@ -2423,47 +2488,25 @@ fail:
2423
2488
 
2424
2489
 
2425
2490
  SWIGINTERN VALUE
2426
- _wrap_Metadata_copy(int argc, VALUE *argv, VALUE self) {
2427
- Metadata *arg1 = (Metadata *) 0 ;
2428
- void *argp1 = 0 ;
2429
- int res1 = 0 ;
2491
+ _wrap_Metadata_fromString(int argc, VALUE *argv, VALUE self) {
2492
+ std::string arg1 ;
2430
2493
  Metadata *result = 0 ;
2431
2494
  VALUE vresult = Qnil;
2432
2495
 
2433
- if ((argc < 0) || (argc > 0)) {
2434
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2435
- }
2436
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Metadata, 0 | 0 );
2437
- if (!SWIG_IsOK(res1)) {
2438
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","copy", 1, self ));
2496
+ if ((argc < 1) || (argc > 1)) {
2497
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2439
2498
  }
2440
- arg1 = reinterpret_cast< Metadata * >(argp1);
2441
- result = (Metadata *)(arg1)->copy();
2442
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, SWIG_POINTER_OWN | 0 );
2443
- return vresult;
2444
- fail:
2445
- return Qnil;
2446
- }
2447
-
2448
-
2449
- SWIGINTERN VALUE
2450
- _wrap_Metadata_isValid(int argc, VALUE *argv, VALUE self) {
2451
- Metadata *arg1 = (Metadata *) 0 ;
2452
- void *argp1 = 0 ;
2453
- int res1 = 0 ;
2454
- bool result;
2455
- VALUE vresult = Qnil;
2456
-
2457
- if ((argc < 0) || (argc > 0)) {
2458
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2459
- }
2460
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Metadata, 0 | 0 );
2461
- if (!SWIG_IsOK(res1)) {
2462
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","isValid", 1, self ));
2499
+ {
2500
+ std::string *ptr = (std::string *)0;
2501
+ int res = SWIG_AsPtr_std_string(argv[0], &ptr);
2502
+ if (!SWIG_IsOK(res) || !ptr) {
2503
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Metadata::fromString", 1, argv[0] ));
2504
+ }
2505
+ arg1 = *ptr;
2506
+ if (SWIG_IsNewObj(res)) delete ptr;
2463
2507
  }
2464
- arg1 = reinterpret_cast< Metadata * >(argp1);
2465
- result = (bool)(arg1)->isValid();
2466
- vresult = SWIG_From_bool(static_cast< bool >(result));
2508
+ result = (Metadata *)Metadata::fromString(arg1);
2509
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, SWIG_POINTER_OWN | 0 );
2467
2510
  return vresult;
2468
2511
  fail:
2469
2512
  return Qnil;
@@ -2471,11 +2514,11 @@ fail:
2471
2514
 
2472
2515
 
2473
2516
  SWIGINTERN VALUE
2474
- _wrap_Metadata_isSampled(int argc, VALUE *argv, VALUE self) {
2517
+ _wrap_Metadata_metadata(int argc, VALUE *argv, VALUE self) {
2475
2518
  Metadata *arg1 = (Metadata *) 0 ;
2476
2519
  void *argp1 = 0 ;
2477
2520
  int res1 = 0 ;
2478
- bool result;
2521
+ oboe_metadata_t *result = 0 ;
2479
2522
  VALUE vresult = Qnil;
2480
2523
 
2481
2524
  if ((argc < 0) || (argc > 0)) {
@@ -2483,11 +2526,11 @@ _wrap_Metadata_isSampled(int argc, VALUE *argv, VALUE self) {
2483
2526
  }
2484
2527
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Metadata, 0 | 0 );
2485
2528
  if (!SWIG_IsOK(res1)) {
2486
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","isSampled", 1, self ));
2529
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Metadata *","metadata", 1, self ));
2487
2530
  }
2488
2531
  arg1 = reinterpret_cast< Metadata * >(argp1);
2489
- result = (bool)(arg1)->isSampled();
2490
- vresult = SWIG_From_bool(static_cast< bool >(result));
2532
+ result = (oboe_metadata_t *)(arg1)->metadata();
2533
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
2491
2534
  return vresult;
2492
2535
  fail:
2493
2536
  return Qnil;
@@ -2568,19 +2611,21 @@ _wrap_Context_getDecisions__SWIG_0(int argc, VALUE *argv, VALUE self) {
2568
2611
  int *arg2 = (int *) 0 ;
2569
2612
  int *arg3 = (int *) 0 ;
2570
2613
  int *arg4 = (int *) 0 ;
2571
- int *arg5 = (int *) 0 ;
2572
- int *arg6 = (int *) 0 ;
2573
- std::string *arg7 = (std::string *) 0 ;
2574
- std::string *arg8 = (std::string *) 0 ;
2575
- int *arg9 = (int *) 0 ;
2576
- char *arg10 = (char *) 0 ;
2577
- int arg11 ;
2578
- int arg12 ;
2614
+ double *arg5 = (double *) 0 ;
2615
+ double *arg6 = (double *) 0 ;
2616
+ int *arg7 = (int *) 0 ;
2617
+ int *arg8 = (int *) 0 ;
2618
+ std::string *arg9 = (std::string *) 0 ;
2619
+ std::string *arg10 = (std::string *) 0 ;
2620
+ int *arg11 = (int *) 0 ;
2621
+ char *arg12 = (char *) 0 ;
2579
2622
  int arg13 ;
2580
2623
  int arg14 ;
2581
- char *arg15 = (char *) 0 ;
2582
- char *arg16 = (char *) 0 ;
2583
- long arg17 ;
2624
+ int arg15 ;
2625
+ int arg16 ;
2626
+ char *arg17 = (char *) 0 ;
2627
+ char *arg18 = (char *) 0 ;
2628
+ long arg19 ;
2584
2629
  int temp1 ;
2585
2630
  int res1 = SWIG_TMPOBJ ;
2586
2631
  int temp2 ;
@@ -2589,35 +2634,39 @@ _wrap_Context_getDecisions__SWIG_0(int argc, VALUE *argv, VALUE self) {
2589
2634
  int res3 = SWIG_TMPOBJ ;
2590
2635
  int temp4 ;
2591
2636
  int res4 = SWIG_TMPOBJ ;
2592
- int temp5 ;
2637
+ double temp5 ;
2593
2638
  int res5 = SWIG_TMPOBJ ;
2594
- int temp6 ;
2639
+ double temp6 ;
2595
2640
  int res6 = SWIG_TMPOBJ ;
2596
- std::string temp7 ;
2641
+ int temp7 ;
2597
2642
  int res7 = SWIG_TMPOBJ ;
2598
- std::string temp8 ;
2643
+ int temp8 ;
2599
2644
  int res8 = SWIG_TMPOBJ ;
2600
- int temp9 ;
2645
+ std::string temp9 ;
2601
2646
  int res9 = SWIG_TMPOBJ ;
2602
- int res10 ;
2603
- char *buf10 = 0 ;
2604
- int alloc10 = 0 ;
2605
- int val11 ;
2606
- int ecode11 = 0 ;
2607
- int val12 ;
2608
- int ecode12 = 0 ;
2647
+ std::string temp10 ;
2648
+ int res10 = SWIG_TMPOBJ ;
2649
+ int temp11 ;
2650
+ int res11 = SWIG_TMPOBJ ;
2651
+ int res12 ;
2652
+ char *buf12 = 0 ;
2653
+ int alloc12 = 0 ;
2609
2654
  int val13 ;
2610
2655
  int ecode13 = 0 ;
2611
2656
  int val14 ;
2612
2657
  int ecode14 = 0 ;
2613
- int res15 ;
2614
- char *buf15 = 0 ;
2615
- int alloc15 = 0 ;
2616
- int res16 ;
2617
- char *buf16 = 0 ;
2618
- int alloc16 = 0 ;
2619
- long val17 ;
2620
- int ecode17 = 0 ;
2658
+ int val15 ;
2659
+ int ecode15 = 0 ;
2660
+ int val16 ;
2661
+ int ecode16 = 0 ;
2662
+ int res17 ;
2663
+ char *buf17 = 0 ;
2664
+ int alloc17 = 0 ;
2665
+ int res18 ;
2666
+ char *buf18 = 0 ;
2667
+ int alloc18 = 0 ;
2668
+ long val19 ;
2669
+ int ecode19 = 0 ;
2621
2670
  VALUE vresult = Qnil;
2622
2671
 
2623
2672
  arg1 = &temp1;
@@ -2629,50 +2678,52 @@ _wrap_Context_getDecisions__SWIG_0(int argc, VALUE *argv, VALUE self) {
2629
2678
  arg7 = &temp7;
2630
2679
  arg8 = &temp8;
2631
2680
  arg9 = &temp9;
2681
+ arg10 = &temp10;
2682
+ arg11 = &temp11;
2632
2683
  if ((argc < 8) || (argc > 8)) {
2633
2684
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
2634
2685
  }
2635
- res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
2636
- if (!SWIG_IsOK(res10)) {
2637
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
2686
+ res12 = SWIG_AsCharPtrAndSize(argv[0], &buf12, NULL, &alloc12);
2687
+ if (!SWIG_IsOK(res12)) {
2688
+ SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 12, argv[0] ));
2638
2689
  }
2639
- arg10 = reinterpret_cast< char * >(buf10);
2640
- ecode11 = SWIG_AsVal_int(argv[1], &val11);
2641
- if (!SWIG_IsOK(ecode11)) {
2642
- SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
2643
- }
2644
- arg11 = static_cast< int >(val11);
2645
- ecode12 = SWIG_AsVal_int(argv[2], &val12);
2646
- if (!SWIG_IsOK(ecode12)) {
2647
- SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
2648
- }
2649
- arg12 = static_cast< int >(val12);
2650
- ecode13 = SWIG_AsVal_int(argv[3], &val13);
2690
+ arg12 = reinterpret_cast< char * >(buf12);
2691
+ ecode13 = SWIG_AsVal_int(argv[1], &val13);
2651
2692
  if (!SWIG_IsOK(ecode13)) {
2652
- SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[3] ));
2693
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[1] ));
2653
2694
  }
2654
2695
  arg13 = static_cast< int >(val13);
2655
- ecode14 = SWIG_AsVal_int(argv[4], &val14);
2696
+ ecode14 = SWIG_AsVal_int(argv[2], &val14);
2656
2697
  if (!SWIG_IsOK(ecode14)) {
2657
- SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[4] ));
2698
+ SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[2] ));
2658
2699
  }
2659
2700
  arg14 = static_cast< int >(val14);
2660
- res15 = SWIG_AsCharPtrAndSize(argv[5], &buf15, NULL, &alloc15);
2661
- if (!SWIG_IsOK(res15)) {
2662
- SWIG_exception_fail(SWIG_ArgError(res15), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 15, argv[5] ));
2663
- }
2664
- arg15 = reinterpret_cast< char * >(buf15);
2665
- res16 = SWIG_AsCharPtrAndSize(argv[6], &buf16, NULL, &alloc16);
2666
- if (!SWIG_IsOK(res16)) {
2667
- SWIG_exception_fail(SWIG_ArgError(res16), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 16, argv[6] ));
2668
- }
2669
- arg16 = reinterpret_cast< char * >(buf16);
2670
- ecode17 = SWIG_AsVal_long(argv[7], &val17);
2671
- if (!SWIG_IsOK(ecode17)) {
2672
- SWIG_exception_fail(SWIG_ArgError(ecode17), Ruby_Format_TypeError( "", "long","Context::getDecisions", 17, argv[7] ));
2701
+ ecode15 = SWIG_AsVal_int(argv[3], &val15);
2702
+ if (!SWIG_IsOK(ecode15)) {
2703
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","Context::getDecisions", 15, argv[3] ));
2704
+ }
2705
+ arg15 = static_cast< int >(val15);
2706
+ ecode16 = SWIG_AsVal_int(argv[4], &val16);
2707
+ if (!SWIG_IsOK(ecode16)) {
2708
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","Context::getDecisions", 16, argv[4] ));
2709
+ }
2710
+ arg16 = static_cast< int >(val16);
2711
+ res17 = SWIG_AsCharPtrAndSize(argv[5], &buf17, NULL, &alloc17);
2712
+ if (!SWIG_IsOK(res17)) {
2713
+ SWIG_exception_fail(SWIG_ArgError(res17), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 17, argv[5] ));
2714
+ }
2715
+ arg17 = reinterpret_cast< char * >(buf17);
2716
+ res18 = SWIG_AsCharPtrAndSize(argv[6], &buf18, NULL, &alloc18);
2717
+ if (!SWIG_IsOK(res18)) {
2718
+ SWIG_exception_fail(SWIG_ArgError(res18), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 18, argv[6] ));
2719
+ }
2720
+ arg18 = reinterpret_cast< char * >(buf18);
2721
+ ecode19 = SWIG_AsVal_long(argv[7], &val19);
2722
+ if (!SWIG_IsOK(ecode19)) {
2723
+ SWIG_exception_fail(SWIG_ArgError(ecode19), Ruby_Format_TypeError( "", "long","Context::getDecisions", 19, argv[7] ));
2673
2724
  }
2674
- arg17 = static_cast< long >(val17);
2675
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12,arg13,arg14,(char const *)arg15,(char const *)arg16,arg17);
2725
+ arg19 = static_cast< long >(val19);
2726
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,(char const *)arg12,arg13,arg14,arg15,arg16,(char const *)arg17,(char const *)arg18,arg19);
2676
2727
  vresult = rb_ary_new();
2677
2728
  if (SWIG_IsTmpObj(res1)) {
2678
2729
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -2702,40 +2753,52 @@ _wrap_Context_getDecisions__SWIG_0(int argc, VALUE *argv, VALUE self) {
2702
2753
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
2703
2754
  } else {
2704
2755
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2705
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
2756
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
2706
2757
  }
2707
2758
  if (SWIG_IsTmpObj(res6)) {
2708
2759
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
2709
2760
  } else {
2710
2761
  int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2711
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
2762
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
2712
2763
  }
2713
2764
  if (SWIG_IsTmpObj(res7)) {
2714
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
2765
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7)));
2715
2766
  } else {
2716
2767
  int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2717
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
2768
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
2718
2769
  }
2719
2770
  if (SWIG_IsTmpObj(res8)) {
2720
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
2771
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
2721
2772
  } else {
2722
2773
  int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2723
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
2774
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
2724
2775
  }
2725
2776
  if (SWIG_IsTmpObj(res9)) {
2726
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
2777
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg9)));
2727
2778
  } else {
2728
2779
  int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2729
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
2780
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_std__string, new_flags));
2781
+ }
2782
+ if (SWIG_IsTmpObj(res10)) {
2783
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
2784
+ } else {
2785
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2786
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
2787
+ }
2788
+ if (SWIG_IsTmpObj(res11)) {
2789
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg11)));
2790
+ } else {
2791
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2792
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_int, new_flags));
2730
2793
  }
2731
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
2732
- if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
2733
- if (alloc16 == SWIG_NEWOBJ) delete[] buf16;
2794
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
2795
+ if (alloc17 == SWIG_NEWOBJ) delete[] buf17;
2796
+ if (alloc18 == SWIG_NEWOBJ) delete[] buf18;
2734
2797
  return vresult;
2735
2798
  fail:
2736
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
2737
- if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
2738
- if (alloc16 == SWIG_NEWOBJ) delete[] buf16;
2799
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
2800
+ if (alloc17 == SWIG_NEWOBJ) delete[] buf17;
2801
+ if (alloc18 == SWIG_NEWOBJ) delete[] buf18;
2739
2802
  return Qnil;
2740
2803
  }
2741
2804
 
@@ -2746,18 +2809,20 @@ _wrap_Context_getDecisions__SWIG_1(int argc, VALUE *argv, VALUE self) {
2746
2809
  int *arg2 = (int *) 0 ;
2747
2810
  int *arg3 = (int *) 0 ;
2748
2811
  int *arg4 = (int *) 0 ;
2749
- int *arg5 = (int *) 0 ;
2750
- int *arg6 = (int *) 0 ;
2751
- std::string *arg7 = (std::string *) 0 ;
2752
- std::string *arg8 = (std::string *) 0 ;
2753
- int *arg9 = (int *) 0 ;
2754
- char *arg10 = (char *) 0 ;
2755
- int arg11 ;
2756
- int arg12 ;
2812
+ double *arg5 = (double *) 0 ;
2813
+ double *arg6 = (double *) 0 ;
2814
+ int *arg7 = (int *) 0 ;
2815
+ int *arg8 = (int *) 0 ;
2816
+ std::string *arg9 = (std::string *) 0 ;
2817
+ std::string *arg10 = (std::string *) 0 ;
2818
+ int *arg11 = (int *) 0 ;
2819
+ char *arg12 = (char *) 0 ;
2757
2820
  int arg13 ;
2758
2821
  int arg14 ;
2759
- char *arg15 = (char *) 0 ;
2760
- char *arg16 = (char *) 0 ;
2822
+ int arg15 ;
2823
+ int arg16 ;
2824
+ char *arg17 = (char *) 0 ;
2825
+ char *arg18 = (char *) 0 ;
2761
2826
  int temp1 ;
2762
2827
  int res1 = SWIG_TMPOBJ ;
2763
2828
  int temp2 ;
@@ -2766,33 +2831,37 @@ _wrap_Context_getDecisions__SWIG_1(int argc, VALUE *argv, VALUE self) {
2766
2831
  int res3 = SWIG_TMPOBJ ;
2767
2832
  int temp4 ;
2768
2833
  int res4 = SWIG_TMPOBJ ;
2769
- int temp5 ;
2834
+ double temp5 ;
2770
2835
  int res5 = SWIG_TMPOBJ ;
2771
- int temp6 ;
2836
+ double temp6 ;
2772
2837
  int res6 = SWIG_TMPOBJ ;
2773
- std::string temp7 ;
2838
+ int temp7 ;
2774
2839
  int res7 = SWIG_TMPOBJ ;
2775
- std::string temp8 ;
2840
+ int temp8 ;
2776
2841
  int res8 = SWIG_TMPOBJ ;
2777
- int temp9 ;
2842
+ std::string temp9 ;
2778
2843
  int res9 = SWIG_TMPOBJ ;
2779
- int res10 ;
2780
- char *buf10 = 0 ;
2781
- int alloc10 = 0 ;
2782
- int val11 ;
2783
- int ecode11 = 0 ;
2784
- int val12 ;
2785
- int ecode12 = 0 ;
2844
+ std::string temp10 ;
2845
+ int res10 = SWIG_TMPOBJ ;
2846
+ int temp11 ;
2847
+ int res11 = SWIG_TMPOBJ ;
2848
+ int res12 ;
2849
+ char *buf12 = 0 ;
2850
+ int alloc12 = 0 ;
2786
2851
  int val13 ;
2787
2852
  int ecode13 = 0 ;
2788
2853
  int val14 ;
2789
2854
  int ecode14 = 0 ;
2790
- int res15 ;
2791
- char *buf15 = 0 ;
2792
- int alloc15 = 0 ;
2793
- int res16 ;
2794
- char *buf16 = 0 ;
2795
- int alloc16 = 0 ;
2855
+ int val15 ;
2856
+ int ecode15 = 0 ;
2857
+ int val16 ;
2858
+ int ecode16 = 0 ;
2859
+ int res17 ;
2860
+ char *buf17 = 0 ;
2861
+ int alloc17 = 0 ;
2862
+ int res18 ;
2863
+ char *buf18 = 0 ;
2864
+ int alloc18 = 0 ;
2796
2865
  VALUE vresult = Qnil;
2797
2866
 
2798
2867
  arg1 = &temp1;
@@ -2804,45 +2873,47 @@ _wrap_Context_getDecisions__SWIG_1(int argc, VALUE *argv, VALUE self) {
2804
2873
  arg7 = &temp7;
2805
2874
  arg8 = &temp8;
2806
2875
  arg9 = &temp9;
2876
+ arg10 = &temp10;
2877
+ arg11 = &temp11;
2807
2878
  if ((argc < 7) || (argc > 7)) {
2808
2879
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
2809
2880
  }
2810
- res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
2811
- if (!SWIG_IsOK(res10)) {
2812
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
2881
+ res12 = SWIG_AsCharPtrAndSize(argv[0], &buf12, NULL, &alloc12);
2882
+ if (!SWIG_IsOK(res12)) {
2883
+ SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 12, argv[0] ));
2813
2884
  }
2814
- arg10 = reinterpret_cast< char * >(buf10);
2815
- ecode11 = SWIG_AsVal_int(argv[1], &val11);
2816
- if (!SWIG_IsOK(ecode11)) {
2817
- SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
2818
- }
2819
- arg11 = static_cast< int >(val11);
2820
- ecode12 = SWIG_AsVal_int(argv[2], &val12);
2821
- if (!SWIG_IsOK(ecode12)) {
2822
- SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
2823
- }
2824
- arg12 = static_cast< int >(val12);
2825
- ecode13 = SWIG_AsVal_int(argv[3], &val13);
2885
+ arg12 = reinterpret_cast< char * >(buf12);
2886
+ ecode13 = SWIG_AsVal_int(argv[1], &val13);
2826
2887
  if (!SWIG_IsOK(ecode13)) {
2827
- SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[3] ));
2888
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[1] ));
2828
2889
  }
2829
2890
  arg13 = static_cast< int >(val13);
2830
- ecode14 = SWIG_AsVal_int(argv[4], &val14);
2891
+ ecode14 = SWIG_AsVal_int(argv[2], &val14);
2831
2892
  if (!SWIG_IsOK(ecode14)) {
2832
- SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[4] ));
2893
+ SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[2] ));
2833
2894
  }
2834
2895
  arg14 = static_cast< int >(val14);
2835
- res15 = SWIG_AsCharPtrAndSize(argv[5], &buf15, NULL, &alloc15);
2836
- if (!SWIG_IsOK(res15)) {
2837
- SWIG_exception_fail(SWIG_ArgError(res15), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 15, argv[5] ));
2896
+ ecode15 = SWIG_AsVal_int(argv[3], &val15);
2897
+ if (!SWIG_IsOK(ecode15)) {
2898
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","Context::getDecisions", 15, argv[3] ));
2899
+ }
2900
+ arg15 = static_cast< int >(val15);
2901
+ ecode16 = SWIG_AsVal_int(argv[4], &val16);
2902
+ if (!SWIG_IsOK(ecode16)) {
2903
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","Context::getDecisions", 16, argv[4] ));
2904
+ }
2905
+ arg16 = static_cast< int >(val16);
2906
+ res17 = SWIG_AsCharPtrAndSize(argv[5], &buf17, NULL, &alloc17);
2907
+ if (!SWIG_IsOK(res17)) {
2908
+ SWIG_exception_fail(SWIG_ArgError(res17), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 17, argv[5] ));
2838
2909
  }
2839
- arg15 = reinterpret_cast< char * >(buf15);
2840
- res16 = SWIG_AsCharPtrAndSize(argv[6], &buf16, NULL, &alloc16);
2841
- if (!SWIG_IsOK(res16)) {
2842
- SWIG_exception_fail(SWIG_ArgError(res16), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 16, argv[6] ));
2910
+ arg17 = reinterpret_cast< char * >(buf17);
2911
+ res18 = SWIG_AsCharPtrAndSize(argv[6], &buf18, NULL, &alloc18);
2912
+ if (!SWIG_IsOK(res18)) {
2913
+ SWIG_exception_fail(SWIG_ArgError(res18), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 18, argv[6] ));
2843
2914
  }
2844
- arg16 = reinterpret_cast< char * >(buf16);
2845
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12,arg13,arg14,(char const *)arg15,(char const *)arg16);
2915
+ arg18 = reinterpret_cast< char * >(buf18);
2916
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,(char const *)arg12,arg13,arg14,arg15,arg16,(char const *)arg17,(char const *)arg18);
2846
2917
  vresult = rb_ary_new();
2847
2918
  if (SWIG_IsTmpObj(res1)) {
2848
2919
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -2872,40 +2943,52 @@ _wrap_Context_getDecisions__SWIG_1(int argc, VALUE *argv, VALUE self) {
2872
2943
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
2873
2944
  } else {
2874
2945
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2875
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
2946
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
2876
2947
  }
2877
2948
  if (SWIG_IsTmpObj(res6)) {
2878
2949
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
2879
2950
  } else {
2880
2951
  int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2881
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
2952
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
2882
2953
  }
2883
2954
  if (SWIG_IsTmpObj(res7)) {
2884
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
2955
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7)));
2885
2956
  } else {
2886
2957
  int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2887
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
2958
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
2888
2959
  }
2889
2960
  if (SWIG_IsTmpObj(res8)) {
2890
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
2961
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
2891
2962
  } else {
2892
2963
  int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2893
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
2964
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
2894
2965
  }
2895
2966
  if (SWIG_IsTmpObj(res9)) {
2896
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
2967
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg9)));
2897
2968
  } else {
2898
2969
  int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2899
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
2970
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_std__string, new_flags));
2971
+ }
2972
+ if (SWIG_IsTmpObj(res10)) {
2973
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
2974
+ } else {
2975
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2976
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
2900
2977
  }
2901
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
2902
- if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
2903
- if (alloc16 == SWIG_NEWOBJ) delete[] buf16;
2978
+ if (SWIG_IsTmpObj(res11)) {
2979
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg11)));
2980
+ } else {
2981
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
2982
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_int, new_flags));
2983
+ }
2984
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
2985
+ if (alloc17 == SWIG_NEWOBJ) delete[] buf17;
2986
+ if (alloc18 == SWIG_NEWOBJ) delete[] buf18;
2904
2987
  return vresult;
2905
2988
  fail:
2906
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
2907
- if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
2908
- if (alloc16 == SWIG_NEWOBJ) delete[] buf16;
2989
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
2990
+ if (alloc17 == SWIG_NEWOBJ) delete[] buf17;
2991
+ if (alloc18 == SWIG_NEWOBJ) delete[] buf18;
2909
2992
  return Qnil;
2910
2993
  }
2911
2994
 
@@ -2916,17 +2999,19 @@ _wrap_Context_getDecisions__SWIG_2(int argc, VALUE *argv, VALUE self) {
2916
2999
  int *arg2 = (int *) 0 ;
2917
3000
  int *arg3 = (int *) 0 ;
2918
3001
  int *arg4 = (int *) 0 ;
2919
- int *arg5 = (int *) 0 ;
2920
- int *arg6 = (int *) 0 ;
2921
- std::string *arg7 = (std::string *) 0 ;
2922
- std::string *arg8 = (std::string *) 0 ;
2923
- int *arg9 = (int *) 0 ;
2924
- char *arg10 = (char *) 0 ;
2925
- int arg11 ;
2926
- int arg12 ;
3002
+ double *arg5 = (double *) 0 ;
3003
+ double *arg6 = (double *) 0 ;
3004
+ int *arg7 = (int *) 0 ;
3005
+ int *arg8 = (int *) 0 ;
3006
+ std::string *arg9 = (std::string *) 0 ;
3007
+ std::string *arg10 = (std::string *) 0 ;
3008
+ int *arg11 = (int *) 0 ;
3009
+ char *arg12 = (char *) 0 ;
2927
3010
  int arg13 ;
2928
3011
  int arg14 ;
2929
- char *arg15 = (char *) 0 ;
3012
+ int arg15 ;
3013
+ int arg16 ;
3014
+ char *arg17 = (char *) 0 ;
2930
3015
  int temp1 ;
2931
3016
  int res1 = SWIG_TMPOBJ ;
2932
3017
  int temp2 ;
@@ -2935,30 +3020,34 @@ _wrap_Context_getDecisions__SWIG_2(int argc, VALUE *argv, VALUE self) {
2935
3020
  int res3 = SWIG_TMPOBJ ;
2936
3021
  int temp4 ;
2937
3022
  int res4 = SWIG_TMPOBJ ;
2938
- int temp5 ;
3023
+ double temp5 ;
2939
3024
  int res5 = SWIG_TMPOBJ ;
2940
- int temp6 ;
3025
+ double temp6 ;
2941
3026
  int res6 = SWIG_TMPOBJ ;
2942
- std::string temp7 ;
3027
+ int temp7 ;
2943
3028
  int res7 = SWIG_TMPOBJ ;
2944
- std::string temp8 ;
3029
+ int temp8 ;
2945
3030
  int res8 = SWIG_TMPOBJ ;
2946
- int temp9 ;
3031
+ std::string temp9 ;
2947
3032
  int res9 = SWIG_TMPOBJ ;
2948
- int res10 ;
2949
- char *buf10 = 0 ;
2950
- int alloc10 = 0 ;
2951
- int val11 ;
2952
- int ecode11 = 0 ;
2953
- int val12 ;
2954
- int ecode12 = 0 ;
3033
+ std::string temp10 ;
3034
+ int res10 = SWIG_TMPOBJ ;
3035
+ int temp11 ;
3036
+ int res11 = SWIG_TMPOBJ ;
3037
+ int res12 ;
3038
+ char *buf12 = 0 ;
3039
+ int alloc12 = 0 ;
2955
3040
  int val13 ;
2956
3041
  int ecode13 = 0 ;
2957
3042
  int val14 ;
2958
3043
  int ecode14 = 0 ;
2959
- int res15 ;
2960
- char *buf15 = 0 ;
2961
- int alloc15 = 0 ;
3044
+ int val15 ;
3045
+ int ecode15 = 0 ;
3046
+ int val16 ;
3047
+ int ecode16 = 0 ;
3048
+ int res17 ;
3049
+ char *buf17 = 0 ;
3050
+ int alloc17 = 0 ;
2962
3051
  VALUE vresult = Qnil;
2963
3052
 
2964
3053
  arg1 = &temp1;
@@ -2970,40 +3059,42 @@ _wrap_Context_getDecisions__SWIG_2(int argc, VALUE *argv, VALUE self) {
2970
3059
  arg7 = &temp7;
2971
3060
  arg8 = &temp8;
2972
3061
  arg9 = &temp9;
3062
+ arg10 = &temp10;
3063
+ arg11 = &temp11;
2973
3064
  if ((argc < 6) || (argc > 6)) {
2974
3065
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
2975
3066
  }
2976
- res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
2977
- if (!SWIG_IsOK(res10)) {
2978
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
3067
+ res12 = SWIG_AsCharPtrAndSize(argv[0], &buf12, NULL, &alloc12);
3068
+ if (!SWIG_IsOK(res12)) {
3069
+ SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 12, argv[0] ));
2979
3070
  }
2980
- arg10 = reinterpret_cast< char * >(buf10);
2981
- ecode11 = SWIG_AsVal_int(argv[1], &val11);
2982
- if (!SWIG_IsOK(ecode11)) {
2983
- SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
2984
- }
2985
- arg11 = static_cast< int >(val11);
2986
- ecode12 = SWIG_AsVal_int(argv[2], &val12);
2987
- if (!SWIG_IsOK(ecode12)) {
2988
- SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
2989
- }
2990
- arg12 = static_cast< int >(val12);
2991
- ecode13 = SWIG_AsVal_int(argv[3], &val13);
3071
+ arg12 = reinterpret_cast< char * >(buf12);
3072
+ ecode13 = SWIG_AsVal_int(argv[1], &val13);
2992
3073
  if (!SWIG_IsOK(ecode13)) {
2993
- SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[3] ));
3074
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[1] ));
2994
3075
  }
2995
3076
  arg13 = static_cast< int >(val13);
2996
- ecode14 = SWIG_AsVal_int(argv[4], &val14);
3077
+ ecode14 = SWIG_AsVal_int(argv[2], &val14);
2997
3078
  if (!SWIG_IsOK(ecode14)) {
2998
- SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[4] ));
3079
+ SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[2] ));
2999
3080
  }
3000
3081
  arg14 = static_cast< int >(val14);
3001
- res15 = SWIG_AsCharPtrAndSize(argv[5], &buf15, NULL, &alloc15);
3002
- if (!SWIG_IsOK(res15)) {
3003
- SWIG_exception_fail(SWIG_ArgError(res15), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 15, argv[5] ));
3082
+ ecode15 = SWIG_AsVal_int(argv[3], &val15);
3083
+ if (!SWIG_IsOK(ecode15)) {
3084
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","Context::getDecisions", 15, argv[3] ));
3085
+ }
3086
+ arg15 = static_cast< int >(val15);
3087
+ ecode16 = SWIG_AsVal_int(argv[4], &val16);
3088
+ if (!SWIG_IsOK(ecode16)) {
3089
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","Context::getDecisions", 16, argv[4] ));
3090
+ }
3091
+ arg16 = static_cast< int >(val16);
3092
+ res17 = SWIG_AsCharPtrAndSize(argv[5], &buf17, NULL, &alloc17);
3093
+ if (!SWIG_IsOK(res17)) {
3094
+ SWIG_exception_fail(SWIG_ArgError(res17), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 17, argv[5] ));
3004
3095
  }
3005
- arg15 = reinterpret_cast< char * >(buf15);
3006
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12,arg13,arg14,(char const *)arg15);
3096
+ arg17 = reinterpret_cast< char * >(buf17);
3097
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,(char const *)arg12,arg13,arg14,arg15,arg16,(char const *)arg17);
3007
3098
  vresult = rb_ary_new();
3008
3099
  if (SWIG_IsTmpObj(res1)) {
3009
3100
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -3033,38 +3124,50 @@ _wrap_Context_getDecisions__SWIG_2(int argc, VALUE *argv, VALUE self) {
3033
3124
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3034
3125
  } else {
3035
3126
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3036
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
3127
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
3037
3128
  }
3038
3129
  if (SWIG_IsTmpObj(res6)) {
3039
3130
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3040
3131
  } else {
3041
3132
  int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3042
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3133
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
3043
3134
  }
3044
3135
  if (SWIG_IsTmpObj(res7)) {
3045
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3136
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7)));
3046
3137
  } else {
3047
3138
  int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3048
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3139
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
3049
3140
  }
3050
3141
  if (SWIG_IsTmpObj(res8)) {
3051
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3142
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
3052
3143
  } else {
3053
3144
  int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3054
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3145
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
3055
3146
  }
3056
3147
  if (SWIG_IsTmpObj(res9)) {
3057
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3148
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg9)));
3058
3149
  } else {
3059
3150
  int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3060
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3151
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_std__string, new_flags));
3152
+ }
3153
+ if (SWIG_IsTmpObj(res10)) {
3154
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
3155
+ } else {
3156
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3157
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
3158
+ }
3159
+ if (SWIG_IsTmpObj(res11)) {
3160
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg11)));
3161
+ } else {
3162
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3163
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_int, new_flags));
3061
3164
  }
3062
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3063
- if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
3165
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3166
+ if (alloc17 == SWIG_NEWOBJ) delete[] buf17;
3064
3167
  return vresult;
3065
3168
  fail:
3066
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3067
- if (alloc15 == SWIG_NEWOBJ) delete[] buf15;
3169
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3170
+ if (alloc17 == SWIG_NEWOBJ) delete[] buf17;
3068
3171
  return Qnil;
3069
3172
  }
3070
3173
 
@@ -3075,16 +3178,18 @@ _wrap_Context_getDecisions__SWIG_3(int argc, VALUE *argv, VALUE self) {
3075
3178
  int *arg2 = (int *) 0 ;
3076
3179
  int *arg3 = (int *) 0 ;
3077
3180
  int *arg4 = (int *) 0 ;
3078
- int *arg5 = (int *) 0 ;
3079
- int *arg6 = (int *) 0 ;
3080
- std::string *arg7 = (std::string *) 0 ;
3081
- std::string *arg8 = (std::string *) 0 ;
3082
- int *arg9 = (int *) 0 ;
3083
- char *arg10 = (char *) 0 ;
3084
- int arg11 ;
3085
- int arg12 ;
3181
+ double *arg5 = (double *) 0 ;
3182
+ double *arg6 = (double *) 0 ;
3183
+ int *arg7 = (int *) 0 ;
3184
+ int *arg8 = (int *) 0 ;
3185
+ std::string *arg9 = (std::string *) 0 ;
3186
+ std::string *arg10 = (std::string *) 0 ;
3187
+ int *arg11 = (int *) 0 ;
3188
+ char *arg12 = (char *) 0 ;
3086
3189
  int arg13 ;
3087
3190
  int arg14 ;
3191
+ int arg15 ;
3192
+ int arg16 ;
3088
3193
  int temp1 ;
3089
3194
  int res1 = SWIG_TMPOBJ ;
3090
3195
  int temp2 ;
@@ -3093,27 +3198,31 @@ _wrap_Context_getDecisions__SWIG_3(int argc, VALUE *argv, VALUE self) {
3093
3198
  int res3 = SWIG_TMPOBJ ;
3094
3199
  int temp4 ;
3095
3200
  int res4 = SWIG_TMPOBJ ;
3096
- int temp5 ;
3201
+ double temp5 ;
3097
3202
  int res5 = SWIG_TMPOBJ ;
3098
- int temp6 ;
3203
+ double temp6 ;
3099
3204
  int res6 = SWIG_TMPOBJ ;
3100
- std::string temp7 ;
3205
+ int temp7 ;
3101
3206
  int res7 = SWIG_TMPOBJ ;
3102
- std::string temp8 ;
3207
+ int temp8 ;
3103
3208
  int res8 = SWIG_TMPOBJ ;
3104
- int temp9 ;
3209
+ std::string temp9 ;
3105
3210
  int res9 = SWIG_TMPOBJ ;
3106
- int res10 ;
3107
- char *buf10 = 0 ;
3108
- int alloc10 = 0 ;
3109
- int val11 ;
3110
- int ecode11 = 0 ;
3111
- int val12 ;
3112
- int ecode12 = 0 ;
3211
+ std::string temp10 ;
3212
+ int res10 = SWIG_TMPOBJ ;
3213
+ int temp11 ;
3214
+ int res11 = SWIG_TMPOBJ ;
3215
+ int res12 ;
3216
+ char *buf12 = 0 ;
3217
+ int alloc12 = 0 ;
3113
3218
  int val13 ;
3114
3219
  int ecode13 = 0 ;
3115
3220
  int val14 ;
3116
3221
  int ecode14 = 0 ;
3222
+ int val15 ;
3223
+ int ecode15 = 0 ;
3224
+ int val16 ;
3225
+ int ecode16 = 0 ;
3117
3226
  VALUE vresult = Qnil;
3118
3227
 
3119
3228
  arg1 = &temp1;
@@ -3125,35 +3234,37 @@ _wrap_Context_getDecisions__SWIG_3(int argc, VALUE *argv, VALUE self) {
3125
3234
  arg7 = &temp7;
3126
3235
  arg8 = &temp8;
3127
3236
  arg9 = &temp9;
3237
+ arg10 = &temp10;
3238
+ arg11 = &temp11;
3128
3239
  if ((argc < 5) || (argc > 5)) {
3129
3240
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
3130
3241
  }
3131
- res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
3132
- if (!SWIG_IsOK(res10)) {
3133
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
3242
+ res12 = SWIG_AsCharPtrAndSize(argv[0], &buf12, NULL, &alloc12);
3243
+ if (!SWIG_IsOK(res12)) {
3244
+ SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 12, argv[0] ));
3134
3245
  }
3135
- arg10 = reinterpret_cast< char * >(buf10);
3136
- ecode11 = SWIG_AsVal_int(argv[1], &val11);
3137
- if (!SWIG_IsOK(ecode11)) {
3138
- SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
3139
- }
3140
- arg11 = static_cast< int >(val11);
3141
- ecode12 = SWIG_AsVal_int(argv[2], &val12);
3142
- if (!SWIG_IsOK(ecode12)) {
3143
- SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
3144
- }
3145
- arg12 = static_cast< int >(val12);
3146
- ecode13 = SWIG_AsVal_int(argv[3], &val13);
3246
+ arg12 = reinterpret_cast< char * >(buf12);
3247
+ ecode13 = SWIG_AsVal_int(argv[1], &val13);
3147
3248
  if (!SWIG_IsOK(ecode13)) {
3148
- SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[3] ));
3249
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[1] ));
3149
3250
  }
3150
3251
  arg13 = static_cast< int >(val13);
3151
- ecode14 = SWIG_AsVal_int(argv[4], &val14);
3252
+ ecode14 = SWIG_AsVal_int(argv[2], &val14);
3152
3253
  if (!SWIG_IsOK(ecode14)) {
3153
- SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[4] ));
3254
+ SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[2] ));
3154
3255
  }
3155
3256
  arg14 = static_cast< int >(val14);
3156
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12,arg13,arg14);
3257
+ ecode15 = SWIG_AsVal_int(argv[3], &val15);
3258
+ if (!SWIG_IsOK(ecode15)) {
3259
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","Context::getDecisions", 15, argv[3] ));
3260
+ }
3261
+ arg15 = static_cast< int >(val15);
3262
+ ecode16 = SWIG_AsVal_int(argv[4], &val16);
3263
+ if (!SWIG_IsOK(ecode16)) {
3264
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","Context::getDecisions", 16, argv[4] ));
3265
+ }
3266
+ arg16 = static_cast< int >(val16);
3267
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,(char const *)arg12,arg13,arg14,arg15,arg16);
3157
3268
  vresult = rb_ary_new();
3158
3269
  if (SWIG_IsTmpObj(res1)) {
3159
3270
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -3183,36 +3294,48 @@ _wrap_Context_getDecisions__SWIG_3(int argc, VALUE *argv, VALUE self) {
3183
3294
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3184
3295
  } else {
3185
3296
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3186
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
3297
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
3187
3298
  }
3188
3299
  if (SWIG_IsTmpObj(res6)) {
3189
3300
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3190
3301
  } else {
3191
3302
  int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3192
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3303
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
3193
3304
  }
3194
3305
  if (SWIG_IsTmpObj(res7)) {
3195
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3306
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7)));
3196
3307
  } else {
3197
3308
  int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3198
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3309
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
3199
3310
  }
3200
3311
  if (SWIG_IsTmpObj(res8)) {
3201
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3312
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
3202
3313
  } else {
3203
3314
  int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3204
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3315
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
3205
3316
  }
3206
3317
  if (SWIG_IsTmpObj(res9)) {
3207
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3318
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg9)));
3208
3319
  } else {
3209
3320
  int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3210
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3321
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_std__string, new_flags));
3322
+ }
3323
+ if (SWIG_IsTmpObj(res10)) {
3324
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
3325
+ } else {
3326
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3327
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
3328
+ }
3329
+ if (SWIG_IsTmpObj(res11)) {
3330
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg11)));
3331
+ } else {
3332
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3333
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_int, new_flags));
3211
3334
  }
3212
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3335
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3213
3336
  return vresult;
3214
3337
  fail:
3215
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3338
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3216
3339
  return Qnil;
3217
3340
  }
3218
3341
 
@@ -3223,15 +3346,17 @@ _wrap_Context_getDecisions__SWIG_4(int argc, VALUE *argv, VALUE self) {
3223
3346
  int *arg2 = (int *) 0 ;
3224
3347
  int *arg3 = (int *) 0 ;
3225
3348
  int *arg4 = (int *) 0 ;
3226
- int *arg5 = (int *) 0 ;
3227
- int *arg6 = (int *) 0 ;
3228
- std::string *arg7 = (std::string *) 0 ;
3229
- std::string *arg8 = (std::string *) 0 ;
3230
- int *arg9 = (int *) 0 ;
3231
- char *arg10 = (char *) 0 ;
3232
- int arg11 ;
3233
- int arg12 ;
3349
+ double *arg5 = (double *) 0 ;
3350
+ double *arg6 = (double *) 0 ;
3351
+ int *arg7 = (int *) 0 ;
3352
+ int *arg8 = (int *) 0 ;
3353
+ std::string *arg9 = (std::string *) 0 ;
3354
+ std::string *arg10 = (std::string *) 0 ;
3355
+ int *arg11 = (int *) 0 ;
3356
+ char *arg12 = (char *) 0 ;
3234
3357
  int arg13 ;
3358
+ int arg14 ;
3359
+ int arg15 ;
3235
3360
  int temp1 ;
3236
3361
  int res1 = SWIG_TMPOBJ ;
3237
3362
  int temp2 ;
@@ -3240,25 +3365,29 @@ _wrap_Context_getDecisions__SWIG_4(int argc, VALUE *argv, VALUE self) {
3240
3365
  int res3 = SWIG_TMPOBJ ;
3241
3366
  int temp4 ;
3242
3367
  int res4 = SWIG_TMPOBJ ;
3243
- int temp5 ;
3368
+ double temp5 ;
3244
3369
  int res5 = SWIG_TMPOBJ ;
3245
- int temp6 ;
3370
+ double temp6 ;
3246
3371
  int res6 = SWIG_TMPOBJ ;
3247
- std::string temp7 ;
3372
+ int temp7 ;
3248
3373
  int res7 = SWIG_TMPOBJ ;
3249
- std::string temp8 ;
3374
+ int temp8 ;
3250
3375
  int res8 = SWIG_TMPOBJ ;
3251
- int temp9 ;
3376
+ std::string temp9 ;
3252
3377
  int res9 = SWIG_TMPOBJ ;
3253
- int res10 ;
3254
- char *buf10 = 0 ;
3255
- int alloc10 = 0 ;
3256
- int val11 ;
3257
- int ecode11 = 0 ;
3258
- int val12 ;
3259
- int ecode12 = 0 ;
3378
+ std::string temp10 ;
3379
+ int res10 = SWIG_TMPOBJ ;
3380
+ int temp11 ;
3381
+ int res11 = SWIG_TMPOBJ ;
3382
+ int res12 ;
3383
+ char *buf12 = 0 ;
3384
+ int alloc12 = 0 ;
3260
3385
  int val13 ;
3261
3386
  int ecode13 = 0 ;
3387
+ int val14 ;
3388
+ int ecode14 = 0 ;
3389
+ int val15 ;
3390
+ int ecode15 = 0 ;
3262
3391
  VALUE vresult = Qnil;
3263
3392
 
3264
3393
  arg1 = &temp1;
@@ -3270,30 +3399,32 @@ _wrap_Context_getDecisions__SWIG_4(int argc, VALUE *argv, VALUE self) {
3270
3399
  arg7 = &temp7;
3271
3400
  arg8 = &temp8;
3272
3401
  arg9 = &temp9;
3402
+ arg10 = &temp10;
3403
+ arg11 = &temp11;
3273
3404
  if ((argc < 4) || (argc > 4)) {
3274
3405
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
3275
3406
  }
3276
- res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
3277
- if (!SWIG_IsOK(res10)) {
3278
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
3407
+ res12 = SWIG_AsCharPtrAndSize(argv[0], &buf12, NULL, &alloc12);
3408
+ if (!SWIG_IsOK(res12)) {
3409
+ SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 12, argv[0] ));
3279
3410
  }
3280
- arg10 = reinterpret_cast< char * >(buf10);
3281
- ecode11 = SWIG_AsVal_int(argv[1], &val11);
3282
- if (!SWIG_IsOK(ecode11)) {
3283
- SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
3284
- }
3285
- arg11 = static_cast< int >(val11);
3286
- ecode12 = SWIG_AsVal_int(argv[2], &val12);
3287
- if (!SWIG_IsOK(ecode12)) {
3288
- SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
3289
- }
3290
- arg12 = static_cast< int >(val12);
3291
- ecode13 = SWIG_AsVal_int(argv[3], &val13);
3411
+ arg12 = reinterpret_cast< char * >(buf12);
3412
+ ecode13 = SWIG_AsVal_int(argv[1], &val13);
3292
3413
  if (!SWIG_IsOK(ecode13)) {
3293
- SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[3] ));
3414
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[1] ));
3294
3415
  }
3295
3416
  arg13 = static_cast< int >(val13);
3296
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12,arg13);
3417
+ ecode14 = SWIG_AsVal_int(argv[2], &val14);
3418
+ if (!SWIG_IsOK(ecode14)) {
3419
+ SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[2] ));
3420
+ }
3421
+ arg14 = static_cast< int >(val14);
3422
+ ecode15 = SWIG_AsVal_int(argv[3], &val15);
3423
+ if (!SWIG_IsOK(ecode15)) {
3424
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","Context::getDecisions", 15, argv[3] ));
3425
+ }
3426
+ arg15 = static_cast< int >(val15);
3427
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,(char const *)arg12,arg13,arg14,arg15);
3297
3428
  vresult = rb_ary_new();
3298
3429
  if (SWIG_IsTmpObj(res1)) {
3299
3430
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -3323,36 +3454,48 @@ _wrap_Context_getDecisions__SWIG_4(int argc, VALUE *argv, VALUE self) {
3323
3454
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3324
3455
  } else {
3325
3456
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3326
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
3457
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
3327
3458
  }
3328
3459
  if (SWIG_IsTmpObj(res6)) {
3329
3460
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3330
3461
  } else {
3331
3462
  int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3332
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3463
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
3333
3464
  }
3334
3465
  if (SWIG_IsTmpObj(res7)) {
3335
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3466
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7)));
3336
3467
  } else {
3337
3468
  int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3338
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3469
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
3339
3470
  }
3340
3471
  if (SWIG_IsTmpObj(res8)) {
3341
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3472
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
3342
3473
  } else {
3343
3474
  int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3344
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3475
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
3345
3476
  }
3346
3477
  if (SWIG_IsTmpObj(res9)) {
3347
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3478
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg9)));
3348
3479
  } else {
3349
3480
  int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3350
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3481
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_std__string, new_flags));
3482
+ }
3483
+ if (SWIG_IsTmpObj(res10)) {
3484
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
3485
+ } else {
3486
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3487
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
3488
+ }
3489
+ if (SWIG_IsTmpObj(res11)) {
3490
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg11)));
3491
+ } else {
3492
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3493
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_int, new_flags));
3351
3494
  }
3352
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3495
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3353
3496
  return vresult;
3354
3497
  fail:
3355
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3498
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3356
3499
  return Qnil;
3357
3500
  }
3358
3501
 
@@ -3363,14 +3506,16 @@ _wrap_Context_getDecisions__SWIG_5(int argc, VALUE *argv, VALUE self) {
3363
3506
  int *arg2 = (int *) 0 ;
3364
3507
  int *arg3 = (int *) 0 ;
3365
3508
  int *arg4 = (int *) 0 ;
3366
- int *arg5 = (int *) 0 ;
3367
- int *arg6 = (int *) 0 ;
3368
- std::string *arg7 = (std::string *) 0 ;
3369
- std::string *arg8 = (std::string *) 0 ;
3370
- int *arg9 = (int *) 0 ;
3371
- char *arg10 = (char *) 0 ;
3372
- int arg11 ;
3373
- int arg12 ;
3509
+ double *arg5 = (double *) 0 ;
3510
+ double *arg6 = (double *) 0 ;
3511
+ int *arg7 = (int *) 0 ;
3512
+ int *arg8 = (int *) 0 ;
3513
+ std::string *arg9 = (std::string *) 0 ;
3514
+ std::string *arg10 = (std::string *) 0 ;
3515
+ int *arg11 = (int *) 0 ;
3516
+ char *arg12 = (char *) 0 ;
3517
+ int arg13 ;
3518
+ int arg14 ;
3374
3519
  int temp1 ;
3375
3520
  int res1 = SWIG_TMPOBJ ;
3376
3521
  int temp2 ;
@@ -3379,23 +3524,27 @@ _wrap_Context_getDecisions__SWIG_5(int argc, VALUE *argv, VALUE self) {
3379
3524
  int res3 = SWIG_TMPOBJ ;
3380
3525
  int temp4 ;
3381
3526
  int res4 = SWIG_TMPOBJ ;
3382
- int temp5 ;
3527
+ double temp5 ;
3383
3528
  int res5 = SWIG_TMPOBJ ;
3384
- int temp6 ;
3529
+ double temp6 ;
3385
3530
  int res6 = SWIG_TMPOBJ ;
3386
- std::string temp7 ;
3531
+ int temp7 ;
3387
3532
  int res7 = SWIG_TMPOBJ ;
3388
- std::string temp8 ;
3533
+ int temp8 ;
3389
3534
  int res8 = SWIG_TMPOBJ ;
3390
- int temp9 ;
3535
+ std::string temp9 ;
3391
3536
  int res9 = SWIG_TMPOBJ ;
3392
- int res10 ;
3393
- char *buf10 = 0 ;
3394
- int alloc10 = 0 ;
3395
- int val11 ;
3396
- int ecode11 = 0 ;
3397
- int val12 ;
3398
- int ecode12 = 0 ;
3537
+ std::string temp10 ;
3538
+ int res10 = SWIG_TMPOBJ ;
3539
+ int temp11 ;
3540
+ int res11 = SWIG_TMPOBJ ;
3541
+ int res12 ;
3542
+ char *buf12 = 0 ;
3543
+ int alloc12 = 0 ;
3544
+ int val13 ;
3545
+ int ecode13 = 0 ;
3546
+ int val14 ;
3547
+ int ecode14 = 0 ;
3399
3548
  VALUE vresult = Qnil;
3400
3549
 
3401
3550
  arg1 = &temp1;
@@ -3407,25 +3556,27 @@ _wrap_Context_getDecisions__SWIG_5(int argc, VALUE *argv, VALUE self) {
3407
3556
  arg7 = &temp7;
3408
3557
  arg8 = &temp8;
3409
3558
  arg9 = &temp9;
3559
+ arg10 = &temp10;
3560
+ arg11 = &temp11;
3410
3561
  if ((argc < 3) || (argc > 3)) {
3411
3562
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
3412
3563
  }
3413
- res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
3414
- if (!SWIG_IsOK(res10)) {
3415
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
3564
+ res12 = SWIG_AsCharPtrAndSize(argv[0], &buf12, NULL, &alloc12);
3565
+ if (!SWIG_IsOK(res12)) {
3566
+ SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 12, argv[0] ));
3416
3567
  }
3417
- arg10 = reinterpret_cast< char * >(buf10);
3418
- ecode11 = SWIG_AsVal_int(argv[1], &val11);
3419
- if (!SWIG_IsOK(ecode11)) {
3420
- SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
3568
+ arg12 = reinterpret_cast< char * >(buf12);
3569
+ ecode13 = SWIG_AsVal_int(argv[1], &val13);
3570
+ if (!SWIG_IsOK(ecode13)) {
3571
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[1] ));
3421
3572
  }
3422
- arg11 = static_cast< int >(val11);
3423
- ecode12 = SWIG_AsVal_int(argv[2], &val12);
3424
- if (!SWIG_IsOK(ecode12)) {
3425
- SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","Context::getDecisions", 12, argv[2] ));
3573
+ arg13 = static_cast< int >(val13);
3574
+ ecode14 = SWIG_AsVal_int(argv[2], &val14);
3575
+ if (!SWIG_IsOK(ecode14)) {
3576
+ SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Context::getDecisions", 14, argv[2] ));
3426
3577
  }
3427
- arg12 = static_cast< int >(val12);
3428
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11,arg12);
3578
+ arg14 = static_cast< int >(val14);
3579
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,(char const *)arg12,arg13,arg14);
3429
3580
  vresult = rb_ary_new();
3430
3581
  if (SWIG_IsTmpObj(res1)) {
3431
3582
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -3455,36 +3606,48 @@ _wrap_Context_getDecisions__SWIG_5(int argc, VALUE *argv, VALUE self) {
3455
3606
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3456
3607
  } else {
3457
3608
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3458
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
3609
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
3459
3610
  }
3460
3611
  if (SWIG_IsTmpObj(res6)) {
3461
3612
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3462
3613
  } else {
3463
3614
  int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3464
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3615
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
3465
3616
  }
3466
3617
  if (SWIG_IsTmpObj(res7)) {
3467
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3618
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7)));
3468
3619
  } else {
3469
3620
  int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3470
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3621
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
3471
3622
  }
3472
3623
  if (SWIG_IsTmpObj(res8)) {
3473
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3624
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
3474
3625
  } else {
3475
3626
  int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3476
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3627
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
3477
3628
  }
3478
3629
  if (SWIG_IsTmpObj(res9)) {
3479
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3630
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg9)));
3480
3631
  } else {
3481
3632
  int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3482
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3633
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_std__string, new_flags));
3634
+ }
3635
+ if (SWIG_IsTmpObj(res10)) {
3636
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
3637
+ } else {
3638
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3639
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
3483
3640
  }
3484
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3641
+ if (SWIG_IsTmpObj(res11)) {
3642
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg11)));
3643
+ } else {
3644
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3645
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_int, new_flags));
3646
+ }
3647
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3485
3648
  return vresult;
3486
3649
  fail:
3487
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3650
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3488
3651
  return Qnil;
3489
3652
  }
3490
3653
 
@@ -3495,13 +3658,15 @@ _wrap_Context_getDecisions__SWIG_6(int argc, VALUE *argv, VALUE self) {
3495
3658
  int *arg2 = (int *) 0 ;
3496
3659
  int *arg3 = (int *) 0 ;
3497
3660
  int *arg4 = (int *) 0 ;
3498
- int *arg5 = (int *) 0 ;
3499
- int *arg6 = (int *) 0 ;
3500
- std::string *arg7 = (std::string *) 0 ;
3501
- std::string *arg8 = (std::string *) 0 ;
3502
- int *arg9 = (int *) 0 ;
3503
- char *arg10 = (char *) 0 ;
3504
- int arg11 ;
3661
+ double *arg5 = (double *) 0 ;
3662
+ double *arg6 = (double *) 0 ;
3663
+ int *arg7 = (int *) 0 ;
3664
+ int *arg8 = (int *) 0 ;
3665
+ std::string *arg9 = (std::string *) 0 ;
3666
+ std::string *arg10 = (std::string *) 0 ;
3667
+ int *arg11 = (int *) 0 ;
3668
+ char *arg12 = (char *) 0 ;
3669
+ int arg13 ;
3505
3670
  int temp1 ;
3506
3671
  int res1 = SWIG_TMPOBJ ;
3507
3672
  int temp2 ;
@@ -3510,21 +3675,25 @@ _wrap_Context_getDecisions__SWIG_6(int argc, VALUE *argv, VALUE self) {
3510
3675
  int res3 = SWIG_TMPOBJ ;
3511
3676
  int temp4 ;
3512
3677
  int res4 = SWIG_TMPOBJ ;
3513
- int temp5 ;
3678
+ double temp5 ;
3514
3679
  int res5 = SWIG_TMPOBJ ;
3515
- int temp6 ;
3680
+ double temp6 ;
3516
3681
  int res6 = SWIG_TMPOBJ ;
3517
- std::string temp7 ;
3682
+ int temp7 ;
3518
3683
  int res7 = SWIG_TMPOBJ ;
3519
- std::string temp8 ;
3684
+ int temp8 ;
3520
3685
  int res8 = SWIG_TMPOBJ ;
3521
- int temp9 ;
3686
+ std::string temp9 ;
3522
3687
  int res9 = SWIG_TMPOBJ ;
3523
- int res10 ;
3524
- char *buf10 = 0 ;
3525
- int alloc10 = 0 ;
3526
- int val11 ;
3527
- int ecode11 = 0 ;
3688
+ std::string temp10 ;
3689
+ int res10 = SWIG_TMPOBJ ;
3690
+ int temp11 ;
3691
+ int res11 = SWIG_TMPOBJ ;
3692
+ int res12 ;
3693
+ char *buf12 = 0 ;
3694
+ int alloc12 = 0 ;
3695
+ int val13 ;
3696
+ int ecode13 = 0 ;
3528
3697
  VALUE vresult = Qnil;
3529
3698
 
3530
3699
  arg1 = &temp1;
@@ -3536,20 +3705,22 @@ _wrap_Context_getDecisions__SWIG_6(int argc, VALUE *argv, VALUE self) {
3536
3705
  arg7 = &temp7;
3537
3706
  arg8 = &temp8;
3538
3707
  arg9 = &temp9;
3708
+ arg10 = &temp10;
3709
+ arg11 = &temp11;
3539
3710
  if ((argc < 2) || (argc > 2)) {
3540
3711
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3541
3712
  }
3542
- res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
3543
- if (!SWIG_IsOK(res10)) {
3544
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
3713
+ res12 = SWIG_AsCharPtrAndSize(argv[0], &buf12, NULL, &alloc12);
3714
+ if (!SWIG_IsOK(res12)) {
3715
+ SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 12, argv[0] ));
3545
3716
  }
3546
- arg10 = reinterpret_cast< char * >(buf10);
3547
- ecode11 = SWIG_AsVal_int(argv[1], &val11);
3548
- if (!SWIG_IsOK(ecode11)) {
3549
- SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","Context::getDecisions", 11, argv[1] ));
3717
+ arg12 = reinterpret_cast< char * >(buf12);
3718
+ ecode13 = SWIG_AsVal_int(argv[1], &val13);
3719
+ if (!SWIG_IsOK(ecode13)) {
3720
+ SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","Context::getDecisions", 13, argv[1] ));
3550
3721
  }
3551
- arg11 = static_cast< int >(val11);
3552
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10,arg11);
3722
+ arg13 = static_cast< int >(val13);
3723
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,(char const *)arg12,arg13);
3553
3724
  vresult = rb_ary_new();
3554
3725
  if (SWIG_IsTmpObj(res1)) {
3555
3726
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -3579,36 +3750,48 @@ _wrap_Context_getDecisions__SWIG_6(int argc, VALUE *argv, VALUE self) {
3579
3750
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3580
3751
  } else {
3581
3752
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3582
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
3753
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
3583
3754
  }
3584
3755
  if (SWIG_IsTmpObj(res6)) {
3585
3756
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3586
3757
  } else {
3587
3758
  int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3588
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3759
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
3589
3760
  }
3590
3761
  if (SWIG_IsTmpObj(res7)) {
3591
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3762
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7)));
3592
3763
  } else {
3593
3764
  int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3594
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3765
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
3595
3766
  }
3596
3767
  if (SWIG_IsTmpObj(res8)) {
3597
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3768
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
3598
3769
  } else {
3599
3770
  int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3600
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3771
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
3601
3772
  }
3602
3773
  if (SWIG_IsTmpObj(res9)) {
3603
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3774
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg9)));
3604
3775
  } else {
3605
3776
  int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3606
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3777
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_std__string, new_flags));
3778
+ }
3779
+ if (SWIG_IsTmpObj(res10)) {
3780
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
3781
+ } else {
3782
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3783
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
3784
+ }
3785
+ if (SWIG_IsTmpObj(res11)) {
3786
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg11)));
3787
+ } else {
3788
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3789
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_int, new_flags));
3607
3790
  }
3608
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3791
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3609
3792
  return vresult;
3610
3793
  fail:
3611
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3794
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3612
3795
  return Qnil;
3613
3796
  }
3614
3797
 
@@ -3619,12 +3802,14 @@ _wrap_Context_getDecisions__SWIG_7(int argc, VALUE *argv, VALUE self) {
3619
3802
  int *arg2 = (int *) 0 ;
3620
3803
  int *arg3 = (int *) 0 ;
3621
3804
  int *arg4 = (int *) 0 ;
3622
- int *arg5 = (int *) 0 ;
3623
- int *arg6 = (int *) 0 ;
3624
- std::string *arg7 = (std::string *) 0 ;
3625
- std::string *arg8 = (std::string *) 0 ;
3626
- int *arg9 = (int *) 0 ;
3627
- char *arg10 = (char *) 0 ;
3805
+ double *arg5 = (double *) 0 ;
3806
+ double *arg6 = (double *) 0 ;
3807
+ int *arg7 = (int *) 0 ;
3808
+ int *arg8 = (int *) 0 ;
3809
+ std::string *arg9 = (std::string *) 0 ;
3810
+ std::string *arg10 = (std::string *) 0 ;
3811
+ int *arg11 = (int *) 0 ;
3812
+ char *arg12 = (char *) 0 ;
3628
3813
  int temp1 ;
3629
3814
  int res1 = SWIG_TMPOBJ ;
3630
3815
  int temp2 ;
@@ -3633,19 +3818,23 @@ _wrap_Context_getDecisions__SWIG_7(int argc, VALUE *argv, VALUE self) {
3633
3818
  int res3 = SWIG_TMPOBJ ;
3634
3819
  int temp4 ;
3635
3820
  int res4 = SWIG_TMPOBJ ;
3636
- int temp5 ;
3821
+ double temp5 ;
3637
3822
  int res5 = SWIG_TMPOBJ ;
3638
- int temp6 ;
3823
+ double temp6 ;
3639
3824
  int res6 = SWIG_TMPOBJ ;
3640
- std::string temp7 ;
3825
+ int temp7 ;
3641
3826
  int res7 = SWIG_TMPOBJ ;
3642
- std::string temp8 ;
3827
+ int temp8 ;
3643
3828
  int res8 = SWIG_TMPOBJ ;
3644
- int temp9 ;
3829
+ std::string temp9 ;
3645
3830
  int res9 = SWIG_TMPOBJ ;
3646
- int res10 ;
3647
- char *buf10 = 0 ;
3648
- int alloc10 = 0 ;
3831
+ std::string temp10 ;
3832
+ int res10 = SWIG_TMPOBJ ;
3833
+ int temp11 ;
3834
+ int res11 = SWIG_TMPOBJ ;
3835
+ int res12 ;
3836
+ char *buf12 = 0 ;
3837
+ int alloc12 = 0 ;
3649
3838
  VALUE vresult = Qnil;
3650
3839
 
3651
3840
  arg1 = &temp1;
@@ -3657,15 +3846,17 @@ _wrap_Context_getDecisions__SWIG_7(int argc, VALUE *argv, VALUE self) {
3657
3846
  arg7 = &temp7;
3658
3847
  arg8 = &temp8;
3659
3848
  arg9 = &temp9;
3849
+ arg10 = &temp10;
3850
+ arg11 = &temp11;
3660
3851
  if ((argc < 1) || (argc > 1)) {
3661
3852
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3662
3853
  }
3663
- res10 = SWIG_AsCharPtrAndSize(argv[0], &buf10, NULL, &alloc10);
3664
- if (!SWIG_IsOK(res10)) {
3665
- SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 10, argv[0] ));
3854
+ res12 = SWIG_AsCharPtrAndSize(argv[0], &buf12, NULL, &alloc12);
3855
+ if (!SWIG_IsOK(res12)) {
3856
+ SWIG_exception_fail(SWIG_ArgError(res12), Ruby_Format_TypeError( "", "char const *","Context::getDecisions", 12, argv[0] ));
3666
3857
  }
3667
- arg10 = reinterpret_cast< char * >(buf10);
3668
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10);
3858
+ arg12 = reinterpret_cast< char * >(buf12);
3859
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,(char const *)arg12);
3669
3860
  vresult = rb_ary_new();
3670
3861
  if (SWIG_IsTmpObj(res1)) {
3671
3862
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -3695,36 +3886,48 @@ _wrap_Context_getDecisions__SWIG_7(int argc, VALUE *argv, VALUE self) {
3695
3886
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3696
3887
  } else {
3697
3888
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3698
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
3889
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
3699
3890
  }
3700
3891
  if (SWIG_IsTmpObj(res6)) {
3701
3892
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3702
3893
  } else {
3703
3894
  int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3704
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
3895
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
3705
3896
  }
3706
3897
  if (SWIG_IsTmpObj(res7)) {
3707
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
3898
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7)));
3708
3899
  } else {
3709
3900
  int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3710
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
3901
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
3711
3902
  }
3712
3903
  if (SWIG_IsTmpObj(res8)) {
3713
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
3904
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
3714
3905
  } else {
3715
3906
  int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3716
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
3907
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
3717
3908
  }
3718
3909
  if (SWIG_IsTmpObj(res9)) {
3719
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
3910
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg9)));
3720
3911
  } else {
3721
3912
  int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3722
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
3913
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_std__string, new_flags));
3914
+ }
3915
+ if (SWIG_IsTmpObj(res10)) {
3916
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
3917
+ } else {
3918
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3919
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
3920
+ }
3921
+ if (SWIG_IsTmpObj(res11)) {
3922
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg11)));
3923
+ } else {
3924
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3925
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_int, new_flags));
3723
3926
  }
3724
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3927
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3725
3928
  return vresult;
3726
3929
  fail:
3727
- if (alloc10 == SWIG_NEWOBJ) delete[] buf10;
3930
+ if (alloc12 == SWIG_NEWOBJ) delete[] buf12;
3728
3931
  return Qnil;
3729
3932
  }
3730
3933
 
@@ -3735,11 +3938,13 @@ _wrap_Context_getDecisions__SWIG_8(int argc, VALUE *argv, VALUE self) {
3735
3938
  int *arg2 = (int *) 0 ;
3736
3939
  int *arg3 = (int *) 0 ;
3737
3940
  int *arg4 = (int *) 0 ;
3738
- int *arg5 = (int *) 0 ;
3739
- int *arg6 = (int *) 0 ;
3740
- std::string *arg7 = (std::string *) 0 ;
3741
- std::string *arg8 = (std::string *) 0 ;
3742
- int *arg9 = (int *) 0 ;
3941
+ double *arg5 = (double *) 0 ;
3942
+ double *arg6 = (double *) 0 ;
3943
+ int *arg7 = (int *) 0 ;
3944
+ int *arg8 = (int *) 0 ;
3945
+ std::string *arg9 = (std::string *) 0 ;
3946
+ std::string *arg10 = (std::string *) 0 ;
3947
+ int *arg11 = (int *) 0 ;
3743
3948
  int temp1 ;
3744
3949
  int res1 = SWIG_TMPOBJ ;
3745
3950
  int temp2 ;
@@ -3748,16 +3953,20 @@ _wrap_Context_getDecisions__SWIG_8(int argc, VALUE *argv, VALUE self) {
3748
3953
  int res3 = SWIG_TMPOBJ ;
3749
3954
  int temp4 ;
3750
3955
  int res4 = SWIG_TMPOBJ ;
3751
- int temp5 ;
3956
+ double temp5 ;
3752
3957
  int res5 = SWIG_TMPOBJ ;
3753
- int temp6 ;
3958
+ double temp6 ;
3754
3959
  int res6 = SWIG_TMPOBJ ;
3755
- std::string temp7 ;
3960
+ int temp7 ;
3756
3961
  int res7 = SWIG_TMPOBJ ;
3757
- std::string temp8 ;
3962
+ int temp8 ;
3758
3963
  int res8 = SWIG_TMPOBJ ;
3759
- int temp9 ;
3964
+ std::string temp9 ;
3760
3965
  int res9 = SWIG_TMPOBJ ;
3966
+ std::string temp10 ;
3967
+ int res10 = SWIG_TMPOBJ ;
3968
+ int temp11 ;
3969
+ int res11 = SWIG_TMPOBJ ;
3761
3970
  VALUE vresult = Qnil;
3762
3971
 
3763
3972
  arg1 = &temp1;
@@ -3769,10 +3978,12 @@ _wrap_Context_getDecisions__SWIG_8(int argc, VALUE *argv, VALUE self) {
3769
3978
  arg7 = &temp7;
3770
3979
  arg8 = &temp8;
3771
3980
  arg9 = &temp9;
3981
+ arg10 = &temp10;
3982
+ arg11 = &temp11;
3772
3983
  if ((argc < 0) || (argc > 0)) {
3773
3984
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3774
3985
  }
3775
- Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
3986
+ Context::getDecisions(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
3776
3987
  vresult = rb_ary_new();
3777
3988
  if (SWIG_IsTmpObj(res1)) {
3778
3989
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg1)));
@@ -3802,31 +4013,43 @@ _wrap_Context_getDecisions__SWIG_8(int argc, VALUE *argv, VALUE self) {
3802
4013
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5)));
3803
4014
  } else {
3804
4015
  int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3805
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
4016
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
3806
4017
  }
3807
4018
  if (SWIG_IsTmpObj(res6)) {
3808
4019
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6)));
3809
4020
  } else {
3810
4021
  int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3811
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
4022
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
3812
4023
  }
3813
4024
  if (SWIG_IsTmpObj(res7)) {
3814
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg7)));
4025
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7)));
3815
4026
  } else {
3816
4027
  int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3817
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_std__string, new_flags));
4028
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags));
3818
4029
  }
3819
4030
  if (SWIG_IsTmpObj(res8)) {
3820
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg8)));
4031
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg8)));
3821
4032
  } else {
3822
4033
  int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3823
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_std__string, new_flags));
4034
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_int, new_flags));
3824
4035
  }
3825
4036
  if (SWIG_IsTmpObj(res9)) {
3826
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg9)));
4037
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg9)));
3827
4038
  } else {
3828
4039
  int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
3829
- vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_int, new_flags));
4040
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_std__string, new_flags));
4041
+ }
4042
+ if (SWIG_IsTmpObj(res10)) {
4043
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_std_string((*arg10)));
4044
+ } else {
4045
+ int new_flags = SWIG_IsNewObj(res10) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4046
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg10), SWIGTYPE_p_std__string, new_flags));
4047
+ }
4048
+ if (SWIG_IsTmpObj(res11)) {
4049
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg11)));
4050
+ } else {
4051
+ int new_flags = SWIG_IsNewObj(res11) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4052
+ vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg11), SWIGTYPE_p_int, new_flags));
3830
4053
  }
3831
4054
  return vresult;
3832
4055
  fail:
@@ -4072,15 +4295,15 @@ SWIGINTERN VALUE _wrap_Context_getDecisions(int nargs, VALUE *args, VALUE self)
4072
4295
 
4073
4296
  fail:
4074
4297
  Ruby_Format_OverloadedError( argc, 8, "Context.getDecisions",
4075
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode, char const *header_options, char const *header_signature, long header_timestamp)\n"
4076
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode, char const *header_options, char const *header_signature)\n"
4077
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode, char const *header_options)\n"
4078
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode)\n"
4079
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate, int request_type)\n"
4080
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode, int custom_sample_rate)\n"
4081
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace, int custom_tracing_mode)\n"
4082
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status, char const *in_xtrace)\n"
4083
- " void Context.getDecisions(int *do_metrics, int *do_sample, int *sample_rate, int *sample_source, int *type, int *auth, std::string *status_msg, std::string *auth_msg, int *status)\n");
4298
+ " void Context.getDecisions(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, 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"
4299
+ " void Context.getDecisions(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, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode, char const *header_options, char const *header_signature)\n"
4300
+ " void Context.getDecisions(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, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode, char const *header_options)\n"
4301
+ " void Context.getDecisions(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, int custom_tracing_mode, int custom_sample_rate, int request_type, int custom_trigger_mode)\n"
4302
+ " void Context.getDecisions(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, int custom_tracing_mode, int custom_sample_rate, int request_type)\n"
4303
+ " void Context.getDecisions(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, int custom_tracing_mode, int custom_sample_rate)\n"
4304
+ " void Context.getDecisions(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, int custom_tracing_mode)\n"
4305
+ " void Context.getDecisions(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"
4306
+ " void Context.getDecisions(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");
4084
4307
 
4085
4308
  return Qnil;
4086
4309
  }
@@ -4296,6 +4519,22 @@ fail:
4296
4519
  }
4297
4520
 
4298
4521
 
4522
+ SWIGINTERN VALUE
4523
+ _wrap_Context_isLambda(int argc, VALUE *argv, VALUE self) {
4524
+ bool result;
4525
+ VALUE vresult = Qnil;
4526
+
4527
+ if ((argc < 0) || (argc > 0)) {
4528
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4529
+ }
4530
+ result = (bool)Context::isLambda();
4531
+ vresult = SWIG_From_bool(static_cast< bool >(result));
4532
+ return vresult;
4533
+ fail:
4534
+ return Qnil;
4535
+ }
4536
+
4537
+
4299
4538
  SWIGINTERN VALUE
4300
4539
  _wrap_Context_createEvent(int argc, VALUE *argv, VALUE self) {
4301
4540
  Event *result = 0 ;
@@ -4549,40 +4788,134 @@ fail:
4549
4788
  }
4550
4789
 
4551
4790
 
4552
- SWIGINTERN VALUE _wrap_Event_addInfo(int nargs, VALUE *args, VALUE self) {
4553
- int argc;
4554
- VALUE argv[4];
4555
- int ii;
4791
+ SWIGINTERN VALUE
4792
+ _wrap_Event_addInfo__SWIG_4(int argc, VALUE *argv, VALUE self) {
4793
+ Event *arg1 = (Event *) 0 ;
4794
+ char *arg2 = (char *) 0 ;
4795
+ bool arg3 ;
4796
+ void *argp1 = 0 ;
4797
+ int res1 = 0 ;
4798
+ int res2 ;
4799
+ char *buf2 = 0 ;
4800
+ int alloc2 = 0 ;
4801
+ bool val3 ;
4802
+ int ecode3 = 0 ;
4803
+ bool result;
4804
+ VALUE vresult = Qnil;
4556
4805
 
4557
- argc = nargs + 1;
4558
- argv[0] = self;
4559
- if (argc > 4) SWIG_fail;
4560
- for (ii = 1; (ii < argc); ++ii) {
4561
- argv[ii] = args[ii-1];
4806
+ if ((argc < 2) || (argc > 2)) {
4807
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4562
4808
  }
4563
- if (argc == 3) {
4564
- int _v;
4565
- void *vptr = 0;
4566
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
4567
- _v = SWIG_CheckState(res);
4568
- if (_v) {
4569
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4570
- _v = SWIG_CheckState(res);
4571
- if (_v) {
4572
- void *ptr = 0;
4573
- int res = SWIG_ConvertPtr(argv[2], &ptr, 0, 0);
4574
- _v = SWIG_CheckState(res);
4575
- if (_v) {
4576
- return _wrap_Event_addInfo__SWIG_0(nargs, args, self);
4577
- }
4578
- }
4579
- }
4809
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
4810
+ if (!SWIG_IsOK(res1)) {
4811
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","addInfo", 1, self ));
4580
4812
  }
4581
- if (argc == 3) {
4582
- int _v;
4583
- void *vptr = 0;
4584
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
4585
- _v = SWIG_CheckState(res);
4813
+ arg1 = reinterpret_cast< Event * >(argp1);
4814
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
4815
+ if (!SWIG_IsOK(res2)) {
4816
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","addInfo", 2, argv[0] ));
4817
+ }
4818
+ arg2 = reinterpret_cast< char * >(buf2);
4819
+ ecode3 = SWIG_AsVal_bool(argv[1], &val3);
4820
+ if (!SWIG_IsOK(ecode3)) {
4821
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","addInfo", 3, argv[1] ));
4822
+ }
4823
+ arg3 = static_cast< bool >(val3);
4824
+ result = (bool)(arg1)->addInfo(arg2,arg3);
4825
+ vresult = SWIG_From_bool(static_cast< bool >(result));
4826
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4827
+ return vresult;
4828
+ fail:
4829
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4830
+ return Qnil;
4831
+ }
4832
+
4833
+
4834
+ SWIGINTERN VALUE
4835
+ _wrap_Event_addInfo__SWIG_5(int argc, VALUE *argv, VALUE self) {
4836
+ Event *arg1 = (Event *) 0 ;
4837
+ char *arg2 = (char *) 0 ;
4838
+ long *arg3 = (long *) 0 ;
4839
+ int arg4 ;
4840
+ void *argp1 = 0 ;
4841
+ int res1 = 0 ;
4842
+ int res2 ;
4843
+ char *buf2 = 0 ;
4844
+ int alloc2 = 0 ;
4845
+ void *argp3 = 0 ;
4846
+ int res3 = 0 ;
4847
+ int val4 ;
4848
+ int ecode4 = 0 ;
4849
+ bool result;
4850
+ VALUE vresult = Qnil;
4851
+
4852
+ if ((argc < 3) || (argc > 3)) {
4853
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
4854
+ }
4855
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
4856
+ if (!SWIG_IsOK(res1)) {
4857
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","addInfo", 1, self ));
4858
+ }
4859
+ arg1 = reinterpret_cast< Event * >(argp1);
4860
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
4861
+ if (!SWIG_IsOK(res2)) {
4862
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","addInfo", 2, argv[0] ));
4863
+ }
4864
+ arg2 = reinterpret_cast< char * >(buf2);
4865
+ res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_long, 0 | 0 );
4866
+ if (!SWIG_IsOK(res3)) {
4867
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "long const *","addInfo", 3, argv[1] ));
4868
+ }
4869
+ arg3 = reinterpret_cast< long * >(argp3);
4870
+ ecode4 = SWIG_AsVal_int(argv[2], &val4);
4871
+ if (!SWIG_IsOK(ecode4)) {
4872
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","addInfo", 4, argv[2] ));
4873
+ }
4874
+ arg4 = static_cast< int >(val4);
4875
+ result = (bool)(arg1)->addInfo(arg2,(long const *)arg3,arg4);
4876
+ vresult = SWIG_From_bool(static_cast< bool >(result));
4877
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4878
+ return vresult;
4879
+ fail:
4880
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4881
+ return Qnil;
4882
+ }
4883
+
4884
+
4885
+ SWIGINTERN VALUE _wrap_Event_addInfo(int nargs, VALUE *args, VALUE self) {
4886
+ int argc;
4887
+ VALUE argv[5];
4888
+ int ii;
4889
+
4890
+ argc = nargs + 1;
4891
+ argv[0] = self;
4892
+ if (argc > 5) SWIG_fail;
4893
+ for (ii = 1; (ii < argc); ++ii) {
4894
+ argv[ii] = args[ii-1];
4895
+ }
4896
+ if (argc == 3) {
4897
+ int _v;
4898
+ void *vptr = 0;
4899
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
4900
+ _v = SWIG_CheckState(res);
4901
+ if (_v) {
4902
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4903
+ _v = SWIG_CheckState(res);
4904
+ if (_v) {
4905
+ void *ptr = 0;
4906
+ int res = SWIG_ConvertPtr(argv[2], &ptr, 0, 0);
4907
+ _v = SWIG_CheckState(res);
4908
+ if (_v) {
4909
+ return _wrap_Event_addInfo__SWIG_0(nargs, args, self);
4910
+ }
4911
+ }
4912
+ }
4913
+ }
4914
+ if (argc == 3) {
4915
+ int _v;
4916
+ void *vptr = 0;
4917
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
4918
+ _v = SWIG_CheckState(res);
4586
4919
  if (_v) {
4587
4920
  int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4588
4921
  _v = SWIG_CheckState(res);
@@ -4633,13 +4966,58 @@ SWIGINTERN VALUE _wrap_Event_addInfo(int nargs, VALUE *args, VALUE self) {
4633
4966
  }
4634
4967
  }
4635
4968
  }
4969
+ if (argc == 3) {
4970
+ int _v;
4971
+ void *vptr = 0;
4972
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
4973
+ _v = SWIG_CheckState(res);
4974
+ if (_v) {
4975
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4976
+ _v = SWIG_CheckState(res);
4977
+ if (_v) {
4978
+ {
4979
+ int res = SWIG_AsVal_bool(argv[2], NULL);
4980
+ _v = SWIG_CheckState(res);
4981
+ }
4982
+ if (_v) {
4983
+ return _wrap_Event_addInfo__SWIG_4(nargs, args, self);
4984
+ }
4985
+ }
4986
+ }
4987
+ }
4988
+ if (argc == 4) {
4989
+ int _v;
4990
+ void *vptr = 0;
4991
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Event, 0);
4992
+ _v = SWIG_CheckState(res);
4993
+ if (_v) {
4994
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4995
+ _v = SWIG_CheckState(res);
4996
+ if (_v) {
4997
+ void *vptr = 0;
4998
+ int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_long, 0);
4999
+ _v = SWIG_CheckState(res);
5000
+ if (_v) {
5001
+ {
5002
+ int res = SWIG_AsVal_int(argv[3], NULL);
5003
+ _v = SWIG_CheckState(res);
5004
+ }
5005
+ if (_v) {
5006
+ return _wrap_Event_addInfo__SWIG_5(nargs, args, self);
5007
+ }
5008
+ }
5009
+ }
5010
+ }
5011
+ }
4636
5012
 
4637
5013
  fail:
4638
- Ruby_Format_OverloadedError( argc, 4, "Event.addInfo",
5014
+ Ruby_Format_OverloadedError( argc, 5, "Event.addInfo",
4639
5015
  " bool Event.addInfo(char *key, void *val)\n"
4640
5016
  " bool Event.addInfo(char *key, std::string const &val)\n"
4641
5017
  " bool Event.addInfo(char *key, long val)\n"
4642
- " bool Event.addInfo(char *key, double val)\n");
5018
+ " bool Event.addInfo(char *key, double val)\n"
5019
+ " bool Event.addInfo(char *key, bool val)\n"
5020
+ " bool Event.addInfo(char *key, long const *vals, int num)\n");
4643
5021
 
4644
5022
  return Qnil;
4645
5023
  }
@@ -4716,6 +5094,62 @@ fail:
4716
5094
  }
4717
5095
 
4718
5096
 
5097
+ SWIGINTERN VALUE
5098
+ _wrap_Event_addContextOpId(int argc, VALUE *argv, VALUE self) {
5099
+ Event *arg1 = (Event *) 0 ;
5100
+ oboe_metadata_t *arg2 = (oboe_metadata_t *) 0 ;
5101
+ void *argp1 = 0 ;
5102
+ int res1 = 0 ;
5103
+ void *argp2 = 0 ;
5104
+ int res2 = 0 ;
5105
+ bool result;
5106
+ VALUE vresult = Qnil;
5107
+
5108
+ if ((argc < 1) || (argc > 1)) {
5109
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5110
+ }
5111
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
5112
+ if (!SWIG_IsOK(res1)) {
5113
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","addContextOpId", 1, self ));
5114
+ }
5115
+ arg1 = reinterpret_cast< Event * >(argp1);
5116
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
5117
+ if (!SWIG_IsOK(res2)) {
5118
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "oboe_metadata_t const *","addContextOpId", 2, argv[0] ));
5119
+ }
5120
+ arg2 = reinterpret_cast< oboe_metadata_t * >(argp2);
5121
+ result = (bool)(arg1)->addContextOpId((oboe_metadata_t const *)arg2);
5122
+ vresult = SWIG_From_bool(static_cast< bool >(result));
5123
+ return vresult;
5124
+ fail:
5125
+ return Qnil;
5126
+ }
5127
+
5128
+
5129
+ SWIGINTERN VALUE
5130
+ _wrap_Event_addHostname(int argc, VALUE *argv, VALUE self) {
5131
+ Event *arg1 = (Event *) 0 ;
5132
+ void *argp1 = 0 ;
5133
+ int res1 = 0 ;
5134
+ bool result;
5135
+ VALUE vresult = Qnil;
5136
+
5137
+ if ((argc < 0) || (argc > 0)) {
5138
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5139
+ }
5140
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
5141
+ if (!SWIG_IsOK(res1)) {
5142
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","addHostname", 1, self ));
5143
+ }
5144
+ arg1 = reinterpret_cast< Event * >(argp1);
5145
+ result = (bool)(arg1)->addHostname();
5146
+ vresult = SWIG_From_bool(static_cast< bool >(result));
5147
+ return vresult;
5148
+ fail:
5149
+ return Qnil;
5150
+ }
5151
+
5152
+
4719
5153
  SWIGINTERN VALUE
4720
5154
  _wrap_Event_getMetadata(int argc, VALUE *argv, VALUE self) {
4721
5155
  Event *arg1 = (Event *) 0 ;
@@ -4764,6 +5198,30 @@ fail:
4764
5198
  }
4765
5199
 
4766
5200
 
5201
+ SWIGINTERN VALUE
5202
+ _wrap_Event_opIdString(int argc, VALUE *argv, VALUE self) {
5203
+ Event *arg1 = (Event *) 0 ;
5204
+ void *argp1 = 0 ;
5205
+ int res1 = 0 ;
5206
+ std::string result;
5207
+ VALUE vresult = Qnil;
5208
+
5209
+ if ((argc < 0) || (argc > 0)) {
5210
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5211
+ }
5212
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
5213
+ if (!SWIG_IsOK(res1)) {
5214
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","opIdString", 1, self ));
5215
+ }
5216
+ arg1 = reinterpret_cast< Event * >(argp1);
5217
+ result = (arg1)->opIdString();
5218
+ vresult = SWIG_From_std_string(static_cast< std::string >(result));
5219
+ return vresult;
5220
+ fail:
5221
+ return Qnil;
5222
+ }
5223
+
5224
+
4767
5225
  SWIGINTERN VALUE
4768
5226
  _wrap_Event_send(int argc, VALUE *argv, VALUE self) {
4769
5227
  Event *arg1 = (Event *) 0 ;
@@ -4789,60 +5247,153 @@ fail:
4789
5247
 
4790
5248
 
4791
5249
  SWIGINTERN VALUE
4792
- _wrap_Event_startTrace(int argc, VALUE *argv, VALUE self) {
4793
- oboe_metadata_t *arg1 = (oboe_metadata_t *) 0 ;
5250
+ _wrap_Event_sendProfiling(int argc, VALUE *argv, VALUE self) {
5251
+ Event *arg1 = (Event *) 0 ;
4794
5252
  void *argp1 = 0 ;
4795
5253
  int res1 = 0 ;
4796
- Event *result = 0 ;
5254
+ bool result;
4797
5255
  VALUE vresult = Qnil;
4798
5256
 
4799
- if ((argc < 1) || (argc > 1)) {
4800
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5257
+ if ((argc < 0) || (argc > 0)) {
5258
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4801
5259
  }
4802
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
5260
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
4803
5261
  if (!SWIG_IsOK(res1)) {
4804
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "oboe_metadata_t const *","Event::startTrace", 1, argv[0] ));
5262
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","sendProfiling", 1, self ));
4805
5263
  }
4806
- arg1 = reinterpret_cast< oboe_metadata_t * >(argp1);
4807
- result = (Event *)Event::startTrace((oboe_metadata_t const *)arg1);
4808
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
5264
+ arg1 = reinterpret_cast< Event * >(argp1);
5265
+ result = (bool)(arg1)->sendProfiling();
5266
+ vresult = SWIG_From_bool(static_cast< bool >(result));
4809
5267
  return vresult;
4810
5268
  fail:
4811
5269
  return Qnil;
4812
5270
  }
4813
5271
 
4814
5272
 
4815
- static swig_class SwigClassSpan;
4816
-
4817
5273
  SWIGINTERN VALUE
4818
- _wrap_Span_createSpan__SWIG_0(int argc, VALUE *argv, VALUE self) {
4819
- char *arg1 = (char *) 0 ;
4820
- char *arg2 = (char *) 0 ;
4821
- int64_t arg3 ;
4822
- char *arg4 = (char *) 0 ;
4823
- int res1 ;
4824
- char *buf1 = 0 ;
4825
- int alloc1 = 0 ;
4826
- int res2 ;
4827
- char *buf2 = 0 ;
4828
- int alloc2 = 0 ;
4829
- long long val3 ;
4830
- int ecode3 = 0 ;
4831
- int res4 ;
4832
- char *buf4 = 0 ;
4833
- int alloc4 = 0 ;
4834
- std::string result;
5274
+ _wrap_Event_addSpanRef(int argc, VALUE *argv, VALUE self) {
5275
+ Event *arg1 = (Event *) 0 ;
5276
+ oboe_metadata_t *arg2 = (oboe_metadata_t *) 0 ;
5277
+ void *argp1 = 0 ;
5278
+ int res1 = 0 ;
5279
+ void *argp2 = 0 ;
5280
+ int res2 = 0 ;
5281
+ bool result;
4835
5282
  VALUE vresult = Qnil;
4836
5283
 
4837
- if ((argc < 4) || (argc > 4)) {
4838
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
5284
+ if ((argc < 1) || (argc > 1)) {
5285
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4839
5286
  }
4840
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
5287
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
4841
5288
  if (!SWIG_IsOK(res1)) {
4842
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","Span::createSpan", 1, argv[0] ));
5289
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","addSpanRef", 1, self ));
4843
5290
  }
4844
- arg1 = reinterpret_cast< char * >(buf1);
4845
- res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5291
+ arg1 = reinterpret_cast< Event * >(argp1);
5292
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
5293
+ if (!SWIG_IsOK(res2)) {
5294
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "oboe_metadata_t const *","addSpanRef", 2, argv[0] ));
5295
+ }
5296
+ arg2 = reinterpret_cast< oboe_metadata_t * >(argp2);
5297
+ result = (bool)(arg1)->addSpanRef((oboe_metadata_t const *)arg2);
5298
+ vresult = SWIG_From_bool(static_cast< bool >(result));
5299
+ return vresult;
5300
+ fail:
5301
+ return Qnil;
5302
+ }
5303
+
5304
+
5305
+ SWIGINTERN VALUE
5306
+ _wrap_Event_addProfileEdge(int argc, VALUE *argv, VALUE self) {
5307
+ Event *arg1 = (Event *) 0 ;
5308
+ std::string arg2 ;
5309
+ void *argp1 = 0 ;
5310
+ int res1 = 0 ;
5311
+ bool result;
5312
+ VALUE vresult = Qnil;
5313
+
5314
+ if ((argc < 1) || (argc > 1)) {
5315
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5316
+ }
5317
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Event, 0 | 0 );
5318
+ if (!SWIG_IsOK(res1)) {
5319
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Event *","addProfileEdge", 1, self ));
5320
+ }
5321
+ arg1 = reinterpret_cast< Event * >(argp1);
5322
+ {
5323
+ std::string *ptr = (std::string *)0;
5324
+ int res = SWIG_AsPtr_std_string(argv[0], &ptr);
5325
+ if (!SWIG_IsOK(res) || !ptr) {
5326
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","addProfileEdge", 2, argv[0] ));
5327
+ }
5328
+ arg2 = *ptr;
5329
+ if (SWIG_IsNewObj(res)) delete ptr;
5330
+ }
5331
+ result = (bool)(arg1)->addProfileEdge(arg2);
5332
+ vresult = SWIG_From_bool(static_cast< bool >(result));
5333
+ return vresult;
5334
+ fail:
5335
+ return Qnil;
5336
+ }
5337
+
5338
+
5339
+ SWIGINTERN VALUE
5340
+ _wrap_Event_startTrace(int argc, VALUE *argv, VALUE self) {
5341
+ oboe_metadata_t *arg1 = (oboe_metadata_t *) 0 ;
5342
+ void *argp1 = 0 ;
5343
+ int res1 = 0 ;
5344
+ Event *result = 0 ;
5345
+ VALUE vresult = Qnil;
5346
+
5347
+ if ((argc < 1) || (argc > 1)) {
5348
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5349
+ }
5350
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
5351
+ if (!SWIG_IsOK(res1)) {
5352
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "oboe_metadata_t const *","Event::startTrace", 1, argv[0] ));
5353
+ }
5354
+ arg1 = reinterpret_cast< oboe_metadata_t * >(argp1);
5355
+ result = (Event *)Event::startTrace((oboe_metadata_t const *)arg1);
5356
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
5357
+ return vresult;
5358
+ fail:
5359
+ return Qnil;
5360
+ }
5361
+
5362
+
5363
+ static swig_class SwigClassSpan;
5364
+
5365
+ SWIGINTERN VALUE
5366
+ _wrap_Span_createSpan__SWIG_0(int argc, VALUE *argv, VALUE self) {
5367
+ char *arg1 = (char *) 0 ;
5368
+ char *arg2 = (char *) 0 ;
5369
+ int64_t arg3 ;
5370
+ int arg4 ;
5371
+ char *arg5 = (char *) 0 ;
5372
+ int res1 ;
5373
+ char *buf1 = 0 ;
5374
+ int alloc1 = 0 ;
5375
+ int res2 ;
5376
+ char *buf2 = 0 ;
5377
+ int alloc2 = 0 ;
5378
+ long long val3 ;
5379
+ int ecode3 = 0 ;
5380
+ int val4 ;
5381
+ int ecode4 = 0 ;
5382
+ int res5 ;
5383
+ char *buf5 = 0 ;
5384
+ int alloc5 = 0 ;
5385
+ std::string result;
5386
+ VALUE vresult = Qnil;
5387
+
5388
+ if ((argc < 5) || (argc > 5)) {
5389
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
5390
+ }
5391
+ res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
5392
+ if (!SWIG_IsOK(res1)) {
5393
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","Span::createSpan", 1, argv[0] ));
5394
+ }
5395
+ arg1 = reinterpret_cast< char * >(buf1);
5396
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
4846
5397
  if (!SWIG_IsOK(res2)) {
4847
5398
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","Span::createSpan", 2, argv[1] ));
4848
5399
  }
@@ -4852,21 +5403,26 @@ _wrap_Span_createSpan__SWIG_0(int argc, VALUE *argv, VALUE self) {
4852
5403
  SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int64_t","Span::createSpan", 3, argv[2] ));
4853
5404
  }
4854
5405
  arg3 = static_cast< int64_t >(val3);
4855
- res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
4856
- if (!SWIG_IsOK(res4)) {
4857
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","Span::createSpan", 4, argv[3] ));
5406
+ ecode4 = SWIG_AsVal_int(argv[3], &val4);
5407
+ if (!SWIG_IsOK(ecode4)) {
5408
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","Span::createSpan", 4, argv[3] ));
5409
+ }
5410
+ arg4 = static_cast< int >(val4);
5411
+ res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
5412
+ if (!SWIG_IsOK(res5)) {
5413
+ SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","Span::createSpan", 5, argv[4] ));
4858
5414
  }
4859
- arg4 = reinterpret_cast< char * >(buf4);
4860
- result = Span::createSpan((char const *)arg1,(char const *)arg2,arg3,(char const *)arg4);
5415
+ arg5 = reinterpret_cast< char * >(buf5);
5416
+ result = Span::createSpan((char const *)arg1,(char const *)arg2,arg3,arg4,(char const *)arg5);
4861
5417
  vresult = SWIG_From_std_string(static_cast< std::string >(result));
4862
5418
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4863
5419
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4864
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
5420
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
4865
5421
  return vresult;
4866
5422
  fail:
4867
5423
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4868
5424
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
4869
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
5425
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
4870
5426
  return Qnil;
4871
5427
  }
4872
5428
 
@@ -4876,6 +5432,7 @@ _wrap_Span_createSpan__SWIG_1(int argc, VALUE *argv, VALUE self) {
4876
5432
  char *arg1 = (char *) 0 ;
4877
5433
  char *arg2 = (char *) 0 ;
4878
5434
  int64_t arg3 ;
5435
+ int arg4 ;
4879
5436
  int res1 ;
4880
5437
  char *buf1 = 0 ;
4881
5438
  int alloc1 = 0 ;
@@ -4884,11 +5441,13 @@ _wrap_Span_createSpan__SWIG_1(int argc, VALUE *argv, VALUE self) {
4884
5441
  int alloc2 = 0 ;
4885
5442
  long long val3 ;
4886
5443
  int ecode3 = 0 ;
5444
+ int val4 ;
5445
+ int ecode4 = 0 ;
4887
5446
  std::string result;
4888
5447
  VALUE vresult = Qnil;
4889
5448
 
4890
- if ((argc < 3) || (argc > 3)) {
4891
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
5449
+ if ((argc < 4) || (argc > 4)) {
5450
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
4892
5451
  }
4893
5452
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
4894
5453
  if (!SWIG_IsOK(res1)) {
@@ -4905,7 +5464,12 @@ _wrap_Span_createSpan__SWIG_1(int argc, VALUE *argv, VALUE self) {
4905
5464
  SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int64_t","Span::createSpan", 3, argv[2] ));
4906
5465
  }
4907
5466
  arg3 = static_cast< int64_t >(val3);
4908
- result = Span::createSpan((char const *)arg1,(char const *)arg2,arg3);
5467
+ ecode4 = SWIG_AsVal_int(argv[3], &val4);
5468
+ if (!SWIG_IsOK(ecode4)) {
5469
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","Span::createSpan", 4, argv[3] ));
5470
+ }
5471
+ arg4 = static_cast< int >(val4);
5472
+ result = Span::createSpan((char const *)arg1,(char const *)arg2,arg3,arg4);
4909
5473
  vresult = SWIG_From_std_string(static_cast< std::string >(result));
4910
5474
  if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
4911
5475
  if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
@@ -4919,15 +5483,15 @@ fail:
4919
5483
 
4920
5484
  SWIGINTERN VALUE _wrap_Span_createSpan(int nargs, VALUE *args, VALUE self) {
4921
5485
  int argc;
4922
- VALUE argv[4];
5486
+ VALUE argv[5];
4923
5487
  int ii;
4924
5488
 
4925
5489
  argc = nargs;
4926
- if (argc > 4) SWIG_fail;
5490
+ if (argc > 5) SWIG_fail;
4927
5491
  for (ii = 0; (ii < argc); ++ii) {
4928
5492
  argv[ii] = args[ii];
4929
5493
  }
4930
- if (argc == 3) {
5494
+ if (argc == 4) {
4931
5495
  int _v;
4932
5496
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4933
5497
  _v = SWIG_CheckState(res);
@@ -4940,12 +5504,18 @@ SWIGINTERN VALUE _wrap_Span_createSpan(int nargs, VALUE *args, VALUE self) {
4940
5504
  _v = SWIG_CheckState(res);
4941
5505
  }
4942
5506
  if (_v) {
4943
- return _wrap_Span_createSpan__SWIG_1(nargs, args, self);
5507
+ {
5508
+ int res = SWIG_AsVal_int(argv[3], NULL);
5509
+ _v = SWIG_CheckState(res);
5510
+ }
5511
+ if (_v) {
5512
+ return _wrap_Span_createSpan__SWIG_1(nargs, args, self);
5513
+ }
4944
5514
  }
4945
5515
  }
4946
5516
  }
4947
5517
  }
4948
- if (argc == 4) {
5518
+ if (argc == 5) {
4949
5519
  int _v;
4950
5520
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4951
5521
  _v = SWIG_CheckState(res);
@@ -4958,10 +5528,16 @@ SWIGINTERN VALUE _wrap_Span_createSpan(int nargs, VALUE *args, VALUE self) {
4958
5528
  _v = SWIG_CheckState(res);
4959
5529
  }
4960
5530
  if (_v) {
4961
- int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0);
4962
- _v = SWIG_CheckState(res);
5531
+ {
5532
+ int res = SWIG_AsVal_int(argv[3], NULL);
5533
+ _v = SWIG_CheckState(res);
5534
+ }
4963
5535
  if (_v) {
4964
- return _wrap_Span_createSpan__SWIG_0(nargs, args, self);
5536
+ int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0);
5537
+ _v = SWIG_CheckState(res);
5538
+ if (_v) {
5539
+ return _wrap_Span_createSpan__SWIG_0(nargs, args, self);
5540
+ }
4965
5541
  }
4966
5542
  }
4967
5543
  }
@@ -4969,9 +5545,9 @@ SWIGINTERN VALUE _wrap_Span_createSpan(int nargs, VALUE *args, VALUE self) {
4969
5545
  }
4970
5546
 
4971
5547
  fail:
4972
- Ruby_Format_OverloadedError( argc, 4, "Span.createSpan",
4973
- " std::string Span.createSpan(char const *transaction, char const *domain, int64_t const duration, char const *service_name)\n"
4974
- " std::string Span.createSpan(char const *transaction, char const *domain, int64_t const duration)\n");
5548
+ Ruby_Format_OverloadedError( argc, 5, "Span.createSpan",
5549
+ " std::string Span.createSpan(char const *transaction, char const *domain, int64_t const duration, int const has_error, char const *service_name)\n"
5550
+ " std::string Span.createSpan(char const *transaction, char const *domain, int64_t const duration, int const has_error)\n");
4975
5551
 
4976
5552
  return Qnil;
4977
5553
  }
@@ -5372,15 +5948,15 @@ _wrap_MetricTags_add(int argc, VALUE *argv, VALUE self) {
5372
5948
  arg2 = static_cast< size_t >(val2);
5373
5949
  res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
5374
5950
  if (!SWIG_IsOK(res3)) {
5375
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","add", 3, argv[1] ));
5951
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","add", 3, argv[1] ));
5376
5952
  }
5377
5953
  arg3 = reinterpret_cast< char * >(buf3);
5378
5954
  res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4);
5379
5955
  if (!SWIG_IsOK(res4)) {
5380
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char *","add", 4, argv[2] ));
5956
+ SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","add", 4, argv[2] ));
5381
5957
  }
5382
5958
  arg4 = reinterpret_cast< char * >(buf4);
5383
- result = (bool)(arg1)->add(arg2,arg3,arg4);
5959
+ result = (bool)(arg1)->add(arg2,(char const *)arg3,(char const *)arg4);
5384
5960
  vresult = SWIG_From_bool(static_cast< bool >(result));
5385
5961
  if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
5386
5962
  if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
@@ -5392,6 +5968,30 @@ fail:
5392
5968
  }
5393
5969
 
5394
5970
 
5971
+ SWIGINTERN VALUE
5972
+ _wrap_MetricTags_get(int argc, VALUE *argv, VALUE self) {
5973
+ MetricTags *arg1 = (MetricTags *) 0 ;
5974
+ void *argp1 = 0 ;
5975
+ int res1 = 0 ;
5976
+ oboe_metric_tag_t *result = 0 ;
5977
+ VALUE vresult = Qnil;
5978
+
5979
+ if ((argc < 0) || (argc > 0)) {
5980
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5981
+ }
5982
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MetricTags, 0 | 0 );
5983
+ if (!SWIG_IsOK(res1)) {
5984
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "MetricTags const *","get", 1, self ));
5985
+ }
5986
+ arg1 = reinterpret_cast< MetricTags * >(argp1);
5987
+ result = (oboe_metric_tag_t *)((MetricTags const *)arg1)->get();
5988
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_oboe_metric_tag_t, 0 | 0 );
5989
+ return vresult;
5990
+ fail:
5991
+ return Qnil;
5992
+ }
5993
+
5994
+
5395
5995
  static swig_class SwigClassCustomMetrics;
5396
5996
 
5397
5997
  SWIGINTERN VALUE
@@ -5664,10 +6264,13 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
5664
6264
  int arg12 ;
5665
6265
  int arg13 ;
5666
6266
  int arg14 ;
5667
- int arg15 ;
5668
- int arg16 ;
6267
+ double arg15 ;
6268
+ double arg16 ;
5669
6269
  int arg17 ;
5670
6270
  int arg18 ;
6271
+ std::string arg19 ;
6272
+ int arg20 ;
6273
+ int arg21 ;
5671
6274
  int val2 ;
5672
6275
  int ecode2 = 0 ;
5673
6276
  int val4 ;
@@ -5684,18 +6287,22 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
5684
6287
  int ecode13 = 0 ;
5685
6288
  int val14 ;
5686
6289
  int ecode14 = 0 ;
5687
- int val15 ;
6290
+ double val15 ;
5688
6291
  int ecode15 = 0 ;
5689
- int val16 ;
6292
+ double val16 ;
5690
6293
  int ecode16 = 0 ;
5691
6294
  int val17 ;
5692
6295
  int ecode17 = 0 ;
5693
6296
  int val18 ;
5694
6297
  int ecode18 = 0 ;
6298
+ int val20 ;
6299
+ int ecode20 = 0 ;
6300
+ int val21 ;
6301
+ int ecode21 = 0 ;
5695
6302
  Reporter *result = 0 ;
5696
6303
 
5697
- if ((argc < 18) || (argc > 18)) {
5698
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 18)",argc); SWIG_fail;
6304
+ if ((argc < 21) || (argc > 21)) {
6305
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 21)",argc); SWIG_fail;
5699
6306
  }
5700
6307
  {
5701
6308
  std::string *ptr = (std::string *)0;
@@ -5791,16 +6398,16 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
5791
6398
  SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "int","Reporter", 14, argv[13] ));
5792
6399
  }
5793
6400
  arg14 = static_cast< int >(val14);
5794
- ecode15 = SWIG_AsVal_int(argv[14], &val15);
6401
+ ecode15 = SWIG_AsVal_double(argv[14], &val15);
5795
6402
  if (!SWIG_IsOK(ecode15)) {
5796
- SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "int","Reporter", 15, argv[14] ));
6403
+ SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "double","Reporter", 15, argv[14] ));
5797
6404
  }
5798
- arg15 = static_cast< int >(val15);
5799
- ecode16 = SWIG_AsVal_int(argv[15], &val16);
6405
+ arg15 = static_cast< double >(val15);
6406
+ ecode16 = SWIG_AsVal_double(argv[15], &val16);
5800
6407
  if (!SWIG_IsOK(ecode16)) {
5801
- SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "int","Reporter", 16, argv[15] ));
6408
+ SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "double","Reporter", 16, argv[15] ));
5802
6409
  }
5803
- arg16 = static_cast< int >(val16);
6410
+ arg16 = static_cast< double >(val16);
5804
6411
  ecode17 = SWIG_AsVal_int(argv[16], &val17);
5805
6412
  if (!SWIG_IsOK(ecode17)) {
5806
6413
  SWIG_exception_fail(SWIG_ArgError(ecode17), Ruby_Format_TypeError( "", "int","Reporter", 17, argv[16] ));
@@ -5811,7 +6418,26 @@ _wrap_new_Reporter(int argc, VALUE *argv, VALUE self) {
5811
6418
  SWIG_exception_fail(SWIG_ArgError(ecode18), Ruby_Format_TypeError( "", "int","Reporter", 18, argv[17] ));
5812
6419
  }
5813
6420
  arg18 = static_cast< int >(val18);
5814
- result = (Reporter *)new Reporter(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18);
6421
+ {
6422
+ std::string *ptr = (std::string *)0;
6423
+ int res = SWIG_AsPtr_std_string(argv[18], &ptr);
6424
+ if (!SWIG_IsOK(res) || !ptr) {
6425
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Reporter", 19, argv[18] ));
6426
+ }
6427
+ arg19 = *ptr;
6428
+ if (SWIG_IsNewObj(res)) delete ptr;
6429
+ }
6430
+ ecode20 = SWIG_AsVal_int(argv[19], &val20);
6431
+ if (!SWIG_IsOK(ecode20)) {
6432
+ SWIG_exception_fail(SWIG_ArgError(ecode20), Ruby_Format_TypeError( "", "int","Reporter", 20, argv[19] ));
6433
+ }
6434
+ arg20 = static_cast< int >(val20);
6435
+ ecode21 = SWIG_AsVal_int(argv[20], &val21);
6436
+ if (!SWIG_IsOK(ecode21)) {
6437
+ SWIG_exception_fail(SWIG_ArgError(ecode21), Ruby_Format_TypeError( "", "int","Reporter", 21, argv[20] ));
6438
+ }
6439
+ arg21 = static_cast< int >(val21);
6440
+ 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);
5815
6441
  DATA_PTR(self) = result;
5816
6442
  return self;
5817
6443
  fail:
@@ -5930,598 +6556,198 @@ SWIGINTERN VALUE _wrap_Reporter_sendReport(int nargs, VALUE *args, VALUE self) {
5930
6556
  if (_v) {
5931
6557
  void *vptr = 0;
5932
6558
  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
5933
- _v = SWIG_CheckState(res);
5934
- if (_v) {
5935
- void *vptr = 0;
5936
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
5937
- _v = SWIG_CheckState(res);
5938
- if (_v) {
5939
- return _wrap_Reporter_sendReport__SWIG_1(nargs, args, self);
5940
- }
5941
- }
5942
- }
5943
- }
5944
-
5945
- fail:
5946
- Ruby_Format_OverloadedError( argc, 4, "Reporter.sendReport",
5947
- " bool Reporter.sendReport(Event *evt)\n"
5948
- " bool Reporter.sendReport(Event *evt, oboe_metadata_t *md)\n");
5949
-
5950
- return Qnil;
5951
- }
5952
-
5953
-
5954
- SWIGINTERN VALUE
5955
- _wrap_Reporter_sendStatus__SWIG_0(int argc, VALUE *argv, VALUE self) {
5956
- Reporter *arg1 = (Reporter *) 0 ;
5957
- Event *arg2 = (Event *) 0 ;
5958
- void *argp1 = 0 ;
5959
- int res1 = 0 ;
5960
- void *argp2 = 0 ;
5961
- int res2 = 0 ;
5962
- bool result;
5963
- VALUE vresult = Qnil;
5964
-
5965
- if ((argc < 1) || (argc > 1)) {
5966
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5967
- }
5968
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
5969
- if (!SWIG_IsOK(res1)) {
5970
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","sendStatus", 1, self ));
5971
- }
5972
- arg1 = reinterpret_cast< Reporter * >(argp1);
5973
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Event, 0 | 0 );
5974
- if (!SWIG_IsOK(res2)) {
5975
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Event *","sendStatus", 2, argv[0] ));
5976
- }
5977
- arg2 = reinterpret_cast< Event * >(argp2);
5978
- result = (bool)(arg1)->sendStatus(arg2);
5979
- vresult = SWIG_From_bool(static_cast< bool >(result));
5980
- return vresult;
5981
- fail:
5982
- return Qnil;
5983
- }
5984
-
5985
-
5986
- SWIGINTERN VALUE
5987
- _wrap_Reporter_sendStatus__SWIG_1(int argc, VALUE *argv, VALUE self) {
5988
- Reporter *arg1 = (Reporter *) 0 ;
5989
- Event *arg2 = (Event *) 0 ;
5990
- oboe_metadata_t *arg3 = (oboe_metadata_t *) 0 ;
5991
- void *argp1 = 0 ;
5992
- int res1 = 0 ;
5993
- void *argp2 = 0 ;
5994
- int res2 = 0 ;
5995
- void *argp3 = 0 ;
5996
- int res3 = 0 ;
5997
- bool result;
5998
- VALUE vresult = Qnil;
5999
-
6000
- if ((argc < 2) || (argc > 2)) {
6001
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
6002
- }
6003
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
6004
- if (!SWIG_IsOK(res1)) {
6005
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","sendStatus", 1, self ));
6006
- }
6007
- arg1 = reinterpret_cast< Reporter * >(argp1);
6008
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Event, 0 | 0 );
6009
- if (!SWIG_IsOK(res2)) {
6010
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Event *","sendStatus", 2, argv[0] ));
6011
- }
6012
- arg2 = reinterpret_cast< Event * >(argp2);
6013
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
6014
- if (!SWIG_IsOK(res3)) {
6015
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "oboe_metadata_t *","sendStatus", 3, argv[1] ));
6016
- }
6017
- arg3 = reinterpret_cast< oboe_metadata_t * >(argp3);
6018
- result = (bool)(arg1)->sendStatus(arg2,arg3);
6019
- vresult = SWIG_From_bool(static_cast< bool >(result));
6020
- return vresult;
6021
- fail:
6022
- return Qnil;
6023
- }
6024
-
6025
-
6026
- SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
6027
- int argc;
6028
- VALUE argv[4];
6029
- int ii;
6030
-
6031
- argc = nargs + 1;
6032
- argv[0] = self;
6033
- if (argc > 4) SWIG_fail;
6034
- for (ii = 1; (ii < argc); ++ii) {
6035
- argv[ii] = args[ii-1];
6036
- }
6037
- if (argc == 2) {
6038
- int _v;
6039
- void *vptr = 0;
6040
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
6041
- _v = SWIG_CheckState(res);
6042
- if (_v) {
6043
- void *vptr = 0;
6044
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
6045
- _v = SWIG_CheckState(res);
6046
- if (_v) {
6047
- return _wrap_Reporter_sendStatus__SWIG_0(nargs, args, self);
6048
- }
6049
- }
6050
- }
6051
- if (argc == 3) {
6052
- int _v;
6053
- void *vptr = 0;
6054
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
6055
- _v = SWIG_CheckState(res);
6056
- if (_v) {
6057
- void *vptr = 0;
6058
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
6059
- _v = SWIG_CheckState(res);
6060
- if (_v) {
6061
- void *vptr = 0;
6062
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
6063
- _v = SWIG_CheckState(res);
6064
- if (_v) {
6065
- return _wrap_Reporter_sendStatus__SWIG_1(nargs, args, self);
6066
- }
6067
- }
6068
- }
6069
- }
6070
-
6071
- fail:
6072
- Ruby_Format_OverloadedError( argc, 4, "Reporter.sendStatus",
6073
- " bool Reporter.sendStatus(Event *evt)\n"
6074
- " bool Reporter.sendStatus(Event *evt, oboe_metadata_t *md)\n");
6075
-
6076
- return Qnil;
6077
- }
6078
-
6079
-
6080
- static swig_class SwigClassDebugLogger;
6081
-
6082
- SWIGINTERN void
6083
- free_DebugLogger(void *self) {
6084
- DebugLogger *arg1 = (DebugLogger *)self;
6085
- delete arg1;
6086
- }
6087
-
6088
- SWIGINTERN VALUE
6089
- _wrap_DebugLogger_log(int argc, VALUE *argv, VALUE self) {
6090
- DebugLogger *arg1 = (DebugLogger *) 0 ;
6091
- int arg2 ;
6092
- int arg3 ;
6093
- char *arg4 = (char *) 0 ;
6094
- int arg5 ;
6095
- char *arg6 = (char *) 0 ;
6096
- void *argp1 = 0 ;
6097
- int res1 = 0 ;
6098
- int val2 ;
6099
- int ecode2 = 0 ;
6100
- int val3 ;
6101
- int ecode3 = 0 ;
6102
- int res4 ;
6103
- char *buf4 = 0 ;
6104
- int alloc4 = 0 ;
6105
- int val5 ;
6106
- int ecode5 = 0 ;
6107
- int res6 ;
6108
- char *buf6 = 0 ;
6109
- int alloc6 = 0 ;
6110
-
6111
- if ((argc < 5) || (argc > 5)) {
6112
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
6113
- }
6114
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_DebugLogger, 0 | 0 );
6115
- if (!SWIG_IsOK(res1)) {
6116
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "DebugLogger *","log", 1, self ));
6117
- }
6118
- arg1 = reinterpret_cast< DebugLogger * >(argp1);
6119
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
6120
- if (!SWIG_IsOK(ecode2)) {
6121
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","log", 2, argv[0] ));
6122
- }
6123
- arg2 = static_cast< int >(val2);
6124
- ecode3 = SWIG_AsVal_int(argv[1], &val3);
6125
- if (!SWIG_IsOK(ecode3)) {
6126
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","log", 3, argv[1] ));
6127
- }
6128
- arg3 = static_cast< int >(val3);
6129
- res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4);
6130
- if (!SWIG_IsOK(res4)) {
6131
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","log", 4, argv[2] ));
6132
- }
6133
- arg4 = reinterpret_cast< char * >(buf4);
6134
- ecode5 = SWIG_AsVal_int(argv[3], &val5);
6135
- if (!SWIG_IsOK(ecode5)) {
6136
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","log", 5, argv[3] ));
6137
- }
6138
- arg5 = static_cast< int >(val5);
6139
- res6 = SWIG_AsCharPtrAndSize(argv[4], &buf6, NULL, &alloc6);
6140
- if (!SWIG_IsOK(res6)) {
6141
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "char const *","log", 6, argv[4] ));
6142
- }
6143
- arg6 = reinterpret_cast< char * >(buf6);
6144
- (arg1)->log(arg2,arg3,(char const *)arg4,arg5,(char const *)arg6);
6145
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
6146
- if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
6147
- return Qnil;
6148
- fail:
6149
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
6150
- if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
6151
- return Qnil;
6152
- }
6153
-
6154
-
6155
- SWIGINTERN VALUE
6156
- _wrap_oboe_debug_log_handler(int argc, VALUE *argv, VALUE self) {
6157
- void *arg1 = (void *) 0 ;
6158
- int arg2 ;
6159
- int arg3 ;
6160
- char *arg4 = (char *) 0 ;
6161
- int arg5 ;
6162
- char *arg6 = (char *) 0 ;
6163
- int res1 ;
6164
- int val2 ;
6165
- int ecode2 = 0 ;
6166
- int val3 ;
6167
- int ecode3 = 0 ;
6168
- int res4 ;
6169
- char *buf4 = 0 ;
6170
- int alloc4 = 0 ;
6171
- int val5 ;
6172
- int ecode5 = 0 ;
6173
- int res6 ;
6174
- char *buf6 = 0 ;
6175
- int alloc6 = 0 ;
6176
-
6177
- if ((argc < 6) || (argc > 6)) {
6178
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
6179
- }
6180
- res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
6181
- if (!SWIG_IsOK(res1)) {
6182
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","oboe_debug_log_handler", 1, argv[0] ));
6183
- }
6184
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
6185
- if (!SWIG_IsOK(ecode2)) {
6186
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","oboe_debug_log_handler", 2, argv[1] ));
6187
- }
6188
- arg2 = static_cast< int >(val2);
6189
- ecode3 = SWIG_AsVal_int(argv[2], &val3);
6190
- if (!SWIG_IsOK(ecode3)) {
6191
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","oboe_debug_log_handler", 3, argv[2] ));
6192
- }
6193
- arg3 = static_cast< int >(val3);
6194
- res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
6195
- if (!SWIG_IsOK(res4)) {
6196
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","oboe_debug_log_handler", 4, argv[3] ));
6197
- }
6198
- arg4 = reinterpret_cast< char * >(buf4);
6199
- ecode5 = SWIG_AsVal_int(argv[4], &val5);
6200
- if (!SWIG_IsOK(ecode5)) {
6201
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","oboe_debug_log_handler", 5, argv[4] ));
6202
- }
6203
- arg5 = static_cast< int >(val5);
6204
- res6 = SWIG_AsCharPtrAndSize(argv[5], &buf6, NULL, &alloc6);
6205
- if (!SWIG_IsOK(res6)) {
6206
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "char const *","oboe_debug_log_handler", 6, argv[5] ));
6207
- }
6208
- arg6 = reinterpret_cast< char * >(buf6);
6209
- oboe_debug_log_handler(arg1,arg2,arg3,(char const *)arg4,arg5,(char const *)arg6);
6210
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
6211
- if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
6212
- return Qnil;
6213
- fail:
6214
- if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
6215
- if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
6216
- return Qnil;
6217
- }
6218
-
6219
-
6220
- static swig_class SwigClassDebugLog;
6221
-
6222
- SWIGINTERN VALUE
6223
- _wrap_DebugLog_getLevelName(int argc, VALUE *argv, VALUE self) {
6224
- int arg1 ;
6225
- int val1 ;
6226
- int ecode1 = 0 ;
6227
- std::string result;
6228
- VALUE vresult = Qnil;
6229
-
6230
- if ((argc < 1) || (argc > 1)) {
6231
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6232
- }
6233
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
6234
- if (!SWIG_IsOK(ecode1)) {
6235
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","DebugLog::getLevelName", 1, argv[0] ));
6236
- }
6237
- arg1 = static_cast< int >(val1);
6238
- result = DebugLog::getLevelName(arg1);
6239
- vresult = SWIG_From_std_string(static_cast< std::string >(result));
6240
- return vresult;
6241
- fail:
6242
- return Qnil;
6243
- }
6244
-
6245
-
6246
- SWIGINTERN VALUE
6247
- _wrap_DebugLog_getModuleName(int argc, VALUE *argv, VALUE self) {
6248
- int arg1 ;
6249
- int val1 ;
6250
- int ecode1 = 0 ;
6251
- std::string result;
6252
- VALUE vresult = Qnil;
6253
-
6254
- if ((argc < 1) || (argc > 1)) {
6255
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6256
- }
6257
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
6258
- if (!SWIG_IsOK(ecode1)) {
6259
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","DebugLog::getModuleName", 1, argv[0] ));
6260
- }
6261
- arg1 = static_cast< int >(val1);
6262
- result = DebugLog::getModuleName(arg1);
6263
- vresult = SWIG_From_std_string(static_cast< std::string >(result));
6264
- return vresult;
6265
- fail:
6266
- return Qnil;
6267
- }
6268
-
6269
-
6270
- SWIGINTERN VALUE
6271
- _wrap_DebugLog_getLevel(int argc, VALUE *argv, VALUE self) {
6272
- int arg1 ;
6273
- int val1 ;
6274
- int ecode1 = 0 ;
6275
- int result;
6276
- VALUE vresult = Qnil;
6277
-
6278
- if ((argc < 1) || (argc > 1)) {
6279
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6280
- }
6281
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
6282
- if (!SWIG_IsOK(ecode1)) {
6283
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","DebugLog::getLevel", 1, argv[0] ));
6284
- }
6285
- arg1 = static_cast< int >(val1);
6286
- result = (int)DebugLog::getLevel(arg1);
6287
- vresult = SWIG_From_int(static_cast< int >(result));
6288
- return vresult;
6289
- fail:
6290
- return Qnil;
6291
- }
6292
-
6293
-
6294
- SWIGINTERN VALUE
6295
- _wrap_DebugLog_setLevel(int argc, VALUE *argv, VALUE self) {
6296
- int arg1 ;
6297
- int arg2 ;
6298
- int val1 ;
6299
- int ecode1 = 0 ;
6300
- int val2 ;
6301
- int ecode2 = 0 ;
6302
-
6303
- if ((argc < 2) || (argc > 2)) {
6304
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
6559
+ _v = SWIG_CheckState(res);
6560
+ if (_v) {
6561
+ void *vptr = 0;
6562
+ int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
6563
+ _v = SWIG_CheckState(res);
6564
+ if (_v) {
6565
+ return _wrap_Reporter_sendReport__SWIG_1(nargs, args, self);
6566
+ }
6567
+ }
6568
+ }
6305
6569
  }
6306
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
6307
- if (!SWIG_IsOK(ecode1)) {
6308
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","DebugLog::setLevel", 1, argv[0] ));
6309
- }
6310
- arg1 = static_cast< int >(val1);
6311
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
6312
- if (!SWIG_IsOK(ecode2)) {
6313
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","DebugLog::setLevel", 2, argv[1] ));
6314
- }
6315
- arg2 = static_cast< int >(val2);
6316
- DebugLog::setLevel(arg1,arg2);
6317
- return Qnil;
6570
+
6318
6571
  fail:
6572
+ Ruby_Format_OverloadedError( argc, 4, "Reporter.sendReport",
6573
+ " bool Reporter.sendReport(Event *evt)\n"
6574
+ " bool Reporter.sendReport(Event *evt, oboe_metadata_t *md)\n");
6575
+
6319
6576
  return Qnil;
6320
6577
  }
6321
6578
 
6322
6579
 
6323
6580
  SWIGINTERN VALUE
6324
- _wrap_DebugLog_setOutputStream(int argc, VALUE *argv, VALUE self) {
6325
- FILE *arg1 = (FILE *) 0 ;
6581
+ _wrap_Reporter_sendStatus__SWIG_0(int argc, VALUE *argv, VALUE self) {
6582
+ Reporter *arg1 = (Reporter *) 0 ;
6583
+ Event *arg2 = (Event *) 0 ;
6326
6584
  void *argp1 = 0 ;
6327
6585
  int res1 = 0 ;
6328
- int result;
6586
+ void *argp2 = 0 ;
6587
+ int res2 = 0 ;
6588
+ bool result;
6329
6589
  VALUE vresult = Qnil;
6330
6590
 
6331
6591
  if ((argc < 1) || (argc > 1)) {
6332
6592
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6333
6593
  }
6334
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
6594
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
6335
6595
  if (!SWIG_IsOK(res1)) {
6336
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","DebugLog::setOutputStream", 1, argv[0] ));
6337
- }
6338
- arg1 = reinterpret_cast< FILE * >(argp1);
6339
- result = (int)DebugLog::setOutputStream(arg1);
6340
- vresult = SWIG_From_int(static_cast< int >(result));
6341
- return vresult;
6342
- fail:
6343
- return Qnil;
6344
- }
6345
-
6346
-
6347
- SWIGINTERN VALUE
6348
- _wrap_DebugLog_setOutputFile(int argc, VALUE *argv, VALUE self) {
6349
- char *arg1 = (char *) 0 ;
6350
- int res1 ;
6351
- char *buf1 = 0 ;
6352
- int alloc1 = 0 ;
6353
- int result;
6354
- VALUE vresult = Qnil;
6355
-
6356
- if ((argc < 1) || (argc > 1)) {
6357
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6596
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","sendStatus", 1, self ));
6358
6597
  }
6359
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
6360
- if (!SWIG_IsOK(res1)) {
6361
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","DebugLog::setOutputFile", 1, argv[0] ));
6598
+ arg1 = reinterpret_cast< Reporter * >(argp1);
6599
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Event, 0 | 0 );
6600
+ if (!SWIG_IsOK(res2)) {
6601
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Event *","sendStatus", 2, argv[0] ));
6362
6602
  }
6363
- arg1 = reinterpret_cast< char * >(buf1);
6364
- result = (int)DebugLog::setOutputFile((char const *)arg1);
6365
- vresult = SWIG_From_int(static_cast< int >(result));
6366
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
6603
+ arg2 = reinterpret_cast< Event * >(argp2);
6604
+ result = (bool)(arg1)->sendStatus(arg2);
6605
+ vresult = SWIG_From_bool(static_cast< bool >(result));
6367
6606
  return vresult;
6368
6607
  fail:
6369
- if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
6370
6608
  return Qnil;
6371
6609
  }
6372
6610
 
6373
6611
 
6374
6612
  SWIGINTERN VALUE
6375
- _wrap_DebugLog_addDebugLogger(int argc, VALUE *argv, VALUE self) {
6376
- DebugLogger *arg1 = (DebugLogger *) 0 ;
6377
- int arg2 ;
6613
+ _wrap_Reporter_sendStatus__SWIG_1(int argc, VALUE *argv, VALUE self) {
6614
+ Reporter *arg1 = (Reporter *) 0 ;
6615
+ Event *arg2 = (Event *) 0 ;
6616
+ oboe_metadata_t *arg3 = (oboe_metadata_t *) 0 ;
6378
6617
  void *argp1 = 0 ;
6379
6618
  int res1 = 0 ;
6380
- int val2 ;
6381
- int ecode2 = 0 ;
6382
- int result;
6619
+ void *argp2 = 0 ;
6620
+ int res2 = 0 ;
6621
+ void *argp3 = 0 ;
6622
+ int res3 = 0 ;
6623
+ bool result;
6383
6624
  VALUE vresult = Qnil;
6384
6625
 
6385
6626
  if ((argc < 2) || (argc > 2)) {
6386
6627
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
6387
6628
  }
6388
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_DebugLogger, 0 | 0 );
6629
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
6389
6630
  if (!SWIG_IsOK(res1)) {
6390
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "DebugLogger *","DebugLog::addDebugLogger", 1, argv[0] ));
6631
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","sendStatus", 1, self ));
6391
6632
  }
6392
- arg1 = reinterpret_cast< DebugLogger * >(argp1);
6393
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
6394
- if (!SWIG_IsOK(ecode2)) {
6395
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","DebugLog::addDebugLogger", 2, argv[1] ));
6396
- }
6397
- arg2 = static_cast< int >(val2);
6398
- result = (int)DebugLog::addDebugLogger(arg1,arg2);
6399
- vresult = SWIG_From_int(static_cast< int >(result));
6633
+ arg1 = reinterpret_cast< Reporter * >(argp1);
6634
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Event, 0 | 0 );
6635
+ if (!SWIG_IsOK(res2)) {
6636
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Event *","sendStatus", 2, argv[0] ));
6637
+ }
6638
+ arg2 = reinterpret_cast< Event * >(argp2);
6639
+ res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_oboe_metadata_t, 0 | 0 );
6640
+ if (!SWIG_IsOK(res3)) {
6641
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "oboe_metadata_t *","sendStatus", 3, argv[1] ));
6642
+ }
6643
+ arg3 = reinterpret_cast< oboe_metadata_t * >(argp3);
6644
+ result = (bool)(arg1)->sendStatus(arg2,arg3);
6645
+ vresult = SWIG_From_bool(static_cast< bool >(result));
6400
6646
  return vresult;
6401
6647
  fail:
6402
6648
  return Qnil;
6403
6649
  }
6404
6650
 
6405
6651
 
6406
- SWIGINTERN VALUE
6407
- _wrap_DebugLog_removeDebugLogger(int argc, VALUE *argv, VALUE self) {
6408
- DebugLogger *arg1 = (DebugLogger *) 0 ;
6409
- void *argp1 = 0 ;
6410
- int res1 = 0 ;
6411
- int result;
6412
- VALUE vresult = Qnil;
6652
+ SWIGINTERN VALUE _wrap_Reporter_sendStatus(int nargs, VALUE *args, VALUE self) {
6653
+ int argc;
6654
+ VALUE argv[4];
6655
+ int ii;
6413
6656
 
6414
- if ((argc < 1) || (argc > 1)) {
6415
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6657
+ argc = nargs + 1;
6658
+ argv[0] = self;
6659
+ if (argc > 4) SWIG_fail;
6660
+ for (ii = 1; (ii < argc); ++ii) {
6661
+ argv[ii] = args[ii-1];
6416
6662
  }
6417
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_DebugLogger, 0 | 0 );
6418
- if (!SWIG_IsOK(res1)) {
6419
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "DebugLogger *","DebugLog::removeDebugLogger", 1, argv[0] ));
6663
+ if (argc == 2) {
6664
+ int _v;
6665
+ void *vptr = 0;
6666
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
6667
+ _v = SWIG_CheckState(res);
6668
+ if (_v) {
6669
+ void *vptr = 0;
6670
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
6671
+ _v = SWIG_CheckState(res);
6672
+ if (_v) {
6673
+ return _wrap_Reporter_sendStatus__SWIG_0(nargs, args, self);
6674
+ }
6675
+ }
6420
6676
  }
6421
- arg1 = reinterpret_cast< DebugLogger * >(argp1);
6422
- result = (int)DebugLog::removeDebugLogger(arg1);
6423
- vresult = SWIG_From_int(static_cast< int >(result));
6424
- return vresult;
6677
+ if (argc == 3) {
6678
+ int _v;
6679
+ void *vptr = 0;
6680
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Reporter, 0);
6681
+ _v = SWIG_CheckState(res);
6682
+ if (_v) {
6683
+ void *vptr = 0;
6684
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Event, 0);
6685
+ _v = SWIG_CheckState(res);
6686
+ if (_v) {
6687
+ void *vptr = 0;
6688
+ int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_oboe_metadata_t, 0);
6689
+ _v = SWIG_CheckState(res);
6690
+ if (_v) {
6691
+ return _wrap_Reporter_sendStatus__SWIG_1(nargs, args, self);
6692
+ }
6693
+ }
6694
+ }
6695
+ }
6696
+
6425
6697
  fail:
6698
+ Ruby_Format_OverloadedError( argc, 4, "Reporter.sendStatus",
6699
+ " bool Reporter.sendStatus(Event *evt)\n"
6700
+ " bool Reporter.sendStatus(Event *evt, oboe_metadata_t *md)\n");
6701
+
6426
6702
  return Qnil;
6427
6703
  }
6428
6704
 
6429
6705
 
6430
6706
  SWIGINTERN VALUE
6431
- _wrap_DebugLog_logMessage(int argc, VALUE *argv, VALUE self) {
6432
- int arg1 ;
6433
- int arg2 ;
6434
- char *arg3 = (char *) 0 ;
6435
- int arg4 ;
6436
- char *arg5 = (char *) 0 ;
6437
- int val1 ;
6438
- int ecode1 = 0 ;
6439
- int val2 ;
6440
- int ecode2 = 0 ;
6441
- int res3 ;
6442
- char *buf3 = 0 ;
6443
- int alloc3 = 0 ;
6444
- int val4 ;
6445
- int ecode4 = 0 ;
6446
- int res5 ;
6447
- char *buf5 = 0 ;
6448
- int alloc5 = 0 ;
6707
+ _wrap_Reporter_flush(int argc, VALUE *argv, VALUE self) {
6708
+ Reporter *arg1 = (Reporter *) 0 ;
6709
+ void *argp1 = 0 ;
6710
+ int res1 = 0 ;
6449
6711
 
6450
- if ((argc < 5) || (argc > 5)) {
6451
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
6452
- }
6453
- ecode1 = SWIG_AsVal_int(argv[0], &val1);
6454
- if (!SWIG_IsOK(ecode1)) {
6455
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","DebugLog::logMessage", 1, argv[0] ));
6456
- }
6457
- arg1 = static_cast< int >(val1);
6458
- ecode2 = SWIG_AsVal_int(argv[1], &val2);
6459
- if (!SWIG_IsOK(ecode2)) {
6460
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","DebugLog::logMessage", 2, argv[1] ));
6461
- }
6462
- arg2 = static_cast< int >(val2);
6463
- res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
6464
- if (!SWIG_IsOK(res3)) {
6465
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","DebugLog::logMessage", 3, argv[2] ));
6712
+ if ((argc < 0) || (argc > 0)) {
6713
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6466
6714
  }
6467
- arg3 = reinterpret_cast< char * >(buf3);
6468
- ecode4 = SWIG_AsVal_int(argv[3], &val4);
6469
- if (!SWIG_IsOK(ecode4)) {
6470
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","DebugLog::logMessage", 4, argv[3] ));
6471
- }
6472
- arg4 = static_cast< int >(val4);
6473
- res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
6474
- if (!SWIG_IsOK(res5)) {
6475
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","DebugLog::logMessage", 5, argv[4] ));
6715
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
6716
+ if (!SWIG_IsOK(res1)) {
6717
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","flush", 1, self ));
6476
6718
  }
6477
- arg5 = reinterpret_cast< char * >(buf5);
6478
- DebugLog::logMessage(arg1,arg2,(char const *)arg3,arg4,(char const *)arg5);
6479
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
6480
- if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
6719
+ arg1 = reinterpret_cast< Reporter * >(argp1);
6720
+ (arg1)->flush();
6481
6721
  return Qnil;
6482
6722
  fail:
6483
- if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
6484
- if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
6485
6723
  return Qnil;
6486
6724
  }
6487
6725
 
6488
6726
 
6489
6727
  SWIGINTERN VALUE
6490
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
6491
- _wrap_DebugLog_allocate(VALUE self)
6492
- #else
6493
- _wrap_DebugLog_allocate(int argc, VALUE *argv, VALUE self)
6494
- #endif
6495
- {
6496
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_DebugLog);
6497
- #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
6498
- rb_obj_call_init(vresult, argc, argv);
6499
- #endif
6500
- return vresult;
6501
- }
6502
-
6503
-
6504
- SWIGINTERN VALUE
6505
- _wrap_new_DebugLog(int argc, VALUE *argv, VALUE self) {
6506
- DebugLog *result = 0 ;
6728
+ _wrap_Reporter_getType(int argc, VALUE *argv, VALUE self) {
6729
+ Reporter *arg1 = (Reporter *) 0 ;
6730
+ void *argp1 = 0 ;
6731
+ int res1 = 0 ;
6732
+ std::string result;
6733
+ VALUE vresult = Qnil;
6507
6734
 
6508
6735
  if ((argc < 0) || (argc > 0)) {
6509
6736
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6510
6737
  }
6511
- result = (DebugLog *)new DebugLog();
6512
- DATA_PTR(self) = result;
6513
- return self;
6738
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Reporter, 0 | 0 );
6739
+ if (!SWIG_IsOK(res1)) {
6740
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Reporter *","getType", 1, self ));
6741
+ }
6742
+ arg1 = reinterpret_cast< Reporter * >(argp1);
6743
+ result = (arg1)->getType();
6744
+ vresult = SWIG_From_std_string(static_cast< std::string >(result));
6745
+ return vresult;
6514
6746
  fail:
6515
6747
  return Qnil;
6516
6748
  }
6517
6749
 
6518
6750
 
6519
- SWIGINTERN void
6520
- free_DebugLog(void *self) {
6521
- DebugLog *arg1 = (DebugLog *)self;
6522
- delete arg1;
6523
- }
6524
-
6525
6751
  static swig_class SwigClassConfig;
6526
6752
 
6527
6753
  SWIGINTERN VALUE
@@ -6557,31 +6783,15 @@ fail:
6557
6783
 
6558
6784
 
6559
6785
  SWIGINTERN VALUE
6560
- _wrap_Config_getVersion(int argc, VALUE *argv, VALUE self) {
6561
- int result;
6562
- VALUE vresult = Qnil;
6563
-
6564
- if ((argc < 0) || (argc > 0)) {
6565
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6566
- }
6567
- result = (int)Config::getVersion();
6568
- vresult = SWIG_From_int(static_cast< int >(result));
6569
- return vresult;
6570
- fail:
6571
- return Qnil;
6572
- }
6573
-
6574
-
6575
- SWIGINTERN VALUE
6576
- _wrap_Config_getRevision(int argc, VALUE *argv, VALUE self) {
6577
- int result;
6786
+ _wrap_Config_getVersionString(int argc, VALUE *argv, VALUE self) {
6787
+ std::string result;
6578
6788
  VALUE vresult = Qnil;
6579
6789
 
6580
6790
  if ((argc < 0) || (argc > 0)) {
6581
6791
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6582
6792
  }
6583
- result = (int)Config::getRevision();
6584
- vresult = SWIG_From_int(static_cast< int >(result));
6793
+ result = Config::getVersionString();
6794
+ vresult = SWIG_From_std_string(static_cast< std::string >(result));
6585
6795
  return vresult;
6586
6796
  fail:
6587
6797
  return Qnil;
@@ -6633,18 +6843,18 @@ static void *_p_MetadataTo_p_oboe_metadata_t(void *x, int *SWIGUNUSEDPARM(newmem
6633
6843
  static swig_type_info _swigt__p_Config = {"_p_Config", "Config *", 0, 0, (void*)0, 0};
6634
6844
  static swig_type_info _swigt__p_Context = {"_p_Context", "Context *", 0, 0, (void*)0, 0};
6635
6845
  static swig_type_info _swigt__p_CustomMetrics = {"_p_CustomMetrics", "CustomMetrics *", 0, 0, (void*)0, 0};
6636
- static swig_type_info _swigt__p_DebugLog = {"_p_DebugLog", "DebugLog *", 0, 0, (void*)0, 0};
6637
- static swig_type_info _swigt__p_DebugLogger = {"_p_DebugLogger", "DebugLogger *", 0, 0, (void*)0, 0};
6638
6846
  static swig_type_info _swigt__p_Event = {"_p_Event", "Event *", 0, 0, (void*)0, 0};
6639
- static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
6640
6847
  static swig_type_info _swigt__p_Metadata = {"_p_Metadata", "Metadata *", 0, 0, (void*)0, 0};
6641
6848
  static swig_type_info _swigt__p_MetricTags = {"_p_MetricTags", "MetricTags *", 0, 0, (void*)0, 0};
6642
6849
  static swig_type_info _swigt__p_Reporter = {"_p_Reporter", "Reporter *", 0, 0, (void*)0, 0};
6643
6850
  static swig_type_info _swigt__p_Span = {"_p_Span", "Span *", 0, 0, (void*)0, 0};
6644
6851
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
6852
+ static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
6645
6853
  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};
6854
+ static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
6646
6855
  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};
6647
6856
  static swig_type_info _swigt__p_oboe_metadata_t = {"_p_oboe_metadata_t", "oboe_metadata_t *", 0, 0, (void*)0, 0};
6857
+ static swig_type_info _swigt__p_oboe_metric_tag_t = {"_p_oboe_metric_tag_t", "oboe_metric_tag_t *", 0, 0, (void*)0, 0};
6648
6858
  static swig_type_info _swigt__p_short = {"_p_short", "short *|int_least16_t *|int16_t *", 0, 0, (void*)0, 0};
6649
6859
  static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (void*)0, 0};
6650
6860
  static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
@@ -6657,18 +6867,18 @@ static swig_type_info *swig_type_initial[] = {
6657
6867
  &_swigt__p_Config,
6658
6868
  &_swigt__p_Context,
6659
6869
  &_swigt__p_CustomMetrics,
6660
- &_swigt__p_DebugLog,
6661
- &_swigt__p_DebugLogger,
6662
6870
  &_swigt__p_Event,
6663
- &_swigt__p_FILE,
6664
6871
  &_swigt__p_Metadata,
6665
6872
  &_swigt__p_MetricTags,
6666
6873
  &_swigt__p_Reporter,
6667
6874
  &_swigt__p_Span,
6668
6875
  &_swigt__p_char,
6876
+ &_swigt__p_double,
6669
6877
  &_swigt__p_int,
6878
+ &_swigt__p_long,
6670
6879
  &_swigt__p_long_long,
6671
6880
  &_swigt__p_oboe_metadata_t,
6881
+ &_swigt__p_oboe_metric_tag_t,
6672
6882
  &_swigt__p_short,
6673
6883
  &_swigt__p_signed_char,
6674
6884
  &_swigt__p_std__string,
@@ -6681,18 +6891,18 @@ static swig_type_info *swig_type_initial[] = {
6681
6891
  static swig_cast_info _swigc__p_Config[] = { {&_swigt__p_Config, 0, 0, 0},{0, 0, 0, 0}};
6682
6892
  static swig_cast_info _swigc__p_Context[] = { {&_swigt__p_Context, 0, 0, 0},{0, 0, 0, 0}};
6683
6893
  static swig_cast_info _swigc__p_CustomMetrics[] = { {&_swigt__p_CustomMetrics, 0, 0, 0},{0, 0, 0, 0}};
6684
- static swig_cast_info _swigc__p_DebugLog[] = { {&_swigt__p_DebugLog, 0, 0, 0},{0, 0, 0, 0}};
6685
- static swig_cast_info _swigc__p_DebugLogger[] = { {&_swigt__p_DebugLogger, 0, 0, 0},{0, 0, 0, 0}};
6686
6894
  static swig_cast_info _swigc__p_Event[] = { {&_swigt__p_Event, 0, 0, 0},{0, 0, 0, 0}};
6687
- static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
6688
6895
  static swig_cast_info _swigc__p_Metadata[] = { {&_swigt__p_Metadata, 0, 0, 0},{0, 0, 0, 0}};
6689
6896
  static swig_cast_info _swigc__p_MetricTags[] = { {&_swigt__p_MetricTags, 0, 0, 0},{0, 0, 0, 0}};
6690
6897
  static swig_cast_info _swigc__p_Reporter[] = { {&_swigt__p_Reporter, 0, 0, 0},{0, 0, 0, 0}};
6691
6898
  static swig_cast_info _swigc__p_Span[] = { {&_swigt__p_Span, 0, 0, 0},{0, 0, 0, 0}};
6692
6899
  static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
6900
+ static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
6693
6901
  static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
6902
+ static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
6694
6903
  static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
6695
6904
  static swig_cast_info _swigc__p_oboe_metadata_t[] = { {&_swigt__p_Metadata, _p_MetadataTo_p_oboe_metadata_t, 0, 0}, {&_swigt__p_oboe_metadata_t, 0, 0, 0},{0, 0, 0, 0}};
6905
+ static swig_cast_info _swigc__p_oboe_metric_tag_t[] = { {&_swigt__p_oboe_metric_tag_t, 0, 0, 0},{0, 0, 0, 0}};
6696
6906
  static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
6697
6907
  static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
6698
6908
  static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}};
@@ -6705,18 +6915,18 @@ static swig_cast_info *swig_cast_initial[] = {
6705
6915
  _swigc__p_Config,
6706
6916
  _swigc__p_Context,
6707
6917
  _swigc__p_CustomMetrics,
6708
- _swigc__p_DebugLog,
6709
- _swigc__p_DebugLogger,
6710
6918
  _swigc__p_Event,
6711
- _swigc__p_FILE,
6712
6919
  _swigc__p_Metadata,
6713
6920
  _swigc__p_MetricTags,
6714
6921
  _swigc__p_Reporter,
6715
6922
  _swigc__p_Span,
6716
6923
  _swigc__p_char,
6924
+ _swigc__p_double,
6717
6925
  _swigc__p_int,
6926
+ _swigc__p_long,
6718
6927
  _swigc__p_long_long,
6719
6928
  _swigc__p_oboe_metadata_t,
6929
+ _swigc__p_oboe_metric_tag_t,
6720
6930
  _swigc__p_short,
6721
6931
  _swigc__p_signed_char,
6722
6932
  _swigc__p_std__string,
@@ -6993,21 +7203,24 @@ SWIGEXPORT void Init_oboe_metal(void) {
6993
7203
  rb_define_const(mOboe_metal, "OBOE_MODULE_REPORTER_FILE", SWIG_From_int(static_cast< int >(OBOE_MODULE_REPORTER_FILE)));
6994
7204
  rb_define_const(mOboe_metal, "OBOE_MODULE_REPORTER_UDP", SWIG_From_int(static_cast< int >(OBOE_MODULE_REPORTER_UDP)));
6995
7205
  rb_define_const(mOboe_metal, "OBOE_MODULE_REPORTER_SSL", SWIG_From_int(static_cast< int >(OBOE_MODULE_REPORTER_SSL)));
7206
+ rb_define_const(mOboe_metal, "OBOE_MODULE_REPORTER_LAMBDA", SWIG_From_int(static_cast< int >(OBOE_MODULE_REPORTER_LAMBDA)));
6996
7207
  rb_define_const(mOboe_metal, "OBOE_MODULE_APACHE", SWIG_From_int(static_cast< int >(OBOE_MODULE_APACHE)));
6997
7208
  rb_define_const(mOboe_metal, "OBOE_MODULE_NGINX", SWIG_From_int(static_cast< int >(OBOE_MODULE_NGINX)));
6998
7209
  rb_define_const(mOboe_metal, "OBOE_MODULE_PHP", SWIG_From_int(static_cast< int >(OBOE_MODULE_PHP)));
6999
7210
  rb_define_const(mOboe_metal, "OBOE_MODULE_DOTNET", SWIG_From_int(static_cast< int >(OBOE_MODULE_DOTNET)));
7211
+ rb_define_const(mOboe_metal, "OBOE_MODULE_RUBY", SWIG_From_int(static_cast< int >(OBOE_MODULE_RUBY)));
7000
7212
 
7001
7213
  SwigClassMetadata.klass = rb_define_class_under(mOboe_metal, "Metadata", rb_cObject);
7002
7214
  SWIG_TypeClientData(SWIGTYPE_p_Metadata, (void *) &SwigClassMetadata);
7003
7215
  rb_define_alloc_func(SwigClassMetadata.klass, _wrap_Metadata_allocate);
7004
7216
  rb_define_method(SwigClassMetadata.klass, "initialize", VALUEFUNC(_wrap_new_Metadata), -1);
7005
- rb_define_singleton_method(SwigClassMetadata.klass, "fromString", VALUEFUNC(_wrap_Metadata_fromString), -1);
7006
7217
  rb_define_method(SwigClassMetadata.klass, "createEvent", VALUEFUNC(_wrap_Metadata_createEvent), -1);
7007
- rb_define_singleton_method(SwigClassMetadata.klass, "makeRandom", VALUEFUNC(_wrap_Metadata_makeRandom), -1);
7008
7218
  rb_define_method(SwigClassMetadata.klass, "copy", VALUEFUNC(_wrap_Metadata_copy), -1);
7009
7219
  rb_define_method(SwigClassMetadata.klass, "isValid", VALUEFUNC(_wrap_Metadata_isValid), -1);
7010
7220
  rb_define_method(SwigClassMetadata.klass, "isSampled", VALUEFUNC(_wrap_Metadata_isSampled), -1);
7221
+ rb_define_singleton_method(SwigClassMetadata.klass, "makeRandom", VALUEFUNC(_wrap_Metadata_makeRandom), -1);
7222
+ rb_define_singleton_method(SwigClassMetadata.klass, "fromString", VALUEFUNC(_wrap_Metadata_fromString), -1);
7223
+ rb_define_method(SwigClassMetadata.klass, "metadata", VALUEFUNC(_wrap_Metadata_metadata), -1);
7011
7224
  rb_define_method(SwigClassMetadata.klass, "toString", VALUEFUNC(_wrap_Metadata_toString), -1);
7012
7225
  SwigClassMetadata.mark = 0;
7013
7226
  SwigClassMetadata.destroy = (void (*)(void *)) free_Metadata;
@@ -7032,6 +7245,7 @@ SWIGEXPORT void Init_oboe_metal(void) {
7032
7245
  rb_define_singleton_method(SwigClassContext.klass, "validateTransformServiceName", VALUEFUNC(_wrap_Context_validateTransformServiceName), -1);
7033
7246
  rb_define_singleton_method(SwigClassContext.klass, "shutdown", VALUEFUNC(_wrap_Context_shutdown), -1);
7034
7247
  rb_define_singleton_method(SwigClassContext.klass, "isReady", VALUEFUNC(_wrap_Context_isReady), -1);
7248
+ rb_define_singleton_method(SwigClassContext.klass, "isLambda", VALUEFUNC(_wrap_Context_isLambda), -1);
7035
7249
  rb_define_singleton_method(SwigClassContext.klass, "createEvent", VALUEFUNC(_wrap_Context_createEvent), -1);
7036
7250
  rb_define_singleton_method(SwigClassContext.klass, "startTrace", VALUEFUNC(_wrap_Context_startTrace), -1);
7037
7251
  SwigClassContext.mark = 0;
@@ -7044,9 +7258,15 @@ SWIGEXPORT void Init_oboe_metal(void) {
7044
7258
  rb_define_method(SwigClassEvent.klass, "addInfo", VALUEFUNC(_wrap_Event_addInfo), -1);
7045
7259
  rb_define_method(SwigClassEvent.klass, "addEdge", VALUEFUNC(_wrap_Event_addEdge), -1);
7046
7260
  rb_define_method(SwigClassEvent.klass, "addEdgeStr", VALUEFUNC(_wrap_Event_addEdgeStr), -1);
7261
+ rb_define_method(SwigClassEvent.klass, "addContextOpId", VALUEFUNC(_wrap_Event_addContextOpId), -1);
7262
+ rb_define_method(SwigClassEvent.klass, "addHostname", VALUEFUNC(_wrap_Event_addHostname), -1);
7047
7263
  rb_define_method(SwigClassEvent.klass, "getMetadata", VALUEFUNC(_wrap_Event_getMetadata), -1);
7048
7264
  rb_define_method(SwigClassEvent.klass, "metadataString", VALUEFUNC(_wrap_Event_metadataString), -1);
7265
+ rb_define_method(SwigClassEvent.klass, "opIdString", VALUEFUNC(_wrap_Event_opIdString), -1);
7049
7266
  rb_define_method(SwigClassEvent.klass, "send", VALUEFUNC(_wrap_Event_send), -1);
7267
+ rb_define_method(SwigClassEvent.klass, "sendProfiling", VALUEFUNC(_wrap_Event_sendProfiling), -1);
7268
+ rb_define_method(SwigClassEvent.klass, "addSpanRef", VALUEFUNC(_wrap_Event_addSpanRef), -1);
7269
+ rb_define_method(SwigClassEvent.klass, "addProfileEdge", VALUEFUNC(_wrap_Event_addProfileEdge), -1);
7050
7270
  rb_define_singleton_method(SwigClassEvent.klass, "startTrace", VALUEFUNC(_wrap_Event_startTrace), -1);
7051
7271
  SwigClassEvent.mark = 0;
7052
7272
  SwigClassEvent.destroy = (void (*)(void *)) free_Event;
@@ -7067,6 +7287,7 @@ SWIGEXPORT void Init_oboe_metal(void) {
7067
7287
  rb_define_alloc_func(SwigClassMetricTags.klass, _wrap_MetricTags_allocate);
7068
7288
  rb_define_method(SwigClassMetricTags.klass, "initialize", VALUEFUNC(_wrap_new_MetricTags), -1);
7069
7289
  rb_define_method(SwigClassMetricTags.klass, "add", VALUEFUNC(_wrap_MetricTags_add), -1);
7290
+ rb_define_method(SwigClassMetricTags.klass, "get", VALUEFUNC(_wrap_MetricTags_get), -1);
7070
7291
  SwigClassMetricTags.mark = 0;
7071
7292
  SwigClassMetricTags.destroy = (void (*)(void *)) free_MetricTags;
7072
7293
  SwigClassMetricTags.trackObjects = 0;
@@ -7089,43 +7310,18 @@ SWIGEXPORT void Init_oboe_metal(void) {
7089
7310
  rb_define_method(SwigClassReporter.klass, "init_status", VALUEFUNC(_wrap_Reporter_init_status_get), -1);
7090
7311
  rb_define_method(SwigClassReporter.klass, "sendReport", VALUEFUNC(_wrap_Reporter_sendReport), -1);
7091
7312
  rb_define_method(SwigClassReporter.klass, "sendStatus", VALUEFUNC(_wrap_Reporter_sendStatus), -1);
7313
+ rb_define_method(SwigClassReporter.klass, "flush", VALUEFUNC(_wrap_Reporter_flush), -1);
7314
+ rb_define_method(SwigClassReporter.klass, "getType", VALUEFUNC(_wrap_Reporter_getType), -1);
7092
7315
  SwigClassReporter.mark = 0;
7093
7316
  SwigClassReporter.destroy = (void (*)(void *)) free_Reporter;
7094
7317
  SwigClassReporter.trackObjects = 0;
7095
7318
 
7096
- SwigClassDebugLogger.klass = rb_define_class_under(mOboe_metal, "DebugLogger", rb_cObject);
7097
- SWIG_TypeClientData(SWIGTYPE_p_DebugLogger, (void *) &SwigClassDebugLogger);
7098
- rb_undef_alloc_func(SwigClassDebugLogger.klass);
7099
- rb_define_method(SwigClassDebugLogger.klass, "log", VALUEFUNC(_wrap_DebugLogger_log), -1);
7100
- SwigClassDebugLogger.mark = 0;
7101
- SwigClassDebugLogger.destroy = (void (*)(void *)) free_DebugLogger;
7102
- SwigClassDebugLogger.trackObjects = 0;
7103
- rb_define_module_function(mOboe_metal, "oboe_debug_log_handler", VALUEFUNC(_wrap_oboe_debug_log_handler), -1);
7104
-
7105
- SwigClassDebugLog.klass = rb_define_class_under(mOboe_metal, "DebugLog", rb_cObject);
7106
- SWIG_TypeClientData(SWIGTYPE_p_DebugLog, (void *) &SwigClassDebugLog);
7107
- rb_define_alloc_func(SwigClassDebugLog.klass, _wrap_DebugLog_allocate);
7108
- rb_define_method(SwigClassDebugLog.klass, "initialize", VALUEFUNC(_wrap_new_DebugLog), -1);
7109
- rb_define_singleton_method(SwigClassDebugLog.klass, "getLevelName", VALUEFUNC(_wrap_DebugLog_getLevelName), -1);
7110
- rb_define_singleton_method(SwigClassDebugLog.klass, "getModuleName", VALUEFUNC(_wrap_DebugLog_getModuleName), -1);
7111
- rb_define_singleton_method(SwigClassDebugLog.klass, "getLevel", VALUEFUNC(_wrap_DebugLog_getLevel), -1);
7112
- rb_define_singleton_method(SwigClassDebugLog.klass, "setLevel", VALUEFUNC(_wrap_DebugLog_setLevel), -1);
7113
- rb_define_singleton_method(SwigClassDebugLog.klass, "setOutputStream", VALUEFUNC(_wrap_DebugLog_setOutputStream), -1);
7114
- rb_define_singleton_method(SwigClassDebugLog.klass, "setOutputFile", VALUEFUNC(_wrap_DebugLog_setOutputFile), -1);
7115
- rb_define_singleton_method(SwigClassDebugLog.klass, "addDebugLogger", VALUEFUNC(_wrap_DebugLog_addDebugLogger), -1);
7116
- rb_define_singleton_method(SwigClassDebugLog.klass, "removeDebugLogger", VALUEFUNC(_wrap_DebugLog_removeDebugLogger), -1);
7117
- rb_define_singleton_method(SwigClassDebugLog.klass, "logMessage", VALUEFUNC(_wrap_DebugLog_logMessage), -1);
7118
- SwigClassDebugLog.mark = 0;
7119
- SwigClassDebugLog.destroy = (void (*)(void *)) free_DebugLog;
7120
- SwigClassDebugLog.trackObjects = 0;
7121
-
7122
7319
  SwigClassConfig.klass = rb_define_class_under(mOboe_metal, "Config", rb_cObject);
7123
7320
  SWIG_TypeClientData(SWIGTYPE_p_Config, (void *) &SwigClassConfig);
7124
7321
  rb_define_alloc_func(SwigClassConfig.klass, _wrap_Config_allocate);
7125
7322
  rb_define_method(SwigClassConfig.klass, "initialize", VALUEFUNC(_wrap_new_Config), -1);
7126
7323
  rb_define_singleton_method(SwigClassConfig.klass, "checkVersion", VALUEFUNC(_wrap_Config_checkVersion), -1);
7127
- rb_define_singleton_method(SwigClassConfig.klass, "getVersion", VALUEFUNC(_wrap_Config_getVersion), -1);
7128
- rb_define_singleton_method(SwigClassConfig.klass, "getRevision", VALUEFUNC(_wrap_Config_getRevision), -1);
7324
+ rb_define_singleton_method(SwigClassConfig.klass, "getVersionString", VALUEFUNC(_wrap_Config_getVersionString), -1);
7129
7325
  SwigClassConfig.mark = 0;
7130
7326
  SwigClassConfig.destroy = (void (*)(void *)) free_Config;
7131
7327
  SwigClassConfig.trackObjects = 0;