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