File: | pyext/gammalib/support_wrap.cpp |
Location: | line 10768, column 5 |
Description: | Value stored to 'module_head' is never read |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). |
3 | * Version 2.0.11 |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of |
6 | * coding conventions designed to improve portability and efficiency. Do not make |
7 | * changes to this file unless you know what you are doing--modify the SWIG |
8 | * interface file instead. |
9 | * ----------------------------------------------------------------------------- */ |
10 | |
11 | #define SWIGPYTHON |
12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
13 | |
14 | |
15 | #ifdef __cplusplus199711L |
16 | /* SwigValueWrapper is described in swig.swg */ |
17 | template<typename T> class SwigValueWrapper { |
18 | struct SwigMovePointer { |
19 | T *ptr; |
20 | SwigMovePointer(T *p) : ptr(p) { } |
21 | ~SwigMovePointer() { delete ptr; } |
22 | SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } |
23 | } pointer; |
24 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); |
25 | SwigValueWrapper(const SwigValueWrapper<T>& rhs); |
26 | public: |
27 | SwigValueWrapper() : pointer(0) { } |
28 | SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } |
29 | operator T&() const { return *pointer.ptr; } |
30 | T *operator&() { return pointer.ptr; } |
31 | }; |
32 | |
33 | template <typename T> T SwigValueInit() { |
34 | return T(); |
35 | } |
36 | #endif |
37 | |
38 | /* ----------------------------------------------------------------------------- |
39 | * This section contains generic SWIG labels for method/variable |
40 | * declarations/attributes, and other compiler dependent labels. |
41 | * ----------------------------------------------------------------------------- */ |
42 | |
43 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
44 | #ifndef SWIGTEMPLATEDISAMBIGUATOR |
45 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) |
46 | # define SWIGTEMPLATEDISAMBIGUATOR template |
47 | # elif defined(__HP_aCC) |
48 | /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ |
49 | /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ |
50 | # define SWIGTEMPLATEDISAMBIGUATOR template |
51 | # else |
52 | # define SWIGTEMPLATEDISAMBIGUATOR |
53 | # endif |
54 | #endif |
55 | |
56 | /* inline attribute */ |
57 | #ifndef SWIGINLINEinline |
58 | # if defined(__cplusplus199711L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__)) |
59 | # define SWIGINLINEinline inline |
60 | # else |
61 | # define SWIGINLINEinline |
62 | # endif |
63 | #endif |
64 | |
65 | /* attribute recognised by some compilers to avoid 'unused' warnings */ |
66 | #ifndef SWIGUNUSED__attribute__ ((__unused__)) |
67 | # if defined(__GNUC__4) |
68 | # if !(defined(__cplusplus199711L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)) |
69 | # define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
70 | # else |
71 | # define SWIGUNUSED__attribute__ ((__unused__)) |
72 | # endif |
73 | # elif defined(__ICC) |
74 | # define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
75 | # else |
76 | # define SWIGUNUSED__attribute__ ((__unused__)) |
77 | # endif |
78 | #endif |
79 | |
80 | #ifndef SWIG_MSC_UNSUPPRESS_4505 |
81 | # if defined(_MSC_VER) |
82 | # pragma warning(disable : 4505) /* unreferenced local function has been removed */ |
83 | # endif |
84 | #endif |
85 | |
86 | #ifndef SWIGUNUSEDPARM |
87 | # ifdef __cplusplus199711L |
88 | # define SWIGUNUSEDPARM(p) |
89 | # else |
90 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__)) |
91 | # endif |
92 | #endif |
93 | |
94 | /* internal SWIG method */ |
95 | #ifndef SWIGINTERNstatic __attribute__ ((__unused__)) |
96 | # define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__)) |
97 | #endif |
98 | |
99 | /* internal inline SWIG method */ |
100 | #ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline |
101 | # define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline |
102 | #endif |
103 | |
104 | /* exporting methods */ |
105 | #if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4) |
106 | # ifndef GCC_HASCLASSVISIBILITY |
107 | # define GCC_HASCLASSVISIBILITY |
108 | # endif |
109 | #endif |
110 | |
111 | #ifndef SWIGEXPORT__attribute__ ((visibility("default"))) |
112 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
113 | # if defined(STATIC_LINKED) |
114 | # define SWIGEXPORT__attribute__ ((visibility("default"))) |
115 | # else |
116 | # define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport) |
117 | # endif |
118 | # else |
119 | # if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY) |
120 | # define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default"))) |
121 | # else |
122 | # define SWIGEXPORT__attribute__ ((visibility("default"))) |
123 | # endif |
124 | # endif |
125 | #endif |
126 | |
127 | /* calling conventions for Windows */ |
128 | #ifndef SWIGSTDCALL |
129 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
130 | # define SWIGSTDCALL __stdcall |
131 | # else |
132 | # define SWIGSTDCALL |
133 | # endif |
134 | #endif |
135 | |
136 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
137 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) |
138 | # define _CRT_SECURE_NO_DEPRECATE |
139 | #endif |
140 | |
141 | /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ |
142 | #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) |
143 | # define _SCL_SECURE_NO_DEPRECATE |
144 | #endif |
145 | |
146 | |
147 | |
148 | #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) |
149 | /* Use debug wrappers with the Python release dll */ |
150 | # undef _DEBUG |
151 | # include <Python.h> |
152 | # define _DEBUG |
153 | #else |
154 | # include <Python.h> |
155 | #endif |
156 | |
157 | /* ----------------------------------------------------------------------------- |
158 | * swigrun.swg |
159 | * |
160 | * This file contains generic C API SWIG runtime support for pointer |
161 | * type checking. |
162 | * ----------------------------------------------------------------------------- */ |
163 | |
164 | /* This should only be incremented when either the layout of swig_type_info changes, |
165 | or for whatever reason, the runtime changes incompatibly */ |
166 | #define SWIG_RUNTIME_VERSION"4" "4" |
167 | |
168 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
169 | #ifdef SWIG_TYPE_TABLE |
170 | # define SWIG_QUOTE_STRING(x) #x |
171 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) |
172 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) |
173 | #else |
174 | # define SWIG_TYPE_TABLE_NAME |
175 | #endif |
176 | |
177 | /* |
178 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for |
179 | creating a static or dynamic library from the SWIG runtime code. |
180 | In 99.9% of the cases, SWIG just needs to declare them as 'static'. |
181 | |
182 | But only do this if strictly necessary, ie, if you have problems |
183 | with your compiler or suchlike. |
184 | */ |
185 | |
186 | #ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__)) |
187 | # define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__)) |
188 | #endif |
189 | |
190 | #ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline |
191 | # define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline |
192 | #endif |
193 | |
194 | /* Generic buffer size */ |
195 | #ifndef SWIG_BUFFER_SIZE1024 |
196 | # define SWIG_BUFFER_SIZE1024 1024 |
197 | #endif |
198 | |
199 | /* Flags for pointer conversions */ |
200 | #define SWIG_POINTER_DISOWN0x1 0x1 |
201 | #define SWIG_CAST_NEW_MEMORY0x2 0x2 |
202 | |
203 | /* Flags for new pointer objects */ |
204 | #define SWIG_POINTER_OWN0x1 0x1 |
205 | |
206 | |
207 | /* |
208 | Flags/methods for returning states. |
209 | |
210 | The SWIG conversion methods, as ConvertPtr, return an integer |
211 | that tells if the conversion was successful or not. And if not, |
212 | an error code can be returned (see swigerrors.swg for the codes). |
213 | |
214 | Use the following macros/flags to set or process the returning |
215 | states. |
216 | |
217 | In old versions of SWIG, code such as the following was usually written: |
218 | |
219 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { |
220 | // success code |
221 | } else { |
222 | //fail code |
223 | } |
224 | |
225 | Now you can be more explicit: |
226 | |
227 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); |
228 | if (SWIG_IsOK(res)) { |
229 | // success code |
230 | } else { |
231 | // fail code |
232 | } |
233 | |
234 | which is the same really, but now you can also do |
235 | |
236 | Type *ptr; |
237 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); |
238 | if (SWIG_IsOK(res)) { |
239 | // success code |
240 | if (SWIG_IsNewObj(res) { |
241 | ... |
242 | delete *ptr; |
243 | } else { |
244 | ... |
245 | } |
246 | } else { |
247 | // fail code |
248 | } |
249 | |
250 | I.e., now SWIG_ConvertPtr can return new objects and you can |
251 | identify the case and take care of the deallocation. Of course that |
252 | also requires SWIG_ConvertPtr to return new result values, such as |
253 | |
254 | int SWIG_ConvertPtr(obj, ptr,...) { |
255 | if (<obj is ok>) { |
256 | if (<need new object>) { |
257 | *ptr = <ptr to new allocated object>; |
258 | return SWIG_NEWOBJ; |
259 | } else { |
260 | *ptr = <ptr to old object>; |
261 | return SWIG_OLDOBJ; |
262 | } |
263 | } else { |
264 | return SWIG_BADOBJ; |
265 | } |
266 | } |
267 | |
268 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be |
269 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the |
270 | SWIG errors code. |
271 | |
272 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code |
273 | allows to return the 'cast rank', for example, if you have this |
274 | |
275 | int food(double) |
276 | int fooi(int); |
277 | |
278 | and you call |
279 | |
280 | food(1) // cast rank '1' (1 -> 1.0) |
281 | fooi(1) // cast rank '0' |
282 | |
283 | just use the SWIG_AddCast()/SWIG_CheckState() |
284 | */ |
285 | |
286 | #define SWIG_OK(0) (0) |
287 | #define SWIG_ERROR(-1) (-1) |
288 | #define SWIG_IsOK(r)(r >= 0) (r >= 0) |
289 | #define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5) |
290 | |
291 | /* The CastRankLimit says how many bits are used for the cast rank */ |
292 | #define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8) |
293 | /* The NewMask denotes the object was created (using new/malloc) */ |
294 | #define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1) |
295 | /* The TmpMask is for in/out typemaps that use temporal objects */ |
296 | #define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1) |
297 | /* Simple returning values */ |
298 | #define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1)) |
299 | #define SWIG_OLDOBJ((0)) (SWIG_OK(0)) |
300 | #define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1)) |
301 | #define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) |
302 | /* Check, add and del mask methods */ |
303 | #define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r) |
304 | #define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r) |
305 | #define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1)) ) (SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1))) |
306 | #define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r) |
307 | #define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r) |
308 | #define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1) << 1))) (SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))) |
309 | |
310 | /* Cast-Rank Mode */ |
311 | #if defined(SWIG_CASTRANK_MODE) |
312 | # ifndef SWIG_TypeRank |
313 | # define SWIG_TypeRank unsigned long |
314 | # endif |
315 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ |
316 | # define SWIG_MAXCASTRANK (2) |
317 | # endif |
318 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1) |
319 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) |
320 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) { |
321 | return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r; |
322 | } |
323 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) { |
324 | return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0; |
325 | } |
326 | #else /* no cast-rank mode */ |
327 | # define SWIG_AddCast(r)(r) (r) |
328 | # define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0) |
329 | #endif |
330 | |
331 | |
332 | #include <string.h> |
333 | |
334 | #ifdef __cplusplus199711L |
335 | extern "C" { |
336 | #endif |
337 | |
338 | typedef void *(*swig_converter_func)(void *, int *); |
339 | typedef struct swig_type_info *(*swig_dycast_func)(void **); |
340 | |
341 | /* Structure to store information on one type */ |
342 | typedef struct swig_type_info { |
343 | const char *name; /* mangled name of this type */ |
344 | const char *str; /* human readable name of this type */ |
345 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ |
346 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ |
347 | void *clientdata; /* language specific type data */ |
348 | int owndata; /* flag if the structure owns the clientdata */ |
349 | } swig_type_info; |
350 | |
351 | /* Structure to store a type and conversion function used for casting */ |
352 | typedef struct swig_cast_info { |
353 | swig_type_info *type; /* pointer to type that is equivalent to this type */ |
354 | swig_converter_func converter; /* function to cast the void pointers */ |
355 | struct swig_cast_info *next; /* pointer to next cast in linked list */ |
356 | struct swig_cast_info *prev; /* pointer to the previous cast */ |
357 | } swig_cast_info; |
358 | |
359 | /* Structure used to store module information |
360 | * Each module generates one structure like this, and the runtime collects |
361 | * all of these structures and stores them in a circularly linked list.*/ |
362 | typedef struct swig_module_info { |
363 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ |
364 | size_t size; /* Number of types in this module */ |
365 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ |
366 | swig_type_info **type_initial; /* Array of initially generated type structures */ |
367 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ |
368 | void *clientdata; /* Language specific module data */ |
369 | } swig_module_info; |
370 | |
371 | /* |
372 | Compare two type names skipping the space characters, therefore |
373 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. |
374 | |
375 | Return 0 when the two name types are equivalent, as in |
376 | strncmp, but skipping ' '. |
377 | */ |
378 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
379 | SWIG_TypeNameComp(const char *f1, const char *l1, |
380 | const char *f2, const char *l2) { |
381 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
382 | while ((*f1 == ' ') && (f1 != l1)) ++f1; |
383 | while ((*f2 == ' ') && (f2 != l2)) ++f2; |
384 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
385 | } |
386 | return (int)((l1 - f1) - (l2 - f2)); |
387 | } |
388 | |
389 | /* |
390 | Check type equivalence in a name list like <name1>|<name2>|... |
391 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb |
392 | */ |
393 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
394 | SWIG_TypeCmp(const char *nb, const char *tb) { |
395 | int equiv = 1; |
396 | const char* te = tb + strlen(tb); |
397 | const char* ne = nb; |
398 | while (equiv != 0 && *ne) { |
399 | for (nb = ne; *ne; ++ne) { |
400 | if (*ne == '|') break; |
401 | } |
402 | equiv = SWIG_TypeNameComp(nb, ne, tb, te); |
403 | if (*ne) ++ne; |
404 | } |
405 | return equiv; |
406 | } |
407 | |
408 | /* |
409 | Check type equivalence in a name list like <name1>|<name2>|... |
410 | Return 0 if not equal, 1 if equal |
411 | */ |
412 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
413 | SWIG_TypeEquiv(const char *nb, const char *tb) { |
414 | return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; |
415 | } |
416 | |
417 | /* |
418 | Check the typename |
419 | */ |
420 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
421 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
422 | if (ty) { |
423 | swig_cast_info *iter = ty->cast; |
424 | while (iter) { |
425 | if (strcmp(iter->type->name, c) == 0) { |
426 | if (iter == ty->cast) |
427 | return iter; |
428 | /* Move iter to the top of the linked list */ |
429 | iter->prev->next = iter->next; |
430 | if (iter->next) |
431 | iter->next->prev = iter->prev; |
432 | iter->next = ty->cast; |
433 | iter->prev = 0; |
434 | if (ty->cast) ty->cast->prev = iter; |
435 | ty->cast = iter; |
436 | return iter; |
437 | } |
438 | iter = iter->next; |
439 | } |
440 | } |
441 | return 0; |
442 | } |
443 | |
444 | /* |
445 | Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison |
446 | */ |
447 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
448 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { |
449 | if (ty) { |
450 | swig_cast_info *iter = ty->cast; |
451 | while (iter) { |
452 | if (iter->type == from) { |
453 | if (iter == ty->cast) |
454 | return iter; |
455 | /* Move iter to the top of the linked list */ |
456 | iter->prev->next = iter->next; |
457 | if (iter->next) |
458 | iter->next->prev = iter->prev; |
459 | iter->next = ty->cast; |
460 | iter->prev = 0; |
461 | if (ty->cast) ty->cast->prev = iter; |
462 | ty->cast = iter; |
463 | return iter; |
464 | } |
465 | iter = iter->next; |
466 | } |
467 | } |
468 | return 0; |
469 | } |
470 | |
471 | /* |
472 | Cast a pointer up an inheritance hierarchy |
473 | */ |
474 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void * |
475 | SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { |
476 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
477 | } |
478 | |
479 | /* |
480 | Dynamic pointer casting. Down an inheritance hierarchy |
481 | */ |
482 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
483 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { |
484 | swig_type_info *lastty = ty; |
485 | if (!ty || !ty->dcast) return ty; |
486 | while (ty && (ty->dcast)) { |
487 | ty = (*ty->dcast)(ptr); |
488 | if (ty) lastty = ty; |
489 | } |
490 | return lastty; |
491 | } |
492 | |
493 | /* |
494 | Return the name associated with this type |
495 | */ |
496 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
497 | SWIG_TypeName(const swig_type_info *ty) { |
498 | return ty->name; |
499 | } |
500 | |
501 | /* |
502 | Return the pretty name associated with this type, |
503 | that is an unmangled type name in a form presentable to the user. |
504 | */ |
505 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
506 | SWIG_TypePrettyName(const swig_type_info *type) { |
507 | /* The "str" field contains the equivalent pretty names of the |
508 | type, separated by vertical-bar characters. We choose |
509 | to print the last name, as it is often (?) the most |
510 | specific. */ |
511 | if (!type) return NULL__null; |
512 | if (type->str != NULL__null) { |
513 | const char *last_name = type->str; |
514 | const char *s; |
515 | for (s = type->str; *s; s++) |
516 | if (*s == '|') last_name = s+1; |
517 | return last_name; |
518 | } |
519 | else |
520 | return type->name; |
521 | } |
522 | |
523 | /* |
524 | Set the clientdata field for a type |
525 | */ |
526 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
527 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
528 | swig_cast_info *cast = ti->cast; |
529 | /* if (ti->clientdata == clientdata) return; */ |
530 | ti->clientdata = clientdata; |
531 | |
532 | while (cast) { |
533 | if (!cast->converter) { |
534 | swig_type_info *tc = cast->type; |
535 | if (!tc->clientdata) { |
536 | SWIG_TypeClientData(tc, clientdata); |
537 | } |
538 | } |
539 | cast = cast->next; |
540 | } |
541 | } |
542 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
543 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { |
544 | SWIG_TypeClientData(ti, clientdata); |
545 | ti->owndata = 1; |
546 | } |
547 | |
548 | /* |
549 | Search for a swig_type_info structure only by mangled name |
550 | Search is a O(log #types) |
551 | |
552 | We start searching at module start, and finish searching when start == end. |
553 | Note: if start == end at the beginning of the function, we go all the way around |
554 | the circular list. |
555 | */ |
556 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
557 | SWIG_MangledTypeQueryModule(swig_module_info *start, |
558 | swig_module_info *end, |
559 | const char *name) { |
560 | swig_module_info *iter = start; |
561 | do { |
562 | if (iter->size) { |
563 | register size_t l = 0; |
564 | register size_t r = iter->size - 1; |
565 | do { |
566 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ |
567 | register size_t i = (l + r) >> 1; |
568 | const char *iname = iter->types[i]->name; |
569 | if (iname) { |
570 | register int compare = strcmp(name, iname); |
571 | if (compare == 0) { |
572 | return iter->types[i]; |
573 | } else if (compare < 0) { |
574 | if (i) { |
575 | r = i - 1; |
576 | } else { |
577 | break; |
578 | } |
579 | } else if (compare > 0) { |
580 | l = i + 1; |
581 | } |
582 | } else { |
583 | break; /* should never happen */ |
584 | } |
585 | } while (l <= r); |
586 | } |
587 | iter = iter->next; |
588 | } while (iter != end); |
589 | return 0; |
590 | } |
591 | |
592 | /* |
593 | Search for a swig_type_info structure for either a mangled name or a human readable name. |
594 | It first searches the mangled names of the types, which is a O(log #types) |
595 | If a type is not found it then searches the human readable names, which is O(#types). |
596 | |
597 | We start searching at module start, and finish searching when start == end. |
598 | Note: if start == end at the beginning of the function, we go all the way around |
599 | the circular list. |
600 | */ |
601 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
602 | SWIG_TypeQueryModule(swig_module_info *start, |
603 | swig_module_info *end, |
604 | const char *name) { |
605 | /* STEP 1: Search the name field using binary search */ |
606 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); |
607 | if (ret) { |
608 | return ret; |
609 | } else { |
610 | /* STEP 2: If the type hasn't been found, do a complete search |
611 | of the str field (the human readable name) */ |
612 | swig_module_info *iter = start; |
613 | do { |
614 | register size_t i = 0; |
615 | for (; i < iter->size; ++i) { |
616 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
617 | return iter->types[i]; |
618 | } |
619 | iter = iter->next; |
620 | } while (iter != end); |
621 | } |
622 | |
623 | /* neither found a match */ |
624 | return 0; |
625 | } |
626 | |
627 | /* |
628 | Pack binary data into a string |
629 | */ |
630 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
631 | SWIG_PackData(char *c, void *ptr, size_t sz) { |
632 | static const char hex[17] = "0123456789abcdef"; |
633 | register const unsigned char *u = (unsigned char *) ptr; |
634 | register const unsigned char *eu = u + sz; |
635 | for (; u != eu; ++u) { |
636 | register unsigned char uu = *u; |
637 | *(c++) = hex[(uu & 0xf0) >> 4]; |
638 | *(c++) = hex[uu & 0xf]; |
639 | } |
640 | return c; |
641 | } |
642 | |
643 | /* |
644 | Unpack binary data from a string |
645 | */ |
646 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
647 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { |
648 | register unsigned char *u = (unsigned char *) ptr; |
649 | register const unsigned char *eu = u + sz; |
650 | for (; u != eu; ++u) { |
651 | register char d = *(c++); |
652 | register unsigned char uu; |
653 | if ((d >= '0') && (d <= '9')) |
654 | uu = ((d - '0') << 4); |
655 | else if ((d >= 'a') && (d <= 'f')) |
656 | uu = ((d - ('a'-10)) << 4); |
657 | else |
658 | return (char *) 0; |
659 | d = *(c++); |
660 | if ((d >= '0') && (d <= '9')) |
661 | uu |= (d - '0'); |
662 | else if ((d >= 'a') && (d <= 'f')) |
663 | uu |= (d - ('a'-10)); |
664 | else |
665 | return (char *) 0; |
666 | *u = uu; |
667 | } |
668 | return c; |
669 | } |
670 | |
671 | /* |
672 | Pack 'void *' into a string buffer. |
673 | */ |
674 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
675 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { |
676 | char *r = buff; |
677 | if ((2*sizeof(void *) + 2) > bsz) return 0; |
678 | *(r++) = '_'; |
679 | r = SWIG_PackData(r,&ptr,sizeof(void *)); |
680 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; |
681 | strcpy(r,name); |
682 | return buff; |
683 | } |
684 | |
685 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
686 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { |
687 | if (*c != '_') { |
688 | if (strcmp(c,"NULL") == 0) { |
689 | *ptr = (void *) 0; |
690 | return name; |
691 | } else { |
692 | return 0; |
693 | } |
694 | } |
695 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); |
696 | } |
697 | |
698 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
699 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { |
700 | char *r = buff; |
701 | size_t lname = (name ? strlen(name) : 0); |
702 | if ((2*sz + 2 + lname) > bsz) return 0; |
703 | *(r++) = '_'; |
704 | r = SWIG_PackData(r,ptr,sz); |
705 | if (lname) { |
706 | strncpy(r,name,lname+1); |
707 | } else { |
708 | *r = 0; |
709 | } |
710 | return buff; |
711 | } |
712 | |
713 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
714 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { |
715 | if (*c != '_') { |
716 | if (strcmp(c,"NULL") == 0) { |
717 | memset(ptr,0,sz); |
718 | return name; |
719 | } else { |
720 | return 0; |
721 | } |
722 | } |
723 | return SWIG_UnpackData(++c,ptr,sz); |
724 | } |
725 | |
726 | #ifdef __cplusplus199711L |
727 | } |
728 | #endif |
729 | |
730 | /* Errors in SWIG */ |
731 | #define SWIG_UnknownError-1 -1 |
732 | #define SWIG_IOError-2 -2 |
733 | #define SWIG_RuntimeError-3 -3 |
734 | #define SWIG_IndexError-4 -4 |
735 | #define SWIG_TypeError-5 -5 |
736 | #define SWIG_DivisionByZero-6 -6 |
737 | #define SWIG_OverflowError-7 -7 |
738 | #define SWIG_SyntaxError-8 -8 |
739 | #define SWIG_ValueError-9 -9 |
740 | #define SWIG_SystemError-10 -10 |
741 | #define SWIG_AttributeError-11 -11 |
742 | #define SWIG_MemoryError-12 -12 |
743 | #define SWIG_NullReferenceError-13 -13 |
744 | |
745 | |
746 | |
747 | /* Compatibility macros for Python 3 */ |
748 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
749 | |
750 | #define PyClass_Check(obj)((obj)->ob_type == &PyClass_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) |
751 | #define PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0 ) PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<< 24))) != 0) |
752 | #define PyInt_AsLong(x) PyLong_AsLong(x) |
753 | #define PyInt_FromLong(x) PyLong_FromLong(x) |
754 | #define PyInt_FromSize_t(x) PyLong_FromSize_t(x) |
755 | #define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0) PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0) |
756 | #define PyString_FromString(x) PyUnicode_FromStringPyUnicodeUCS2_FromString(x) |
757 | #define PyString_Format(fmt, args) PyUnicode_FormatPyUnicodeUCS2_Format(fmt, args) |
758 | #define PyString_AsString(str) PyBytes_AsStringPyString_AsString(str) |
759 | #define PyString_Size(str) PyBytes_SizePyString_Size(str) |
760 | #define PyString_InternFromString(key) PyUnicode_InternFromString(key) |
761 | #define Py_TPFLAGS_HAVE_CLASS(1L<<8) Py_TPFLAGS_BASETYPE(1L<<10) |
762 | #define PyString_AS_STRING(x)(((PyStringObject *)(x))->ob_sval) PyUnicode_AS_STRING(x) |
763 | #define _PyLong_FromSsize_tPyLong_FromSsize_t(x) PyLong_FromSsize_t(x) |
764 | |
765 | #endif |
766 | |
767 | #ifndef Py_TYPE |
768 | # define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type) |
769 | #endif |
770 | |
771 | /* SWIG APIs for compatibility of both Python 2 & 3 */ |
772 | |
773 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
774 | # define SWIG_Python_str_FromFormatPyString_FromFormat PyUnicode_FromFormatPyUnicodeUCS2_FromFormat |
775 | #else |
776 | # define SWIG_Python_str_FromFormatPyString_FromFormat PyString_FromFormat |
777 | #endif |
778 | |
779 | |
780 | /* Warning: This function will allocate a new string in Python 3, |
781 | * so please call SWIG_Python_str_DelForPy3(x) to free the space. |
782 | */ |
783 | SWIGINTERNstatic __attribute__ ((__unused__)) char* |
784 | SWIG_Python_str_AsChar(PyObject *str) |
785 | { |
786 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
787 | char *cstr; |
788 | char *newstr; |
789 | Py_ssize_t len; |
790 | str = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(str); |
791 | PyBytes_AsStringAndSizePyString_AsStringAndSize(str, &cstr, &len); |
792 | newstr = (char *) malloc(len+1); |
793 | memcpy(newstr, cstr, len+1); |
794 | Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (str)))); } while (0); } while (0); |
795 | return newstr; |
796 | #else |
797 | return PyString_AsString(str); |
798 | #endif |
799 | } |
800 | |
801 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
802 | # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) |
803 | #else |
804 | # define SWIG_Python_str_DelForPy3(x) |
805 | #endif |
806 | |
807 | |
808 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
809 | SWIG_Python_str_FromChar(const char *c) |
810 | { |
811 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
812 | return PyUnicode_FromStringPyUnicodeUCS2_FromString(c); |
813 | #else |
814 | return PyString_FromString(c); |
815 | #endif |
816 | } |
817 | |
818 | /* Add PyOS_snprintf for old Pythons */ |
819 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
820 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) |
821 | # define PyOS_snprintf _snprintf |
822 | # else |
823 | # define PyOS_snprintf snprintf |
824 | # endif |
825 | #endif |
826 | |
827 | /* A crude PyString_FromFormat implementation for old Pythons */ |
828 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
829 | |
830 | #ifndef SWIG_PYBUFFER_SIZE |
831 | # define SWIG_PYBUFFER_SIZE 1024 |
832 | #endif |
833 | |
834 | static PyObject * |
835 | PyString_FromFormat(const char *fmt, ...) { |
836 | va_list ap; |
837 | char buf[SWIG_PYBUFFER_SIZE * 2]; |
838 | int res; |
839 | va_start(ap, fmt)__builtin_va_start(ap, fmt); |
840 | res = vsnprintf(buf, sizeof(buf), fmt, ap); |
841 | va_end(ap)__builtin_va_end(ap); |
842 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); |
843 | } |
844 | #endif |
845 | |
846 | /* Add PyObject_Del for old Pythons */ |
847 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x01060000 |
848 | # define PyObject_DelPyObject_Free(op) PyMem_DELfree((op)) |
849 | #endif |
850 | #ifndef PyObject_DELPyObject_Free |
851 | # define PyObject_DELPyObject_Free PyObject_DelPyObject_Free |
852 | #endif |
853 | |
854 | /* A crude PyExc_StopIteration exception for old Pythons */ |
855 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
856 | # ifndef PyExc_StopIteration |
857 | # define PyExc_StopIteration PyExc_RuntimeError |
858 | # endif |
859 | # ifndef PyObject_GenericGetAttr |
860 | # define PyObject_GenericGetAttr 0 |
861 | # endif |
862 | #endif |
863 | |
864 | /* Py_NotImplemented is defined in 2.1 and up. */ |
865 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02010000 |
866 | # ifndef Py_NotImplemented(&_Py_NotImplementedStruct) |
867 | # define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError |
868 | # endif |
869 | #endif |
870 | |
871 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ |
872 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02010000 |
873 | # ifndef PyString_AsStringAndSize |
874 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} |
875 | # endif |
876 | #endif |
877 | |
878 | /* PySequence_Size for old Pythons */ |
879 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02000000 |
880 | # ifndef PySequence_Size |
881 | # define PySequence_Size PySequence_LengthPySequence_Size |
882 | # endif |
883 | #endif |
884 | |
885 | /* PyBool_FromLong for old Pythons */ |
886 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
887 | static |
888 | PyObject *PyBool_FromLong(long ok) |
889 | { |
890 | PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_ZeroStruct); |
891 | Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++); |
892 | return result; |
893 | } |
894 | #endif |
895 | |
896 | /* Py_ssize_t for old Pythons */ |
897 | /* This code is as recommended by: */ |
898 | /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ |
899 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1)) |
900 | typedef int Py_ssize_t; |
901 | # define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647 |
902 | # define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1) |
903 | typedef inquiry lenfunc; |
904 | typedef intargfunc ssizeargfunc; |
905 | typedef intintargfunc ssizessizeargfunc; |
906 | typedef intobjargproc ssizeobjargproc; |
907 | typedef intintobjargproc ssizessizeobjargproc; |
908 | typedef getreadbufferproc readbufferproc; |
909 | typedef getwritebufferproc writebufferproc; |
910 | typedef getsegcountproc segcountproc; |
911 | typedef getcharbufferproc charbufferproc; |
912 | static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) |
913 | { |
914 | long result = 0; |
915 | PyObject *i = PyNumber_Int(x); |
916 | if (i) { |
917 | result = PyInt_AsLong(i); |
918 | Py_DECREF(i)do { if ( --((PyObject*)(i))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(i)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(i)))); } while (0); |
919 | } |
920 | return result; |
921 | } |
922 | #endif |
923 | |
924 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
925 | #define PyInt_FromSize_t(x) PyInt_FromLong((long)x) |
926 | #endif |
927 | |
928 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02040000 |
929 | #define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret ) return vret; } } while (0) \ |
930 | do { \ |
931 | if (op) { \ |
932 | int vret = visit((op), arg); \ |
933 | if (vret) \ |
934 | return vret; \ |
935 | } \ |
936 | } while (0) |
937 | #endif |
938 | |
939 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
940 | typedef struct { |
941 | PyTypeObject type; |
942 | PyNumberMethods as_number; |
943 | PyMappingMethods as_mapping; |
944 | PySequenceMethods as_sequence; |
945 | PyBufferProcs as_buffer; |
946 | PyObject *name, *slots; |
947 | } PyHeapTypeObject; |
948 | #endif |
949 | |
950 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
951 | typedef destructor freefunc; |
952 | #endif |
953 | |
954 | #if ((PY_MAJOR_VERSION2 == 2 && PY_MINOR_VERSION7 > 6) || \ |
955 | (PY_MAJOR_VERSION2 == 3 && PY_MINOR_VERSION7 > 0) || \ |
956 | (PY_MAJOR_VERSION2 > 3)) |
957 | # define SWIGPY_USE_CAPSULE |
958 | # define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) |
959 | #endif |
960 | |
961 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03020000 |
962 | #define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type) |
963 | #define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name) |
964 | #endif |
965 | |
966 | /* ----------------------------------------------------------------------------- |
967 | * error manipulation |
968 | * ----------------------------------------------------------------------------- */ |
969 | |
970 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
971 | SWIG_Python_ErrorType(int code) { |
972 | PyObject* type = 0; |
973 | switch(code) { |
974 | case SWIG_MemoryError-12: |
975 | type = PyExc_MemoryError; |
976 | break; |
977 | case SWIG_IOError-2: |
978 | type = PyExc_IOError; |
979 | break; |
980 | case SWIG_RuntimeError-3: |
981 | type = PyExc_RuntimeError; |
982 | break; |
983 | case SWIG_IndexError-4: |
984 | type = PyExc_IndexError; |
985 | break; |
986 | case SWIG_TypeError-5: |
987 | type = PyExc_TypeError; |
988 | break; |
989 | case SWIG_DivisionByZero-6: |
990 | type = PyExc_ZeroDivisionError; |
991 | break; |
992 | case SWIG_OverflowError-7: |
993 | type = PyExc_OverflowError; |
994 | break; |
995 | case SWIG_SyntaxError-8: |
996 | type = PyExc_SyntaxError; |
997 | break; |
998 | case SWIG_ValueError-9: |
999 | type = PyExc_ValueError; |
1000 | break; |
1001 | case SWIG_SystemError-10: |
1002 | type = PyExc_SystemError; |
1003 | break; |
1004 | case SWIG_AttributeError-11: |
1005 | type = PyExc_AttributeError; |
1006 | break; |
1007 | default: |
1008 | type = PyExc_RuntimeError; |
1009 | } |
1010 | return type; |
1011 | } |
1012 | |
1013 | |
1014 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1015 | SWIG_Python_AddErrorMsg(const char* mesg) |
1016 | { |
1017 | PyObject *type = 0; |
1018 | PyObject *value = 0; |
1019 | PyObject *traceback = 0; |
1020 | |
1021 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); |
1022 | if (value) { |
1023 | char *tmp; |
1024 | PyObject *old_str = PyObject_Str(value); |
1025 | PyErr_Clear(); |
1026 | Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt ++); } while (0); |
1027 | |
1028 | PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); |
1029 | SWIG_Python_str_DelForPy3(tmp); |
1030 | Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(old_str)))); } while (0); |
1031 | Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(value)))); } while (0); |
1032 | } else { |
1033 | PyErr_SetString(PyExc_RuntimeError, mesg); |
1034 | } |
1035 | } |
1036 | |
1037 | #if defined(SWIG_PYTHON_NO_THREADS) |
1038 | # if defined(SWIG_PYTHON_THREADS) |
1039 | # undef SWIG_PYTHON_THREADS |
1040 | # endif |
1041 | #endif |
1042 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ |
1043 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) |
1044 | # if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ |
1045 | # define SWIG_PYTHON_USE_GIL |
1046 | # endif |
1047 | # endif |
1048 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ |
1049 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS |
1050 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() |
1051 | # endif |
1052 | # ifdef __cplusplus199711L /* C++ code */ |
1053 | class SWIG_Python_Thread_Block { |
1054 | bool status; |
1055 | PyGILState_STATE state; |
1056 | public: |
1057 | void end() { if (status) { PyGILState_Release(state); status = false;} } |
1058 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} |
1059 | ~SWIG_Python_Thread_Block() { end(); } |
1060 | }; |
1061 | class SWIG_Python_Thread_Allow { |
1062 | bool status; |
1063 | PyThreadState *save; |
1064 | public: |
1065 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} |
1066 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} |
1067 | ~SWIG_Python_Thread_Allow() { end(); } |
1068 | }; |
1069 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block |
1070 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() |
1071 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow |
1072 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() |
1073 | # else /* C code */ |
1074 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() |
1075 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) |
1076 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() |
1077 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) |
1078 | # endif |
1079 | # else /* Old thread way, not implemented, user must provide it */ |
1080 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) |
1081 | # define SWIG_PYTHON_INITIALIZE_THREADS |
1082 | # endif |
1083 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) |
1084 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK |
1085 | # endif |
1086 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) |
1087 | # define SWIG_PYTHON_THREAD_END_BLOCK |
1088 | # endif |
1089 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) |
1090 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW |
1091 | # endif |
1092 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) |
1093 | # define SWIG_PYTHON_THREAD_END_ALLOW |
1094 | # endif |
1095 | # endif |
1096 | #else /* No thread support */ |
1097 | # define SWIG_PYTHON_INITIALIZE_THREADS |
1098 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK |
1099 | # define SWIG_PYTHON_THREAD_END_BLOCK |
1100 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW |
1101 | # define SWIG_PYTHON_THREAD_END_ALLOW |
1102 | #endif |
1103 | |
1104 | /* ----------------------------------------------------------------------------- |
1105 | * Python API portion that goes into the runtime |
1106 | * ----------------------------------------------------------------------------- */ |
1107 | |
1108 | #ifdef __cplusplus199711L |
1109 | extern "C" { |
1110 | #endif |
1111 | |
1112 | /* ----------------------------------------------------------------------------- |
1113 | * Constant declarations |
1114 | * ----------------------------------------------------------------------------- */ |
1115 | |
1116 | /* Constant Types */ |
1117 | #define SWIG_PY_POINTER4 4 |
1118 | #define SWIG_PY_BINARY5 5 |
1119 | |
1120 | /* Constant information structure */ |
1121 | typedef struct swig_const_info { |
1122 | int type; |
1123 | char *name; |
1124 | long lvalue; |
1125 | double dvalue; |
1126 | void *pvalue; |
1127 | swig_type_info **ptype; |
1128 | } swig_const_info; |
1129 | |
1130 | |
1131 | /* ----------------------------------------------------------------------------- |
1132 | * Wrapper of PyInstanceMethod_New() used in Python 3 |
1133 | * It is exported to the generated module, used for -fastproxy |
1134 | * ----------------------------------------------------------------------------- */ |
1135 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1136 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) |
1137 | { |
1138 | return PyInstanceMethod_New(func); |
1139 | } |
1140 | #else |
1141 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) |
1142 | { |
1143 | return NULL__null; |
1144 | } |
1145 | #endif |
1146 | |
1147 | #ifdef __cplusplus199711L |
1148 | } |
1149 | #endif |
1150 | |
1151 | |
1152 | /* ----------------------------------------------------------------------------- |
1153 | * pyrun.swg |
1154 | * |
1155 | * This file contains the runtime support for Python modules |
1156 | * and includes code for managing global variables and pointer |
1157 | * type checking. |
1158 | * |
1159 | * ----------------------------------------------------------------------------- */ |
1160 | |
1161 | /* Common SWIG API */ |
1162 | |
1163 | /* for raw pointers */ |
1164 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1165 | #define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1166 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) |
1167 | |
1168 | #ifdef SWIGPYTHON_BUILTIN |
1169 | #define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) |
1170 | #else |
1171 | #define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags) |
1172 | #endif |
1173 | |
1174 | #define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags) |
1175 | |
1176 | #define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) |
1177 | #define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) |
1178 | #define swig_owntypeint int |
1179 | |
1180 | /* for raw packed data */ |
1181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) |
1182 | #define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) |
1183 | |
1184 | /* for class or struct pointers */ |
1185 | #define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1186 | #define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) |
1187 | |
1188 | /* for C or C++ function pointers */ |
1189 | #define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) |
1190 | #define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0) |
1191 | |
1192 | /* for C++ member pointers, ie, member methods */ |
1193 | #define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) |
1194 | #define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) |
1195 | |
1196 | |
1197 | /* Runtime API */ |
1198 | |
1199 | #define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata) |
1200 | #define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer) |
1201 | #define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj) |
1202 | |
1203 | #define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj |
1204 | #define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg |
1205 | #define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code) |
1206 | #define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg) |
1207 | #define SWIG_failgoto fail goto fail |
1208 | |
1209 | |
1210 | /* Runtime API implementation */ |
1211 | |
1212 | /* Error manipulation */ |
1213 | |
1214 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1215 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { |
1216 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; |
1217 | PyErr_SetObject(errtype, obj); |
1218 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1219 | SWIG_PYTHON_THREAD_END_BLOCK; |
1220 | } |
1221 | |
1222 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1223 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { |
1224 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; |
1225 | PyErr_SetString(errtype, msg); |
1226 | SWIG_PYTHON_THREAD_END_BLOCK; |
1227 | } |
1228 | |
1229 | #define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
1230 | |
1231 | /* Set a constant value */ |
1232 | |
1233 | #if defined(SWIGPYTHON_BUILTIN) |
1234 | |
1235 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1236 | SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { |
1237 | PyObject *s = PyString_InternFromString(key); |
1238 | PyList_Append(seq, s); |
1239 | Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(s)))); } while (0); |
1240 | } |
1241 | |
1242 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1243 | SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { |
1244 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
1245 | PyDict_SetItemString(d, (char *)name, obj); |
1246 | #else |
1247 | PyDict_SetItemString(d, name, obj); |
1248 | #endif |
1249 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1250 | if (public_interface) |
1251 | SwigPyBuiltin_AddPublicSymbol(public_interface, name); |
1252 | } |
1253 | |
1254 | #else |
1255 | |
1256 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1257 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { |
1258 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
1259 | PyDict_SetItemString(d, (char *)name, obj); |
1260 | #else |
1261 | PyDict_SetItemString(d, name, obj); |
1262 | #endif |
1263 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1264 | } |
1265 | |
1266 | #endif |
1267 | |
1268 | /* Append a value to the result obj */ |
1269 | |
1270 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1271 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { |
1272 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) |
1273 | if (!result) { |
1274 | result = obj; |
1275 | } else if (result == Py_None(&_Py_NoneStruct)) { |
1276 | Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(result)))); } while (0); |
1277 | result = obj; |
1278 | } else { |
1279 | if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & (( 1L<<25))) != 0)) { |
1280 | PyObject *o2 = result; |
1281 | result = PyList_New(1); |
1282 | PyList_SetItem(result, 0, o2); |
1283 | } |
1284 | PyList_Append(result,obj); |
1285 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1286 | } |
1287 | return result; |
1288 | #else |
1289 | PyObject* o2; |
1290 | PyObject* o3; |
1291 | if (!result) { |
1292 | result = obj; |
1293 | } else if (result == Py_None(&_Py_NoneStruct)) { |
1294 | Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(result)))); } while (0); |
1295 | result = obj; |
1296 | } else { |
1297 | if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & (( 1L<<26))) != 0)) { |
1298 | o2 = result; |
1299 | result = PyTuple_New(1); |
1300 | PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2); |
1301 | } |
1302 | o3 = PyTuple_New(1); |
1303 | PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj); |
1304 | o2 = result; |
1305 | result = PySequence_Concat(o2, o3); |
1306 | Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(o2)))); } while (0); |
1307 | Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(o3)))); } while (0); |
1308 | } |
1309 | return result; |
1310 | #endif |
1311 | } |
1312 | |
1313 | /* Unpack the argument tuple */ |
1314 | |
1315 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
1316 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) |
1317 | { |
1318 | if (!args) { |
1319 | if (!min && !max) { |
1320 | return 1; |
1321 | } else { |
1322 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", |
1323 | name, (min == max ? "" : "at least "), (int)min); |
1324 | return 0; |
1325 | } |
1326 | } |
1327 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) { |
1328 | if (min <= 1 && max >= 1) { |
1329 | register int i; |
1330 | objs[0] = args; |
1331 | for (i = 1; i < max; ++i) { |
1332 | objs[i] = 0; |
1333 | } |
1334 | return 2; |
1335 | } |
1336 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); |
1337 | return 0; |
1338 | } else { |
1339 | register Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size); |
1340 | if (l < min) { |
1341 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", |
1342 | name, (min == max ? "" : "at least "), (int)min, (int)l); |
1343 | return 0; |
1344 | } else if (l > max) { |
1345 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", |
1346 | name, (min == max ? "" : "at most "), (int)max, (int)l); |
1347 | return 0; |
1348 | } else { |
1349 | register int i; |
1350 | for (i = 0; i < l; ++i) { |
1351 | objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]); |
1352 | } |
1353 | for (; l < max; ++l) { |
1354 | objs[l] = 0; |
1355 | } |
1356 | return i + 1; |
1357 | } |
1358 | } |
1359 | } |
1360 | |
1361 | /* A functor is a function object with one single object argument */ |
1362 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
1363 | #define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null); |
1364 | #else |
1365 | #define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj); |
1366 | #endif |
1367 | |
1368 | /* |
1369 | Helper for static pointer initialization for both C and C++ code, for example |
1370 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); |
1371 | */ |
1372 | #ifdef __cplusplus199711L |
1373 | #define SWIG_STATIC_POINTER(var)var var |
1374 | #else |
1375 | #define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var |
1376 | #endif |
1377 | |
1378 | /* ----------------------------------------------------------------------------- |
1379 | * Pointer declarations |
1380 | * ----------------------------------------------------------------------------- */ |
1381 | |
1382 | /* Flags for new pointer objects */ |
1383 | #define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1) |
1384 | #define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1) |
1385 | |
1386 | #define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1) |
1387 | |
1388 | #define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2) |
1389 | #define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1) |
1390 | |
1391 | #ifdef __cplusplus199711L |
1392 | extern "C" { |
1393 | #endif |
1394 | |
1395 | /* How to access Py_None */ |
1396 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
1397 | # ifndef SWIG_PYTHON_NO_BUILD_NONE |
1398 | # ifndef SWIG_PYTHON_BUILD_NONE |
1399 | # define SWIG_PYTHON_BUILD_NONE |
1400 | # endif |
1401 | # endif |
1402 | #endif |
1403 | |
1404 | #ifdef SWIG_PYTHON_BUILD_NONE |
1405 | # ifdef Py_None(&_Py_NoneStruct) |
1406 | # undef Py_None(&_Py_NoneStruct) |
1407 | # define Py_None(&_Py_NoneStruct) SWIG_Py_None() |
1408 | # endif |
1409 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1410 | _SWIG_Py_None(void) |
1411 | { |
1412 | PyObject *none = Py_BuildValue((char*)""); |
1413 | Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(none)))); } while (0); |
1414 | return none; |
1415 | } |
1416 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1417 | SWIG_Py_None(void) |
1418 | { |
1419 | static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None(); |
1420 | return none; |
1421 | } |
1422 | #endif |
1423 | |
1424 | /* The python void return value */ |
1425 | |
1426 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1427 | SWIG_Py_Void(void) |
1428 | { |
1429 | PyObject *none = Py_None(&_Py_NoneStruct); |
1430 | Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++); |
1431 | return none; |
1432 | } |
1433 | |
1434 | /* SwigPyClientData */ |
1435 | |
1436 | typedef struct { |
1437 | PyObject *klass; |
1438 | PyObject *newraw; |
1439 | PyObject *newargs; |
1440 | PyObject *destroy; |
1441 | int delargs; |
1442 | int implicitconv; |
1443 | PyTypeObject *pytype; |
1444 | } SwigPyClientData; |
1445 | |
1446 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1447 | SWIG_Python_CheckImplicit(swig_type_info *ty) |
1448 | { |
1449 | SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; |
1450 | return data ? data->implicitconv : 0; |
1451 | } |
1452 | |
1453 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1454 | SWIG_Python_ExceptionType(swig_type_info *desc) { |
1455 | SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; |
1456 | PyObject *klass = data ? data->klass : 0; |
1457 | return (klass ? klass : PyExc_RuntimeError); |
1458 | } |
1459 | |
1460 | |
1461 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData * |
1462 | SwigPyClientData_New(PyObject* obj) |
1463 | { |
1464 | if (!obj) { |
1465 | return 0; |
1466 | } else { |
1467 | SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); |
1468 | /* the klass element */ |
1469 | data->klass = obj; |
1470 | Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++); |
1471 | /* the newraw method and newargs arguments used to create a new raw instance */ |
1472 | if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) { |
1473 | data->newraw = 0; |
1474 | data->newargs = obj; |
1475 | Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++); |
1476 | } else { |
1477 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000) |
1478 | data->newraw = 0; |
1479 | #else |
1480 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); |
1481 | #endif |
1482 | if (data->newraw) { |
1483 | Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++); |
1484 | data->newargs = PyTuple_New(1); |
1485 | PyTuple_SetItem(data->newargs, 0, obj); |
1486 | } else { |
1487 | data->newargs = obj; |
1488 | } |
1489 | Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++); |
1490 | } |
1491 | /* the destroy method, aka as the C++ delete method */ |
1492 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); |
1493 | if (PyErr_Occurred()) { |
1494 | PyErr_Clear(); |
1495 | data->destroy = 0; |
1496 | } |
1497 | if (data->destroy) { |
1498 | int flags; |
1499 | Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++); |
1500 | flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags ); |
1501 | #ifdef METH_O0x0008 |
1502 | data->delargs = !(flags & (METH_O0x0008)); |
1503 | #else |
1504 | data->delargs = 0; |
1505 | #endif |
1506 | } else { |
1507 | data->delargs = 0; |
1508 | } |
1509 | data->implicitconv = 0; |
1510 | data->pytype = 0; |
1511 | return data; |
1512 | } |
1513 | } |
1514 | |
1515 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1516 | SwigPyClientData_Del(SwigPyClientData *data) { |
1517 | Py_XDECREF(data->newraw)do { if ((data->newraw) == __null) ; else do { if ( --((PyObject *)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->newraw)))); } while (0); } while (0); |
1518 | Py_XDECREF(data->newargs)do { if ((data->newargs) == __null) ; else do { if ( --((PyObject *)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->newargs)))); } while (0) ; } while (0); |
1519 | Py_XDECREF(data->destroy)do { if ((data->destroy) == __null) ; else do { if ( --((PyObject *)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->destroy)))); } while (0) ; } while (0); |
1520 | } |
1521 | |
1522 | /* =============== SwigPyObject =====================*/ |
1523 | |
1524 | typedef struct { |
1525 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
1526 | void *ptr; |
1527 | swig_type_info *ty; |
1528 | int own; |
1529 | PyObject *next; |
1530 | #ifdef SWIGPYTHON_BUILTIN |
1531 | PyObject *dict; |
1532 | #endif |
1533 | } SwigPyObject; |
1534 | |
1535 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1536 | SwigPyObject_long(SwigPyObject *v) |
1537 | { |
1538 | return PyLong_FromVoidPtr(v->ptr); |
1539 | } |
1540 | |
1541 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1542 | SwigPyObject_format(const char* fmt, SwigPyObject *v) |
1543 | { |
1544 | PyObject *res = NULL__null; |
1545 | PyObject *args = PyTuple_New(1); |
1546 | if (args) { |
1547 | if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { |
1548 | PyObject *ofmt = SWIG_Python_str_FromChar(fmt); |
1549 | if (ofmt) { |
1550 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1551 | res = PyUnicode_FormatPyUnicodeUCS2_Format(ofmt,args); |
1552 | #else |
1553 | res = PyString_Format(ofmt,args); |
1554 | #endif |
1555 | Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(ofmt)))); } while (0); |
1556 | } |
1557 | Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(args)))); } while (0); |
1558 | } |
1559 | } |
1560 | return res; |
1561 | } |
1562 | |
1563 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1564 | SwigPyObject_oct(SwigPyObject *v) |
1565 | { |
1566 | return SwigPyObject_format("%o",v); |
1567 | } |
1568 | |
1569 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1570 | SwigPyObject_hex(SwigPyObject *v) |
1571 | { |
1572 | return SwigPyObject_format("%x",v); |
1573 | } |
1574 | |
1575 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1576 | #ifdef METH_NOARGS0x0004 |
1577 | SwigPyObject_repr(SwigPyObject *v) |
1578 | #else |
1579 | SwigPyObject_repr(SwigPyObject *v, PyObject *args) |
1580 | #endif |
1581 | { |
1582 | const char *name = SWIG_TypePrettyName(v->ty); |
1583 | PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v); |
1584 | if (v->next) { |
1585 | # ifdef METH_NOARGS0x0004 |
1586 | PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); |
1587 | # else |
1588 | PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); |
1589 | # endif |
1590 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1591 | PyObject *joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(repr, nrep); |
1592 | Py_DecRef(repr); |
1593 | Py_DecRef(nrep); |
1594 | repr = joined; |
1595 | # else |
1596 | PyString_ConcatAndDel(&repr,nrep); |
1597 | # endif |
1598 | } |
1599 | return repr; |
1600 | } |
1601 | |
1602 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1603 | SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) |
1604 | { |
1605 | void *i = v->ptr; |
1606 | void *j = w->ptr; |
1607 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
1608 | } |
1609 | |
1610 | /* Added for Python 3.x, would it also be useful for Python 2.x? */ |
1611 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1612 | SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) |
1613 | { |
1614 | PyObject* res; |
1615 | if( op != Py_EQ2 && op != Py_NE3 ) { |
1616 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
1617 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
1618 | } |
1619 | res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0); |
1620 | return res; |
1621 | } |
1622 | |
1623 | |
1624 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void); |
1625 | |
1626 | #ifdef SWIGPYTHON_BUILTIN |
1627 | static swig_type_info *SwigPyObject_stype = 0; |
1628 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1629 | SwigPyObject_type(void) { |
1630 | SwigPyClientData *cd; |
1631 | assert(SwigPyObject_stype)((void)0); |
1632 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
1633 | assert(cd)((void)0); |
1634 | assert(cd->pytype)((void)0); |
1635 | return cd->pytype; |
1636 | } |
1637 | #else |
1638 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1639 | SwigPyObject_type(void) { |
1640 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce(); |
1641 | return type; |
1642 | } |
1643 | #endif |
1644 | |
1645 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1646 | SwigPyObject_Check(PyObject *op) { |
1647 | #ifdef SWIGPYTHON_BUILTIN |
1648 | PyTypeObject *target_tp = SwigPyObject_type(); |
1649 | if (PyType_IsSubtype(op->ob_type, target_tp)) |
1650 | return 1; |
1651 | return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); |
1652 | #else |
1653 | return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type()) |
1654 | || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0); |
1655 | #endif |
1656 | } |
1657 | |
1658 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1659 | SwigPyObject_New(void *ptr, swig_type_info *ty, int own); |
1660 | |
1661 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1662 | SwigPyObject_dealloc(PyObject *v) |
1663 | { |
1664 | SwigPyObject *sobj = (SwigPyObject *) v; |
1665 | PyObject *next = sobj->next; |
1666 | if (sobj->own == SWIG_POINTER_OWN0x1) { |
1667 | swig_type_info *ty = sobj->ty; |
1668 | SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; |
1669 | PyObject *destroy = data ? data->destroy : 0; |
1670 | if (destroy) { |
1671 | /* destroy is always a VARARGS method */ |
1672 | PyObject *res; |
1673 | if (data->delargs) { |
1674 | /* we need to create a temporary object to carry the destroy operation */ |
1675 | PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); |
1676 | res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);; |
1677 | Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); |
1678 | } else { |
1679 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth); |
1680 | PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self); |
1681 | res = ((*meth)(mself, v)); |
1682 | } |
1683 | Py_XDECREF(res)do { if ((res) == __null) ; else do { if ( --((PyObject*)(res ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (res)))); } while (0); } while (0); |
1684 | } |
1685 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) |
1686 | else { |
1687 | const char *name = SWIG_TypePrettyName(ty); |
1688 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); |
1689 | } |
1690 | #endif |
1691 | } |
1692 | Py_XDECREF(next)do { if ((next) == __null) ; else do { if ( --((PyObject*)(next ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(next)))); } while (0); } while (0); |
1693 | PyObject_DELPyObject_Free(v); |
1694 | } |
1695 | |
1696 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1697 | SwigPyObject_append(PyObject* v, PyObject* next) |
1698 | { |
1699 | SwigPyObject *sobj = (SwigPyObject *) v; |
1700 | #ifndef METH_O0x0008 |
1701 | PyObject *tmp = 0; |
1702 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null; |
1703 | next = tmp; |
1704 | #endif |
1705 | if (!SwigPyObject_Check(next)) { |
1706 | return NULL__null; |
1707 | } |
1708 | sobj->next = next; |
1709 | Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++); |
1710 | return SWIG_Py_Void(); |
1711 | } |
1712 | |
1713 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1714 | #ifdef METH_NOARGS0x0004 |
1715 | SwigPyObject_next(PyObject* v) |
1716 | #else |
1717 | SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1718 | #endif |
1719 | { |
1720 | SwigPyObject *sobj = (SwigPyObject *) v; |
1721 | if (sobj->next) { |
1722 | Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++); |
1723 | return sobj->next; |
1724 | } else { |
1725 | return SWIG_Py_Void(); |
1726 | } |
1727 | } |
1728 | |
1729 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1730 | #ifdef METH_NOARGS0x0004 |
1731 | SwigPyObject_disown(PyObject *v) |
1732 | #else |
1733 | SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1734 | #endif |
1735 | { |
1736 | SwigPyObject *sobj = (SwigPyObject *)v; |
1737 | sobj->own = 0; |
1738 | return SWIG_Py_Void(); |
1739 | } |
1740 | |
1741 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1742 | #ifdef METH_NOARGS0x0004 |
1743 | SwigPyObject_acquire(PyObject *v) |
1744 | #else |
1745 | SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1746 | #endif |
1747 | { |
1748 | SwigPyObject *sobj = (SwigPyObject *)v; |
1749 | sobj->own = SWIG_POINTER_OWN0x1; |
1750 | return SWIG_Py_Void(); |
1751 | } |
1752 | |
1753 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1754 | SwigPyObject_own(PyObject *v, PyObject *args) |
1755 | { |
1756 | PyObject *val = 0; |
1757 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000) |
1758 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) |
1759 | #elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000) |
1760 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) |
1761 | #else |
1762 | if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) |
1763 | #endif |
1764 | { |
1765 | return NULL__null; |
1766 | } |
1767 | else |
1768 | { |
1769 | SwigPyObject *sobj = (SwigPyObject *)v; |
1770 | PyObject *obj = PyBool_FromLong(sobj->own); |
1771 | if (val) { |
1772 | #ifdef METH_NOARGS0x0004 |
1773 | if (PyObject_IsTrue(val)) { |
1774 | SwigPyObject_acquire(v); |
1775 | } else { |
1776 | SwigPyObject_disown(v); |
1777 | } |
1778 | #else |
1779 | if (PyObject_IsTrue(val)) { |
1780 | SwigPyObject_acquire(v,args); |
1781 | } else { |
1782 | SwigPyObject_disown(v,args); |
1783 | } |
1784 | #endif |
1785 | } |
1786 | return obj; |
1787 | } |
1788 | } |
1789 | |
1790 | #ifdef METH_O0x0008 |
1791 | static PyMethodDef |
1792 | swigobject_methods[] = { |
1793 | {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"}, |
1794 | {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"}, |
1795 | {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"}, |
1796 | {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"}, |
1797 | {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"}, |
1798 | {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"}, |
1799 | {0, 0, 0, 0} |
1800 | }; |
1801 | #else |
1802 | static PyMethodDef |
1803 | swigobject_methods[] = { |
1804 | {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"}, |
1805 | {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"aquires ownership of the pointer"}, |
1806 | {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"}, |
1807 | {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"}, |
1808 | {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"}, |
1809 | {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"}, |
1810 | {0, 0, 0, 0} |
1811 | }; |
1812 | #endif |
1813 | |
1814 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1815 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
1816 | SwigPyObject_getattr(SwigPyObject *sobj,char *name) |
1817 | { |
1818 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); |
1819 | } |
1820 | #endif |
1821 | |
1822 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1823 | SwigPyObject_TypeOnce(void) { |
1824 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; |
1825 | |
1826 | static PyNumberMethods SwigPyObject_as_number = { |
1827 | (binaryfunc)0, /*nb_add*/ |
1828 | (binaryfunc)0, /*nb_subtract*/ |
1829 | (binaryfunc)0, /*nb_multiply*/ |
1830 | /* nb_divide removed in Python 3 */ |
1831 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1832 | (binaryfunc)0, /*nb_divide*/ |
1833 | #endif |
1834 | (binaryfunc)0, /*nb_remainder*/ |
1835 | (binaryfunc)0, /*nb_divmod*/ |
1836 | (ternaryfunc)0,/*nb_power*/ |
1837 | (unaryfunc)0, /*nb_negative*/ |
1838 | (unaryfunc)0, /*nb_positive*/ |
1839 | (unaryfunc)0, /*nb_absolute*/ |
1840 | (inquiry)0, /*nb_nonzero*/ |
1841 | 0, /*nb_invert*/ |
1842 | 0, /*nb_lshift*/ |
1843 | 0, /*nb_rshift*/ |
1844 | 0, /*nb_and*/ |
1845 | 0, /*nb_xor*/ |
1846 | 0, /*nb_or*/ |
1847 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1848 | 0, /*nb_coerce*/ |
1849 | #endif |
1850 | (unaryfunc)SwigPyObject_long, /*nb_int*/ |
1851 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1852 | (unaryfunc)SwigPyObject_long, /*nb_long*/ |
1853 | #else |
1854 | 0, /*nb_reserved*/ |
1855 | #endif |
1856 | (unaryfunc)0, /*nb_float*/ |
1857 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1858 | (unaryfunc)SwigPyObject_oct, /*nb_oct*/ |
1859 | (unaryfunc)SwigPyObject_hex, /*nb_hex*/ |
1860 | #endif |
1861 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 /* 3.0 */ |
1862 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ |
1863 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 /* 2.5.0 */ |
1864 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ |
1865 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 /* 2.2.0 */ |
1866 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
1867 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02000000 /* 2.0.0 */ |
1868 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ |
1869 | #endif |
1870 | }; |
1871 | |
1872 | static PyTypeObject swigpyobject_type; |
1873 | static int type_init = 0; |
1874 | if (!type_init) { |
1875 | const PyTypeObject tmp = { |
1876 | /* PyObject header changed in Python 3 */ |
1877 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1878 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
1879 | #else |
1880 | PyObject_HEAD_INIT(NULL)1, __null, |
1881 | 0, /* ob_size */ |
1882 | #endif |
1883 | (char *)"SwigPyObject", /* tp_name */ |
1884 | sizeof(SwigPyObject), /* tp_basicsize */ |
1885 | 0, /* tp_itemsize */ |
1886 | (destructor)SwigPyObject_dealloc, /* tp_dealloc */ |
1887 | 0, /* tp_print */ |
1888 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1889 | (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ |
1890 | #else |
1891 | (getattrfunc)0, /* tp_getattr */ |
1892 | #endif |
1893 | (setattrfunc)0, /* tp_setattr */ |
1894 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1895 | 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ |
1896 | #else |
1897 | (cmpfunc)SwigPyObject_compare, /* tp_compare */ |
1898 | #endif |
1899 | (reprfunc)SwigPyObject_repr, /* tp_repr */ |
1900 | &SwigPyObject_as_number, /* tp_as_number */ |
1901 | 0, /* tp_as_sequence */ |
1902 | 0, /* tp_as_mapping */ |
1903 | (hashfunc)0, /* tp_hash */ |
1904 | (ternaryfunc)0, /* tp_call */ |
1905 | 0, /* tp_str */ |
1906 | PyObject_GenericGetAttr, /* tp_getattro */ |
1907 | 0, /* tp_setattro */ |
1908 | 0, /* tp_as_buffer */ |
1909 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0), /* tp_flags */ |
1910 | swigobject_doc, /* tp_doc */ |
1911 | 0, /* tp_traverse */ |
1912 | 0, /* tp_clear */ |
1913 | (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ |
1914 | 0, /* tp_weaklistoffset */ |
1915 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
1916 | 0, /* tp_iter */ |
1917 | 0, /* tp_iternext */ |
1918 | swigobject_methods, /* tp_methods */ |
1919 | 0, /* tp_members */ |
1920 | 0, /* tp_getset */ |
1921 | 0, /* tp_base */ |
1922 | 0, /* tp_dict */ |
1923 | 0, /* tp_descr_get */ |
1924 | 0, /* tp_descr_set */ |
1925 | 0, /* tp_dictoffset */ |
1926 | 0, /* tp_init */ |
1927 | 0, /* tp_alloc */ |
1928 | 0, /* tp_new */ |
1929 | 0, /* tp_free */ |
1930 | 0, /* tp_is_gc */ |
1931 | 0, /* tp_bases */ |
1932 | 0, /* tp_mro */ |
1933 | 0, /* tp_cache */ |
1934 | 0, /* tp_subclasses */ |
1935 | 0, /* tp_weaklist */ |
1936 | #endif |
1937 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
1938 | 0, /* tp_del */ |
1939 | #endif |
1940 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
1941 | 0, /* tp_version */ |
1942 | #endif |
1943 | #ifdef COUNT_ALLOCS |
1944 | 0,0,0,0 /* tp_alloc -> tp_next */ |
1945 | #endif |
1946 | }; |
1947 | swigpyobject_type = tmp; |
1948 | type_init = 1; |
1949 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1950 | swigpyobject_type.ob_type = &PyType_Type; |
1951 | #else |
1952 | if (PyType_Ready(&swigpyobject_type) < 0) |
1953 | return NULL__null; |
1954 | #endif |
1955 | } |
1956 | return &swigpyobject_type; |
1957 | } |
1958 | |
1959 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1960 | SwigPyObject_New(void *ptr, swig_type_info *ty, int own) |
1961 | { |
1962 | SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type ())) ); |
1963 | if (sobj) { |
1964 | sobj->ptr = ptr; |
1965 | sobj->ty = ty; |
1966 | sobj->own = own; |
1967 | sobj->next = 0; |
1968 | } |
1969 | return (PyObject *)sobj; |
1970 | } |
1971 | |
1972 | /* ----------------------------------------------------------------------------- |
1973 | * Implements a simple Swig Packed type, and use it instead of string |
1974 | * ----------------------------------------------------------------------------- */ |
1975 | |
1976 | typedef struct { |
1977 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
1978 | void *pack; |
1979 | swig_type_info *ty; |
1980 | size_t size; |
1981 | } SwigPyPacked; |
1982 | |
1983 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1984 | SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
1985 | { |
1986 | char result[SWIG_BUFFER_SIZE1024]; |
1987 | fputs("<Swig Packed ", fp); |
1988 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { |
1989 | fputs("at ", fp); |
1990 | fputs(result, fp); |
1991 | } |
1992 | fputs(v->ty->name,fp); |
1993 | fputs(">", fp); |
1994 | return 0; |
1995 | } |
1996 | |
1997 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1998 | SwigPyPacked_repr(SwigPyPacked *v) |
1999 | { |
2000 | char result[SWIG_BUFFER_SIZE1024]; |
2001 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { |
2002 | return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
2003 | } else { |
2004 | return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed %s>", v->ty->name); |
2005 | } |
2006 | } |
2007 | |
2008 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2009 | SwigPyPacked_str(SwigPyPacked *v) |
2010 | { |
2011 | char result[SWIG_BUFFER_SIZE1024]; |
2012 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ |
2013 | return SWIG_Python_str_FromFormatPyString_FromFormat("%s%s", result, v->ty->name); |
2014 | } else { |
2015 | return SWIG_Python_str_FromChar(v->ty->name); |
2016 | } |
2017 | } |
2018 | |
2019 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2020 | SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) |
2021 | { |
2022 | size_t i = v->size; |
2023 | size_t j = w->size; |
2024 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); |
2025 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); |
2026 | } |
2027 | |
2028 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void); |
2029 | |
2030 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2031 | SwigPyPacked_type(void) { |
2032 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce(); |
2033 | return type; |
2034 | } |
2035 | |
2036 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
2037 | SwigPyPacked_Check(PyObject *op) { |
2038 | return ((op)->ob_type == SwigPyPacked_TypeOnce()) |
2039 | || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); |
2040 | } |
2041 | |
2042 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2043 | SwigPyPacked_dealloc(PyObject *v) |
2044 | { |
2045 | if (SwigPyPacked_Check(v)) { |
2046 | SwigPyPacked *sobj = (SwigPyPacked *) v; |
2047 | free(sobj->pack); |
2048 | } |
2049 | PyObject_DELPyObject_Free(v); |
2050 | } |
2051 | |
2052 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2053 | SwigPyPacked_TypeOnce(void) { |
2054 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; |
2055 | static PyTypeObject swigpypacked_type; |
2056 | static int type_init = 0; |
2057 | if (!type_init) { |
2058 | const PyTypeObject tmp = { |
2059 | /* PyObject header changed in Python 3 */ |
2060 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2061 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
2062 | #else |
2063 | PyObject_HEAD_INIT(NULL)1, __null, |
2064 | 0, /* ob_size */ |
2065 | #endif |
2066 | (char *)"SwigPyPacked", /* tp_name */ |
2067 | sizeof(SwigPyPacked), /* tp_basicsize */ |
2068 | 0, /* tp_itemsize */ |
2069 | (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ |
2070 | (printfunc)SwigPyPacked_print, /* tp_print */ |
2071 | (getattrfunc)0, /* tp_getattr */ |
2072 | (setattrfunc)0, /* tp_setattr */ |
2073 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2074 | 0, /* tp_reserved in 3.0.1 */ |
2075 | #else |
2076 | (cmpfunc)SwigPyPacked_compare, /* tp_compare */ |
2077 | #endif |
2078 | (reprfunc)SwigPyPacked_repr, /* tp_repr */ |
2079 | 0, /* tp_as_number */ |
2080 | 0, /* tp_as_sequence */ |
2081 | 0, /* tp_as_mapping */ |
2082 | (hashfunc)0, /* tp_hash */ |
2083 | (ternaryfunc)0, /* tp_call */ |
2084 | (reprfunc)SwigPyPacked_str, /* tp_str */ |
2085 | PyObject_GenericGetAttr, /* tp_getattro */ |
2086 | 0, /* tp_setattro */ |
2087 | 0, /* tp_as_buffer */ |
2088 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0), /* tp_flags */ |
2089 | swigpacked_doc, /* tp_doc */ |
2090 | 0, /* tp_traverse */ |
2091 | 0, /* tp_clear */ |
2092 | 0, /* tp_richcompare */ |
2093 | 0, /* tp_weaklistoffset */ |
2094 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
2095 | 0, /* tp_iter */ |
2096 | 0, /* tp_iternext */ |
2097 | 0, /* tp_methods */ |
2098 | 0, /* tp_members */ |
2099 | 0, /* tp_getset */ |
2100 | 0, /* tp_base */ |
2101 | 0, /* tp_dict */ |
2102 | 0, /* tp_descr_get */ |
2103 | 0, /* tp_descr_set */ |
2104 | 0, /* tp_dictoffset */ |
2105 | 0, /* tp_init */ |
2106 | 0, /* tp_alloc */ |
2107 | 0, /* tp_new */ |
2108 | 0, /* tp_free */ |
2109 | 0, /* tp_is_gc */ |
2110 | 0, /* tp_bases */ |
2111 | 0, /* tp_mro */ |
2112 | 0, /* tp_cache */ |
2113 | 0, /* tp_subclasses */ |
2114 | 0, /* tp_weaklist */ |
2115 | #endif |
2116 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
2117 | 0, /* tp_del */ |
2118 | #endif |
2119 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
2120 | 0, /* tp_version */ |
2121 | #endif |
2122 | #ifdef COUNT_ALLOCS |
2123 | 0,0,0,0 /* tp_alloc -> tp_next */ |
2124 | #endif |
2125 | }; |
2126 | swigpypacked_type = tmp; |
2127 | type_init = 1; |
2128 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
2129 | swigpypacked_type.ob_type = &PyType_Type; |
2130 | #else |
2131 | if (PyType_Ready(&swigpypacked_type) < 0) |
2132 | return NULL__null; |
2133 | #endif |
2134 | } |
2135 | return &swigpypacked_type; |
2136 | } |
2137 | |
2138 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2139 | SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) |
2140 | { |
2141 | SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type ())) ); |
2142 | if (sobj) { |
2143 | void *pack = malloc(size); |
2144 | if (pack) { |
2145 | memcpy(pack, ptr, size); |
2146 | sobj->pack = pack; |
2147 | sobj->ty = ty; |
2148 | sobj->size = size; |
2149 | } else { |
2150 | PyObject_DELPyObject_Free((PyObject *) sobj); |
2151 | sobj = 0; |
2152 | } |
2153 | } |
2154 | return (PyObject *) sobj; |
2155 | } |
2156 | |
2157 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2158 | SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
2159 | { |
2160 | if (SwigPyPacked_Check(obj)) { |
2161 | SwigPyPacked *sobj = (SwigPyPacked *)obj; |
2162 | if (sobj->size != size) return 0; |
2163 | memcpy(ptr, sobj->pack, size); |
2164 | return sobj->ty; |
2165 | } else { |
2166 | return 0; |
2167 | } |
2168 | } |
2169 | |
2170 | /* ----------------------------------------------------------------------------- |
2171 | * pointers/data manipulation |
2172 | * ----------------------------------------------------------------------------- */ |
2173 | |
2174 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2175 | _SWIG_This(void) |
2176 | { |
2177 | return SWIG_Python_str_FromChar("this"); |
2178 | } |
2179 | |
2180 | static PyObject *swig_this = NULL__null; |
2181 | |
2182 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2183 | SWIG_This(void) |
2184 | { |
2185 | if (swig_this == NULL__null) |
2186 | swig_this = _SWIG_This(); |
2187 | return swig_this; |
2188 | } |
2189 | |
2190 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
2191 | |
2192 | /* TODO: I don't know how to implement the fast getset in Python 3 right now */ |
2193 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2194 | #define SWIG_PYTHON_SLOW_GETSET_THIS |
2195 | #endif |
2196 | |
2197 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject * |
2198 | SWIG_Python_GetSwigThis(PyObject *pyobj) |
2199 | { |
2200 | PyObject *obj; |
2201 | |
2202 | if (SwigPyObject_Check(pyobj)) |
2203 | return (SwigPyObject *) pyobj; |
2204 | |
2205 | #ifdef SWIGPYTHON_BUILTIN |
2206 | (void)obj; |
2207 | # ifdef PyWeakref_CheckProxy |
2208 | if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType ) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType ))) { |
2209 | pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))-> ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object : (&_Py_NoneStruct)); |
2210 | if (pyobj && SwigPyObject_Check(pyobj)) |
2211 | return (SwigPyObject*) pyobj; |
2212 | } |
2213 | # endif |
2214 | return NULL__null; |
2215 | #else |
2216 | |
2217 | obj = 0; |
2218 | |
2219 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000)) |
2220 | if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) { |
2221 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); |
2222 | } else { |
2223 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); |
2224 | if (dictptr != NULL__null) { |
2225 | PyObject *dict = *dictptr; |
2226 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; |
2227 | } else { |
2228 | #ifdef PyWeakref_CheckProxy |
2229 | if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType ) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType ))) { |
2230 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))-> ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object : (&_Py_NoneStruct)); |
2231 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; |
2232 | } |
2233 | #endif |
2234 | obj = PyObject_GetAttr(pyobj,SWIG_This()); |
2235 | if (obj) { |
2236 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2237 | } else { |
2238 | if (PyErr_Occurred()) PyErr_Clear(); |
2239 | return 0; |
2240 | } |
2241 | } |
2242 | } |
2243 | #else |
2244 | obj = PyObject_GetAttr(pyobj,SWIG_This()); |
2245 | if (obj) { |
2246 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2247 | } else { |
2248 | if (PyErr_Occurred()) PyErr_Clear(); |
2249 | return 0; |
2250 | } |
2251 | #endif |
2252 | if (obj && !SwigPyObject_Check(obj)) { |
2253 | /* a PyObject is called 'this', try to get the 'real this' |
2254 | SwigPyObject from it */ |
2255 | return SWIG_Python_GetSwigThis(obj); |
2256 | } |
2257 | return (SwigPyObject *)obj; |
2258 | #endif |
2259 | } |
2260 | |
2261 | /* Acquire a pointer value */ |
2262 | |
2263 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2264 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { |
2265 | if (own == SWIG_POINTER_OWN0x1) { |
2266 | SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); |
2267 | if (sobj) { |
2268 | int oldown = sobj->own; |
2269 | sobj->own = own; |
2270 | return oldown; |
2271 | } |
2272 | } |
2273 | return 0; |
2274 | } |
2275 | |
2276 | /* Convert a pointer value */ |
2277 | |
2278 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2279 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
2280 | int res; |
2281 | SwigPyObject *sobj; |
2282 | int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0; |
2283 | |
2284 | if (!obj) |
2285 | return SWIG_ERROR(-1); |
2286 | if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) { |
2287 | if (ptr) |
2288 | *ptr = 0; |
2289 | return SWIG_OK(0); |
2290 | } |
2291 | |
2292 | res = SWIG_ERROR(-1); |
2293 | |
2294 | sobj = SWIG_Python_GetSwigThis(obj); |
2295 | if (own) |
2296 | *own = 0; |
2297 | while (sobj) { |
2298 | void *vptr = sobj->ptr; |
2299 | if (ty) { |
2300 | swig_type_info *to = sobj->ty; |
2301 | if (to == ty) { |
2302 | /* no type cast needed */ |
2303 | if (ptr) *ptr = vptr; |
2304 | break; |
2305 | } else { |
2306 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
2307 | if (!tc) { |
2308 | sobj = (SwigPyObject *)sobj->next; |
2309 | } else { |
2310 | if (ptr) { |
2311 | int newmemory = 0; |
2312 | *ptr = SWIG_TypeCast(tc,vptr,&newmemory); |
2313 | if (newmemory == SWIG_CAST_NEW_MEMORY0x2) { |
2314 | assert(own)((void)0); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ |
2315 | if (own) |
2316 | *own = *own | SWIG_CAST_NEW_MEMORY0x2; |
2317 | } |
2318 | } |
2319 | break; |
2320 | } |
2321 | } |
2322 | } else { |
2323 | if (ptr) *ptr = vptr; |
2324 | break; |
2325 | } |
2326 | } |
2327 | if (sobj) { |
2328 | if (own) |
2329 | *own = *own | sobj->own; |
2330 | if (flags & SWIG_POINTER_DISOWN0x1) { |
2331 | sobj->own = 0; |
2332 | } |
2333 | res = SWIG_OK(0); |
2334 | } else { |
2335 | if (implicit_conv) { |
2336 | SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; |
2337 | if (data && !data->implicitconv) { |
2338 | PyObject *klass = data->klass; |
2339 | if (klass) { |
2340 | PyObject *impconv; |
2341 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ |
2342 | impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);; |
2343 | data->implicitconv = 0; |
2344 | if (PyErr_Occurred()) { |
2345 | PyErr_Clear(); |
2346 | impconv = 0; |
2347 | } |
2348 | if (impconv) { |
2349 | SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); |
2350 | if (iobj) { |
2351 | void *vptr; |
2352 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); |
2353 | if (SWIG_IsOK(res)(res >= 0)) { |
2354 | if (ptr) { |
2355 | *ptr = vptr; |
2356 | /* transfer the ownership to 'ptr' */ |
2357 | iobj->own = 0; |
2358 | res = SWIG_AddCast(res)(res); |
2359 | res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res); |
2360 | } else { |
2361 | res = SWIG_AddCast(res)(res); |
2362 | } |
2363 | } |
2364 | } |
2365 | Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(impconv)))); } while (0); |
2366 | } |
2367 | } |
2368 | } |
2369 | } |
2370 | if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) { |
2371 | if (ptr) |
2372 | *ptr = 0; |
2373 | if (PyErr_Occurred()) |
2374 | PyErr_Clear(); |
2375 | res = SWIG_OK(0); |
2376 | } |
2377 | } |
2378 | return res; |
2379 | } |
2380 | |
2381 | /* Convert a function ptr value */ |
2382 | |
2383 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2384 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2385 | if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) { |
2386 | return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0); |
2387 | } else { |
2388 | void *vptr = 0; |
2389 | |
2390 | /* here we get the method pointer for callbacks */ |
2391 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
2392 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2393 | if (desc) |
2394 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; |
2395 | if (!desc) |
2396 | return SWIG_ERROR(-1); |
2397 | if (ty) { |
2398 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); |
2399 | if (tc) { |
2400 | int newmemory = 0; |
2401 | *ptr = SWIG_TypeCast(tc,vptr,&newmemory); |
2402 | assert(!newmemory)((void)0); /* newmemory handling not yet implemented */ |
2403 | } else { |
2404 | return SWIG_ERROR(-1); |
2405 | } |
2406 | } else { |
2407 | *ptr = vptr; |
2408 | } |
2409 | return SWIG_OK(0); |
2410 | } |
2411 | } |
2412 | |
2413 | /* Convert a packed value value */ |
2414 | |
2415 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2416 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2417 | swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); |
2418 | if (!to) return SWIG_ERROR(-1); |
2419 | if (ty) { |
2420 | if (to != ty) { |
2421 | /* check type cast? */ |
2422 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
2423 | if (!tc) return SWIG_ERROR(-1); |
2424 | } |
2425 | } |
2426 | return SWIG_OK(0); |
2427 | } |
2428 | |
2429 | /* ----------------------------------------------------------------------------- |
2430 | * Create a new pointer object |
2431 | * ----------------------------------------------------------------------------- */ |
2432 | |
2433 | /* |
2434 | Create a new instance object, without calling __init__, and set the |
2435 | 'this' attribute. |
2436 | */ |
2437 | |
2438 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
2439 | SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) |
2440 | { |
2441 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000) |
2442 | PyObject *inst = 0; |
2443 | PyObject *newraw = data->newraw; |
2444 | if (newraw) { |
2445 | inst = PyObject_Call(newraw, data->newargs, NULL__null); |
2446 | if (inst) { |
2447 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) |
2448 | PyObject **dictptr = _PyObject_GetDictPtr(inst); |
2449 | if (dictptr != NULL__null) { |
2450 | PyObject *dict = *dictptr; |
2451 | if (dict == NULL__null) { |
2452 | dict = PyDict_New(); |
2453 | *dictptr = dict; |
2454 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2455 | } |
2456 | } |
2457 | #else |
2458 | PyObject *key = SWIG_This(); |
2459 | PyObject_SetAttr(inst, key, swig_this); |
2460 | #endif |
2461 | } |
2462 | } else { |
2463 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2464 | inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct)); |
2465 | if (inst) { |
2466 | PyObject_SetAttr(inst, SWIG_This(), swig_this); |
2467 | Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19); |
2468 | } |
2469 | #else |
2470 | PyObject *dict = PyDict_New(); |
2471 | if (dict) { |
2472 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2473 | inst = PyInstance_NewRaw(data->newargs, dict); |
2474 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2475 | } |
2476 | #endif |
2477 | } |
2478 | return inst; |
2479 | #else |
2480 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02010000) |
2481 | PyObject *inst = 0; |
2482 | PyObject *dict = PyDict_New(); |
2483 | if (dict) { |
2484 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2485 | inst = PyInstance_NewRaw(data->newargs, dict); |
2486 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2487 | } |
2488 | return (PyObject *) inst; |
2489 | #else |
2490 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type )) ); |
2491 | if (inst == NULL__null) { |
2492 | return NULL__null; |
2493 | } |
2494 | inst->in_class = (PyClassObject *)data->newargs; |
2495 | Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++); |
2496 | inst->in_dict = PyDict_New(); |
2497 | if (inst->in_dict == NULL__null) { |
2498 | Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(inst)))); } while (0); |
2499 | return NULL__null; |
2500 | } |
2501 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6) |
2502 | inst->in_weakreflist = NULL__null; |
2503 | #endif |
2504 | #ifdef Py_TPFLAGS_GC0 |
2505 | PyObject_GC_Init(inst); |
2506 | #endif |
2507 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); |
2508 | return (PyObject *) inst; |
2509 | #endif |
2510 | #endif |
2511 | } |
2512 | |
2513 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2514 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) |
2515 | { |
2516 | PyObject *dict; |
2517 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) |
2518 | PyObject **dictptr = _PyObject_GetDictPtr(inst); |
2519 | if (dictptr != NULL__null) { |
2520 | dict = *dictptr; |
2521 | if (dict == NULL__null) { |
2522 | dict = PyDict_New(); |
2523 | *dictptr = dict; |
2524 | } |
2525 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2526 | return; |
2527 | } |
2528 | #endif |
2529 | dict = PyObject_GetAttrString(inst, (char*)"__dict__"); |
2530 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2531 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2532 | } |
2533 | |
2534 | |
2535 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
2536 | SWIG_Python_InitShadowInstance(PyObject *args) { |
2537 | PyObject *obj[2]; |
2538 | if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { |
2539 | return NULL__null; |
2540 | } else { |
2541 | SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); |
2542 | if (sthis) { |
2543 | SwigPyObject_append((PyObject*) sthis, obj[1]); |
2544 | } else { |
2545 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
2546 | } |
2547 | return SWIG_Py_Void(); |
2548 | } |
2549 | } |
2550 | |
2551 | /* Create a new pointer object */ |
2552 | |
2553 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2554 | SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { |
2555 | SwigPyClientData *clientdata; |
2556 | PyObject * robj; |
2557 | int own; |
2558 | |
2559 | if (!ptr) |
2560 | return SWIG_Py_Void(); |
2561 | |
2562 | clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; |
2563 | own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0; |
2564 | if (clientdata && clientdata->pytype) { |
2565 | SwigPyObject *newobj; |
2566 | if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) { |
2567 | newobj = (SwigPyObject*) self; |
2568 | if (newobj->ptr) { |
2569 | PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); |
2570 | while (newobj->next) |
2571 | newobj = (SwigPyObject *) newobj->next; |
2572 | newobj->next = next_self; |
2573 | newobj = (SwigPyObject *)next_self; |
2574 | } |
2575 | } else { |
2576 | newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) ); |
2577 | } |
2578 | if (newobj) { |
2579 | newobj->ptr = ptr; |
2580 | newobj->ty = type; |
2581 | newobj->own = own; |
2582 | newobj->next = 0; |
2583 | #ifdef SWIGPYTHON_BUILTIN |
2584 | newobj->dict = 0; |
2585 | #endif |
2586 | return (PyObject*) newobj; |
2587 | } |
2588 | return SWIG_Py_Void(); |
2589 | } |
2590 | |
2591 | assert(!(flags & SWIG_BUILTIN_TP_INIT))((void)0); |
2592 | |
2593 | robj = SwigPyObject_New(ptr, type, own); |
2594 | if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) { |
2595 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); |
2596 | Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(robj)))); } while (0); |
2597 | robj = inst; |
2598 | } |
2599 | return robj; |
2600 | } |
2601 | |
2602 | /* Create a new packed object */ |
2603 | |
2604 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2605 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
2606 | return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
2607 | } |
2608 | |
2609 | /* -----------------------------------------------------------------------------* |
2610 | * Get type list |
2611 | * -----------------------------------------------------------------------------*/ |
2612 | |
2613 | #ifdef SWIG_LINK_RUNTIME |
2614 | void *SWIG_ReturnGlobalTypeList(void *); |
2615 | #endif |
2616 | |
2617 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info * |
2618 | SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { |
2619 | static void *type_pointer = (void *)0; |
2620 | /* first check if module already created */ |
2621 | if (!type_pointer) { |
2622 | #ifdef SWIG_LINK_RUNTIME |
2623 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); |
2624 | #else |
2625 | # ifdef SWIGPY_USE_CAPSULE |
2626 | type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0); |
2627 | # else |
2628 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4", |
2629 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); |
2630 | # endif |
2631 | if (PyErr_Occurred()) { |
2632 | PyErr_Clear(); |
2633 | type_pointer = (void *)0; |
2634 | } |
2635 | #endif |
2636 | } |
2637 | return (swig_module_info *) type_pointer; |
2638 | } |
2639 | |
2640 | #if PY_MAJOR_VERSION2 < 2 |
2641 | /* PyModule_AddObject function was introduced in Python 2.0. The following function |
2642 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
2643 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
2644 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) |
2645 | { |
2646 | PyObject *dict; |
2647 | if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype ((((PyObject*)(m))->ob_type), (&PyModule_Type)))) { |
2648 | PyErr_SetString(PyExc_TypeError, |
2649 | "PyModule_AddObject() needs module as first arg"); |
2650 | return SWIG_ERROR(-1); |
2651 | } |
2652 | if (!o) { |
2653 | PyErr_SetString(PyExc_TypeError, |
2654 | "PyModule_AddObject() needs non-NULL value"); |
2655 | return SWIG_ERROR(-1); |
2656 | } |
2657 | |
2658 | dict = PyModule_GetDict(m); |
2659 | if (dict == NULL__null) { |
2660 | /* Internal error -- modules must have a dict! */ |
2661 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", |
2662 | PyModule_GetName(m)); |
2663 | return SWIG_ERROR(-1); |
2664 | } |
2665 | if (PyDict_SetItemString(dict, name, o)) |
2666 | return SWIG_ERROR(-1); |
2667 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); |
2668 | return SWIG_OK(0); |
2669 | } |
2670 | #endif |
2671 | |
2672 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2673 | #ifdef SWIGPY_USE_CAPSULE |
2674 | SWIG_Python_DestroyModule(PyObject *obj) |
2675 | #else |
2676 | SWIG_Python_DestroyModule(void *vptr) |
2677 | #endif |
2678 | { |
2679 | #ifdef SWIGPY_USE_CAPSULE |
2680 | swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" )); |
2681 | #else |
2682 | swig_module_info *swig_module = (swig_module_info *) vptr; |
2683 | #endif |
2684 | swig_type_info **types = swig_module->types; |
2685 | size_t i; |
2686 | for (i =0; i < swig_module->size; ++i) { |
2687 | swig_type_info *ty = types[i]; |
2688 | if (ty->owndata) { |
2689 | SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; |
2690 | if (data) SwigPyClientData_Del(data); |
2691 | } |
2692 | } |
2693 | Py_DECREF(SWIG_This())do { if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(SWIG_This())))); } while (0); |
2694 | swig_this = NULL__null; |
2695 | } |
2696 | |
2697 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2698 | SWIG_Python_SetModule(swig_module_info *swig_module) { |
2699 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2700 | /* Add a dummy module object into sys.modules */ |
2701 | PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4"); |
2702 | #else |
2703 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */ |
2704 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table)Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table , (char *)__null, (PyObject *)__null, 1013); |
2705 | #endif |
2706 | #ifdef SWIGPY_USE_CAPSULE |
2707 | PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule); |
2708 | if (pointer && module) { |
2709 | PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); |
2710 | } else { |
2711 | Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*) (pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pointer)))); } while (0); } while (0); |
2712 | } |
2713 | #else |
2714 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
2715 | if (pointer && module) { |
2716 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); |
2717 | } else { |
2718 | Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*) (pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pointer)))); } while (0); } while (0); |
2719 | } |
2720 | #endif |
2721 | } |
2722 | |
2723 | /* The python cached type query */ |
2724 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2725 | SWIG_Python_TypeCache(void) { |
2726 | static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New(); |
2727 | return cache; |
2728 | } |
2729 | |
2730 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2731 | SWIG_Python_TypeQuery(const char *type) |
2732 | { |
2733 | PyObject *cache = SWIG_Python_TypeCache(); |
2734 | PyObject *key = SWIG_Python_str_FromChar(type); |
2735 | PyObject *obj = PyDict_GetItem(cache, key); |
2736 | swig_type_info *descriptor; |
2737 | if (obj) { |
2738 | #ifdef SWIGPY_USE_CAPSULE |
2739 | descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null); |
2740 | #else |
2741 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); |
2742 | #endif |
2743 | } else { |
2744 | swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0); |
2745 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); |
2746 | if (descriptor) { |
2747 | #ifdef SWIGPY_USE_CAPSULE |
2748 | obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null); |
2749 | #else |
2750 | obj = PyCObject_FromVoidPtr(descriptor, NULL__null); |
2751 | #endif |
2752 | PyDict_SetItem(cache, key, obj); |
2753 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2754 | } |
2755 | } |
2756 | Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(key)))); } while (0); |
2757 | return descriptor; |
2758 | } |
2759 | |
2760 | /* |
2761 | For backward compatibility only |
2762 | */ |
2763 | #define SWIG_POINTER_EXCEPTION0 0 |
2764 | #define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg) |
2765 | #define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) |
2766 | |
2767 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2768 | SWIG_Python_AddErrMesg(const char* mesg, int infront) |
2769 | { |
2770 | if (PyErr_Occurred()) { |
2771 | PyObject *type = 0; |
2772 | PyObject *value = 0; |
2773 | PyObject *traceback = 0; |
2774 | PyErr_Fetch(&type, &value, &traceback); |
2775 | if (value) { |
2776 | char *tmp; |
2777 | PyObject *old_str = PyObject_Str(value); |
2778 | Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt ++); } while (0); |
2779 | PyErr_Clear(); |
2780 | if (infront) { |
2781 | PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); |
2782 | } else { |
2783 | PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); |
2784 | } |
2785 | SWIG_Python_str_DelForPy3(tmp); |
2786 | Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(old_str)))); } while (0); |
2787 | } |
2788 | return 1; |
2789 | } else { |
2790 | return 0; |
2791 | } |
2792 | } |
2793 | |
2794 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2795 | SWIG_Python_ArgFail(int argnum) |
2796 | { |
2797 | if (PyErr_Occurred()) { |
2798 | /* add information about failing argument */ |
2799 | char mesg[256]; |
2800 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
2801 | return SWIG_Python_AddErrMesg(mesg, 1); |
2802 | } else { |
2803 | return 0; |
2804 | } |
2805 | } |
2806 | |
2807 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
2808 | SwigPyObject_GetDesc(PyObject *self) |
2809 | { |
2810 | SwigPyObject *v = (SwigPyObject *)self; |
2811 | swig_type_info *ty = v ? v->ty : 0; |
2812 | return ty ? ty->str : ""; |
2813 | } |
2814 | |
2815 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2816 | SWIG_Python_TypeError(const char *type, PyObject *obj) |
2817 | { |
2818 | if (type) { |
2819 | #if defined(SWIG_COBJECT_TYPES) |
2820 | if (obj && SwigPyObject_Check(obj)) { |
2821 | const char *otype = (const char *) SwigPyObject_GetDesc(obj); |
2822 | if (otype) { |
2823 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", |
2824 | type, otype); |
2825 | return; |
2826 | } |
2827 | } else |
2828 | #endif |
2829 | { |
2830 | const char *otype = (obj ? obj->ob_type->tp_name : 0); |
2831 | if (otype) { |
2832 | PyObject *str = PyObject_Str(obj); |
2833 | const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; |
2834 | if (cstr) { |
2835 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", |
2836 | type, otype, cstr); |
2837 | SWIG_Python_str_DelForPy3(cstr); |
2838 | } else { |
2839 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", |
2840 | type, otype); |
2841 | } |
2842 | Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (str)))); } while (0); } while (0); |
2843 | return; |
2844 | } |
2845 | } |
2846 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); |
2847 | } else { |
2848 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); |
2849 | } |
2850 | } |
2851 | |
2852 | |
2853 | /* Convert a pointer value, signal an exception on a type mismatch */ |
2854 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void * |
2855 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { |
2856 | void *result; |
2857 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) { |
2858 | PyErr_Clear(); |
2859 | #if SWIG_POINTER_EXCEPTION0 |
2860 | if (flags) { |
2861 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); |
2862 | SWIG_Python_ArgFail(argnum); |
2863 | } |
2864 | #endif |
2865 | } |
2866 | return result; |
2867 | } |
2868 | |
2869 | #ifdef SWIGPYTHON_BUILTIN |
2870 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2871 | SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { |
2872 | PyTypeObject *tp = obj->ob_type; |
2873 | PyObject *descr; |
2874 | PyObject *encoded_name; |
2875 | descrsetfunc f; |
2876 | int res = -1; |
2877 | |
2878 | # ifdef Py_USING_UNICODE1 |
2879 | if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) { |
2880 | name = PyUnicode_DecodePyUnicodeUCS2_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null); |
2881 | if (!name) |
2882 | return -1; |
2883 | } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<28))) != 0)) |
2884 | # else |
2885 | if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) |
2886 | # endif |
2887 | { |
2888 | PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); |
2889 | return -1; |
2890 | } else { |
2891 | Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++); |
2892 | } |
2893 | |
2894 | if (!tp->tp_dict) { |
2895 | if (PyType_Ready(tp) < 0) |
2896 | goto done; |
2897 | } |
2898 | |
2899 | descr = _PyType_Lookup(tp, name); |
2900 | f = NULL__null; |
2901 | if (descr != NULL__null) |
2902 | f = descr->ob_type->tp_descr_set; |
2903 | if (!f) { |
2904 | if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) { |
2905 | encoded_name = name; |
2906 | Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++); |
2907 | } else { |
2908 | encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(name); |
2909 | } |
2910 | PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); |
2911 | Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(encoded_name)))); } while (0); |
2912 | } else { |
2913 | res = f(descr, obj, value); |
2914 | } |
2915 | |
2916 | done: |
2917 | Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(name)))); } while (0); |
2918 | return res; |
2919 | } |
2920 | #endif |
2921 | |
2922 | |
2923 | #ifdef __cplusplus199711L |
2924 | } |
2925 | #endif |
2926 | |
2927 | |
2928 | |
2929 | #define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg ); goto fail; } while(0) do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0) |
2930 | |
2931 | #define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType( -3), msg); goto fail; } else if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else |
2932 | |
2933 | |
2934 | |
2935 | #define SWIG_exception(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg ); goto fail;; } while(0) do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail;; } while(0) |
2936 | |
2937 | |
2938 | /* -------- TYPES TABLE (BEGIN) -------- */ |
2939 | |
2940 | #define SWIGTYPE_p_GBaseswig_types[0] swig_types[0] |
2941 | #define SWIGTYPE_p_GContainerswig_types[1] swig_types[1] |
2942 | #define SWIGTYPE_p_GCsvswig_types[2] swig_types[2] |
2943 | #define SWIGTYPE_p_GNodeArrayswig_types[3] swig_types[3] |
2944 | #define SWIGTYPE_p_GRanswig_types[4] swig_types[4] |
2945 | #define SWIGTYPE_p_GUrlswig_types[5] swig_types[5] |
2946 | #define SWIGTYPE_p_GUrlFileswig_types[6] swig_types[6] |
2947 | #define SWIGTYPE_p_GUrlStringswig_types[7] swig_types[7] |
2948 | #define SWIGTYPE_p_GVectorswig_types[8] swig_types[8] |
2949 | #define SWIGTYPE_p_charswig_types[9] swig_types[9] |
2950 | #define SWIGTYPE_p_doubleswig_types[10] swig_types[10] |
2951 | #define SWIGTYPE_p_intswig_types[11] swig_types[11] |
2952 | #define SWIGTYPE_p_std__invalid_argumentswig_types[12] swig_types[12] |
2953 | #define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_tswig_types[13] swig_types[13] |
2954 | #define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_tswig_types[14] swig_types[14] |
2955 | #define SWIGTYPE_p_swig__SwigPyIteratorswig_types[15] swig_types[15] |
2956 | static swig_type_info *swig_types[17]; |
2957 | static swig_module_info swig_module = {swig_types, 16, 0, 0, 0, 0}; |
2958 | #define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name ) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2959 | #define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module , name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
2960 | |
2961 | /* -------- TYPES TABLE (END) -------- */ |
2962 | |
2963 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x02000000) |
2964 | # if !defined(SWIG_PYTHON_CLASSIC) |
2965 | # error "This python version requires swig to be run with the '-classic' option" |
2966 | # endif |
2967 | #endif |
2968 | |
2969 | /*----------------------------------------------- |
2970 | @(target):= _support.so |
2971 | ------------------------------------------------*/ |
2972 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2973 | # define SWIG_initinit_support PyInit__support |
2974 | |
2975 | #else |
2976 | # define SWIG_initinit_support init_support |
2977 | |
2978 | #endif |
2979 | #define SWIG_name"_support" "_support" |
2980 | |
2981 | #define SWIGVERSION0x020011 0x020011 |
2982 | #define SWIG_VERSION0x020011 SWIGVERSION0x020011 |
2983 | |
2984 | |
2985 | #define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >( a)) const_cast< void * >(static_cast< const void * >(a)) |
2986 | #define SWIG_as_voidptrptr(a)((void)const_cast< void * >(static_cast< const void * >(*a)),reinterpret_cast< void** >(a)) ((void)SWIG_as_voidptr(*a)const_cast< void * >(static_cast< const void * >( *a)),reinterpret_cast< void** >(a)) |
2987 | |
2988 | |
2989 | #include <stdexcept> |
2990 | |
2991 | |
2992 | namespace swig { |
2993 | class SwigPtr_PyObject { |
2994 | protected: |
2995 | PyObject *_obj; |
2996 | |
2997 | public: |
2998 | SwigPtr_PyObject() :_obj(0) |
2999 | { |
3000 | } |
3001 | |
3002 | SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) |
3003 | { |
3004 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3005 | } |
3006 | |
3007 | SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) |
3008 | { |
3009 | if (initial_ref) { |
3010 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3011 | } |
3012 | } |
3013 | |
3014 | SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) |
3015 | { |
3016 | Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj ))->ob_refcnt++); } while (0); |
3017 | Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(_obj)))); } while (0); } while (0); |
3018 | _obj = item._obj; |
3019 | return *this; |
3020 | } |
3021 | |
3022 | ~SwigPtr_PyObject() |
3023 | { |
3024 | Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(_obj)))); } while (0); } while (0); |
3025 | } |
3026 | |
3027 | operator PyObject *() const |
3028 | { |
3029 | return _obj; |
3030 | } |
3031 | |
3032 | PyObject *operator->() const |
3033 | { |
3034 | return _obj; |
3035 | } |
3036 | }; |
3037 | } |
3038 | |
3039 | |
3040 | namespace swig { |
3041 | struct SwigVar_PyObject : SwigPtr_PyObject { |
3042 | SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } |
3043 | |
3044 | SwigVar_PyObject & operator = (PyObject* obj) |
3045 | { |
3046 | Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(_obj)))); } while (0); } while (0); |
3047 | _obj = obj; |
3048 | return *this; |
3049 | } |
3050 | }; |
3051 | } |
3052 | |
3053 | |
3054 | #include <stddef.h> |
3055 | #include "GException.hpp" |
3056 | #include "GTools.hpp" |
3057 | |
3058 | |
3059 | #include <stdexcept> |
3060 | |
3061 | |
3062 | #if defined(__GNUC__4) |
3063 | # if __GNUC__4 == 2 && __GNUC_MINOR <= 96 |
3064 | # define SWIG_STD_NOMODERN_STL |
3065 | # endif |
3066 | #endif |
3067 | |
3068 | |
3069 | #include <string> |
3070 | #include <stdexcept> |
3071 | #include <stddef.h> |
3072 | |
3073 | |
3074 | #include <string> |
3075 | |
3076 | |
3077 | #include <iostream> |
3078 | |
3079 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
3080 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj)) |
3081 | #else |
3082 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj)) |
3083 | #endif |
3084 | |
3085 | |
3086 | #include <stddef.h> |
3087 | |
3088 | |
3089 | namespace swig { |
3090 | struct stop_iteration { |
3091 | }; |
3092 | |
3093 | struct SwigPyIterator { |
3094 | private: |
3095 | SwigPtr_PyObject _seq; |
3096 | |
3097 | protected: |
3098 | SwigPyIterator(PyObject *seq) : _seq(seq) |
3099 | { |
3100 | } |
3101 | |
3102 | public: |
3103 | virtual ~SwigPyIterator() {} |
3104 | |
3105 | // Access iterator method, required by Python |
3106 | virtual PyObject *value() const = 0; |
3107 | |
3108 | // Forward iterator method, required by Python |
3109 | virtual SwigPyIterator *incr(size_t n = 1) = 0; |
3110 | |
3111 | // Backward iterator method, very common in C++, but not required in Python |
3112 | virtual SwigPyIterator *decr(size_t /*n*/ = 1) |
3113 | { |
3114 | throw stop_iteration(); |
3115 | } |
3116 | |
3117 | // Random access iterator methods, but not required in Python |
3118 | virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const |
3119 | { |
3120 | throw std::invalid_argument("operation not supported"); |
3121 | } |
3122 | |
3123 | virtual bool equal (const SwigPyIterator &/*x*/) const |
3124 | { |
3125 | throw std::invalid_argument("operation not supported"); |
3126 | } |
3127 | |
3128 | // C++ common/needed methods |
3129 | virtual SwigPyIterator *copy() const = 0; |
3130 | |
3131 | PyObject *next() |
3132 | { |
3133 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3134 | PyObject *obj = value(); |
3135 | incr(); |
3136 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3137 | return obj; |
3138 | } |
3139 | |
3140 | /* Make an alias for Python 3.x */ |
3141 | PyObject *__next__() |
3142 | { |
3143 | return next(); |
3144 | } |
3145 | |
3146 | PyObject *previous() |
3147 | { |
3148 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3149 | decr(); |
3150 | PyObject *obj = value(); |
3151 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3152 | return obj; |
3153 | } |
3154 | |
3155 | SwigPyIterator *advance(ptrdiff_t n) |
3156 | { |
3157 | return (n > 0) ? incr(n) : decr(-n); |
3158 | } |
3159 | |
3160 | bool operator == (const SwigPyIterator& x) const |
3161 | { |
3162 | return equal(x); |
3163 | } |
3164 | |
3165 | bool operator != (const SwigPyIterator& x) const |
3166 | { |
3167 | return ! operator==(x); |
3168 | } |
3169 | |
3170 | SwigPyIterator& operator += (ptrdiff_t n) |
3171 | { |
3172 | return *advance(n); |
3173 | } |
3174 | |
3175 | SwigPyIterator& operator -= (ptrdiff_t n) |
3176 | { |
3177 | return *advance(-n); |
3178 | } |
3179 | |
3180 | SwigPyIterator* operator + (ptrdiff_t n) const |
3181 | { |
3182 | return copy()->advance(n); |
3183 | } |
3184 | |
3185 | SwigPyIterator* operator - (ptrdiff_t n) const |
3186 | { |
3187 | return copy()->advance(-n); |
3188 | } |
3189 | |
3190 | ptrdiff_t operator - (const SwigPyIterator& x) const |
3191 | { |
3192 | return x.distance(*this); |
3193 | } |
3194 | |
3195 | static swig_type_info* descriptor() { |
3196 | static int init = 0; |
3197 | static swig_type_info* desc = 0; |
3198 | if (!init) { |
3199 | desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *" ); |
3200 | init = 1; |
3201 | } |
3202 | return desc; |
3203 | } |
3204 | }; |
3205 | |
3206 | #if defined(SWIGPYTHON_BUILTIN) |
3207 | inline PyObject* make_output_iterator_builtin (PyObject *pyself) |
3208 | { |
3209 | Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++); |
3210 | return pyself; |
3211 | } |
3212 | #endif |
3213 | } |
3214 | |
3215 | |
3216 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3217 | SWIG_AsVal_double (PyObject *obj, double *val) |
3218 | { |
3219 | int res = SWIG_TypeError-5; |
3220 | if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype ((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))) { |
3221 | if (val) *val = PyFloat_AsDouble(obj); |
3222 | return SWIG_OK(0); |
3223 | } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3224 | if (val) *val = PyInt_AsLong(obj); |
3225 | return SWIG_OK(0); |
3226 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3227 | double v = PyLong_AsDouble(obj); |
3228 | if (!PyErr_Occurred()) { |
3229 | if (val) *val = v; |
3230 | return SWIG_OK(0); |
3231 | } else { |
3232 | PyErr_Clear(); |
3233 | } |
3234 | } |
3235 | #ifdef SWIG_PYTHON_CAST_MODE |
3236 | { |
3237 | int dispatch = 0; |
3238 | double d = PyFloat_AsDouble(obj); |
3239 | if (!PyErr_Occurred()) { |
3240 | if (val) *val = d; |
3241 | return SWIG_AddCast(SWIG_OK)((0)); |
3242 | } else { |
3243 | PyErr_Clear(); |
3244 | } |
3245 | if (!dispatch) { |
3246 | long v = PyLong_AsLong(obj); |
3247 | if (!PyErr_Occurred()) { |
3248 | if (val) *val = v; |
3249 | return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0))); |
3250 | } else { |
3251 | PyErr_Clear(); |
3252 | } |
3253 | } |
3254 | } |
3255 | #endif |
3256 | return res; |
3257 | } |
3258 | |
3259 | |
3260 | #include <float.h> |
3261 | |
3262 | |
3263 | #include <math.h> |
3264 | |
3265 | |
3266 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3267 | SWIG_CanCastAsInteger(double *d, double min, double max) { |
3268 | double x = *d; |
3269 | if ((min <= x && x <= max)) { |
3270 | double fx = floor(x); |
3271 | double cx = ceil(x); |
3272 | double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
3273 | if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) { |
3274 | errno(*__error()) = 0; |
3275 | } else { |
3276 | double summ, reps, diff; |
3277 | if (rd < x) { |
3278 | diff = x - rd; |
3279 | } else if (rd > x) { |
3280 | diff = rd - x; |
3281 | } else { |
3282 | return 1; |
3283 | } |
3284 | summ = rd + x; |
3285 | reps = diff/summ; |
3286 | if (reps < 8*DBL_EPSILON2.2204460492503131e-16) { |
3287 | *d = rd; |
3288 | return 1; |
3289 | } |
3290 | } |
3291 | } |
3292 | return 0; |
3293 | } |
3294 | |
3295 | |
3296 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3297 | SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) |
3298 | { |
3299 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
3300 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3301 | long v = PyInt_AsLong(obj); |
3302 | if (v >= 0) { |
3303 | if (val) *val = v; |
3304 | return SWIG_OK(0); |
3305 | } else { |
3306 | return SWIG_OverflowError-7; |
3307 | } |
3308 | } else |
3309 | #endif |
3310 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3311 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3312 | if (!PyErr_Occurred()) { |
3313 | if (val) *val = v; |
3314 | return SWIG_OK(0); |
3315 | } else { |
3316 | PyErr_Clear(); |
3317 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3318 | { |
3319 | long v = PyLong_AsLong(obj); |
3320 | if (!PyErr_Occurred()) { |
3321 | if (v < 0) { |
3322 | return SWIG_OverflowError-7; |
3323 | } |
3324 | } else { |
3325 | PyErr_Clear(); |
3326 | } |
3327 | } |
3328 | #endif |
3329 | } |
3330 | } |
3331 | #ifdef SWIG_PYTHON_CAST_MODE |
3332 | { |
3333 | int dispatch = 0; |
3334 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3335 | if (!PyErr_Occurred()) { |
3336 | if (val) *val = v; |
3337 | return SWIG_AddCast(SWIG_OK)((0)); |
3338 | } else { |
3339 | PyErr_Clear(); |
3340 | } |
3341 | if (!dispatch) { |
3342 | double d; |
3343 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3344 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) { |
3345 | if (val) *val = (unsigned long)(d); |
3346 | return res; |
3347 | } |
3348 | } |
3349 | } |
3350 | #endif |
3351 | return SWIG_TypeError-5; |
3352 | } |
3353 | |
3354 | |
3355 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3356 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
3357 | { |
3358 | unsigned long v; |
3359 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
3360 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v); |
3361 | return res; |
3362 | } |
3363 | |
3364 | |
3365 | #define SWIG_From_longPyLong_FromLong PyLong_FromLong |
3366 | |
3367 | |
3368 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3369 | SWIG_From_ptrdiff_t (ptrdiff_t value) |
3370 | { |
3371 | return SWIG_From_longPyLong_FromLong (static_cast< long >(value)); |
3372 | } |
3373 | |
3374 | |
3375 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3376 | SWIG_From_bool (bool value) |
3377 | { |
3378 | return PyBool_FromLong(value ? 1 : 0); |
3379 | } |
3380 | |
3381 | |
3382 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3383 | SWIG_AsVal_long (PyObject *obj, long* val) |
3384 | { |
3385 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3386 | if (val) *val = PyInt_AsLong(obj); |
3387 | return SWIG_OK(0); |
3388 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3389 | long v = PyLong_AsLong(obj); |
3390 | if (!PyErr_Occurred()) { |
3391 | if (val) *val = v; |
3392 | return SWIG_OK(0); |
3393 | } else { |
3394 | PyErr_Clear(); |
3395 | } |
3396 | } |
3397 | #ifdef SWIG_PYTHON_CAST_MODE |
3398 | { |
3399 | int dispatch = 0; |
3400 | long v = PyInt_AsLong(obj); |
3401 | if (!PyErr_Occurred()) { |
3402 | if (val) *val = v; |
3403 | return SWIG_AddCast(SWIG_OK)((0)); |
3404 | } else { |
3405 | PyErr_Clear(); |
3406 | } |
3407 | if (!dispatch) { |
3408 | double d; |
3409 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3410 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) { |
3411 | if (val) *val = (long)(d); |
3412 | return res; |
3413 | } |
3414 | } |
3415 | } |
3416 | #endif |
3417 | return SWIG_TypeError-5; |
3418 | } |
3419 | |
3420 | |
3421 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3422 | SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) |
3423 | { |
3424 | long v; |
3425 | int res = SWIG_AsVal_long (obj, val ? &v : 0); |
3426 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v); |
3427 | return res; |
3428 | } |
3429 | |
3430 | |
3431 | #include <stdexcept> |
3432 | |
3433 | |
3434 | #include <algorithm> |
3435 | |
3436 | |
3437 | #include <vector> |
3438 | |
3439 | |
3440 | #include <utility> |
3441 | |
3442 | |
3443 | #include <map> |
3444 | #include <algorithm> |
3445 | #include <stdexcept> |
3446 | |
3447 | |
3448 | /* Put headers and other declarations here */ |
3449 | #include "GException.hpp" |
3450 | |
3451 | |
3452 | /* Put headers and other declarations here that are needed for compilation */ |
3453 | #include "GTools.hpp" |
3454 | |
3455 | |
3456 | #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble |
3457 | |
3458 | |
3459 | SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info* |
3460 | SWIG_pchar_descriptor(void) |
3461 | { |
3462 | static int init = 0; |
3463 | static swig_type_info* info = 0; |
3464 | if (!init) { |
3465 | info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char" ); |
3466 | init = 1; |
3467 | } |
3468 | return info; |
3469 | } |
3470 | |
3471 | |
3472 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3473 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) |
3474 | { |
3475 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3476 | if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0)) |
3477 | #else |
3478 | if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0)) |
3479 | #endif |
3480 | { |
3481 | char *cstr; Py_ssize_t len; |
3482 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3483 | if (!alloc && cptr) { |
3484 | /* We can't allow converting without allocation, since the internal |
3485 | representation of string in Python 3 is UCS-2/UCS-4 but we require |
3486 | a UTF-8 representation. |
3487 | TODO(bhy) More detailed explanation */ |
3488 | return SWIG_RuntimeError-3; |
3489 | } |
3490 | obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj); |
3491 | PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len); |
3492 | if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3493 | #else |
3494 | PyString_AsStringAndSize(obj, &cstr, &len); |
3495 | #endif |
3496 | if (cptr) { |
3497 | if (alloc) { |
3498 | /* |
3499 | In python the user should not be able to modify the inner |
3500 | string representation. To warranty that, if you define |
3501 | SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string |
3502 | buffer is always returned. |
3503 | |
3504 | The default behavior is just to return the pointer value, |
3505 | so, be careful. |
3506 | */ |
3507 | #if defined(SWIG_PYTHON_SAFE_CSTRINGS) |
3508 | if (*alloc != SWIG_OLDOBJ((0))) |
3509 | #else |
3510 | if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) |
3511 | #endif |
3512 | { |
3513 | *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); |
3514 | *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3515 | } |
3516 | else { |
3517 | *cptr = cstr; |
3518 | *alloc = SWIG_OLDOBJ((0)); |
3519 | } |
3520 | } else { |
3521 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3522 | assert(0)((void)0); /* Should never reach here in Python 3 */ |
3523 | #endif |
3524 | *cptr = SWIG_Python_str_AsChar(obj); |
3525 | } |
3526 | } |
3527 | if (psize) *psize = len + 1; |
3528 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3529 | Py_XDECREF(obj)do { if ((obj) == __null) ; else do { if ( --((PyObject*)(obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (obj)))); } while (0); } while (0); |
3530 | #endif |
3531 | return SWIG_OK(0); |
3532 | } else { |
3533 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3534 | if (pchar_descriptor) { |
3535 | void* vptr = 0; |
3536 | if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor , 0, 0) == SWIG_OK(0)) { |
3537 | if (cptr) *cptr = (char *) vptr; |
3538 | if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; |
3539 | if (alloc) *alloc = SWIG_OLDOBJ((0)); |
3540 | return SWIG_OK(0); |
3541 | } |
3542 | } |
3543 | } |
3544 | return SWIG_TypeError-5; |
3545 | } |
3546 | |
3547 | |
3548 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3549 | SWIG_AsPtr_std_string (PyObject * obj, std::string **val) |
3550 | { |
3551 | char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0)); |
3552 | if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc) ) >= 0)) { |
3553 | if (buf) { |
3554 | if (val) *val = new std::string(buf, size - 1); |
3555 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf; |
3556 | return SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3557 | } else { |
3558 | if (val) *val = 0; |
3559 | return SWIG_OLDOBJ((0)); |
3560 | } |
3561 | } else { |
3562 | static int init = 0; |
3563 | static swig_type_info* descriptor = 0; |
3564 | if (!init) { |
3565 | descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string" " *"); |
3566 | init = 1; |
3567 | } |
3568 | if (descriptor) { |
3569 | std::string *vptr; |
3570 | int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor , 0, 0); |
3571 | if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr; |
3572 | return res; |
3573 | } |
3574 | } |
3575 | return SWIG_ERROR(-1); |
3576 | } |
3577 | |
3578 | |
3579 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3580 | SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
3581 | { |
3582 | if (carray) { |
3583 | if (size > INT_MAX2147483647) { |
3584 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3585 | return pchar_descriptor ? |
3586 | SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >( carray), pchar_descriptor, 0) : SWIG_Py_Void(); |
3587 | } else { |
3588 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3589 | return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size)); |
3590 | #else |
3591 | return PyString_FromStringAndSize(carray, static_cast< int >(size)); |
3592 | #endif |
3593 | } |
3594 | } else { |
3595 | return SWIG_Py_Void(); |
3596 | } |
3597 | } |
3598 | |
3599 | |
3600 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3601 | SWIG_From_std_string (const std::string& s) |
3602 | { |
3603 | return SWIG_FromCharPtrAndSize(s.data(), s.size()); |
3604 | } |
3605 | |
3606 | |
3607 | #include <limits.h> |
3608 | #if !defined(SWIG_NO_LLONG_MAX) |
3609 | # if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL) |
3610 | # define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL |
3611 | # define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL) |
3612 | # define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL) |
3613 | # endif |
3614 | #endif |
3615 | |
3616 | |
3617 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3618 | SWIG_AsVal_int (PyObject * obj, int *val) |
3619 | { |
3620 | long v; |
3621 | int res = SWIG_AsVal_long (obj, &v); |
3622 | if (SWIG_IsOK(res)(res >= 0)) { |
3623 | if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) { |
3624 | return SWIG_OverflowError-7; |
3625 | } else { |
3626 | if (val) *val = static_cast< int >(v); |
3627 | } |
3628 | } |
3629 | return res; |
3630 | } |
3631 | |
3632 | |
3633 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3634 | SWIG_AsCharArray(PyObject * obj, char *val, size_t size) |
3635 | { |
3636 | char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ((0)); |
3637 | int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); |
3638 | if (SWIG_IsOK(res)(res >= 0)) { |
3639 | if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; |
3640 | if (csize <= size) { |
3641 | if (val) { |
3642 | if (csize) memcpy(val, cptr, csize*sizeof(char)); |
3643 | if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); |
3644 | } |
3645 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) { |
3646 | delete[] cptr; |
3647 | res = SWIG_DelNewMask(res)((res >= 0) ? (res & ~((1 << 8) << 1)) : res ); |
3648 | } |
3649 | return res; |
3650 | } |
3651 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] cptr; |
3652 | } |
3653 | return SWIG_TypeError-5; |
3654 | } |
3655 | |
3656 | |
3657 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3658 | SWIG_AsVal_char (PyObject * obj, char *val) |
3659 | { |
3660 | int res = SWIG_AsCharArray(obj, val, 1); |
3661 | if (!SWIG_IsOK(res)(res >= 0)) { |
3662 | long v; |
3663 | res = SWIG_AddCast(SWIG_AsVal_long (obj, &v))(SWIG_AsVal_long (obj, &v)); |
3664 | if (SWIG_IsOK(res)(res >= 0)) { |
3665 | if ((CHAR_MIN(-127 -1) <= v) && (v <= CHAR_MAX127)) { |
3666 | if (val) *val = static_cast< char >(v); |
3667 | } else { |
3668 | res = SWIG_OverflowError-7; |
3669 | } |
3670 | } |
3671 | } |
3672 | return res; |
3673 | } |
3674 | |
3675 | |
3676 | /* Put headers and other declarations here that are needed for compilation */ |
3677 | #include "GNodeArray.hpp" |
3678 | |
3679 | |
3680 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3681 | SWIG_From_int (int value) |
3682 | { |
3683 | return PyInt_FromLong((long) value); |
3684 | } |
3685 | |
3686 | SWIGINTERNstatic __attribute__ ((__unused__)) double GNodeArray___getitem__(GNodeArray *self,int const &index){ |
3687 | if (index >= 0 && index < self->size()) { |
3688 | return (*self)[index]; |
3689 | } |
3690 | else { |
3691 | throw GException::out_of_range("__getitem__(int)", index, self->size()); |
3692 | } |
3693 | } |
3694 | SWIGINTERNstatic __attribute__ ((__unused__)) void GNodeArray___setitem__(GNodeArray *self,int const &index,double const &val){ |
3695 | if (index>=0 && index < self->size()) { |
3696 | (*self)[index] = val; |
3697 | return; |
3698 | } |
3699 | else { |
3700 | throw GException::out_of_range("__setitem__(int)", index, self->size()); |
3701 | } |
3702 | } |
3703 | SWIGINTERNstatic __attribute__ ((__unused__)) GNodeArray GNodeArray_copy(GNodeArray *self){ |
3704 | return (*self); |
3705 | } |
3706 | |
3707 | /* Put headers and other declarations here that are needed for compilation */ |
3708 | #include "GCsv.hpp" |
3709 | #include "GTools.hpp" |
3710 | |
3711 | |
3712 | static int csv_tuple(PyObject *input, int *ptr) { |
3713 | if (PySequence_Check(input)) { |
3714 | int size = PyObject_LengthPyObject_Size(input); |
3715 | if (size > 2) { |
3716 | PyErr_SetString(PyExc_ValueError,"Too many arguments in tuple"); |
3717 | return 0; |
3718 | } |
3719 | for (int i = 0; i < size; i++) { |
3720 | PyObject *o = PySequence_GetItem(input,i); |
3721 | if (!PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0 )) { |
3722 | Py_XDECREF(o)do { if ((o) == __null) ; else do { if ( --((PyObject*)(o))-> ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(o)))-> ob_type)->tp_dealloc)((PyObject *)((PyObject *)(o)))); } while (0); } while (0); |
3723 | PyErr_SetString(PyExc_ValueError,"Expecting a tuple of integers"); |
3724 | return 0; |
3725 | } |
3726 | ptr[i] = (int)PyInt_AsLong(o); |
3727 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); |
3728 | } |
3729 | return 1; |
3730 | } |
3731 | else { |
3732 | ptr[0] = 1; |
3733 | if (!PyInt_Check(input)((((input)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3734 | PyErr_SetString(PyExc_ValueError,"Expecting an integer"); |
3735 | return 0; |
3736 | } |
3737 | ptr[1] = (int)PyInt_AsLong(input); |
3738 | return 1; |
3739 | } |
3740 | } |
3741 | |
3742 | SWIGINTERNstatic __attribute__ ((__unused__)) std::string GCsv___getitem__(GCsv *self,int GCsvInx[]){ |
3743 | return (*self)(GCsvInx[0], GCsvInx[1]); |
3744 | } |
3745 | SWIGINTERNstatic __attribute__ ((__unused__)) void GCsv___setitem__(GCsv *self,int GCsvInx[],std::string value){ |
3746 | (*self)(GCsvInx[0], GCsvInx[1]) = value; |
3747 | } |
3748 | SWIGINTERNstatic __attribute__ ((__unused__)) int GCsv___len__(GCsv *self){ |
3749 | return (self->size()); |
3750 | } |
3751 | SWIGINTERNstatic __attribute__ ((__unused__)) GCsv GCsv_copy(GCsv *self){ |
3752 | return (*self); |
3753 | } |
3754 | |
3755 | /* Put headers and other declarations here that are needed for compilation */ |
3756 | #include "GRan.hpp" |
3757 | #include "GTools.hpp" |
3758 | |
3759 | |
3760 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3761 | SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val) |
3762 | { |
3763 | int res = SWIG_TypeError-5; |
3764 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3765 | unsigned long long v = PyLong_AsUnsignedLongLong(obj); |
3766 | if (!PyErr_Occurred()) { |
3767 | if (val) *val = v; |
3768 | return SWIG_OK(0); |
3769 | } else { |
3770 | PyErr_Clear(); |
3771 | } |
3772 | } else { |
3773 | unsigned long v; |
3774 | res = SWIG_AsVal_unsigned_SS_long (obj,&v); |
3775 | if (SWIG_IsOK(res)(res >= 0)) { |
3776 | if (val) *val = v; |
3777 | return res; |
3778 | } |
3779 | } |
3780 | #ifdef SWIG_PYTHON_CAST_MODE |
3781 | { |
3782 | const double mant_max = 1LL << DBL_MANT_DIG53; |
3783 | double d; |
3784 | res = SWIG_AsVal_double (obj,&d); |
3785 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { |
3786 | if (val) *val = (unsigned long long)(d); |
3787 | return SWIG_AddCast(res)(res); |
3788 | } |
3789 | res = SWIG_TypeError-5; |
3790 | } |
3791 | #endif |
3792 | return res; |
3793 | } |
3794 | |
3795 | |
3796 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3797 | SWIG_From_long_SS_long (long long value) |
3798 | { |
3799 | return ((value < LONG_MIN(-9223372036854775807L -1L)) || (value > LONG_MAX9223372036854775807L)) ? |
3800 | PyLong_FromLongLong(value) : PyLong_FromLong(static_cast< long >(value)); |
3801 | } |
3802 | |
3803 | |
3804 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3805 | SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) |
3806 | { |
3807 | return (value > LONG_MAX9223372036854775807L) ? |
3808 | PyLong_FromUnsignedLongLong(value) : PyLong_FromLong(static_cast< long >(value)); |
3809 | } |
3810 | |
3811 | |
3812 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3813 | SWIG_From_unsigned_SS_long (unsigned long value) |
3814 | { |
3815 | return (value > LONG_MAX9223372036854775807L) ? |
3816 | PyLong_FromUnsignedLong(value) : PyLong_FromLong(static_cast< long >(value)); |
3817 | } |
3818 | |
3819 | SWIGINTERNstatic __attribute__ ((__unused__)) GRan GRan_copy(GRan *self){ |
3820 | return (*self); |
3821 | } |
3822 | |
3823 | /* Put headers and other declarations here that are needed for compilation */ |
3824 | #include "GUrl.hpp" |
3825 | #include "GTools.hpp" |
3826 | |
3827 | SWIGINTERNstatic __attribute__ ((__unused__)) char *GUrl_read(GUrl *self,int const &nbyte){ |
3828 | char* buffer = new char[nbyte+1]; |
3829 | int nread = self->read(buffer, nbyte); |
3830 | buffer[nread] = '\0'; |
3831 | return buffer; |
3832 | } |
3833 | |
3834 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3835 | SWIG_FromCharPtr(const char *cptr) |
3836 | { |
3837 | return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); |
3838 | } |
3839 | |
3840 | SWIGINTERNstatic __attribute__ ((__unused__)) int GUrl_write(GUrl *self,std::string const &buffer,int const &nbyte){ |
3841 | return self->write(buffer.c_str(), nbyte); |
3842 | } |
3843 | |
3844 | /* Put headers and other declarations here that are needed for compilation */ |
3845 | #include "GUrlFile.hpp" |
3846 | #include "GTools.hpp" |
3847 | |
3848 | SWIGINTERNstatic __attribute__ ((__unused__)) GUrlFile GUrlFile_copy(GUrlFile *self){ |
3849 | return (*self); |
3850 | } |
3851 | |
3852 | /* Put headers and other declarations here that are needed for compilation */ |
3853 | #include "GUrlString.hpp" |
3854 | #include "GTools.hpp" |
3855 | |
3856 | SWIGINTERNstatic __attribute__ ((__unused__)) GUrlString GUrlString_copy(GUrlString *self){ |
3857 | return (*self); |
3858 | } |
3859 | #ifdef __cplusplus199711L |
3860 | extern "C" { |
3861 | #endif |
3862 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3863 | PyObject *resultobj = 0; |
3864 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3865 | void *argp1 = 0 ; |
3866 | int res1 = 0 ; |
3867 | PyObject * obj0 = 0 ; |
3868 | |
3869 | if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail; |
3870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0x1 | 0, 0); |
3871 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
3873 | } |
3874 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3875 | delete arg1; |
3876 | resultobj = SWIG_Py_Void(); |
3877 | return resultobj; |
3878 | fail: |
3879 | return NULL__null; |
3880 | } |
3881 | |
3882 | |
3883 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3884 | PyObject *resultobj = 0; |
3885 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3886 | void *argp1 = 0 ; |
3887 | int res1 = 0 ; |
3888 | PyObject * obj0 = 0 ; |
3889 | PyObject *result = 0 ; |
3890 | |
3891 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail; |
3892 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
3893 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
3895 | } |
3896 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3897 | try { |
3898 | result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value(); |
3899 | } |
3900 | catch(swig::stop_iteration &_e) { |
3901 | { |
3902 | (void)_e; |
3903 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3904 | SWIG_failgoto fail; |
3905 | } |
3906 | } |
3907 | |
3908 | resultobj = result; |
3909 | return resultobj; |
3910 | fail: |
3911 | return NULL__null; |
3912 | } |
3913 | |
3914 | |
3915 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3916 | PyObject *resultobj = 0; |
3917 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3918 | size_t arg2 ; |
3919 | void *argp1 = 0 ; |
3920 | int res1 = 0 ; |
3921 | size_t val2 ; |
3922 | int ecode2 = 0 ; |
3923 | PyObject * obj0 = 0 ; |
3924 | PyObject * obj1 = 0 ; |
3925 | swig::SwigPyIterator *result = 0 ; |
3926 | |
3927 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail; |
3928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
3929 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
3931 | } |
3932 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3933 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3934 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'"); goto fail; } while(0); |
3936 | } |
3937 | arg2 = static_cast< size_t >(val2); |
3938 | try { |
3939 | result = (swig::SwigPyIterator *)(arg1)->incr(arg2); |
3940 | } |
3941 | catch(swig::stop_iteration &_e) { |
3942 | { |
3943 | (void)_e; |
3944 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3945 | SWIG_failgoto fail; |
3946 | } |
3947 | } |
3948 | |
3949 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0 | 0); |
3950 | return resultobj; |
3951 | fail: |
3952 | return NULL__null; |
3953 | } |
3954 | |
3955 | |
3956 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3957 | PyObject *resultobj = 0; |
3958 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3959 | void *argp1 = 0 ; |
3960 | int res1 = 0 ; |
3961 | PyObject * obj0 = 0 ; |
3962 | swig::SwigPyIterator *result = 0 ; |
3963 | |
3964 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail; |
3965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
3966 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
3968 | } |
3969 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3970 | try { |
3971 | result = (swig::SwigPyIterator *)(arg1)->incr(); |
3972 | } |
3973 | catch(swig::stop_iteration &_e) { |
3974 | { |
3975 | (void)_e; |
3976 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3977 | SWIG_failgoto fail; |
3978 | } |
3979 | } |
3980 | |
3981 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0 | 0); |
3982 | return resultobj; |
3983 | fail: |
3984 | return NULL__null; |
3985 | } |
3986 | |
3987 | |
3988 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { |
3989 | int argc; |
3990 | PyObject *argv[3]; |
3991 | int ii; |
3992 | |
3993 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
3994 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
3995 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
3996 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
3997 | } |
3998 | if (argc == 1) { |
3999 | int _v; |
4000 | void *vptr = 0; |
4001 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15 ], 0, 0); |
4002 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4003 | if (_v) { |
4004 | return _wrap_SwigPyIterator_incr__SWIG_1(self, args); |
4005 | } |
4006 | } |
4007 | if (argc == 2) { |
4008 | int _v; |
4009 | void *vptr = 0; |
4010 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15 ], 0, 0); |
4011 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4012 | if (_v) { |
4013 | { |
4014 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
4015 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4016 | } |
4017 | if (_v) { |
4018 | return _wrap_SwigPyIterator_incr__SWIG_0(self, args); |
4019 | } |
4020 | } |
4021 | } |
4022 | |
4023 | fail: |
4024 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n" |
4025 | " Possible C/C++ prototypes are:\n" |
4026 | " swig::SwigPyIterator::incr(size_t)\n" |
4027 | " swig::SwigPyIterator::incr()\n"); |
4028 | return 0; |
4029 | } |
4030 | |
4031 | |
4032 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4033 | PyObject *resultobj = 0; |
4034 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4035 | size_t arg2 ; |
4036 | void *argp1 = 0 ; |
4037 | int res1 = 0 ; |
4038 | size_t val2 ; |
4039 | int ecode2 = 0 ; |
4040 | PyObject * obj0 = 0 ; |
4041 | PyObject * obj1 = 0 ; |
4042 | swig::SwigPyIterator *result = 0 ; |
4043 | |
4044 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail; |
4045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4046 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4048 | } |
4049 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4050 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
4051 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4052 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'"); goto fail; } while(0); |
4053 | } |
4054 | arg2 = static_cast< size_t >(val2); |
4055 | try { |
4056 | result = (swig::SwigPyIterator *)(arg1)->decr(arg2); |
4057 | } |
4058 | catch(swig::stop_iteration &_e) { |
4059 | { |
4060 | (void)_e; |
4061 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4062 | SWIG_failgoto fail; |
4063 | } |
4064 | } |
4065 | |
4066 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0 | 0); |
4067 | return resultobj; |
4068 | fail: |
4069 | return NULL__null; |
4070 | } |
4071 | |
4072 | |
4073 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4074 | PyObject *resultobj = 0; |
4075 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4076 | void *argp1 = 0 ; |
4077 | int res1 = 0 ; |
4078 | PyObject * obj0 = 0 ; |
4079 | swig::SwigPyIterator *result = 0 ; |
4080 | |
4081 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail; |
4082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4083 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4085 | } |
4086 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4087 | try { |
4088 | result = (swig::SwigPyIterator *)(arg1)->decr(); |
4089 | } |
4090 | catch(swig::stop_iteration &_e) { |
4091 | { |
4092 | (void)_e; |
4093 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4094 | SWIG_failgoto fail; |
4095 | } |
4096 | } |
4097 | |
4098 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0 | 0); |
4099 | return resultobj; |
4100 | fail: |
4101 | return NULL__null; |
4102 | } |
4103 | |
4104 | |
4105 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { |
4106 | int argc; |
4107 | PyObject *argv[3]; |
4108 | int ii; |
4109 | |
4110 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4111 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4112 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4113 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4114 | } |
4115 | if (argc == 1) { |
4116 | int _v; |
4117 | void *vptr = 0; |
4118 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15 ], 0, 0); |
4119 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4120 | if (_v) { |
4121 | return _wrap_SwigPyIterator_decr__SWIG_1(self, args); |
4122 | } |
4123 | } |
4124 | if (argc == 2) { |
4125 | int _v; |
4126 | void *vptr = 0; |
4127 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15 ], 0, 0); |
4128 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4129 | if (_v) { |
4130 | { |
4131 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
4132 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4133 | } |
4134 | if (_v) { |
4135 | return _wrap_SwigPyIterator_decr__SWIG_0(self, args); |
4136 | } |
4137 | } |
4138 | } |
4139 | |
4140 | fail: |
4141 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n" |
4142 | " Possible C/C++ prototypes are:\n" |
4143 | " swig::SwigPyIterator::decr(size_t)\n" |
4144 | " swig::SwigPyIterator::decr()\n"); |
4145 | return 0; |
4146 | } |
4147 | |
4148 | |
4149 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4150 | PyObject *resultobj = 0; |
4151 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4152 | swig::SwigPyIterator *arg2 = 0 ; |
4153 | void *argp1 = 0 ; |
4154 | int res1 = 0 ; |
4155 | void *argp2 = 0 ; |
4156 | int res2 = 0 ; |
4157 | PyObject * obj0 = 0 ; |
4158 | PyObject * obj1 = 0 ; |
4159 | ptrdiff_t result; |
4160 | |
4161 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail; |
4162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4163 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4165 | } |
4166 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4167 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[15] , 0 | 0, 0); |
4168 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4169 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0); |
4170 | } |
4171 | if (!argp2) { |
4172 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0 ); |
4173 | } |
4174 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4175 | try { |
4176 | result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2); |
4177 | } |
4178 | catch(std::invalid_argument &_e) { |
4179 | SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[ 12]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[12], 0x1)); SWIG_failgoto fail; |
4180 | } |
4181 | |
4182 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4183 | return resultobj; |
4184 | fail: |
4185 | return NULL__null; |
4186 | } |
4187 | |
4188 | |
4189 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4190 | PyObject *resultobj = 0; |
4191 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4192 | swig::SwigPyIterator *arg2 = 0 ; |
4193 | void *argp1 = 0 ; |
4194 | int res1 = 0 ; |
4195 | void *argp2 = 0 ; |
4196 | int res2 = 0 ; |
4197 | PyObject * obj0 = 0 ; |
4198 | PyObject * obj1 = 0 ; |
4199 | bool result; |
4200 | |
4201 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail; |
4202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4203 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4205 | } |
4206 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4207 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[15] , 0 | 0, 0); |
4208 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4209 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0); |
4210 | } |
4211 | if (!argp2) { |
4212 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0 ); |
4213 | } |
4214 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4215 | try { |
4216 | result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); |
4217 | } |
4218 | catch(std::invalid_argument &_e) { |
4219 | SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[ 12]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[12], 0x1)); SWIG_failgoto fail; |
4220 | } |
4221 | |
4222 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4223 | return resultobj; |
4224 | fail: |
4225 | return NULL__null; |
4226 | } |
4227 | |
4228 | |
4229 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4230 | PyObject *resultobj = 0; |
4231 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4232 | void *argp1 = 0 ; |
4233 | int res1 = 0 ; |
4234 | PyObject * obj0 = 0 ; |
4235 | swig::SwigPyIterator *result = 0 ; |
4236 | |
4237 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail; |
4238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4239 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4241 | } |
4242 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4243 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); |
4244 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0x1 | 0); |
4245 | return resultobj; |
4246 | fail: |
4247 | return NULL__null; |
4248 | } |
4249 | |
4250 | |
4251 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4252 | PyObject *resultobj = 0; |
4253 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4254 | void *argp1 = 0 ; |
4255 | int res1 = 0 ; |
4256 | PyObject * obj0 = 0 ; |
4257 | PyObject *result = 0 ; |
4258 | |
4259 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail; |
4260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4261 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4263 | } |
4264 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4265 | try { |
4266 | result = (PyObject *)(arg1)->next(); |
4267 | } |
4268 | catch(swig::stop_iteration &_e) { |
4269 | { |
4270 | (void)_e; |
4271 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4272 | SWIG_failgoto fail; |
4273 | } |
4274 | } |
4275 | |
4276 | resultobj = result; |
4277 | return resultobj; |
4278 | fail: |
4279 | return NULL__null; |
4280 | } |
4281 | |
4282 | |
4283 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4284 | PyObject *resultobj = 0; |
4285 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4286 | void *argp1 = 0 ; |
4287 | int res1 = 0 ; |
4288 | PyObject * obj0 = 0 ; |
4289 | PyObject *result = 0 ; |
4290 | |
4291 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail; |
4292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4293 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4295 | } |
4296 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4297 | try { |
4298 | result = (PyObject *)(arg1)->__next__(); |
4299 | } |
4300 | catch(swig::stop_iteration &_e) { |
4301 | { |
4302 | (void)_e; |
4303 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4304 | SWIG_failgoto fail; |
4305 | } |
4306 | } |
4307 | |
4308 | resultobj = result; |
4309 | return resultobj; |
4310 | fail: |
4311 | return NULL__null; |
4312 | } |
4313 | |
4314 | |
4315 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4316 | PyObject *resultobj = 0; |
4317 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4318 | void *argp1 = 0 ; |
4319 | int res1 = 0 ; |
4320 | PyObject * obj0 = 0 ; |
4321 | PyObject *result = 0 ; |
4322 | |
4323 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail; |
4324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4325 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4327 | } |
4328 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4329 | try { |
4330 | result = (PyObject *)(arg1)->previous(); |
4331 | } |
4332 | catch(swig::stop_iteration &_e) { |
4333 | { |
4334 | (void)_e; |
4335 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4336 | SWIG_failgoto fail; |
4337 | } |
4338 | } |
4339 | |
4340 | resultobj = result; |
4341 | return resultobj; |
4342 | fail: |
4343 | return NULL__null; |
4344 | } |
4345 | |
4346 | |
4347 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4348 | PyObject *resultobj = 0; |
4349 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4350 | ptrdiff_t arg2 ; |
4351 | void *argp1 = 0 ; |
4352 | int res1 = 0 ; |
4353 | ptrdiff_t val2 ; |
4354 | int ecode2 = 0 ; |
4355 | PyObject * obj0 = 0 ; |
4356 | PyObject * obj1 = 0 ; |
4357 | swig::SwigPyIterator *result = 0 ; |
4358 | |
4359 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail; |
4360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4361 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4363 | } |
4364 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4365 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4366 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4367 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0); |
4368 | } |
4369 | arg2 = static_cast< ptrdiff_t >(val2); |
4370 | try { |
4371 | result = (swig::SwigPyIterator *)(arg1)->advance(arg2); |
4372 | } |
4373 | catch(swig::stop_iteration &_e) { |
4374 | { |
4375 | (void)_e; |
4376 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4377 | SWIG_failgoto fail; |
4378 | } |
4379 | } |
4380 | |
4381 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0 | 0); |
4382 | return resultobj; |
4383 | fail: |
4384 | return NULL__null; |
4385 | } |
4386 | |
4387 | |
4388 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4389 | PyObject *resultobj = 0; |
4390 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4391 | swig::SwigPyIterator *arg2 = 0 ; |
4392 | void *argp1 = 0 ; |
4393 | int res1 = 0 ; |
4394 | void *argp2 = 0 ; |
4395 | int res2 = 0 ; |
4396 | PyObject * obj0 = 0 ; |
4397 | PyObject * obj1 = 0 ; |
4398 | bool result; |
4399 | |
4400 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail; |
4401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4402 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4404 | } |
4405 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4406 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[15] , 0 | 0, 0); |
4407 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4408 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0); |
4409 | } |
4410 | if (!argp2) { |
4411 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0 ); |
4412 | } |
4413 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4414 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); |
4415 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4416 | return resultobj; |
4417 | fail: |
4418 | return NULL__null; |
4419 | } |
4420 | |
4421 | |
4422 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4423 | PyObject *resultobj = 0; |
4424 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4425 | swig::SwigPyIterator *arg2 = 0 ; |
4426 | void *argp1 = 0 ; |
4427 | int res1 = 0 ; |
4428 | void *argp2 = 0 ; |
4429 | int res2 = 0 ; |
4430 | PyObject * obj0 = 0 ; |
4431 | PyObject * obj1 = 0 ; |
4432 | bool result; |
4433 | |
4434 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail; |
4435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4436 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4438 | } |
4439 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4440 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[15] , 0 | 0, 0); |
4441 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4442 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0); |
4443 | } |
4444 | if (!argp2) { |
4445 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0 ); |
4446 | } |
4447 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4448 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); |
4449 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4450 | return resultobj; |
4451 | fail: |
4452 | return NULL__null; |
4453 | } |
4454 | |
4455 | |
4456 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4457 | PyObject *resultobj = 0; |
4458 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4459 | ptrdiff_t arg2 ; |
4460 | void *argp1 = 0 ; |
4461 | int res1 = 0 ; |
4462 | ptrdiff_t val2 ; |
4463 | int ecode2 = 0 ; |
4464 | PyObject * obj0 = 0 ; |
4465 | PyObject * obj1 = 0 ; |
4466 | swig::SwigPyIterator *result = 0 ; |
4467 | |
4468 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail; |
4469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0x1 | 0, 0); |
4470 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4472 | } |
4473 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4474 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4475 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4476 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0); |
4477 | } |
4478 | arg2 = static_cast< ptrdiff_t >(val2); |
4479 | try { |
4480 | result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2); |
4481 | } |
4482 | catch(swig::stop_iteration &_e) { |
4483 | { |
4484 | (void)_e; |
4485 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4486 | SWIG_failgoto fail; |
4487 | } |
4488 | } |
4489 | |
4490 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0x1 | 0); |
4491 | return resultobj; |
4492 | fail: |
4493 | return NULL__null; |
4494 | } |
4495 | |
4496 | |
4497 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4498 | PyObject *resultobj = 0; |
4499 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4500 | ptrdiff_t arg2 ; |
4501 | void *argp1 = 0 ; |
4502 | int res1 = 0 ; |
4503 | ptrdiff_t val2 ; |
4504 | int ecode2 = 0 ; |
4505 | PyObject * obj0 = 0 ; |
4506 | PyObject * obj1 = 0 ; |
4507 | swig::SwigPyIterator *result = 0 ; |
4508 | |
4509 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail; |
4510 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0x1 | 0, 0); |
4511 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4513 | } |
4514 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4515 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4516 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4517 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0); |
4518 | } |
4519 | arg2 = static_cast< ptrdiff_t >(val2); |
4520 | try { |
4521 | result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2); |
4522 | } |
4523 | catch(swig::stop_iteration &_e) { |
4524 | { |
4525 | (void)_e; |
4526 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4527 | SWIG_failgoto fail; |
4528 | } |
4529 | } |
4530 | |
4531 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0x1 | 0); |
4532 | return resultobj; |
4533 | fail: |
4534 | return NULL__null; |
4535 | } |
4536 | |
4537 | |
4538 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4539 | PyObject *resultobj = 0; |
4540 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4541 | ptrdiff_t arg2 ; |
4542 | void *argp1 = 0 ; |
4543 | int res1 = 0 ; |
4544 | ptrdiff_t val2 ; |
4545 | int ecode2 = 0 ; |
4546 | PyObject * obj0 = 0 ; |
4547 | PyObject * obj1 = 0 ; |
4548 | swig::SwigPyIterator *result = 0 ; |
4549 | |
4550 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail; |
4551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4552 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4554 | } |
4555 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4556 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4557 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4558 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0); |
4559 | } |
4560 | arg2 = static_cast< ptrdiff_t >(val2); |
4561 | try { |
4562 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2); |
4563 | } |
4564 | catch(swig::stop_iteration &_e) { |
4565 | { |
4566 | (void)_e; |
4567 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4568 | SWIG_failgoto fail; |
4569 | } |
4570 | } |
4571 | |
4572 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0x1 | 0); |
4573 | return resultobj; |
4574 | fail: |
4575 | return NULL__null; |
4576 | } |
4577 | |
4578 | |
4579 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4580 | PyObject *resultobj = 0; |
4581 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4582 | ptrdiff_t arg2 ; |
4583 | void *argp1 = 0 ; |
4584 | int res1 = 0 ; |
4585 | ptrdiff_t val2 ; |
4586 | int ecode2 = 0 ; |
4587 | PyObject * obj0 = 0 ; |
4588 | PyObject * obj1 = 0 ; |
4589 | swig::SwigPyIterator *result = 0 ; |
4590 | |
4591 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4592 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4593 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4595 | } |
4596 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4597 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4598 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4599 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0); |
4600 | } |
4601 | arg2 = static_cast< ptrdiff_t >(val2); |
4602 | try { |
4603 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2); |
4604 | } |
4605 | catch(swig::stop_iteration &_e) { |
4606 | { |
4607 | (void)_e; |
4608 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4609 | SWIG_failgoto fail; |
4610 | } |
4611 | } |
4612 | |
4613 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0x1 | 0); |
4614 | return resultobj; |
4615 | fail: |
4616 | return NULL__null; |
4617 | } |
4618 | |
4619 | |
4620 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4621 | PyObject *resultobj = 0; |
4622 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4623 | swig::SwigPyIterator *arg2 = 0 ; |
4624 | void *argp1 = 0 ; |
4625 | int res1 = 0 ; |
4626 | void *argp2 = 0 ; |
4627 | int res2 = 0 ; |
4628 | PyObject * obj0 = 0 ; |
4629 | PyObject * obj1 = 0 ; |
4630 | ptrdiff_t result; |
4631 | |
4632 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
4634 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4636 | } |
4637 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4638 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[15] , 0 | 0, 0); |
4639 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4640 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0); |
4641 | } |
4642 | if (!argp2) { |
4643 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0 ); |
4644 | } |
4645 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4646 | result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); |
4647 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4648 | return resultobj; |
4649 | fail: |
4650 | return NULL__null; |
4651 | } |
4652 | |
4653 | |
4654 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { |
4655 | int argc; |
4656 | PyObject *argv[3]; |
4657 | int ii; |
4658 | |
4659 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4660 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4661 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4662 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4663 | } |
4664 | if (argc == 2) { |
4665 | int _v; |
4666 | void *vptr = 0; |
4667 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15 ], 0, 0); |
4668 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4669 | if (_v) { |
4670 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[15], 0, 0 ); |
4671 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4672 | if (_v) { |
4673 | return _wrap_SwigPyIterator___sub____SWIG_1(self, args); |
4674 | } |
4675 | } |
4676 | } |
4677 | if (argc == 2) { |
4678 | int _v; |
4679 | void *vptr = 0; |
4680 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15 ], 0, 0); |
4681 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4682 | if (_v) { |
4683 | { |
4684 | int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null); |
4685 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4686 | } |
4687 | if (_v) { |
4688 | return _wrap_SwigPyIterator___sub____SWIG_0(self, args); |
4689 | } |
4690 | } |
4691 | } |
4692 | |
4693 | fail: |
4694 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
4695 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
4696 | } |
4697 | |
4698 | |
4699 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4700 | PyObject *obj; |
4701 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
4702 | SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[15], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
4703 | return SWIG_Py_Void(); |
4704 | } |
4705 | |
4706 | SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_MeV2erg_set(PyObject *) { |
4707 | SWIG_Error(SWIG_AttributeError,"Variable MeV2erg is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable MeV2erg is read-only." ); |
4708 | return 1; |
4709 | } |
4710 | |
4711 | |
4712 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_MeV2erg_get(void) { |
4713 | PyObject *pyobj = 0; |
4714 | |
4715 | pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::MeV2erg)); |
4716 | return pyobj; |
4717 | } |
4718 | |
4719 | |
4720 | SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_erg2MeV_set(PyObject *) { |
4721 | SWIG_Error(SWIG_AttributeError,"Variable erg2MeV is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable erg2MeV is read-only." ); |
4722 | return 1; |
4723 | } |
4724 | |
4725 | |
4726 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_erg2MeV_get(void) { |
4727 | PyObject *pyobj = 0; |
4728 | |
4729 | pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::erg2MeV)); |
4730 | return pyobj; |
4731 | } |
4732 | |
4733 | |
4734 | SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_pc2cm_set(PyObject *) { |
4735 | SWIG_Error(SWIG_AttributeError,"Variable pc2cm is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable pc2cm is read-only." ); |
4736 | return 1; |
4737 | } |
4738 | |
4739 | |
4740 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_pc2cm_get(void) { |
4741 | PyObject *pyobj = 0; |
4742 | |
4743 | pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::pc2cm)); |
4744 | return pyobj; |
4745 | } |
4746 | |
4747 | |
4748 | SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_sec_in_day_set(PyObject *) { |
4749 | SWIG_Error(SWIG_AttributeError,"Variable sec_in_day is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable sec_in_day is read-only." ); |
4750 | return 1; |
4751 | } |
4752 | |
4753 | |
4754 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_sec_in_day_get(void) { |
4755 | PyObject *pyobj = 0; |
4756 | |
4757 | pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::sec_in_day)); |
4758 | return pyobj; |
4759 | } |
4760 | |
4761 | |
4762 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_strip_whitespace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4763 | PyObject *resultobj = 0; |
4764 | std::string *arg1 = 0 ; |
4765 | int res1 = SWIG_OLDOBJ((0)) ; |
4766 | PyObject * obj0 = 0 ; |
4767 | std::string result; |
4768 | |
4769 | if (!PyArg_ParseTuple(args,(char *)"O:strip_whitespace",&obj0)) SWIG_failgoto fail; |
4770 | { |
4771 | std::string *ptr = (std::string *)0; |
4772 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
4773 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strip_whitespace" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "strip_whitespace" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
4775 | } |
4776 | if (!ptr) { |
4777 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "strip_whitespace" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "strip_whitespace" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
4778 | } |
4779 | arg1 = ptr; |
4780 | } |
4781 | { |
4782 | try { |
4783 | result = gammalib::strip_whitespace((std::string const &)*arg1); |
4784 | } |
4785 | catch (const GException::out_of_range& e) { |
4786 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4787 | } |
4788 | catch (const GExceptionHandler& e) { |
4789 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4790 | } |
4791 | catch (const std::exception& e) { |
4792 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4793 | } |
4794 | } |
4795 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
4796 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4797 | return resultobj; |
4798 | fail: |
4799 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4800 | return NULL__null; |
4801 | } |
4802 | |
4803 | |
4804 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_strip_chars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4805 | PyObject *resultobj = 0; |
4806 | std::string *arg1 = 0 ; |
4807 | std::string *arg2 = 0 ; |
4808 | int res1 = SWIG_OLDOBJ((0)) ; |
4809 | int res2 = SWIG_OLDOBJ((0)) ; |
4810 | PyObject * obj0 = 0 ; |
4811 | PyObject * obj1 = 0 ; |
4812 | std::string result; |
4813 | |
4814 | if (!PyArg_ParseTuple(args,(char *)"OO:strip_chars",&obj0,&obj1)) SWIG_failgoto fail; |
4815 | { |
4816 | std::string *ptr = (std::string *)0; |
4817 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
4818 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strip_chars" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "strip_chars" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
4820 | } |
4821 | if (!ptr) { |
4822 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "strip_chars" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "strip_chars" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
4823 | } |
4824 | arg1 = ptr; |
4825 | } |
4826 | { |
4827 | std::string *ptr = (std::string *)0; |
4828 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
4829 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4830 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "strip_chars" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "strip_chars" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
4831 | } |
4832 | if (!ptr) { |
4833 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "strip_chars" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "strip_chars" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
4834 | } |
4835 | arg2 = ptr; |
4836 | } |
4837 | { |
4838 | try { |
4839 | result = gammalib::strip_chars((std::string const &)*arg1,(std::string const &)*arg2); |
4840 | } |
4841 | catch (const GException::out_of_range& e) { |
4842 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4843 | } |
4844 | catch (const GExceptionHandler& e) { |
4845 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4846 | } |
4847 | catch (const std::exception& e) { |
4848 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4849 | } |
4850 | } |
4851 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
4852 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4853 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
4854 | return resultobj; |
4855 | fail: |
4856 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4857 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
4858 | return NULL__null; |
4859 | } |
4860 | |
4861 | |
4862 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_expand_env(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4863 | PyObject *resultobj = 0; |
4864 | std::string *arg1 = 0 ; |
4865 | int res1 = SWIG_OLDOBJ((0)) ; |
4866 | PyObject * obj0 = 0 ; |
4867 | std::string result; |
4868 | |
4869 | if (!PyArg_ParseTuple(args,(char *)"O:expand_env",&obj0)) SWIG_failgoto fail; |
4870 | { |
4871 | std::string *ptr = (std::string *)0; |
4872 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
4873 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "expand_env" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "expand_env" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
4875 | } |
4876 | if (!ptr) { |
4877 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "expand_env" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "expand_env" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
4878 | } |
4879 | arg1 = ptr; |
4880 | } |
4881 | { |
4882 | try { |
4883 | result = gammalib::expand_env((std::string const &)*arg1); |
4884 | } |
4885 | catch (const GException::out_of_range& e) { |
4886 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4887 | } |
4888 | catch (const GExceptionHandler& e) { |
4889 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4890 | } |
4891 | catch (const std::exception& e) { |
4892 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4893 | } |
4894 | } |
4895 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
4896 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4897 | return resultobj; |
4898 | fail: |
4899 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4900 | return NULL__null; |
4901 | } |
4902 | |
4903 | |
4904 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_toupper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4905 | PyObject *resultobj = 0; |
4906 | std::string *arg1 = 0 ; |
4907 | int res1 = SWIG_OLDOBJ((0)) ; |
4908 | PyObject * obj0 = 0 ; |
4909 | std::string result; |
4910 | |
4911 | if (!PyArg_ParseTuple(args,(char *)"O:toupper",&obj0)) SWIG_failgoto fail; |
4912 | { |
4913 | std::string *ptr = (std::string *)0; |
4914 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
4915 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "toupper" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "toupper" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
4917 | } |
4918 | if (!ptr) { |
4919 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "toupper" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "toupper" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
4920 | } |
4921 | arg1 = ptr; |
4922 | } |
4923 | { |
4924 | try { |
4925 | result = gammalib::toupper((std::string const &)*arg1); |
4926 | } |
4927 | catch (const GException::out_of_range& e) { |
4928 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4929 | } |
4930 | catch (const GExceptionHandler& e) { |
4931 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4932 | } |
4933 | catch (const std::exception& e) { |
4934 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4935 | } |
4936 | } |
4937 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
4938 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4939 | return resultobj; |
4940 | fail: |
4941 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4942 | return NULL__null; |
4943 | } |
4944 | |
4945 | |
4946 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_tolower(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4947 | PyObject *resultobj = 0; |
4948 | std::string *arg1 = 0 ; |
4949 | int res1 = SWIG_OLDOBJ((0)) ; |
4950 | PyObject * obj0 = 0 ; |
4951 | std::string result; |
4952 | |
4953 | if (!PyArg_ParseTuple(args,(char *)"O:tolower",&obj0)) SWIG_failgoto fail; |
4954 | { |
4955 | std::string *ptr = (std::string *)0; |
4956 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
4957 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tolower" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "tolower" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
4959 | } |
4960 | if (!ptr) { |
4961 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "tolower" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "tolower" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
4962 | } |
4963 | arg1 = ptr; |
4964 | } |
4965 | { |
4966 | try { |
4967 | result = gammalib::tolower((std::string const &)*arg1); |
4968 | } |
4969 | catch (const GException::out_of_range& e) { |
4970 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4971 | } |
4972 | catch (const GExceptionHandler& e) { |
4973 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4974 | } |
4975 | catch (const std::exception& e) { |
4976 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4977 | } |
4978 | } |
4979 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
4980 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4981 | return resultobj; |
4982 | fail: |
4983 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4984 | return NULL__null; |
4985 | } |
4986 | |
4987 | |
4988 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_split(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4989 | PyObject *resultobj = 0; |
4990 | std::string *arg1 = 0 ; |
4991 | std::string *arg2 = 0 ; |
4992 | int res1 = SWIG_OLDOBJ((0)) ; |
4993 | int res2 = SWIG_OLDOBJ((0)) ; |
4994 | PyObject * obj0 = 0 ; |
4995 | PyObject * obj1 = 0 ; |
4996 | SwigValueWrapper< std::vector< std::string,std::allocator< std::string > > > result; |
4997 | |
4998 | if (!PyArg_ParseTuple(args,(char *)"OO:split",&obj0,&obj1)) SWIG_failgoto fail; |
4999 | { |
5000 | std::string *ptr = (std::string *)0; |
5001 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5002 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "split" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "split" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
5004 | } |
5005 | if (!ptr) { |
5006 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "split" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "split" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5007 | } |
5008 | arg1 = ptr; |
5009 | } |
5010 | { |
5011 | std::string *ptr = (std::string *)0; |
5012 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5013 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5014 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "split" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "split" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5015 | } |
5016 | if (!ptr) { |
5017 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "split" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "split" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5018 | } |
5019 | arg2 = ptr; |
5020 | } |
5021 | { |
5022 | try { |
5023 | result = gammalib::split((std::string const &)*arg1,(std::string const &)*arg2); |
5024 | } |
5025 | catch (const GException::out_of_range& e) { |
5026 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5027 | } |
5028 | catch (const GExceptionHandler& e) { |
5029 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5030 | } |
5031 | catch (const std::exception& e) { |
5032 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5033 | } |
5034 | } |
5035 | resultobj = SWIG_NewPointerObj((new std::vector< std::string,std::allocator< std::string > >(static_cast< const std::vector< std::string,std::allocator< std::string > >& >(result))), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new std::vector< std::string ,std::allocator< std::string > >(static_cast< const std::vector< std::string,std::allocator< std::string > >& >(result))), swig_types[14], 0x1 | 0); |
5036 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5037 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5038 | return resultobj; |
5039 | fail: |
5040 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5041 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5042 | return NULL__null; |
5043 | } |
5044 | |
5045 | |
5046 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5047 | PyObject *resultobj = 0; |
5048 | std::string *arg1 = 0 ; |
5049 | int arg2 ; |
5050 | int res1 = SWIG_OLDOBJ((0)) ; |
5051 | int val2 ; |
5052 | int ecode2 = 0 ; |
5053 | PyObject * obj0 = 0 ; |
5054 | PyObject * obj1 = 0 ; |
5055 | std::string result; |
5056 | |
5057 | if (!PyArg_ParseTuple(args,(char *)"OO:fill",&obj0,&obj1)) SWIG_failgoto fail; |
5058 | { |
5059 | std::string *ptr = (std::string *)0; |
5060 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5061 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fill" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "fill" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
5063 | } |
5064 | if (!ptr) { |
5065 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fill" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "fill" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5066 | } |
5067 | arg1 = ptr; |
5068 | } |
5069 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5070 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5071 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fill" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "fill" "', argument " "2" " of type '" "int""'"); goto fail; } while(0); |
5072 | } |
5073 | arg2 = static_cast< int >(val2); |
5074 | { |
5075 | try { |
5076 | result = gammalib::fill((std::string const &)*arg1,arg2); |
5077 | } |
5078 | catch (const GException::out_of_range& e) { |
5079 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5080 | } |
5081 | catch (const GExceptionHandler& e) { |
5082 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5083 | } |
5084 | catch (const std::exception& e) { |
5085 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5086 | } |
5087 | } |
5088 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
5089 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5090 | return resultobj; |
5091 | fail: |
5092 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5093 | return NULL__null; |
5094 | } |
5095 | |
5096 | |
5097 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_left__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5098 | PyObject *resultobj = 0; |
5099 | std::string *arg1 = 0 ; |
5100 | int arg2 ; |
5101 | char arg3 ; |
5102 | int res1 = SWIG_OLDOBJ((0)) ; |
5103 | int val2 ; |
5104 | int ecode2 = 0 ; |
5105 | char val3 ; |
5106 | int ecode3 = 0 ; |
5107 | PyObject * obj0 = 0 ; |
5108 | PyObject * obj1 = 0 ; |
5109 | PyObject * obj2 = 0 ; |
5110 | std::string result; |
5111 | |
5112 | if (!PyArg_ParseTuple(args,(char *)"OOO:left",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5113 | { |
5114 | std::string *ptr = (std::string *)0; |
5115 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5116 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "left" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "left" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
5118 | } |
5119 | if (!ptr) { |
5120 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "left" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "left" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5121 | } |
5122 | arg1 = ptr; |
5123 | } |
5124 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5125 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5126 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "left" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "left" "', argument " "2" " of type '" "int""'"); goto fail; } while(0); |
5127 | } |
5128 | arg2 = static_cast< int >(val2); |
5129 | ecode3 = SWIG_AsVal_char(obj2, &val3); |
5130 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5131 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "left" "', argument " "3"" of type '" "char""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "left" "', argument " "3" " of type '" "char""'"); goto fail; } while(0); |
5132 | } |
5133 | arg3 = static_cast< char >(val3); |
5134 | { |
5135 | try { |
5136 | result = gammalib::left((std::string const &)*arg1,arg2,arg3); |
5137 | } |
5138 | catch (const GException::out_of_range& e) { |
5139 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5140 | } |
5141 | catch (const GExceptionHandler& e) { |
5142 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5143 | } |
5144 | catch (const std::exception& e) { |
5145 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5146 | } |
5147 | } |
5148 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
5149 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5150 | return resultobj; |
5151 | fail: |
5152 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5153 | return NULL__null; |
5154 | } |
5155 | |
5156 | |
5157 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_left__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5158 | PyObject *resultobj = 0; |
5159 | std::string *arg1 = 0 ; |
5160 | int arg2 ; |
5161 | int res1 = SWIG_OLDOBJ((0)) ; |
5162 | int val2 ; |
5163 | int ecode2 = 0 ; |
5164 | PyObject * obj0 = 0 ; |
5165 | PyObject * obj1 = 0 ; |
5166 | std::string result; |
5167 | |
5168 | if (!PyArg_ParseTuple(args,(char *)"OO:left",&obj0,&obj1)) SWIG_failgoto fail; |
5169 | { |
5170 | std::string *ptr = (std::string *)0; |
5171 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5172 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "left" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "left" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
5174 | } |
5175 | if (!ptr) { |
5176 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "left" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "left" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5177 | } |
5178 | arg1 = ptr; |
5179 | } |
5180 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5181 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5182 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "left" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "left" "', argument " "2" " of type '" "int""'"); goto fail; } while(0); |
5183 | } |
5184 | arg2 = static_cast< int >(val2); |
5185 | { |
5186 | try { |
5187 | result = gammalib::left((std::string const &)*arg1,arg2); |
5188 | } |
5189 | catch (const GException::out_of_range& e) { |
5190 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5191 | } |
5192 | catch (const GExceptionHandler& e) { |
5193 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5194 | } |
5195 | catch (const std::exception& e) { |
5196 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5197 | } |
5198 | } |
5199 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
5200 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5201 | return resultobj; |
5202 | fail: |
5203 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5204 | return NULL__null; |
5205 | } |
5206 | |
5207 | |
5208 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_left(PyObject *self, PyObject *args) { |
5209 | int argc; |
5210 | PyObject *argv[4]; |
5211 | int ii; |
5212 | |
5213 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5214 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5215 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
5216 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5217 | } |
5218 | if (argc == 2) { |
5219 | int _v; |
5220 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
5221 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5222 | if (_v) { |
5223 | { |
5224 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
5225 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5226 | } |
5227 | if (_v) { |
5228 | return _wrap_left__SWIG_1(self, args); |
5229 | } |
5230 | } |
5231 | } |
5232 | if (argc == 3) { |
5233 | int _v; |
5234 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
5235 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5236 | if (_v) { |
5237 | { |
5238 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
5239 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5240 | } |
5241 | if (_v) { |
5242 | { |
5243 | int res = SWIG_AsVal_char(argv[2], NULL__null); |
5244 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5245 | } |
5246 | if (_v) { |
5247 | return _wrap_left__SWIG_0(self, args); |
5248 | } |
5249 | } |
5250 | } |
5251 | } |
5252 | |
5253 | fail: |
5254 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'left'.\n" |
5255 | " Possible C/C++ prototypes are:\n" |
5256 | " gammalib::left(std::string const &,int,char)\n" |
5257 | " gammalib::left(std::string const &,int)\n"); |
5258 | return 0; |
5259 | } |
5260 | |
5261 | |
5262 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_right__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5263 | PyObject *resultobj = 0; |
5264 | std::string *arg1 = 0 ; |
5265 | int arg2 ; |
5266 | char arg3 ; |
5267 | int res1 = SWIG_OLDOBJ((0)) ; |
5268 | int val2 ; |
5269 | int ecode2 = 0 ; |
5270 | char val3 ; |
5271 | int ecode3 = 0 ; |
5272 | PyObject * obj0 = 0 ; |
5273 | PyObject * obj1 = 0 ; |
5274 | PyObject * obj2 = 0 ; |
5275 | std::string result; |
5276 | |
5277 | if (!PyArg_ParseTuple(args,(char *)"OOO:right",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5278 | { |
5279 | std::string *ptr = (std::string *)0; |
5280 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5281 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "right" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "right" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
5283 | } |
5284 | if (!ptr) { |
5285 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "right" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "right" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5286 | } |
5287 | arg1 = ptr; |
5288 | } |
5289 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5290 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5291 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "right" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "right" "', argument " "2" " of type '" "int""'"); goto fail; } while(0); |
5292 | } |
5293 | arg2 = static_cast< int >(val2); |
5294 | ecode3 = SWIG_AsVal_char(obj2, &val3); |
5295 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5296 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "right" "', argument " "3"" of type '" "char""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "right" "', argument " "3" " of type '" "char""'"); goto fail; } while(0); |
5297 | } |
5298 | arg3 = static_cast< char >(val3); |
5299 | { |
5300 | try { |
5301 | result = gammalib::right((std::string const &)*arg1,arg2,arg3); |
5302 | } |
5303 | catch (const GException::out_of_range& e) { |
5304 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5305 | } |
5306 | catch (const GExceptionHandler& e) { |
5307 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5308 | } |
5309 | catch (const std::exception& e) { |
5310 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5311 | } |
5312 | } |
5313 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
5314 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5315 | return resultobj; |
5316 | fail: |
5317 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5318 | return NULL__null; |
5319 | } |
5320 | |
5321 | |
5322 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_right__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5323 | PyObject *resultobj = 0; |
5324 | std::string *arg1 = 0 ; |
5325 | int arg2 ; |
5326 | int res1 = SWIG_OLDOBJ((0)) ; |
5327 | int val2 ; |
5328 | int ecode2 = 0 ; |
5329 | PyObject * obj0 = 0 ; |
5330 | PyObject * obj1 = 0 ; |
5331 | std::string result; |
5332 | |
5333 | if (!PyArg_ParseTuple(args,(char *)"OO:right",&obj0,&obj1)) SWIG_failgoto fail; |
5334 | { |
5335 | std::string *ptr = (std::string *)0; |
5336 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5337 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "right" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "right" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
5339 | } |
5340 | if (!ptr) { |
5341 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "right" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "right" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5342 | } |
5343 | arg1 = ptr; |
5344 | } |
5345 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5346 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5347 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "right" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "right" "', argument " "2" " of type '" "int""'"); goto fail; } while(0); |
5348 | } |
5349 | arg2 = static_cast< int >(val2); |
5350 | { |
5351 | try { |
5352 | result = gammalib::right((std::string const &)*arg1,arg2); |
5353 | } |
5354 | catch (const GException::out_of_range& e) { |
5355 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5356 | } |
5357 | catch (const GExceptionHandler& e) { |
5358 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5359 | } |
5360 | catch (const std::exception& e) { |
5361 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5362 | } |
5363 | } |
5364 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
5365 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5366 | return resultobj; |
5367 | fail: |
5368 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5369 | return NULL__null; |
5370 | } |
5371 | |
5372 | |
5373 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_right(PyObject *self, PyObject *args) { |
5374 | int argc; |
5375 | PyObject *argv[4]; |
5376 | int ii; |
5377 | |
5378 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5379 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5380 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
5381 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5382 | } |
5383 | if (argc == 2) { |
5384 | int _v; |
5385 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
5386 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5387 | if (_v) { |
5388 | { |
5389 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
5390 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5391 | } |
5392 | if (_v) { |
5393 | return _wrap_right__SWIG_1(self, args); |
5394 | } |
5395 | } |
5396 | } |
5397 | if (argc == 3) { |
5398 | int _v; |
5399 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
5400 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5401 | if (_v) { |
5402 | { |
5403 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
5404 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5405 | } |
5406 | if (_v) { |
5407 | { |
5408 | int res = SWIG_AsVal_char(argv[2], NULL__null); |
5409 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5410 | } |
5411 | if (_v) { |
5412 | return _wrap_right__SWIG_0(self, args); |
5413 | } |
5414 | } |
5415 | } |
5416 | } |
5417 | |
5418 | fail: |
5419 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'right'.\n" |
5420 | " Possible C/C++ prototypes are:\n" |
5421 | " gammalib::right(std::string const &,int,char)\n" |
5422 | " gammalib::right(std::string const &,int)\n"); |
5423 | return 0; |
5424 | } |
5425 | |
5426 | |
5427 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_center__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5428 | PyObject *resultobj = 0; |
5429 | std::string *arg1 = 0 ; |
5430 | int arg2 ; |
5431 | char arg3 ; |
5432 | int res1 = SWIG_OLDOBJ((0)) ; |
5433 | int val2 ; |
5434 | int ecode2 = 0 ; |
5435 | char val3 ; |
5436 | int ecode3 = 0 ; |
5437 | PyObject * obj0 = 0 ; |
5438 | PyObject * obj1 = 0 ; |
5439 | PyObject * obj2 = 0 ; |
5440 | std::string result; |
5441 | |
5442 | if (!PyArg_ParseTuple(args,(char *)"OOO:center",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5443 | { |
5444 | std::string *ptr = (std::string *)0; |
5445 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5446 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "center" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "center" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
5448 | } |
5449 | if (!ptr) { |
5450 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "center" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "center" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5451 | } |
5452 | arg1 = ptr; |
5453 | } |
5454 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5455 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5456 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "center" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "center" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
5457 | } |
5458 | arg2 = static_cast< int >(val2); |
5459 | ecode3 = SWIG_AsVal_char(obj2, &val3); |
5460 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5461 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "center" "', argument " "3"" of type '" "char""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "center" "', argument " "3"" of type '" "char""'"); goto fail; } while(0); |
5462 | } |
5463 | arg3 = static_cast< char >(val3); |
5464 | { |
5465 | try { |
5466 | result = gammalib::center((std::string const &)*arg1,arg2,arg3); |
5467 | } |
5468 | catch (const GException::out_of_range& e) { |
5469 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5470 | } |
5471 | catch (const GExceptionHandler& e) { |
5472 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5473 | } |
5474 | catch (const std::exception& e) { |
5475 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5476 | } |
5477 | } |
5478 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
5479 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5480 | return resultobj; |
5481 | fail: |
5482 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5483 | return NULL__null; |
5484 | } |
5485 | |
5486 | |
5487 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_center__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5488 | PyObject *resultobj = 0; |
5489 | std::string *arg1 = 0 ; |
5490 | int arg2 ; |
5491 | int res1 = SWIG_OLDOBJ((0)) ; |
5492 | int val2 ; |
5493 | int ecode2 = 0 ; |
5494 | PyObject * obj0 = 0 ; |
5495 | PyObject * obj1 = 0 ; |
5496 | std::string result; |
5497 | |
5498 | if (!PyArg_ParseTuple(args,(char *)"OO:center",&obj0,&obj1)) SWIG_failgoto fail; |
5499 | { |
5500 | std::string *ptr = (std::string *)0; |
5501 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5502 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "center" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "center" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
5504 | } |
5505 | if (!ptr) { |
5506 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "center" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "center" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5507 | } |
5508 | arg1 = ptr; |
5509 | } |
5510 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5511 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5512 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "center" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "center" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
5513 | } |
5514 | arg2 = static_cast< int >(val2); |
5515 | { |
5516 | try { |
5517 | result = gammalib::center((std::string const &)*arg1,arg2); |
5518 | } |
5519 | catch (const GException::out_of_range& e) { |
5520 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5521 | } |
5522 | catch (const GExceptionHandler& e) { |
5523 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5524 | } |
5525 | catch (const std::exception& e) { |
5526 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5527 | } |
5528 | } |
5529 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
5530 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5531 | return resultobj; |
5532 | fail: |
5533 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5534 | return NULL__null; |
5535 | } |
5536 | |
5537 | |
5538 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_center(PyObject *self, PyObject *args) { |
5539 | int argc; |
5540 | PyObject *argv[4]; |
5541 | int ii; |
5542 | |
5543 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5544 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5545 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
5546 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5547 | } |
5548 | if (argc == 2) { |
5549 | int _v; |
5550 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
5551 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5552 | if (_v) { |
5553 | { |
5554 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
5555 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5556 | } |
5557 | if (_v) { |
5558 | return _wrap_center__SWIG_1(self, args); |
5559 | } |
5560 | } |
5561 | } |
5562 | if (argc == 3) { |
5563 | int _v; |
5564 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
5565 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5566 | if (_v) { |
5567 | { |
5568 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
5569 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5570 | } |
5571 | if (_v) { |
5572 | { |
5573 | int res = SWIG_AsVal_char(argv[2], NULL__null); |
5574 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5575 | } |
5576 | if (_v) { |
5577 | return _wrap_center__SWIG_0(self, args); |
5578 | } |
5579 | } |
5580 | } |
5581 | } |
5582 | |
5583 | fail: |
5584 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'center'.\n" |
5585 | " Possible C/C++ prototypes are:\n" |
5586 | " gammalib::center(std::string const &,int,char)\n" |
5587 | " gammalib::center(std::string const &,int)\n"); |
5588 | return 0; |
5589 | } |
5590 | |
5591 | |
5592 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_parformat__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5593 | PyObject *resultobj = 0; |
5594 | std::string *arg1 = 0 ; |
5595 | int *arg2 = 0 ; |
5596 | int res1 = SWIG_OLDOBJ((0)) ; |
5597 | int temp2 ; |
5598 | int val2 ; |
5599 | int ecode2 = 0 ; |
5600 | PyObject * obj0 = 0 ; |
5601 | PyObject * obj1 = 0 ; |
5602 | std::string result; |
5603 | |
5604 | if (!PyArg_ParseTuple(args,(char *)"OO:parformat",&obj0,&obj1)) SWIG_failgoto fail; |
5605 | { |
5606 | std::string *ptr = (std::string *)0; |
5607 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5608 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parformat" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "parformat" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
5610 | } |
5611 | if (!ptr) { |
5612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parformat" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "parformat" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5613 | } |
5614 | arg1 = ptr; |
5615 | } |
5616 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5617 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5618 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "parformat" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "parformat" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
5619 | } |
5620 | temp2 = static_cast< int >(val2); |
5621 | arg2 = &temp2; |
5622 | { |
5623 | try { |
5624 | result = gammalib::parformat((std::string const &)*arg1,(int const &)*arg2); |
5625 | } |
5626 | catch (const GException::out_of_range& e) { |
5627 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5628 | } |
5629 | catch (const GExceptionHandler& e) { |
5630 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5631 | } |
5632 | catch (const std::exception& e) { |
5633 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5634 | } |
5635 | } |
5636 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
5637 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5638 | return resultobj; |
5639 | fail: |
5640 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5641 | return NULL__null; |
5642 | } |
5643 | |
5644 | |
5645 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_parformat__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5646 | PyObject *resultobj = 0; |
5647 | std::string *arg1 = 0 ; |
5648 | int res1 = SWIG_OLDOBJ((0)) ; |
5649 | PyObject * obj0 = 0 ; |
5650 | std::string result; |
5651 | |
5652 | if (!PyArg_ParseTuple(args,(char *)"O:parformat",&obj0)) SWIG_failgoto fail; |
5653 | { |
5654 | std::string *ptr = (std::string *)0; |
5655 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5656 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parformat" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "parformat" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
5658 | } |
5659 | if (!ptr) { |
5660 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parformat" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "parformat" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5661 | } |
5662 | arg1 = ptr; |
5663 | } |
5664 | { |
5665 | try { |
5666 | result = gammalib::parformat((std::string const &)*arg1); |
5667 | } |
5668 | catch (const GException::out_of_range& e) { |
5669 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5670 | } |
5671 | catch (const GExceptionHandler& e) { |
5672 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5673 | } |
5674 | catch (const std::exception& e) { |
5675 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5676 | } |
5677 | } |
5678 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
5679 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5680 | return resultobj; |
5681 | fail: |
5682 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5683 | return NULL__null; |
5684 | } |
5685 | |
5686 | |
5687 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_parformat(PyObject *self, PyObject *args) { |
5688 | int argc; |
5689 | PyObject *argv[3]; |
5690 | int ii; |
5691 | |
5692 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5693 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5694 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5695 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5696 | } |
5697 | if (argc == 1) { |
5698 | int _v; |
5699 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
5700 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5701 | if (_v) { |
5702 | return _wrap_parformat__SWIG_1(self, args); |
5703 | } |
5704 | } |
5705 | if (argc == 2) { |
5706 | int _v; |
5707 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
5708 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5709 | if (_v) { |
5710 | { |
5711 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
5712 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5713 | } |
5714 | if (_v) { |
5715 | return _wrap_parformat__SWIG_0(self, args); |
5716 | } |
5717 | } |
5718 | } |
5719 | |
5720 | fail: |
5721 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'parformat'.\n" |
5722 | " Possible C/C++ prototypes are:\n" |
5723 | " gammalib::parformat(std::string const &,int const &)\n" |
5724 | " gammalib::parformat(std::string const &)\n"); |
5725 | return 0; |
5726 | } |
5727 | |
5728 | |
5729 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_plaw_photon_flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5730 | PyObject *resultobj = 0; |
5731 | double *arg1 = 0 ; |
5732 | double *arg2 = 0 ; |
5733 | double *arg3 = 0 ; |
5734 | double *arg4 = 0 ; |
5735 | double temp1 ; |
5736 | double val1 ; |
5737 | int ecode1 = 0 ; |
5738 | double temp2 ; |
5739 | double val2 ; |
5740 | int ecode2 = 0 ; |
5741 | double temp3 ; |
5742 | double val3 ; |
5743 | int ecode3 = 0 ; |
5744 | double temp4 ; |
5745 | double val4 ; |
5746 | int ecode4 = 0 ; |
5747 | PyObject * obj0 = 0 ; |
5748 | PyObject * obj1 = 0 ; |
5749 | PyObject * obj2 = 0 ; |
5750 | PyObject * obj3 = 0 ; |
5751 | double result; |
5752 | |
5753 | if (!PyArg_ParseTuple(args,(char *)"OOOO:plaw_photon_flux",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
5754 | ecode1 = SWIG_AsVal_double(obj0, &val1); |
5755 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
5756 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "plaw_photon_flux" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "plaw_photon_flux" "', argument " "1"" of type '" "double""'"); goto fail; } while(0); |
5757 | } |
5758 | temp1 = static_cast< double >(val1); |
5759 | arg1 = &temp1; |
5760 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
5761 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5762 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plaw_photon_flux" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "plaw_photon_flux" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
5763 | } |
5764 | temp2 = static_cast< double >(val2); |
5765 | arg2 = &temp2; |
5766 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
5767 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5768 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plaw_photon_flux" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "plaw_photon_flux" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
5769 | } |
5770 | temp3 = static_cast< double >(val3); |
5771 | arg3 = &temp3; |
5772 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
5773 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
5774 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plaw_photon_flux" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "plaw_photon_flux" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
5775 | } |
5776 | temp4 = static_cast< double >(val4); |
5777 | arg4 = &temp4; |
5778 | { |
5779 | try { |
5780 | result = (double)gammalib::plaw_photon_flux((double const &)*arg1,(double const &)*arg2,(double const &)*arg3,(double const &)*arg4); |
5781 | } |
5782 | catch (const GException::out_of_range& e) { |
5783 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5784 | } |
5785 | catch (const GExceptionHandler& e) { |
5786 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5787 | } |
5788 | catch (const std::exception& e) { |
5789 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5790 | } |
5791 | } |
5792 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5793 | return resultobj; |
5794 | fail: |
5795 | return NULL__null; |
5796 | } |
5797 | |
5798 | |
5799 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_plaw_energy_flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5800 | PyObject *resultobj = 0; |
5801 | double *arg1 = 0 ; |
5802 | double *arg2 = 0 ; |
5803 | double *arg3 = 0 ; |
5804 | double *arg4 = 0 ; |
5805 | double temp1 ; |
5806 | double val1 ; |
5807 | int ecode1 = 0 ; |
5808 | double temp2 ; |
5809 | double val2 ; |
5810 | int ecode2 = 0 ; |
5811 | double temp3 ; |
5812 | double val3 ; |
5813 | int ecode3 = 0 ; |
5814 | double temp4 ; |
5815 | double val4 ; |
5816 | int ecode4 = 0 ; |
5817 | PyObject * obj0 = 0 ; |
5818 | PyObject * obj1 = 0 ; |
5819 | PyObject * obj2 = 0 ; |
5820 | PyObject * obj3 = 0 ; |
5821 | double result; |
5822 | |
5823 | if (!PyArg_ParseTuple(args,(char *)"OOOO:plaw_energy_flux",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
5824 | ecode1 = SWIG_AsVal_double(obj0, &val1); |
5825 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
5826 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "plaw_energy_flux" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "plaw_energy_flux" "', argument " "1"" of type '" "double""'"); goto fail; } while(0); |
5827 | } |
5828 | temp1 = static_cast< double >(val1); |
5829 | arg1 = &temp1; |
5830 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
5831 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5832 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plaw_energy_flux" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "plaw_energy_flux" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
5833 | } |
5834 | temp2 = static_cast< double >(val2); |
5835 | arg2 = &temp2; |
5836 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
5837 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5838 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plaw_energy_flux" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "plaw_energy_flux" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
5839 | } |
5840 | temp3 = static_cast< double >(val3); |
5841 | arg3 = &temp3; |
5842 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
5843 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
5844 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plaw_energy_flux" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "plaw_energy_flux" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
5845 | } |
5846 | temp4 = static_cast< double >(val4); |
5847 | arg4 = &temp4; |
5848 | { |
5849 | try { |
5850 | result = (double)gammalib::plaw_energy_flux((double const &)*arg1,(double const &)*arg2,(double const &)*arg3,(double const &)*arg4); |
5851 | } |
5852 | catch (const GException::out_of_range& e) { |
5853 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5854 | } |
5855 | catch (const GExceptionHandler& e) { |
5856 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5857 | } |
5858 | catch (const std::exception& e) { |
5859 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5860 | } |
5861 | } |
5862 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5863 | return resultobj; |
5864 | fail: |
5865 | return NULL__null; |
5866 | } |
5867 | |
5868 | |
5869 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_file_exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5870 | PyObject *resultobj = 0; |
5871 | std::string *arg1 = 0 ; |
5872 | int res1 = SWIG_OLDOBJ((0)) ; |
5873 | PyObject * obj0 = 0 ; |
5874 | bool result; |
5875 | |
5876 | if (!PyArg_ParseTuple(args,(char *)"O:file_exists",&obj0)) SWIG_failgoto fail; |
5877 | { |
5878 | std::string *ptr = (std::string *)0; |
5879 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5880 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "file_exists" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "file_exists" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
5882 | } |
5883 | if (!ptr) { |
5884 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "file_exists" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "file_exists" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
5885 | } |
5886 | arg1 = ptr; |
5887 | } |
5888 | { |
5889 | try { |
5890 | result = (bool)gammalib::file_exists((std::string const &)*arg1); |
5891 | } |
5892 | catch (const GException::out_of_range& e) { |
5893 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5894 | } |
5895 | catch (const GExceptionHandler& e) { |
5896 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5897 | } |
5898 | catch (const std::exception& e) { |
5899 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5900 | } |
5901 | } |
5902 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5903 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5904 | return resultobj; |
5905 | fail: |
5906 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5907 | return NULL__null; |
5908 | } |
5909 | |
5910 | |
5911 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_isinfinite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5912 | PyObject *resultobj = 0; |
5913 | double *arg1 = 0 ; |
5914 | double temp1 ; |
5915 | double val1 ; |
5916 | int ecode1 = 0 ; |
5917 | PyObject * obj0 = 0 ; |
5918 | bool result; |
5919 | |
5920 | if (!PyArg_ParseTuple(args,(char *)"O:isinfinite",&obj0)) SWIG_failgoto fail; |
5921 | ecode1 = SWIG_AsVal_double(obj0, &val1); |
5922 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
5923 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "isinfinite" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "isinfinite" "', argument " "1"" of type '" "double""'"); goto fail; } while(0); |
5924 | } |
5925 | temp1 = static_cast< double >(val1); |
5926 | arg1 = &temp1; |
5927 | { |
5928 | try { |
5929 | result = (bool)gammalib::isinfinite((double const &)*arg1); |
5930 | } |
5931 | catch (const GException::out_of_range& e) { |
5932 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5933 | } |
5934 | catch (const GExceptionHandler& e) { |
5935 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5936 | } |
5937 | catch (const std::exception& e) { |
5938 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5939 | } |
5940 | } |
5941 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5942 | return resultobj; |
5943 | fail: |
5944 | return NULL__null; |
5945 | } |
5946 | |
5947 | |
5948 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_isnotanumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5949 | PyObject *resultobj = 0; |
5950 | double *arg1 = 0 ; |
5951 | double temp1 ; |
5952 | double val1 ; |
5953 | int ecode1 = 0 ; |
5954 | PyObject * obj0 = 0 ; |
5955 | bool result; |
5956 | |
5957 | if (!PyArg_ParseTuple(args,(char *)"O:isnotanumber",&obj0)) SWIG_failgoto fail; |
5958 | ecode1 = SWIG_AsVal_double(obj0, &val1); |
5959 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
5960 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "isnotanumber" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "isnotanumber" "', argument " "1"" of type '" "double""'"); goto fail; } while(0); |
5961 | } |
5962 | temp1 = static_cast< double >(val1); |
5963 | arg1 = &temp1; |
5964 | { |
5965 | try { |
5966 | result = (bool)gammalib::isnotanumber((double const &)*arg1); |
5967 | } |
5968 | catch (const GException::out_of_range& e) { |
5969 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5970 | } |
5971 | catch (const GExceptionHandler& e) { |
5972 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5973 | } |
5974 | catch (const std::exception& e) { |
5975 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5976 | } |
5977 | } |
5978 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5979 | return resultobj; |
5980 | fail: |
5981 | return NULL__null; |
5982 | } |
5983 | |
5984 | |
5985 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GNodeArray__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5986 | PyObject *resultobj = 0; |
5987 | GNodeArray *result = 0 ; |
5988 | |
5989 | if (!PyArg_ParseTuple(args,(char *)":new_GNodeArray")) SWIG_failgoto fail; |
5990 | { |
5991 | try { |
5992 | result = (GNodeArray *)new GNodeArray(); |
5993 | } |
5994 | catch (const GException::out_of_range& e) { |
5995 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5996 | } |
5997 | catch (const GExceptionHandler& e) { |
5998 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5999 | } |
6000 | catch (const std::exception& e) { |
6001 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6002 | } |
6003 | } |
6004 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GNodeArray, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], (( 0x1 << 1) | 0x1) | 0); |
6005 | return resultobj; |
6006 | fail: |
6007 | return NULL__null; |
6008 | } |
6009 | |
6010 | |
6011 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GNodeArray__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6012 | PyObject *resultobj = 0; |
6013 | int *arg1 = 0 ; |
6014 | double *arg2 = (double *) 0 ; |
6015 | int temp1 ; |
6016 | int val1 ; |
6017 | int ecode1 = 0 ; |
6018 | void *argp2 = 0 ; |
6019 | int res2 = 0 ; |
6020 | PyObject * obj0 = 0 ; |
6021 | PyObject * obj1 = 0 ; |
6022 | GNodeArray *result = 0 ; |
6023 | |
6024 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GNodeArray",&obj0,&obj1)) SWIG_failgoto fail; |
6025 | ecode1 = SWIG_AsVal_int(obj0, &val1); |
6026 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
6027 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GNodeArray" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GNodeArray" "', argument " "1"" of type '" "int""'"); goto fail; } while(0); |
6028 | } |
6029 | temp1 = static_cast< int >(val1); |
6030 | arg1 = &temp1; |
6031 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10] , 0 | 0, 0); |
6032 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6033 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GNodeArray" "', argument " "2"" of type '" "double const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GNodeArray" "', argument " "2"" of type '" "double const *""'"); goto fail; } while(0); |
6034 | } |
6035 | arg2 = reinterpret_cast< double * >(argp2); |
6036 | { |
6037 | try { |
6038 | result = (GNodeArray *)new GNodeArray((int const &)*arg1,(double const *)arg2); |
6039 | } |
6040 | catch (const GException::out_of_range& e) { |
6041 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6042 | } |
6043 | catch (const GExceptionHandler& e) { |
6044 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6045 | } |
6046 | catch (const std::exception& e) { |
6047 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6048 | } |
6049 | } |
6050 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GNodeArray, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], (( 0x1 << 1) | 0x1) | 0); |
6051 | return resultobj; |
6052 | fail: |
6053 | return NULL__null; |
6054 | } |
6055 | |
6056 | |
6057 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GNodeArray__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6058 | PyObject *resultobj = 0; |
6059 | GVector *arg1 = 0 ; |
6060 | void *argp1 = 0 ; |
6061 | int res1 = 0 ; |
6062 | PyObject * obj0 = 0 ; |
6063 | GNodeArray *result = 0 ; |
6064 | |
6065 | if (!PyArg_ParseTuple(args,(char *)"O:new_GNodeArray",&obj0)) SWIG_failgoto fail; |
6066 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
6067 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GNodeArray" "', argument " "1"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GNodeArray" "', argument " "1"" of type '" "GVector const &""'"); goto fail; } while (0); |
6069 | } |
6070 | if (!argp1) { |
6071 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GNodeArray" "', argument " "1"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GNodeArray" "', argument " "1"" of type '" "GVector const &""'"); goto fail; } while(0); |
6072 | } |
6073 | arg1 = reinterpret_cast< GVector * >(argp1); |
6074 | { |
6075 | try { |
6076 | result = (GNodeArray *)new GNodeArray((GVector const &)*arg1); |
6077 | } |
6078 | catch (const GException::out_of_range& e) { |
6079 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6080 | } |
6081 | catch (const GExceptionHandler& e) { |
6082 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6083 | } |
6084 | catch (const std::exception& e) { |
6085 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6086 | } |
6087 | } |
6088 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GNodeArray, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], (( 0x1 << 1) | 0x1) | 0); |
6089 | return resultobj; |
6090 | fail: |
6091 | return NULL__null; |
6092 | } |
6093 | |
6094 | |
6095 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GNodeArray__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6096 | PyObject *resultobj = 0; |
6097 | std::vector< double,std::allocator< double > > *arg1 = 0 ; |
6098 | void *argp1 = 0 ; |
6099 | int res1 = 0 ; |
6100 | PyObject * obj0 = 0 ; |
6101 | GNodeArray *result = 0 ; |
6102 | |
6103 | if (!PyArg_ParseTuple(args,(char *)"O:new_GNodeArray",&obj0)) SWIG_failgoto fail; |
6104 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
6105 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GNodeArray" "', argument " "1"" of type '" "std::vector< double,std::allocator< double > > const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GNodeArray" "', argument " "1"" of type '" "std::vector< double,std::allocator< double > > const &" "'"); goto fail; } while(0); |
6107 | } |
6108 | if (!argp1) { |
6109 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GNodeArray" "', argument " "1"" of type '" "std::vector< double,std::allocator< double > > const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GNodeArray" "', argument " "1"" of type '" "std::vector< double,std::allocator< double > > const &" "'"); goto fail; } while(0); |
6110 | } |
6111 | arg1 = reinterpret_cast< std::vector< double,std::allocator< double > > * >(argp1); |
6112 | { |
6113 | try { |
6114 | result = (GNodeArray *)new GNodeArray((std::vector< double,std::allocator< double > > const &)*arg1); |
6115 | } |
6116 | catch (const GException::out_of_range& e) { |
6117 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6118 | } |
6119 | catch (const GExceptionHandler& e) { |
6120 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6121 | } |
6122 | catch (const std::exception& e) { |
6123 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6124 | } |
6125 | } |
6126 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GNodeArray, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], (( 0x1 << 1) | 0x1) | 0); |
6127 | return resultobj; |
6128 | fail: |
6129 | return NULL__null; |
6130 | } |
6131 | |
6132 | |
6133 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GNodeArray__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6134 | PyObject *resultobj = 0; |
6135 | GNodeArray *arg1 = 0 ; |
6136 | void *argp1 = 0 ; |
6137 | int res1 = 0 ; |
6138 | PyObject * obj0 = 0 ; |
6139 | GNodeArray *result = 0 ; |
6140 | |
6141 | if (!PyArg_ParseTuple(args,(char *)"O:new_GNodeArray",&obj0)) SWIG_failgoto fail; |
6142 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GNodeArray, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6143 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GNodeArray" "', argument " "1"" of type '" "GNodeArray const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GNodeArray" "', argument " "1"" of type '" "GNodeArray const &""'"); goto fail; } while (0); |
6145 | } |
6146 | if (!argp1) { |
6147 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GNodeArray" "', argument " "1"" of type '" "GNodeArray const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GNodeArray" "', argument " "1"" of type '" "GNodeArray const &""'"); goto fail; } while(0); |
6148 | } |
6149 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6150 | { |
6151 | try { |
6152 | result = (GNodeArray *)new GNodeArray((GNodeArray const &)*arg1); |
6153 | } |
6154 | catch (const GException::out_of_range& e) { |
6155 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6156 | } |
6157 | catch (const GExceptionHandler& e) { |
6158 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6159 | } |
6160 | catch (const std::exception& e) { |
6161 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6162 | } |
6163 | } |
6164 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GNodeArray, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], (( 0x1 << 1) | 0x1) | 0); |
6165 | return resultobj; |
6166 | fail: |
6167 | return NULL__null; |
6168 | } |
6169 | |
6170 | |
6171 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GNodeArray(PyObject *self, PyObject *args) { |
6172 | int argc; |
6173 | PyObject *argv[3]; |
6174 | int ii; |
6175 | |
6176 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6177 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6178 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6179 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6180 | } |
6181 | if (argc == 0) { |
6182 | return _wrap_new_GNodeArray__SWIG_0(self, args); |
6183 | } |
6184 | if (argc == 1) { |
6185 | int _v; |
6186 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[8], 0, 0); |
6187 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6188 | if (_v) { |
6189 | return _wrap_new_GNodeArray__SWIG_2(self, args); |
6190 | } |
6191 | } |
6192 | if (argc == 1) { |
6193 | int _v; |
6194 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[13], 0, 0 ); |
6195 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6196 | if (_v) { |
6197 | return _wrap_new_GNodeArray__SWIG_3(self, args); |
6198 | } |
6199 | } |
6200 | if (argc == 1) { |
6201 | int _v; |
6202 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GNodeArray, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[3], 0, 0); |
6203 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6204 | if (_v) { |
6205 | return _wrap_new_GNodeArray__SWIG_4(self, args); |
6206 | } |
6207 | } |
6208 | if (argc == 2) { |
6209 | int _v; |
6210 | { |
6211 | int res = SWIG_AsVal_int(argv[0], NULL__null); |
6212 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6213 | } |
6214 | if (_v) { |
6215 | void *vptr = 0; |
6216 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_double, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[10 ], 0, 0); |
6217 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6218 | if (_v) { |
6219 | return _wrap_new_GNodeArray__SWIG_1(self, args); |
6220 | } |
6221 | } |
6222 | } |
6223 | |
6224 | fail: |
6225 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GNodeArray'.\n" |
6226 | " Possible C/C++ prototypes are:\n" |
6227 | " GNodeArray::GNodeArray()\n" |
6228 | " GNodeArray::GNodeArray(int const &,double const *)\n" |
6229 | " GNodeArray::GNodeArray(GVector const &)\n" |
6230 | " GNodeArray::GNodeArray(std::vector< double,std::allocator< double > > const &)\n" |
6231 | " GNodeArray::GNodeArray(GNodeArray const &)\n"); |
6232 | return 0; |
6233 | } |
6234 | |
6235 | |
6236 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GNodeArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6237 | PyObject *resultobj = 0; |
6238 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6239 | void *argp1 = 0 ; |
6240 | int res1 = 0 ; |
6241 | PyObject * obj0 = 0 ; |
6242 | |
6243 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GNodeArray",&obj0)) SWIG_failgoto fail; |
6244 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0x1 | 0, 0); |
6245 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GNodeArray" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GNodeArray" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6247 | } |
6248 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6249 | { |
6250 | try { |
6251 | delete arg1; |
6252 | } |
6253 | catch (const GException::out_of_range& e) { |
6254 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6255 | } |
6256 | catch (const GExceptionHandler& e) { |
6257 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6258 | } |
6259 | catch (const std::exception& e) { |
6260 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6261 | } |
6262 | } |
6263 | resultobj = SWIG_Py_Void(); |
6264 | return resultobj; |
6265 | fail: |
6266 | return NULL__null; |
6267 | } |
6268 | |
6269 | |
6270 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6271 | PyObject *resultobj = 0; |
6272 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6273 | void *argp1 = 0 ; |
6274 | int res1 = 0 ; |
6275 | PyObject * obj0 = 0 ; |
6276 | |
6277 | if (!PyArg_ParseTuple(args,(char *)"O:GNodeArray_clear",&obj0)) SWIG_failgoto fail; |
6278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6279 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_clear" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_clear" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6281 | } |
6282 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6283 | { |
6284 | try { |
6285 | (arg1)->clear(); |
6286 | } |
6287 | catch (const GException::out_of_range& e) { |
6288 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6289 | } |
6290 | catch (const GExceptionHandler& e) { |
6291 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6292 | } |
6293 | catch (const std::exception& e) { |
6294 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6295 | } |
6296 | } |
6297 | resultobj = SWIG_Py_Void(); |
6298 | return resultobj; |
6299 | fail: |
6300 | return NULL__null; |
6301 | } |
6302 | |
6303 | |
6304 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6305 | PyObject *resultobj = 0; |
6306 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6307 | void *argp1 = 0 ; |
6308 | int res1 = 0 ; |
6309 | PyObject * obj0 = 0 ; |
6310 | GNodeArray *result = 0 ; |
6311 | |
6312 | if (!PyArg_ParseTuple(args,(char *)"O:GNodeArray_clone",&obj0)) SWIG_failgoto fail; |
6313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6314 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_clone" "', argument " "1"" of type '" "GNodeArray const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_clone" "', argument " "1"" of type '" "GNodeArray const *""'"); goto fail; } while (0); |
6316 | } |
6317 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6318 | { |
6319 | try { |
6320 | result = (GNodeArray *)((GNodeArray const *)arg1)->clone(); |
6321 | } |
6322 | catch (const GException::out_of_range& e) { |
6323 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6324 | } |
6325 | catch (const GExceptionHandler& e) { |
6326 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6327 | } |
6328 | catch (const std::exception& e) { |
6329 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6330 | } |
6331 | } |
6332 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], 0 | 0); |
6333 | return resultobj; |
6334 | fail: |
6335 | return NULL__null; |
6336 | } |
6337 | |
6338 | |
6339 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6340 | PyObject *resultobj = 0; |
6341 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6342 | int *arg2 = 0 ; |
6343 | void *argp1 = 0 ; |
6344 | int res1 = 0 ; |
6345 | int temp2 ; |
6346 | int val2 ; |
6347 | int ecode2 = 0 ; |
6348 | PyObject * obj0 = 0 ; |
6349 | PyObject * obj1 = 0 ; |
6350 | double *result = 0 ; |
6351 | |
6352 | if (!PyArg_ParseTuple(args,(char *)"OO:GNodeArray_at",&obj0,&obj1)) SWIG_failgoto fail; |
6353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6354 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_at" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_at" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6356 | } |
6357 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6358 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6359 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6360 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GNodeArray_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GNodeArray_at" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
6361 | } |
6362 | temp2 = static_cast< int >(val2); |
6363 | arg2 = &temp2; |
6364 | { |
6365 | try { |
6366 | result = (double *) &(arg1)->at((int const &)*arg2); |
6367 | } |
6368 | catch (const GException::out_of_range& e) { |
6369 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6370 | } |
6371 | catch (const GExceptionHandler& e) { |
6372 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6373 | } |
6374 | catch (const std::exception& e) { |
6375 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6376 | } |
6377 | } |
6378 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], 0 | 0); |
6379 | return resultobj; |
6380 | fail: |
6381 | return NULL__null; |
6382 | } |
6383 | |
6384 | |
6385 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6386 | PyObject *resultobj = 0; |
6387 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6388 | void *argp1 = 0 ; |
6389 | int res1 = 0 ; |
6390 | PyObject * obj0 = 0 ; |
6391 | int result; |
6392 | |
6393 | if (!PyArg_ParseTuple(args,(char *)"O:GNodeArray_size",&obj0)) SWIG_failgoto fail; |
6394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6395 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_size" "', argument " "1"" of type '" "GNodeArray const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_size" "', argument " "1"" of type '" "GNodeArray const *""'"); goto fail; } while (0); |
6397 | } |
6398 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6399 | { |
6400 | try { |
6401 | result = (int)((GNodeArray const *)arg1)->size(); |
6402 | } |
6403 | catch (const GException::out_of_range& e) { |
6404 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6405 | } |
6406 | catch (const GExceptionHandler& e) { |
6407 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6408 | } |
6409 | catch (const std::exception& e) { |
6410 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6411 | } |
6412 | } |
6413 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6414 | return resultobj; |
6415 | fail: |
6416 | return NULL__null; |
6417 | } |
6418 | |
6419 | |
6420 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6421 | PyObject *resultobj = 0; |
6422 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6423 | void *argp1 = 0 ; |
6424 | int res1 = 0 ; |
6425 | PyObject * obj0 = 0 ; |
6426 | bool result; |
6427 | |
6428 | if (!PyArg_ParseTuple(args,(char *)"O:GNodeArray_isempty",&obj0)) SWIG_failgoto fail; |
6429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6430 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_isempty" "', argument " "1"" of type '" "GNodeArray const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_isempty" "', argument " "1"" of type '" "GNodeArray const *""'"); goto fail; } while (0); |
6432 | } |
6433 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6434 | { |
6435 | try { |
6436 | result = (bool)((GNodeArray const *)arg1)->isempty(); |
6437 | } |
6438 | catch (const GException::out_of_range& e) { |
6439 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6440 | } |
6441 | catch (const GExceptionHandler& e) { |
6442 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6443 | } |
6444 | catch (const std::exception& e) { |
6445 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6446 | } |
6447 | } |
6448 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
6449 | return resultobj; |
6450 | fail: |
6451 | return NULL__null; |
6452 | } |
6453 | |
6454 | |
6455 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6456 | PyObject *resultobj = 0; |
6457 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6458 | double *arg2 = 0 ; |
6459 | void *argp1 = 0 ; |
6460 | int res1 = 0 ; |
6461 | double temp2 ; |
6462 | double val2 ; |
6463 | int ecode2 = 0 ; |
6464 | PyObject * obj0 = 0 ; |
6465 | PyObject * obj1 = 0 ; |
6466 | |
6467 | if (!PyArg_ParseTuple(args,(char *)"OO:GNodeArray_append",&obj0,&obj1)) SWIG_failgoto fail; |
6468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6469 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_append" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_append" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6471 | } |
6472 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6473 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6474 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6475 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GNodeArray_append" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GNodeArray_append" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6476 | } |
6477 | temp2 = static_cast< double >(val2); |
6478 | arg2 = &temp2; |
6479 | { |
6480 | try { |
6481 | (arg1)->append((double const &)*arg2); |
6482 | } |
6483 | catch (const GException::out_of_range& e) { |
6484 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6485 | } |
6486 | catch (const GExceptionHandler& e) { |
6487 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6488 | } |
6489 | catch (const std::exception& e) { |
6490 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6491 | } |
6492 | } |
6493 | resultobj = SWIG_Py_Void(); |
6494 | return resultobj; |
6495 | fail: |
6496 | return NULL__null; |
6497 | } |
6498 | |
6499 | |
6500 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6501 | PyObject *resultobj = 0; |
6502 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6503 | int *arg2 = 0 ; |
6504 | double *arg3 = 0 ; |
6505 | void *argp1 = 0 ; |
6506 | int res1 = 0 ; |
6507 | int temp2 ; |
6508 | int val2 ; |
6509 | int ecode2 = 0 ; |
6510 | double temp3 ; |
6511 | double val3 ; |
6512 | int ecode3 = 0 ; |
6513 | PyObject * obj0 = 0 ; |
6514 | PyObject * obj1 = 0 ; |
6515 | PyObject * obj2 = 0 ; |
6516 | |
6517 | if (!PyArg_ParseTuple(args,(char *)"OOO:GNodeArray_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6519 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_insert" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_insert" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6521 | } |
6522 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6523 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6524 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6525 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GNodeArray_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GNodeArray_insert" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
6526 | } |
6527 | temp2 = static_cast< int >(val2); |
6528 | arg2 = &temp2; |
6529 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
6530 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6531 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GNodeArray_insert" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GNodeArray_insert" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
6532 | } |
6533 | temp3 = static_cast< double >(val3); |
6534 | arg3 = &temp3; |
6535 | { |
6536 | try { |
6537 | (arg1)->insert((int const &)*arg2,(double const &)*arg3); |
6538 | } |
6539 | catch (const GException::out_of_range& e) { |
6540 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6541 | } |
6542 | catch (const GExceptionHandler& e) { |
6543 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6544 | } |
6545 | catch (const std::exception& e) { |
6546 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6547 | } |
6548 | } |
6549 | resultobj = SWIG_Py_Void(); |
6550 | return resultobj; |
6551 | fail: |
6552 | return NULL__null; |
6553 | } |
6554 | |
6555 | |
6556 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6557 | PyObject *resultobj = 0; |
6558 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6559 | int *arg2 = 0 ; |
6560 | void *argp1 = 0 ; |
6561 | int res1 = 0 ; |
6562 | int temp2 ; |
6563 | int val2 ; |
6564 | int ecode2 = 0 ; |
6565 | PyObject * obj0 = 0 ; |
6566 | PyObject * obj1 = 0 ; |
6567 | |
6568 | if (!PyArg_ParseTuple(args,(char *)"OO:GNodeArray_remove",&obj0,&obj1)) SWIG_failgoto fail; |
6569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6570 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_remove" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_remove" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6572 | } |
6573 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6574 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6575 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6576 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GNodeArray_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GNodeArray_remove" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
6577 | } |
6578 | temp2 = static_cast< int >(val2); |
6579 | arg2 = &temp2; |
6580 | { |
6581 | try { |
6582 | (arg1)->remove((int const &)*arg2); |
6583 | } |
6584 | catch (const GException::out_of_range& e) { |
6585 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6586 | } |
6587 | catch (const GExceptionHandler& e) { |
6588 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6589 | } |
6590 | catch (const std::exception& e) { |
6591 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6592 | } |
6593 | } |
6594 | resultobj = SWIG_Py_Void(); |
6595 | return resultobj; |
6596 | fail: |
6597 | return NULL__null; |
6598 | } |
6599 | |
6600 | |
6601 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6602 | PyObject *resultobj = 0; |
6603 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6604 | int *arg2 = 0 ; |
6605 | void *argp1 = 0 ; |
6606 | int res1 = 0 ; |
6607 | int temp2 ; |
6608 | int val2 ; |
6609 | int ecode2 = 0 ; |
6610 | PyObject * obj0 = 0 ; |
6611 | PyObject * obj1 = 0 ; |
6612 | |
6613 | if (!PyArg_ParseTuple(args,(char *)"OO:GNodeArray_reserve",&obj0,&obj1)) SWIG_failgoto fail; |
6614 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6615 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_reserve" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_reserve" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6617 | } |
6618 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6619 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6620 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6621 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GNodeArray_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GNodeArray_reserve" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
6622 | } |
6623 | temp2 = static_cast< int >(val2); |
6624 | arg2 = &temp2; |
6625 | { |
6626 | try { |
6627 | (arg1)->reserve((int const &)*arg2); |
6628 | } |
6629 | catch (const GException::out_of_range& e) { |
6630 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6631 | } |
6632 | catch (const GExceptionHandler& e) { |
6633 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6634 | } |
6635 | catch (const std::exception& e) { |
6636 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6637 | } |
6638 | } |
6639 | resultobj = SWIG_Py_Void(); |
6640 | return resultobj; |
6641 | fail: |
6642 | return NULL__null; |
6643 | } |
6644 | |
6645 | |
6646 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6647 | PyObject *resultobj = 0; |
6648 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6649 | GNodeArray *arg2 = 0 ; |
6650 | void *argp1 = 0 ; |
6651 | int res1 = 0 ; |
6652 | void *argp2 = 0 ; |
6653 | int res2 = 0 ; |
6654 | PyObject * obj0 = 0 ; |
6655 | PyObject * obj1 = 0 ; |
6656 | |
6657 | if (!PyArg_ParseTuple(args,(char *)"OO:GNodeArray_extend",&obj0,&obj1)) SWIG_failgoto fail; |
6658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6659 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_extend" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_extend" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6661 | } |
6662 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6663 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GNodeArray, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3], 0 | 0, 0); |
6664 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6665 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GNodeArray_extend" "', argument " "2"" of type '" "GNodeArray const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GNodeArray_extend" "', argument " "2"" of type '" "GNodeArray const &""'"); goto fail; } while (0); |
6666 | } |
6667 | if (!argp2) { |
6668 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GNodeArray_extend" "', argument " "2"" of type '" "GNodeArray const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GNodeArray_extend" "', argument " "2"" of type '" "GNodeArray const &""'"); goto fail; } while(0); |
6669 | } |
6670 | arg2 = reinterpret_cast< GNodeArray * >(argp2); |
6671 | { |
6672 | try { |
6673 | (arg1)->extend((GNodeArray const &)*arg2); |
6674 | } |
6675 | catch (const GException::out_of_range& e) { |
6676 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6677 | } |
6678 | catch (const GExceptionHandler& e) { |
6679 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6680 | } |
6681 | catch (const std::exception& e) { |
6682 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6683 | } |
6684 | } |
6685 | resultobj = SWIG_Py_Void(); |
6686 | return resultobj; |
6687 | fail: |
6688 | return NULL__null; |
6689 | } |
6690 | |
6691 | |
6692 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_nodes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6693 | PyObject *resultobj = 0; |
6694 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6695 | int *arg2 = 0 ; |
6696 | double *arg3 = (double *) 0 ; |
6697 | void *argp1 = 0 ; |
6698 | int res1 = 0 ; |
6699 | int temp2 ; |
6700 | int val2 ; |
6701 | int ecode2 = 0 ; |
6702 | void *argp3 = 0 ; |
6703 | int res3 = 0 ; |
6704 | PyObject * obj0 = 0 ; |
6705 | PyObject * obj1 = 0 ; |
6706 | PyObject * obj2 = 0 ; |
6707 | |
6708 | if (!PyArg_ParseTuple(args,(char *)"OOO:GNodeArray_nodes",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6710 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_nodes" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_nodes" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6712 | } |
6713 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6714 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6715 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6716 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GNodeArray_nodes" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GNodeArray_nodes" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
6717 | } |
6718 | temp2 = static_cast< int >(val2); |
6719 | arg2 = &temp2; |
6720 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[10] , 0 | 0, 0); |
6721 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
6722 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GNodeArray_nodes" "', argument " "3"" of type '" "double const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GNodeArray_nodes" "', argument " "3"" of type '" "double const *""'"); goto fail; } while(0); |
6723 | } |
6724 | arg3 = reinterpret_cast< double * >(argp3); |
6725 | { |
6726 | try { |
6727 | (arg1)->nodes((int const &)*arg2,(double const *)arg3); |
6728 | } |
6729 | catch (const GException::out_of_range& e) { |
6730 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6731 | } |
6732 | catch (const GExceptionHandler& e) { |
6733 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6734 | } |
6735 | catch (const std::exception& e) { |
6736 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6737 | } |
6738 | } |
6739 | resultobj = SWIG_Py_Void(); |
6740 | return resultobj; |
6741 | fail: |
6742 | return NULL__null; |
6743 | } |
6744 | |
6745 | |
6746 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_nodes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6747 | PyObject *resultobj = 0; |
6748 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6749 | GVector *arg2 = 0 ; |
6750 | void *argp1 = 0 ; |
6751 | int res1 = 0 ; |
6752 | void *argp2 = 0 ; |
6753 | int res2 = 0 ; |
6754 | PyObject * obj0 = 0 ; |
6755 | PyObject * obj1 = 0 ; |
6756 | |
6757 | if (!PyArg_ParseTuple(args,(char *)"OO:GNodeArray_nodes",&obj0,&obj1)) SWIG_failgoto fail; |
6758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6759 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_nodes" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_nodes" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6761 | } |
6762 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6763 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0 | 0, 0); |
6764 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6765 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GNodeArray_nodes" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GNodeArray_nodes" "', argument " "2"" of type '" "GVector const &""'"); goto fail; } while (0); |
6766 | } |
6767 | if (!argp2) { |
6768 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GNodeArray_nodes" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GNodeArray_nodes" "', argument " "2"" of type '" "GVector const &""'"); goto fail; } while(0); |
6769 | } |
6770 | arg2 = reinterpret_cast< GVector * >(argp2); |
6771 | { |
6772 | try { |
6773 | (arg1)->nodes((GVector const &)*arg2); |
6774 | } |
6775 | catch (const GException::out_of_range& e) { |
6776 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6777 | } |
6778 | catch (const GExceptionHandler& e) { |
6779 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6780 | } |
6781 | catch (const std::exception& e) { |
6782 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6783 | } |
6784 | } |
6785 | resultobj = SWIG_Py_Void(); |
6786 | return resultobj; |
6787 | fail: |
6788 | return NULL__null; |
6789 | } |
6790 | |
6791 | |
6792 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_nodes__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6793 | PyObject *resultobj = 0; |
6794 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6795 | std::vector< double,std::allocator< double > > *arg2 = 0 ; |
6796 | void *argp1 = 0 ; |
6797 | int res1 = 0 ; |
6798 | void *argp2 = 0 ; |
6799 | int res2 = 0 ; |
6800 | PyObject * obj0 = 0 ; |
6801 | PyObject * obj1 = 0 ; |
6802 | |
6803 | if (!PyArg_ParseTuple(args,(char *)"OO:GNodeArray_nodes",&obj0,&obj1)) SWIG_failgoto fail; |
6804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6805 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_nodes" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_nodes" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
6807 | } |
6808 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6809 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13] , 0 | 0, 0); |
6810 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6811 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GNodeArray_nodes" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > > const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GNodeArray_nodes" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > > const &" "'"); goto fail; } while(0); |
6812 | } |
6813 | if (!argp2) { |
6814 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GNodeArray_nodes" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > > const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GNodeArray_nodes" "', argument " "2"" of type '" "std::vector< double,std::allocator< double > > const &" "'"); goto fail; } while(0); |
6815 | } |
6816 | arg2 = reinterpret_cast< std::vector< double,std::allocator< double > > * >(argp2); |
6817 | { |
6818 | try { |
6819 | (arg1)->nodes((std::vector< double,std::allocator< double > > const &)*arg2); |
6820 | } |
6821 | catch (const GException::out_of_range& e) { |
6822 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6823 | } |
6824 | catch (const GExceptionHandler& e) { |
6825 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6826 | } |
6827 | catch (const std::exception& e) { |
6828 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6829 | } |
6830 | } |
6831 | resultobj = SWIG_Py_Void(); |
6832 | return resultobj; |
6833 | fail: |
6834 | return NULL__null; |
6835 | } |
6836 | |
6837 | |
6838 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_nodes(PyObject *self, PyObject *args) { |
6839 | int argc; |
6840 | PyObject *argv[4]; |
6841 | int ii; |
6842 | |
6843 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6844 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6845 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
6846 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6847 | } |
6848 | if (argc == 2) { |
6849 | int _v; |
6850 | void *vptr = 0; |
6851 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GNodeArray, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3 ], 0, 0); |
6852 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6853 | if (_v) { |
6854 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[8], 0, 0); |
6855 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6856 | if (_v) { |
6857 | return _wrap_GNodeArray_nodes__SWIG_1(self, args); |
6858 | } |
6859 | } |
6860 | } |
6861 | if (argc == 2) { |
6862 | int _v; |
6863 | void *vptr = 0; |
6864 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GNodeArray, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3 ], 0, 0); |
6865 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6866 | if (_v) { |
6867 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[13], 0, 0 ); |
6868 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6869 | if (_v) { |
6870 | return _wrap_GNodeArray_nodes__SWIG_2(self, args); |
6871 | } |
6872 | } |
6873 | } |
6874 | if (argc == 3) { |
6875 | int _v; |
6876 | void *vptr = 0; |
6877 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GNodeArray, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3 ], 0, 0); |
6878 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6879 | if (_v) { |
6880 | { |
6881 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
6882 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6883 | } |
6884 | if (_v) { |
6885 | void *vptr = 0; |
6886 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_double, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], &vptr, swig_types[10 ], 0, 0); |
6887 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6888 | if (_v) { |
6889 | return _wrap_GNodeArray_nodes__SWIG_0(self, args); |
6890 | } |
6891 | } |
6892 | } |
6893 | } |
6894 | |
6895 | fail: |
6896 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GNodeArray_nodes'.\n" |
6897 | " Possible C/C++ prototypes are:\n" |
6898 | " GNodeArray::nodes(int const &,double const *)\n" |
6899 | " GNodeArray::nodes(GVector const &)\n" |
6900 | " GNodeArray::nodes(std::vector< double,std::allocator< double > > const &)\n"); |
6901 | return 0; |
6902 | } |
6903 | |
6904 | |
6905 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_interpolate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6906 | PyObject *resultobj = 0; |
6907 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6908 | double *arg2 = 0 ; |
6909 | std::vector< double,std::allocator< double > > *arg3 = 0 ; |
6910 | void *argp1 = 0 ; |
6911 | int res1 = 0 ; |
6912 | double temp2 ; |
6913 | double val2 ; |
6914 | int ecode2 = 0 ; |
6915 | void *argp3 = 0 ; |
6916 | int res3 = 0 ; |
6917 | PyObject * obj0 = 0 ; |
6918 | PyObject * obj1 = 0 ; |
6919 | PyObject * obj2 = 0 ; |
6920 | double result; |
6921 | |
6922 | if (!PyArg_ParseTuple(args,(char *)"OOO:GNodeArray_interpolate",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6924 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_interpolate" "', argument " "1"" of type '" "GNodeArray const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_interpolate" "', argument " "1"" of type '" "GNodeArray const *""'"); goto fail; } while (0); |
6926 | } |
6927 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6928 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6929 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6930 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GNodeArray_interpolate" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GNodeArray_interpolate" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
6931 | } |
6932 | temp2 = static_cast< double >(val2); |
6933 | arg2 = &temp2; |
6934 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[13] , 0 | 0, 0); |
6935 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
6936 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GNodeArray_interpolate" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GNodeArray_interpolate" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &" "'"); goto fail; } while(0); |
6937 | } |
6938 | if (!argp3) { |
6939 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GNodeArray_interpolate" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GNodeArray_interpolate" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > > const &" "'"); goto fail; } while(0); |
6940 | } |
6941 | arg3 = reinterpret_cast< std::vector< double,std::allocator< double > > * >(argp3); |
6942 | { |
6943 | try { |
6944 | result = (double)((GNodeArray const *)arg1)->interpolate((double const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3); |
6945 | } |
6946 | catch (const GException::out_of_range& e) { |
6947 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6948 | } |
6949 | catch (const GExceptionHandler& e) { |
6950 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6951 | } |
6952 | catch (const std::exception& e) { |
6953 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6954 | } |
6955 | } |
6956 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
6957 | return resultobj; |
6958 | fail: |
6959 | return NULL__null; |
6960 | } |
6961 | |
6962 | |
6963 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_set_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6964 | PyObject *resultobj = 0; |
6965 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
6966 | double *arg2 = 0 ; |
6967 | void *argp1 = 0 ; |
6968 | int res1 = 0 ; |
6969 | double temp2 ; |
6970 | double val2 ; |
6971 | int ecode2 = 0 ; |
6972 | PyObject * obj0 = 0 ; |
6973 | PyObject * obj1 = 0 ; |
6974 | |
6975 | if (!PyArg_ParseTuple(args,(char *)"OO:GNodeArray_set_value",&obj0,&obj1)) SWIG_failgoto fail; |
6976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6977 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_set_value" "', argument " "1"" of type '" "GNodeArray const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_set_value" "', argument " "1"" of type '" "GNodeArray const *""'"); goto fail; } while (0); |
6979 | } |
6980 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
6981 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6982 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6983 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GNodeArray_set_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GNodeArray_set_value" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6984 | } |
6985 | temp2 = static_cast< double >(val2); |
6986 | arg2 = &temp2; |
6987 | { |
6988 | try { |
6989 | ((GNodeArray const *)arg1)->set_value((double const &)*arg2); |
6990 | } |
6991 | catch (const GException::out_of_range& e) { |
6992 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6993 | } |
6994 | catch (const GExceptionHandler& e) { |
6995 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6996 | } |
6997 | catch (const std::exception& e) { |
6998 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6999 | } |
7000 | } |
7001 | resultobj = SWIG_Py_Void(); |
7002 | return resultobj; |
7003 | fail: |
7004 | return NULL__null; |
7005 | } |
7006 | |
7007 | |
7008 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_inx_left(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7009 | PyObject *resultobj = 0; |
7010 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
7011 | void *argp1 = 0 ; |
7012 | int res1 = 0 ; |
7013 | PyObject * obj0 = 0 ; |
7014 | int *result = 0 ; |
7015 | |
7016 | if (!PyArg_ParseTuple(args,(char *)"O:GNodeArray_inx_left",&obj0)) SWIG_failgoto fail; |
7017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
7018 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_inx_left" "', argument " "1"" of type '" "GNodeArray const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_inx_left" "', argument " "1"" of type '" "GNodeArray const *""'"); goto fail; } while (0); |
7020 | } |
7021 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
7022 | { |
7023 | try { |
7024 | result = (int *) &((GNodeArray const *)arg1)->inx_left(); |
7025 | } |
7026 | catch (const GException::out_of_range& e) { |
7027 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7028 | } |
7029 | catch (const GExceptionHandler& e) { |
7030 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7031 | } |
7032 | catch (const std::exception& e) { |
7033 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7034 | } |
7035 | } |
7036 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7037 | return resultobj; |
7038 | fail: |
7039 | return NULL__null; |
7040 | } |
7041 | |
7042 | |
7043 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_inx_right(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7044 | PyObject *resultobj = 0; |
7045 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
7046 | void *argp1 = 0 ; |
7047 | int res1 = 0 ; |
7048 | PyObject * obj0 = 0 ; |
7049 | int *result = 0 ; |
7050 | |
7051 | if (!PyArg_ParseTuple(args,(char *)"O:GNodeArray_inx_right",&obj0)) SWIG_failgoto fail; |
7052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
7053 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_inx_right" "', argument " "1"" of type '" "GNodeArray const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_inx_right" "', argument " "1"" of type '" "GNodeArray const *""'"); goto fail; } while (0); |
7055 | } |
7056 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
7057 | { |
7058 | try { |
7059 | result = (int *) &((GNodeArray const *)arg1)->inx_right(); |
7060 | } |
7061 | catch (const GException::out_of_range& e) { |
7062 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7063 | } |
7064 | catch (const GExceptionHandler& e) { |
7065 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7066 | } |
7067 | catch (const std::exception& e) { |
7068 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7069 | } |
7070 | } |
7071 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7072 | return resultobj; |
7073 | fail: |
7074 | return NULL__null; |
7075 | } |
7076 | |
7077 | |
7078 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_wgt_left(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7079 | PyObject *resultobj = 0; |
7080 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
7081 | void *argp1 = 0 ; |
7082 | int res1 = 0 ; |
7083 | PyObject * obj0 = 0 ; |
7084 | double *result = 0 ; |
7085 | |
7086 | if (!PyArg_ParseTuple(args,(char *)"O:GNodeArray_wgt_left",&obj0)) SWIG_failgoto fail; |
7087 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
7088 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_wgt_left" "', argument " "1"" of type '" "GNodeArray const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_wgt_left" "', argument " "1"" of type '" "GNodeArray const *""'"); goto fail; } while (0); |
7090 | } |
7091 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
7092 | { |
7093 | try { |
7094 | result = (double *) &((GNodeArray const *)arg1)->wgt_left(); |
7095 | } |
7096 | catch (const GException::out_of_range& e) { |
7097 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7098 | } |
7099 | catch (const GExceptionHandler& e) { |
7100 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7101 | } |
7102 | catch (const std::exception& e) { |
7103 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7104 | } |
7105 | } |
7106 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
7107 | return resultobj; |
7108 | fail: |
7109 | return NULL__null; |
7110 | } |
7111 | |
7112 | |
7113 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_wgt_right(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7114 | PyObject *resultobj = 0; |
7115 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
7116 | void *argp1 = 0 ; |
7117 | int res1 = 0 ; |
7118 | PyObject * obj0 = 0 ; |
7119 | double *result = 0 ; |
7120 | |
7121 | if (!PyArg_ParseTuple(args,(char *)"O:GNodeArray_wgt_right",&obj0)) SWIG_failgoto fail; |
7122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
7123 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_wgt_right" "', argument " "1"" of type '" "GNodeArray const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_wgt_right" "', argument " "1"" of type '" "GNodeArray const *""'"); goto fail; } while (0); |
7125 | } |
7126 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
7127 | { |
7128 | try { |
7129 | result = (double *) &((GNodeArray const *)arg1)->wgt_right(); |
7130 | } |
7131 | catch (const GException::out_of_range& e) { |
7132 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7133 | } |
7134 | catch (const GExceptionHandler& e) { |
7135 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7136 | } |
7137 | catch (const std::exception& e) { |
7138 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7139 | } |
7140 | } |
7141 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
7142 | return resultobj; |
7143 | fail: |
7144 | return NULL__null; |
7145 | } |
7146 | |
7147 | |
7148 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7149 | PyObject *resultobj = 0; |
7150 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
7151 | int *arg2 = 0 ; |
7152 | void *argp1 = 0 ; |
7153 | int res1 = 0 ; |
7154 | int temp2 ; |
7155 | int val2 ; |
7156 | int ecode2 = 0 ; |
7157 | PyObject * obj0 = 0 ; |
7158 | PyObject * obj1 = 0 ; |
7159 | double result; |
7160 | |
7161 | if (!PyArg_ParseTuple(args,(char *)"OO:GNodeArray___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
7162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
7163 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray___getitem__" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray___getitem__" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
7165 | } |
7166 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
7167 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7168 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7169 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GNodeArray___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GNodeArray___getitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
7170 | } |
7171 | temp2 = static_cast< int >(val2); |
7172 | arg2 = &temp2; |
7173 | { |
7174 | try { |
7175 | result = (double)GNodeArray___getitem__(arg1,(int const &)*arg2); |
7176 | } |
7177 | catch (const GException::out_of_range& e) { |
7178 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7179 | } |
7180 | catch (const GExceptionHandler& e) { |
7181 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7182 | } |
7183 | catch (const std::exception& e) { |
7184 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7185 | } |
7186 | } |
7187 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
7188 | return resultobj; |
7189 | fail: |
7190 | return NULL__null; |
7191 | } |
7192 | |
7193 | |
7194 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7195 | PyObject *resultobj = 0; |
7196 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
7197 | int *arg2 = 0 ; |
7198 | double *arg3 = 0 ; |
7199 | void *argp1 = 0 ; |
7200 | int res1 = 0 ; |
7201 | int temp2 ; |
7202 | int val2 ; |
7203 | int ecode2 = 0 ; |
7204 | double temp3 ; |
7205 | double val3 ; |
7206 | int ecode3 = 0 ; |
7207 | PyObject * obj0 = 0 ; |
7208 | PyObject * obj1 = 0 ; |
7209 | PyObject * obj2 = 0 ; |
7210 | |
7211 | if (!PyArg_ParseTuple(args,(char *)"OOO:GNodeArray___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
7213 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray___setitem__" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray___setitem__" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
7215 | } |
7216 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
7217 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7218 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7219 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GNodeArray___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GNodeArray___setitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
7220 | } |
7221 | temp2 = static_cast< int >(val2); |
7222 | arg2 = &temp2; |
7223 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
7224 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
7225 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GNodeArray___setitem__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GNodeArray___setitem__" "', argument " "3"" of type '" "double""'"); goto fail; } while (0); |
7226 | } |
7227 | temp3 = static_cast< double >(val3); |
7228 | arg3 = &temp3; |
7229 | { |
7230 | try { |
7231 | GNodeArray___setitem__(arg1,(int const &)*arg2,(double const &)*arg3); |
7232 | } |
7233 | catch (const GException::out_of_range& e) { |
7234 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7235 | } |
7236 | catch (const GExceptionHandler& e) { |
7237 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7238 | } |
7239 | catch (const std::exception& e) { |
7240 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7241 | } |
7242 | } |
7243 | resultobj = SWIG_Py_Void(); |
7244 | return resultobj; |
7245 | fail: |
7246 | return NULL__null; |
7247 | } |
7248 | |
7249 | |
7250 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GNodeArray_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7251 | PyObject *resultobj = 0; |
7252 | GNodeArray *arg1 = (GNodeArray *) 0 ; |
7253 | void *argp1 = 0 ; |
7254 | int res1 = 0 ; |
7255 | PyObject * obj0 = 0 ; |
7256 | GNodeArray result; |
7257 | |
7258 | if (!PyArg_ParseTuple(args,(char *)"O:GNodeArray_copy",&obj0)) SWIG_failgoto fail; |
7259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
7260 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GNodeArray_copy" "', argument " "1"" of type '" "GNodeArray *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GNodeArray_copy" "', argument " "1"" of type '" "GNodeArray *""'"); goto fail; } while(0); |
7262 | } |
7263 | arg1 = reinterpret_cast< GNodeArray * >(argp1); |
7264 | { |
7265 | try { |
7266 | result = GNodeArray_copy(arg1); |
7267 | } |
7268 | catch (const GException::out_of_range& e) { |
7269 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7270 | } |
7271 | catch (const GExceptionHandler& e) { |
7272 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7273 | } |
7274 | catch (const std::exception& e) { |
7275 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7276 | } |
7277 | } |
7278 | resultobj = SWIG_NewPointerObj((new GNodeArray(static_cast< const GNodeArray& >(result))), SWIGTYPE_p_GNodeArray, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GNodeArray(static_cast < const GNodeArray& >(result))), swig_types[3], 0x1 | 0); |
7279 | return resultobj; |
7280 | fail: |
7281 | return NULL__null; |
7282 | } |
7283 | |
7284 | |
7285 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GNodeArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7286 | PyObject *obj; |
7287 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
7288 | SWIG_TypeNewClientData(SWIGTYPE_p_GNodeArrayswig_types[3], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
7289 | return SWIG_Py_Void(); |
7290 | } |
7291 | |
7292 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCsv__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7293 | PyObject *resultobj = 0; |
7294 | GCsv *result = 0 ; |
7295 | |
7296 | if (!PyArg_ParseTuple(args,(char *)":new_GCsv")) SWIG_failgoto fail; |
7297 | { |
7298 | try { |
7299 | result = (GCsv *)new GCsv(); |
7300 | } |
7301 | catch (const GException::out_of_range& e) { |
7302 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7303 | } |
7304 | catch (const GExceptionHandler& e) { |
7305 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7306 | } |
7307 | catch (const std::exception& e) { |
7308 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7309 | } |
7310 | } |
7311 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCsv, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], (( 0x1 << 1) | 0x1) | 0); |
7312 | return resultobj; |
7313 | fail: |
7314 | return NULL__null; |
7315 | } |
7316 | |
7317 | |
7318 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCsv__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7319 | PyObject *resultobj = 0; |
7320 | std::string *arg1 = 0 ; |
7321 | std::string *arg2 = 0 ; |
7322 | int res1 = SWIG_OLDOBJ((0)) ; |
7323 | int res2 = SWIG_OLDOBJ((0)) ; |
7324 | PyObject * obj0 = 0 ; |
7325 | PyObject * obj1 = 0 ; |
7326 | GCsv *result = 0 ; |
7327 | |
7328 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GCsv",&obj0,&obj1)) SWIG_failgoto fail; |
7329 | { |
7330 | std::string *ptr = (std::string *)0; |
7331 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
7332 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCsv" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCsv" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
7334 | } |
7335 | if (!ptr) { |
7336 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCsv" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCsv" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7337 | } |
7338 | arg1 = ptr; |
7339 | } |
7340 | { |
7341 | std::string *ptr = (std::string *)0; |
7342 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7343 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7344 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GCsv" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GCsv" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
7345 | } |
7346 | if (!ptr) { |
7347 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCsv" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCsv" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7348 | } |
7349 | arg2 = ptr; |
7350 | } |
7351 | { |
7352 | try { |
7353 | result = (GCsv *)new GCsv((std::string const &)*arg1,(std::string const &)*arg2); |
7354 | } |
7355 | catch (const GException::out_of_range& e) { |
7356 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7357 | } |
7358 | catch (const GExceptionHandler& e) { |
7359 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7360 | } |
7361 | catch (const std::exception& e) { |
7362 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7363 | } |
7364 | } |
7365 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCsv, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], (( 0x1 << 1) | 0x1) | 0); |
7366 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7367 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7368 | return resultobj; |
7369 | fail: |
7370 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7371 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7372 | return NULL__null; |
7373 | } |
7374 | |
7375 | |
7376 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCsv__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7377 | PyObject *resultobj = 0; |
7378 | std::string *arg1 = 0 ; |
7379 | int res1 = SWIG_OLDOBJ((0)) ; |
7380 | PyObject * obj0 = 0 ; |
7381 | GCsv *result = 0 ; |
7382 | |
7383 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCsv",&obj0)) SWIG_failgoto fail; |
7384 | { |
7385 | std::string *ptr = (std::string *)0; |
7386 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
7387 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCsv" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCsv" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
7389 | } |
7390 | if (!ptr) { |
7391 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCsv" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCsv" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7392 | } |
7393 | arg1 = ptr; |
7394 | } |
7395 | { |
7396 | try { |
7397 | result = (GCsv *)new GCsv((std::string const &)*arg1); |
7398 | } |
7399 | catch (const GException::out_of_range& e) { |
7400 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7401 | } |
7402 | catch (const GExceptionHandler& e) { |
7403 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7404 | } |
7405 | catch (const std::exception& e) { |
7406 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7407 | } |
7408 | } |
7409 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCsv, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], (( 0x1 << 1) | 0x1) | 0); |
7410 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7411 | return resultobj; |
7412 | fail: |
7413 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7414 | return NULL__null; |
7415 | } |
7416 | |
7417 | |
7418 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCsv__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7419 | PyObject *resultobj = 0; |
7420 | GCsv *arg1 = 0 ; |
7421 | void *argp1 = 0 ; |
7422 | int res1 = 0 ; |
7423 | PyObject * obj0 = 0 ; |
7424 | GCsv *result = 0 ; |
7425 | |
7426 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCsv",&obj0)) SWIG_failgoto fail; |
7427 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GCsv, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7428 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCsv" "', argument " "1"" of type '" "GCsv const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCsv" "', argument " "1" " of type '" "GCsv const &""'"); goto fail; } while(0); |
7430 | } |
7431 | if (!argp1) { |
7432 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCsv" "', argument " "1"" of type '" "GCsv const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCsv" "', argument " "1"" of type '" "GCsv const &" "'"); goto fail; } while(0); |
7433 | } |
7434 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7435 | { |
7436 | try { |
7437 | result = (GCsv *)new GCsv((GCsv const &)*arg1); |
7438 | } |
7439 | catch (const GException::out_of_range& e) { |
7440 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7441 | } |
7442 | catch (const GExceptionHandler& e) { |
7443 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7444 | } |
7445 | catch (const std::exception& e) { |
7446 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7447 | } |
7448 | } |
7449 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCsv, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], (( 0x1 << 1) | 0x1) | 0); |
7450 | return resultobj; |
7451 | fail: |
7452 | return NULL__null; |
7453 | } |
7454 | |
7455 | |
7456 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCsv(PyObject *self, PyObject *args) { |
7457 | int argc; |
7458 | PyObject *argv[3]; |
7459 | int ii; |
7460 | |
7461 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7462 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7463 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7464 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7465 | } |
7466 | if (argc == 0) { |
7467 | return _wrap_new_GCsv__SWIG_0(self, args); |
7468 | } |
7469 | if (argc == 1) { |
7470 | int _v; |
7471 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GCsv, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[2], 0, 0); |
7472 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7473 | if (_v) { |
7474 | return _wrap_new_GCsv__SWIG_3(self, args); |
7475 | } |
7476 | } |
7477 | if (argc == 1) { |
7478 | int _v; |
7479 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
7480 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7481 | if (_v) { |
7482 | return _wrap_new_GCsv__SWIG_2(self, args); |
7483 | } |
7484 | } |
7485 | if (argc == 2) { |
7486 | int _v; |
7487 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
7488 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7489 | if (_v) { |
7490 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
7491 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7492 | if (_v) { |
7493 | return _wrap_new_GCsv__SWIG_1(self, args); |
7494 | } |
7495 | } |
7496 | } |
7497 | |
7498 | fail: |
7499 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GCsv'.\n" |
7500 | " Possible C/C++ prototypes are:\n" |
7501 | " GCsv::GCsv()\n" |
7502 | " GCsv::GCsv(std::string const &,std::string const &)\n" |
7503 | " GCsv::GCsv(std::string const &)\n" |
7504 | " GCsv::GCsv(GCsv const &)\n"); |
7505 | return 0; |
7506 | } |
7507 | |
7508 | |
7509 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GCsv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7510 | PyObject *resultobj = 0; |
7511 | GCsv *arg1 = (GCsv *) 0 ; |
7512 | void *argp1 = 0 ; |
7513 | int res1 = 0 ; |
7514 | PyObject * obj0 = 0 ; |
7515 | |
7516 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GCsv",&obj0)) SWIG_failgoto fail; |
7517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0x1 | 0, 0); |
7518 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCsv" "', argument " "1"" of type '" "GCsv *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GCsv" "', argument " "1"" of type '" "GCsv *""'"); goto fail; } while(0); |
7520 | } |
7521 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7522 | { |
7523 | try { |
7524 | delete arg1; |
7525 | } |
7526 | catch (const GException::out_of_range& e) { |
7527 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7528 | } |
7529 | catch (const GExceptionHandler& e) { |
7530 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7531 | } |
7532 | catch (const std::exception& e) { |
7533 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7534 | } |
7535 | } |
7536 | resultobj = SWIG_Py_Void(); |
7537 | return resultobj; |
7538 | fail: |
7539 | return NULL__null; |
7540 | } |
7541 | |
7542 | |
7543 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7544 | PyObject *resultobj = 0; |
7545 | GCsv *arg1 = (GCsv *) 0 ; |
7546 | void *argp1 = 0 ; |
7547 | int res1 = 0 ; |
7548 | PyObject * obj0 = 0 ; |
7549 | |
7550 | if (!PyArg_ParseTuple(args,(char *)"O:GCsv_clear",&obj0)) SWIG_failgoto fail; |
7551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7552 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_clear" "', argument " "1"" of type '" "GCsv *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_clear" "', argument " "1"" of type '" "GCsv *""'"); goto fail; } while(0); |
7554 | } |
7555 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7556 | { |
7557 | try { |
7558 | (arg1)->clear(); |
7559 | } |
7560 | catch (const GException::out_of_range& e) { |
7561 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7562 | } |
7563 | catch (const GExceptionHandler& e) { |
7564 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7565 | } |
7566 | catch (const std::exception& e) { |
7567 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7568 | } |
7569 | } |
7570 | resultobj = SWIG_Py_Void(); |
7571 | return resultobj; |
7572 | fail: |
7573 | return NULL__null; |
7574 | } |
7575 | |
7576 | |
7577 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7578 | PyObject *resultobj = 0; |
7579 | GCsv *arg1 = (GCsv *) 0 ; |
7580 | void *argp1 = 0 ; |
7581 | int res1 = 0 ; |
7582 | PyObject * obj0 = 0 ; |
7583 | GCsv *result = 0 ; |
7584 | |
7585 | if (!PyArg_ParseTuple(args,(char *)"O:GCsv_clone",&obj0)) SWIG_failgoto fail; |
7586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7587 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_clone" "', argument " "1"" of type '" "GCsv const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_clone" "', argument " "1"" of type '" "GCsv const *""'"); goto fail; } while(0); |
7589 | } |
7590 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7591 | { |
7592 | try { |
7593 | result = (GCsv *)((GCsv const *)arg1)->clone(); |
7594 | } |
7595 | catch (const GException::out_of_range& e) { |
7596 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7597 | } |
7598 | catch (const GExceptionHandler& e) { |
7599 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7600 | } |
7601 | catch (const std::exception& e) { |
7602 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7603 | } |
7604 | } |
7605 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], 0 | 0); |
7606 | return resultobj; |
7607 | fail: |
7608 | return NULL__null; |
7609 | } |
7610 | |
7611 | |
7612 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7613 | PyObject *resultobj = 0; |
7614 | GCsv *arg1 = (GCsv *) 0 ; |
7615 | void *argp1 = 0 ; |
7616 | int res1 = 0 ; |
7617 | PyObject * obj0 = 0 ; |
7618 | int result; |
7619 | |
7620 | if (!PyArg_ParseTuple(args,(char *)"O:GCsv_size",&obj0)) SWIG_failgoto fail; |
7621 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7622 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7623 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_size" "', argument " "1"" of type '" "GCsv const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_size" "', argument " "1" " of type '" "GCsv const *""'"); goto fail; } while(0); |
7624 | } |
7625 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7626 | { |
7627 | try { |
7628 | result = (int)((GCsv const *)arg1)->size(); |
7629 | } |
7630 | catch (const GException::out_of_range& e) { |
7631 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7632 | } |
7633 | catch (const GExceptionHandler& e) { |
7634 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7635 | } |
7636 | catch (const std::exception& e) { |
7637 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7638 | } |
7639 | } |
7640 | resultobj = SWIG_From_int(static_cast< int >(result)); |
7641 | return resultobj; |
7642 | fail: |
7643 | return NULL__null; |
7644 | } |
7645 | |
7646 | |
7647 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_ncols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7648 | PyObject *resultobj = 0; |
7649 | GCsv *arg1 = (GCsv *) 0 ; |
7650 | void *argp1 = 0 ; |
7651 | int res1 = 0 ; |
7652 | PyObject * obj0 = 0 ; |
7653 | int *result = 0 ; |
7654 | |
7655 | if (!PyArg_ParseTuple(args,(char *)"O:GCsv_ncols",&obj0)) SWIG_failgoto fail; |
7656 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7657 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7658 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_ncols" "', argument " "1"" of type '" "GCsv const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_ncols" "', argument " "1"" of type '" "GCsv const *""'"); goto fail; } while(0); |
7659 | } |
7660 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7661 | { |
7662 | try { |
7663 | result = (int *) &((GCsv const *)arg1)->ncols(); |
7664 | } |
7665 | catch (const GException::out_of_range& e) { |
7666 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7667 | } |
7668 | catch (const GExceptionHandler& e) { |
7669 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7670 | } |
7671 | catch (const std::exception& e) { |
7672 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7673 | } |
7674 | } |
7675 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7676 | return resultobj; |
7677 | fail: |
7678 | return NULL__null; |
7679 | } |
7680 | |
7681 | |
7682 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_nrows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7683 | PyObject *resultobj = 0; |
7684 | GCsv *arg1 = (GCsv *) 0 ; |
7685 | void *argp1 = 0 ; |
7686 | int res1 = 0 ; |
7687 | PyObject * obj0 = 0 ; |
7688 | int *result = 0 ; |
7689 | |
7690 | if (!PyArg_ParseTuple(args,(char *)"O:GCsv_nrows",&obj0)) SWIG_failgoto fail; |
7691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7692 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_nrows" "', argument " "1"" of type '" "GCsv const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_nrows" "', argument " "1"" of type '" "GCsv const *""'"); goto fail; } while(0); |
7694 | } |
7695 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7696 | { |
7697 | try { |
7698 | result = (int *) &((GCsv const *)arg1)->nrows(); |
7699 | } |
7700 | catch (const GException::out_of_range& e) { |
7701 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7702 | } |
7703 | catch (const GExceptionHandler& e) { |
7704 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7705 | } |
7706 | catch (const std::exception& e) { |
7707 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7708 | } |
7709 | } |
7710 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7711 | return resultobj; |
7712 | fail: |
7713 | return NULL__null; |
7714 | } |
7715 | |
7716 | |
7717 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7718 | PyObject *resultobj = 0; |
7719 | GCsv *arg1 = (GCsv *) 0 ; |
7720 | int *arg2 = 0 ; |
7721 | int *arg3 = 0 ; |
7722 | void *argp1 = 0 ; |
7723 | int res1 = 0 ; |
7724 | int temp2 ; |
7725 | int val2 ; |
7726 | int ecode2 = 0 ; |
7727 | int temp3 ; |
7728 | int val3 ; |
7729 | int ecode3 = 0 ; |
7730 | PyObject * obj0 = 0 ; |
7731 | PyObject * obj1 = 0 ; |
7732 | PyObject * obj2 = 0 ; |
7733 | std::string result; |
7734 | |
7735 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCsv_string",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7737 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_string" "', argument " "1"" of type '" "GCsv const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_string" "', argument " "1"" of type '" "GCsv const *""'"); goto fail; } while(0); |
7739 | } |
7740 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7741 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7742 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7743 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCsv_string" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCsv_string" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
7744 | } |
7745 | temp2 = static_cast< int >(val2); |
7746 | arg2 = &temp2; |
7747 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
7748 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
7749 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GCsv_string" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GCsv_string" "', argument " "3"" of type '" "int""'"); goto fail; } while(0); |
7750 | } |
7751 | temp3 = static_cast< int >(val3); |
7752 | arg3 = &temp3; |
7753 | { |
7754 | try { |
7755 | result = ((GCsv const *)arg1)->string((int const &)*arg2,(int const &)*arg3); |
7756 | } |
7757 | catch (const GException::out_of_range& e) { |
7758 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7759 | } |
7760 | catch (const GExceptionHandler& e) { |
7761 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7762 | } |
7763 | catch (const std::exception& e) { |
7764 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7765 | } |
7766 | } |
7767 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
7768 | return resultobj; |
7769 | fail: |
7770 | return NULL__null; |
7771 | } |
7772 | |
7773 | |
7774 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_real(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7775 | PyObject *resultobj = 0; |
7776 | GCsv *arg1 = (GCsv *) 0 ; |
7777 | int *arg2 = 0 ; |
7778 | int *arg3 = 0 ; |
7779 | void *argp1 = 0 ; |
7780 | int res1 = 0 ; |
7781 | int temp2 ; |
7782 | int val2 ; |
7783 | int ecode2 = 0 ; |
7784 | int temp3 ; |
7785 | int val3 ; |
7786 | int ecode3 = 0 ; |
7787 | PyObject * obj0 = 0 ; |
7788 | PyObject * obj1 = 0 ; |
7789 | PyObject * obj2 = 0 ; |
7790 | double result; |
7791 | |
7792 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCsv_real",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7793 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7794 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_real" "', argument " "1"" of type '" "GCsv const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_real" "', argument " "1" " of type '" "GCsv const *""'"); goto fail; } while(0); |
7796 | } |
7797 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7798 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7799 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7800 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCsv_real" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCsv_real" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
7801 | } |
7802 | temp2 = static_cast< int >(val2); |
7803 | arg2 = &temp2; |
7804 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
7805 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
7806 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GCsv_real" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GCsv_real" "', argument " "3"" of type '" "int""'"); goto fail; } while(0); |
7807 | } |
7808 | temp3 = static_cast< int >(val3); |
7809 | arg3 = &temp3; |
7810 | { |
7811 | try { |
7812 | result = (double)((GCsv const *)arg1)->real((int const &)*arg2,(int const &)*arg3); |
7813 | } |
7814 | catch (const GException::out_of_range& e) { |
7815 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7816 | } |
7817 | catch (const GExceptionHandler& e) { |
7818 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7819 | } |
7820 | catch (const std::exception& e) { |
7821 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7822 | } |
7823 | } |
7824 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
7825 | return resultobj; |
7826 | fail: |
7827 | return NULL__null; |
7828 | } |
7829 | |
7830 | |
7831 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_integer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7832 | PyObject *resultobj = 0; |
7833 | GCsv *arg1 = (GCsv *) 0 ; |
7834 | int *arg2 = 0 ; |
7835 | int *arg3 = 0 ; |
7836 | void *argp1 = 0 ; |
7837 | int res1 = 0 ; |
7838 | int temp2 ; |
7839 | int val2 ; |
7840 | int ecode2 = 0 ; |
7841 | int temp3 ; |
7842 | int val3 ; |
7843 | int ecode3 = 0 ; |
7844 | PyObject * obj0 = 0 ; |
7845 | PyObject * obj1 = 0 ; |
7846 | PyObject * obj2 = 0 ; |
7847 | int result; |
7848 | |
7849 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCsv_integer",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7850 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7851 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_integer" "', argument " "1"" of type '" "GCsv const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_integer" "', argument " "1"" of type '" "GCsv const *""'"); goto fail; } while(0); |
7853 | } |
7854 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7855 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7856 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7857 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCsv_integer" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCsv_integer" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
7858 | } |
7859 | temp2 = static_cast< int >(val2); |
7860 | arg2 = &temp2; |
7861 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
7862 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
7863 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GCsv_integer" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GCsv_integer" "', argument " "3"" of type '" "int""'"); goto fail; } while(0); |
7864 | } |
7865 | temp3 = static_cast< int >(val3); |
7866 | arg3 = &temp3; |
7867 | { |
7868 | try { |
7869 | result = (int)((GCsv const *)arg1)->integer((int const &)*arg2,(int const &)*arg3); |
7870 | } |
7871 | catch (const GException::out_of_range& e) { |
7872 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7873 | } |
7874 | catch (const GExceptionHandler& e) { |
7875 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7876 | } |
7877 | catch (const std::exception& e) { |
7878 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7879 | } |
7880 | } |
7881 | resultobj = SWIG_From_int(static_cast< int >(result)); |
7882 | return resultobj; |
7883 | fail: |
7884 | return NULL__null; |
7885 | } |
7886 | |
7887 | |
7888 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7889 | PyObject *resultobj = 0; |
7890 | GCsv *arg1 = (GCsv *) 0 ; |
7891 | std::string *arg2 = 0 ; |
7892 | std::string *arg3 = 0 ; |
7893 | void *argp1 = 0 ; |
7894 | int res1 = 0 ; |
7895 | int res2 = SWIG_OLDOBJ((0)) ; |
7896 | int res3 = SWIG_OLDOBJ((0)) ; |
7897 | PyObject * obj0 = 0 ; |
7898 | PyObject * obj1 = 0 ; |
7899 | PyObject * obj2 = 0 ; |
7900 | |
7901 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCsv_load",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7903 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_load" "', argument " "1"" of type '" "GCsv *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_load" "', argument " "1" " of type '" "GCsv *""'"); goto fail; } while(0); |
7905 | } |
7906 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7907 | { |
7908 | std::string *ptr = (std::string *)0; |
7909 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7910 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7911 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCsv_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCsv_load" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
7912 | } |
7913 | if (!ptr) { |
7914 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCsv_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCsv_load" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7915 | } |
7916 | arg2 = ptr; |
7917 | } |
7918 | { |
7919 | std::string *ptr = (std::string *)0; |
7920 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
7921 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
7922 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCsv_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GCsv_load" "', argument " "3" " of type '" "std::string const &""'"); goto fail; } while (0); |
7923 | } |
7924 | if (!ptr) { |
7925 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCsv_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCsv_load" "', argument " "3"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7926 | } |
7927 | arg3 = ptr; |
7928 | } |
7929 | { |
7930 | try { |
7931 | (arg1)->load((std::string const &)*arg2,(std::string const &)*arg3); |
7932 | } |
7933 | catch (const GException::out_of_range& e) { |
7934 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7935 | } |
7936 | catch (const GExceptionHandler& e) { |
7937 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7938 | } |
7939 | catch (const std::exception& e) { |
7940 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7941 | } |
7942 | } |
7943 | resultobj = SWIG_Py_Void(); |
7944 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7945 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
7946 | return resultobj; |
7947 | fail: |
7948 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7949 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
7950 | return NULL__null; |
7951 | } |
7952 | |
7953 | |
7954 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7955 | PyObject *resultobj = 0; |
7956 | GCsv *arg1 = (GCsv *) 0 ; |
7957 | std::string *arg2 = 0 ; |
7958 | void *argp1 = 0 ; |
7959 | int res1 = 0 ; |
7960 | int res2 = SWIG_OLDOBJ((0)) ; |
7961 | PyObject * obj0 = 0 ; |
7962 | PyObject * obj1 = 0 ; |
7963 | |
7964 | if (!PyArg_ParseTuple(args,(char *)"OO:GCsv_load",&obj0,&obj1)) SWIG_failgoto fail; |
7965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
7966 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_load" "', argument " "1"" of type '" "GCsv *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_load" "', argument " "1" " of type '" "GCsv *""'"); goto fail; } while(0); |
7968 | } |
7969 | arg1 = reinterpret_cast< GCsv * >(argp1); |
7970 | { |
7971 | std::string *ptr = (std::string *)0; |
7972 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7973 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7974 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCsv_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCsv_load" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
7975 | } |
7976 | if (!ptr) { |
7977 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCsv_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCsv_load" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7978 | } |
7979 | arg2 = ptr; |
7980 | } |
7981 | { |
7982 | try { |
7983 | (arg1)->load((std::string const &)*arg2); |
7984 | } |
7985 | catch (const GException::out_of_range& e) { |
7986 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7987 | } |
7988 | catch (const GExceptionHandler& e) { |
7989 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7990 | } |
7991 | catch (const std::exception& e) { |
7992 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7993 | } |
7994 | } |
7995 | resultobj = SWIG_Py_Void(); |
7996 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7997 | return resultobj; |
7998 | fail: |
7999 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8000 | return NULL__null; |
8001 | } |
8002 | |
8003 | |
8004 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_load(PyObject *self, PyObject *args) { |
8005 | int argc; |
8006 | PyObject *argv[4]; |
8007 | int ii; |
8008 | |
8009 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8010 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8011 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
8012 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8013 | } |
8014 | if (argc == 2) { |
8015 | int _v; |
8016 | void *vptr = 0; |
8017 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCsv, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2 ], 0, 0); |
8018 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8019 | if (_v) { |
8020 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8021 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8022 | if (_v) { |
8023 | return _wrap_GCsv_load__SWIG_1(self, args); |
8024 | } |
8025 | } |
8026 | } |
8027 | if (argc == 3) { |
8028 | int _v; |
8029 | void *vptr = 0; |
8030 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCsv, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2 ], 0, 0); |
8031 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8032 | if (_v) { |
8033 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8034 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8035 | if (_v) { |
8036 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
8037 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8038 | if (_v) { |
8039 | return _wrap_GCsv_load__SWIG_0(self, args); |
8040 | } |
8041 | } |
8042 | } |
8043 | } |
8044 | |
8045 | fail: |
8046 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCsv_load'.\n" |
8047 | " Possible C/C++ prototypes are:\n" |
8048 | " GCsv::load(std::string const &,std::string const &)\n" |
8049 | " GCsv::load(std::string const &)\n"); |
8050 | return 0; |
8051 | } |
8052 | |
8053 | |
8054 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8055 | PyObject *resultobj = 0; |
8056 | GCsv *arg1 = (GCsv *) 0 ; |
8057 | int *arg2 ; |
8058 | void *argp1 = 0 ; |
8059 | int res1 = 0 ; |
8060 | int temp2[2] ; |
8061 | PyObject * obj0 = 0 ; |
8062 | PyObject * obj1 = 0 ; |
8063 | std::string result; |
8064 | |
8065 | if (!PyArg_ParseTuple(args,(char *)"OO:GCsv___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
8066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
8067 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv___getitem__" "', argument " "1"" of type '" "GCsv *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv___getitem__" "', argument " "1"" of type '" "GCsv *""'"); goto fail; } while(0); |
8069 | } |
8070 | arg1 = reinterpret_cast< GCsv * >(argp1); |
8071 | { |
8072 | if (!csv_tuple(obj1,temp2)) { |
8073 | return NULL__null; |
8074 | } |
8075 | arg2 = &temp2[0]; |
8076 | } |
8077 | { |
8078 | try { |
8079 | result = GCsv___getitem__(arg1,arg2); |
8080 | } |
8081 | catch (const GException::out_of_range& e) { |
8082 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8083 | } |
8084 | catch (const GExceptionHandler& e) { |
8085 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8086 | } |
8087 | catch (const std::exception& e) { |
8088 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8089 | } |
8090 | } |
8091 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
8092 | return resultobj; |
8093 | fail: |
8094 | return NULL__null; |
8095 | } |
8096 | |
8097 | |
8098 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8099 | PyObject *resultobj = 0; |
8100 | GCsv *arg1 = (GCsv *) 0 ; |
8101 | int *arg2 ; |
8102 | std::string arg3 ; |
8103 | void *argp1 = 0 ; |
8104 | int res1 = 0 ; |
8105 | int temp2[2] ; |
8106 | PyObject * obj0 = 0 ; |
8107 | PyObject * obj1 = 0 ; |
8108 | PyObject * obj2 = 0 ; |
8109 | |
8110 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCsv___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8111 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
8112 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv___setitem__" "', argument " "1"" of type '" "GCsv *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv___setitem__" "', argument " "1"" of type '" "GCsv *""'"); goto fail; } while(0); |
8114 | } |
8115 | arg1 = reinterpret_cast< GCsv * >(argp1); |
8116 | { |
8117 | if (!csv_tuple(obj1,temp2)) { |
8118 | return NULL__null; |
8119 | } |
8120 | arg2 = &temp2[0]; |
8121 | } |
8122 | { |
8123 | std::string *ptr = (std::string *)0; |
8124 | int res = SWIG_AsPtr_std_string(obj2, &ptr); |
8125 | if (!SWIG_IsOK(res)(res >= 0) || !ptr) { |
8126 | SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "GCsv___setitem__" "', argument " "3"" of type '" "std::string""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "GCsv___setitem__" "', argument " "3"" of type '" "std::string""'"); goto fail; } while(0); |
8127 | } |
8128 | arg3 = *ptr; |
8129 | if (SWIG_IsNewObj(res)((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr; |
8130 | } |
8131 | { |
8132 | try { |
8133 | GCsv___setitem__(arg1,arg2,arg3); |
8134 | } |
8135 | catch (const GException::out_of_range& e) { |
8136 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8137 | } |
8138 | catch (const GExceptionHandler& e) { |
8139 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8140 | } |
8141 | catch (const std::exception& e) { |
8142 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8143 | } |
8144 | } |
8145 | resultobj = SWIG_Py_Void(); |
8146 | return resultobj; |
8147 | fail: |
8148 | return NULL__null; |
8149 | } |
8150 | |
8151 | |
8152 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8153 | PyObject *resultobj = 0; |
8154 | GCsv *arg1 = (GCsv *) 0 ; |
8155 | void *argp1 = 0 ; |
8156 | int res1 = 0 ; |
8157 | PyObject * obj0 = 0 ; |
8158 | int result; |
8159 | |
8160 | if (!PyArg_ParseTuple(args,(char *)"O:GCsv___len__",&obj0)) SWIG_failgoto fail; |
8161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
8162 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv___len__" "', argument " "1"" of type '" "GCsv *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv___len__" "', argument " "1"" of type '" "GCsv *""'"); goto fail; } while(0); |
8164 | } |
8165 | arg1 = reinterpret_cast< GCsv * >(argp1); |
8166 | { |
8167 | try { |
8168 | result = (int)GCsv___len__(arg1); |
8169 | } |
8170 | catch (const GException::out_of_range& e) { |
8171 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8172 | } |
8173 | catch (const GExceptionHandler& e) { |
8174 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8175 | } |
8176 | catch (const std::exception& e) { |
8177 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8178 | } |
8179 | } |
8180 | resultobj = SWIG_From_int(static_cast< int >(result)); |
8181 | return resultobj; |
8182 | fail: |
8183 | return NULL__null; |
8184 | } |
8185 | |
8186 | |
8187 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCsv_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8188 | PyObject *resultobj = 0; |
8189 | GCsv *arg1 = (GCsv *) 0 ; |
8190 | void *argp1 = 0 ; |
8191 | int res1 = 0 ; |
8192 | PyObject * obj0 = 0 ; |
8193 | GCsv result; |
8194 | |
8195 | if (!PyArg_ParseTuple(args,(char *)"O:GCsv_copy",&obj0)) SWIG_failgoto fail; |
8196 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCsv, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
8197 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCsv_copy" "', argument " "1"" of type '" "GCsv *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCsv_copy" "', argument " "1" " of type '" "GCsv *""'"); goto fail; } while(0); |
8199 | } |
8200 | arg1 = reinterpret_cast< GCsv * >(argp1); |
8201 | { |
8202 | try { |
8203 | result = GCsv_copy(arg1); |
8204 | } |
8205 | catch (const GException::out_of_range& e) { |
8206 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8207 | } |
8208 | catch (const GExceptionHandler& e) { |
8209 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8210 | } |
8211 | catch (const std::exception& e) { |
8212 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8213 | } |
8214 | } |
8215 | resultobj = SWIG_NewPointerObj((new GCsv(static_cast< const GCsv& >(result))), SWIGTYPE_p_GCsv, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GCsv(static_cast< const GCsv& >(result))), swig_types[2], 0x1 | 0); |
8216 | return resultobj; |
8217 | fail: |
8218 | return NULL__null; |
8219 | } |
8220 | |
8221 | |
8222 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GCsv_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8223 | PyObject *obj; |
8224 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
8225 | SWIG_TypeNewClientData(SWIGTYPE_p_GCsvswig_types[2], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
8226 | return SWIG_Py_Void(); |
8227 | } |
8228 | |
8229 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GRan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8230 | PyObject *resultobj = 0; |
8231 | GRan *result = 0 ; |
8232 | |
8233 | if (!PyArg_ParseTuple(args,(char *)":new_GRan")) SWIG_failgoto fail; |
8234 | { |
8235 | try { |
8236 | result = (GRan *)new GRan(); |
8237 | } |
8238 | catch (const GException::out_of_range& e) { |
8239 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8240 | } |
8241 | catch (const GExceptionHandler& e) { |
8242 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8243 | } |
8244 | catch (const std::exception& e) { |
8245 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8246 | } |
8247 | } |
8248 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRan, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
8249 | return resultobj; |
8250 | fail: |
8251 | return NULL__null; |
8252 | } |
8253 | |
8254 | |
8255 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GRan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8256 | PyObject *resultobj = 0; |
8257 | unsigned long long arg1 ; |
8258 | unsigned long long val1 ; |
8259 | int ecode1 = 0 ; |
8260 | PyObject * obj0 = 0 ; |
8261 | GRan *result = 0 ; |
8262 | |
8263 | if (!PyArg_ParseTuple(args,(char *)"O:new_GRan",&obj0)) SWIG_failgoto fail; |
8264 | ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); |
8265 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
8266 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GRan" "', argument " "1"" of type '" "unsigned long long""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GRan" "', argument " "1"" of type '" "unsigned long long""'"); goto fail; } while (0); |
8267 | } |
8268 | arg1 = static_cast< unsigned long long >(val1); |
8269 | { |
8270 | try { |
8271 | result = (GRan *)new GRan(arg1); |
8272 | } |
8273 | catch (const GException::out_of_range& e) { |
8274 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8275 | } |
8276 | catch (const GExceptionHandler& e) { |
8277 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8278 | } |
8279 | catch (const std::exception& e) { |
8280 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8281 | } |
8282 | } |
8283 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRan, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
8284 | return resultobj; |
8285 | fail: |
8286 | return NULL__null; |
8287 | } |
8288 | |
8289 | |
8290 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GRan__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8291 | PyObject *resultobj = 0; |
8292 | GRan *arg1 = 0 ; |
8293 | void *argp1 = 0 ; |
8294 | int res1 = 0 ; |
8295 | PyObject * obj0 = 0 ; |
8296 | GRan *result = 0 ; |
8297 | |
8298 | if (!PyArg_ParseTuple(args,(char *)"O:new_GRan",&obj0)) SWIG_failgoto fail; |
8299 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GRan, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8300 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GRan" "', argument " "1"" of type '" "GRan const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GRan" "', argument " "1" " of type '" "GRan const &""'"); goto fail; } while(0); |
8302 | } |
8303 | if (!argp1) { |
8304 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GRan" "', argument " "1"" of type '" "GRan const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GRan" "', argument " "1"" of type '" "GRan const &" "'"); goto fail; } while(0); |
8305 | } |
8306 | arg1 = reinterpret_cast< GRan * >(argp1); |
8307 | { |
8308 | try { |
8309 | result = (GRan *)new GRan((GRan const &)*arg1); |
8310 | } |
8311 | catch (const GException::out_of_range& e) { |
8312 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8313 | } |
8314 | catch (const GExceptionHandler& e) { |
8315 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8316 | } |
8317 | catch (const std::exception& e) { |
8318 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8319 | } |
8320 | } |
8321 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRan, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
8322 | return resultobj; |
8323 | fail: |
8324 | return NULL__null; |
8325 | } |
8326 | |
8327 | |
8328 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GRan(PyObject *self, PyObject *args) { |
8329 | int argc; |
8330 | PyObject *argv[2]; |
8331 | int ii; |
8332 | |
8333 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8334 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8335 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
8336 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8337 | } |
8338 | if (argc == 0) { |
8339 | return _wrap_new_GRan__SWIG_0(self, args); |
8340 | } |
8341 | if (argc == 1) { |
8342 | int _v; |
8343 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GRan, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[4], 0, 0); |
8344 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8345 | if (_v) { |
8346 | return _wrap_new_GRan__SWIG_2(self, args); |
8347 | } |
8348 | } |
8349 | if (argc == 1) { |
8350 | int _v; |
8351 | { |
8352 | int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL__null); |
8353 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8354 | } |
8355 | if (_v) { |
8356 | return _wrap_new_GRan__SWIG_1(self, args); |
8357 | } |
8358 | } |
8359 | |
8360 | fail: |
8361 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GRan'.\n" |
8362 | " Possible C/C++ prototypes are:\n" |
8363 | " GRan::GRan()\n" |
8364 | " GRan::GRan(unsigned long long)\n" |
8365 | " GRan::GRan(GRan const &)\n"); |
8366 | return 0; |
8367 | } |
8368 | |
8369 | |
8370 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GRan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8371 | PyObject *resultobj = 0; |
8372 | GRan *arg1 = (GRan *) 0 ; |
8373 | void *argp1 = 0 ; |
8374 | int res1 = 0 ; |
8375 | PyObject * obj0 = 0 ; |
8376 | |
8377 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GRan",&obj0)) SWIG_failgoto fail; |
8378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0x1 | 0, 0); |
8379 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GRan" "', argument " "1"" of type '" "GRan *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GRan" "', argument " "1"" of type '" "GRan *""'"); goto fail; } while(0); |
8381 | } |
8382 | arg1 = reinterpret_cast< GRan * >(argp1); |
8383 | { |
8384 | try { |
8385 | delete arg1; |
8386 | } |
8387 | catch (const GException::out_of_range& e) { |
8388 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8389 | } |
8390 | catch (const GExceptionHandler& e) { |
8391 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8392 | } |
8393 | catch (const std::exception& e) { |
8394 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8395 | } |
8396 | } |
8397 | resultobj = SWIG_Py_Void(); |
8398 | return resultobj; |
8399 | fail: |
8400 | return NULL__null; |
8401 | } |
8402 | |
8403 | |
8404 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8405 | PyObject *resultobj = 0; |
8406 | GRan *arg1 = (GRan *) 0 ; |
8407 | void *argp1 = 0 ; |
8408 | int res1 = 0 ; |
8409 | PyObject * obj0 = 0 ; |
8410 | |
8411 | if (!PyArg_ParseTuple(args,(char *)"O:GRan_clear",&obj0)) SWIG_failgoto fail; |
8412 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8413 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_clear" "', argument " "1"" of type '" "GRan *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_clear" "', argument " "1"" of type '" "GRan *""'"); goto fail; } while(0); |
8415 | } |
8416 | arg1 = reinterpret_cast< GRan * >(argp1); |
8417 | { |
8418 | try { |
8419 | (arg1)->clear(); |
8420 | } |
8421 | catch (const GException::out_of_range& e) { |
8422 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8423 | } |
8424 | catch (const GExceptionHandler& e) { |
8425 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8426 | } |
8427 | catch (const std::exception& e) { |
8428 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8429 | } |
8430 | } |
8431 | resultobj = SWIG_Py_Void(); |
8432 | return resultobj; |
8433 | fail: |
8434 | return NULL__null; |
8435 | } |
8436 | |
8437 | |
8438 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8439 | PyObject *resultobj = 0; |
8440 | GRan *arg1 = (GRan *) 0 ; |
8441 | void *argp1 = 0 ; |
8442 | int res1 = 0 ; |
8443 | PyObject * obj0 = 0 ; |
8444 | GRan *result = 0 ; |
8445 | |
8446 | if (!PyArg_ParseTuple(args,(char *)"O:GRan_clone",&obj0)) SWIG_failgoto fail; |
8447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8448 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_clone" "', argument " "1"" of type '" "GRan const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_clone" "', argument " "1"" of type '" "GRan const *""'"); goto fail; } while(0); |
8450 | } |
8451 | arg1 = reinterpret_cast< GRan * >(argp1); |
8452 | { |
8453 | try { |
8454 | result = (GRan *)((GRan const *)arg1)->clone(); |
8455 | } |
8456 | catch (const GException::out_of_range& e) { |
8457 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8458 | } |
8459 | catch (const GExceptionHandler& e) { |
8460 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8461 | } |
8462 | catch (const std::exception& e) { |
8463 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8464 | } |
8465 | } |
8466 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], 0 | 0); |
8467 | return resultobj; |
8468 | fail: |
8469 | return NULL__null; |
8470 | } |
8471 | |
8472 | |
8473 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_seed__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8474 | PyObject *resultobj = 0; |
8475 | GRan *arg1 = (GRan *) 0 ; |
8476 | unsigned long long arg2 ; |
8477 | void *argp1 = 0 ; |
8478 | int res1 = 0 ; |
8479 | unsigned long long val2 ; |
8480 | int ecode2 = 0 ; |
8481 | PyObject * obj0 = 0 ; |
8482 | PyObject * obj1 = 0 ; |
8483 | |
8484 | if (!PyArg_ParseTuple(args,(char *)"OO:GRan_seed",&obj0,&obj1)) SWIG_failgoto fail; |
8485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8486 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_seed" "', argument " "1"" of type '" "GRan *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_seed" "', argument " "1" " of type '" "GRan *""'"); goto fail; } while(0); |
8488 | } |
8489 | arg1 = reinterpret_cast< GRan * >(argp1); |
8490 | ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); |
8491 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8492 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GRan_seed" "', argument " "2"" of type '" "unsigned long long""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GRan_seed" "', argument " "2"" of type '" "unsigned long long""'"); goto fail; } while (0); |
8493 | } |
8494 | arg2 = static_cast< unsigned long long >(val2); |
8495 | { |
8496 | try { |
8497 | (arg1)->seed(arg2); |
8498 | } |
8499 | catch (const GException::out_of_range& e) { |
8500 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8501 | } |
8502 | catch (const GExceptionHandler& e) { |
8503 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8504 | } |
8505 | catch (const std::exception& e) { |
8506 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8507 | } |
8508 | } |
8509 | resultobj = SWIG_Py_Void(); |
8510 | return resultobj; |
8511 | fail: |
8512 | return NULL__null; |
8513 | } |
8514 | |
8515 | |
8516 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_seed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8517 | PyObject *resultobj = 0; |
8518 | GRan *arg1 = (GRan *) 0 ; |
8519 | void *argp1 = 0 ; |
8520 | int res1 = 0 ; |
8521 | PyObject * obj0 = 0 ; |
8522 | unsigned long long result; |
8523 | |
8524 | if (!PyArg_ParseTuple(args,(char *)"O:GRan_seed",&obj0)) SWIG_failgoto fail; |
8525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8526 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_seed" "', argument " "1"" of type '" "GRan const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_seed" "', argument " "1" " of type '" "GRan const *""'"); goto fail; } while(0); |
8528 | } |
8529 | arg1 = reinterpret_cast< GRan * >(argp1); |
8530 | { |
8531 | try { |
8532 | result = (unsigned long long)((GRan const *)arg1)->seed(); |
8533 | } |
8534 | catch (const GException::out_of_range& e) { |
8535 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8536 | } |
8537 | catch (const GExceptionHandler& e) { |
8538 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8539 | } |
8540 | catch (const std::exception& e) { |
8541 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8542 | } |
8543 | } |
8544 | resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); |
8545 | return resultobj; |
8546 | fail: |
8547 | return NULL__null; |
8548 | } |
8549 | |
8550 | |
8551 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_seed(PyObject *self, PyObject *args) { |
8552 | int argc; |
8553 | PyObject *argv[3]; |
8554 | int ii; |
8555 | |
8556 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8557 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8558 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8559 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8560 | } |
8561 | if (argc == 1) { |
8562 | int _v; |
8563 | void *vptr = 0; |
8564 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GRan, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
8565 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8566 | if (_v) { |
8567 | return _wrap_GRan_seed__SWIG_1(self, args); |
8568 | } |
8569 | } |
8570 | if (argc == 2) { |
8571 | int _v; |
8572 | void *vptr = 0; |
8573 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GRan, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
8574 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8575 | if (_v) { |
8576 | { |
8577 | int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL__null); |
8578 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8579 | } |
8580 | if (_v) { |
8581 | return _wrap_GRan_seed__SWIG_0(self, args); |
8582 | } |
8583 | } |
8584 | } |
8585 | |
8586 | fail: |
8587 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GRan_seed'.\n" |
8588 | " Possible C/C++ prototypes are:\n" |
8589 | " GRan::seed(unsigned long long)\n" |
8590 | " GRan::seed() const\n"); |
8591 | return 0; |
8592 | } |
8593 | |
8594 | |
8595 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_int32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8596 | PyObject *resultobj = 0; |
8597 | GRan *arg1 = (GRan *) 0 ; |
8598 | void *argp1 = 0 ; |
8599 | int res1 = 0 ; |
8600 | PyObject * obj0 = 0 ; |
8601 | unsigned long result; |
8602 | |
8603 | if (!PyArg_ParseTuple(args,(char *)"O:GRan_int32",&obj0)) SWIG_failgoto fail; |
8604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8605 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_int32" "', argument " "1"" of type '" "GRan *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_int32" "', argument " "1"" of type '" "GRan *""'"); goto fail; } while(0); |
8607 | } |
8608 | arg1 = reinterpret_cast< GRan * >(argp1); |
8609 | { |
8610 | try { |
8611 | result = (unsigned long)(arg1)->int32(); |
8612 | } |
8613 | catch (const GException::out_of_range& e) { |
8614 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8615 | } |
8616 | catch (const GExceptionHandler& e) { |
8617 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8618 | } |
8619 | catch (const std::exception& e) { |
8620 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8621 | } |
8622 | } |
8623 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); |
8624 | return resultobj; |
8625 | fail: |
8626 | return NULL__null; |
8627 | } |
8628 | |
8629 | |
8630 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_int64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8631 | PyObject *resultobj = 0; |
8632 | GRan *arg1 = (GRan *) 0 ; |
8633 | void *argp1 = 0 ; |
8634 | int res1 = 0 ; |
8635 | PyObject * obj0 = 0 ; |
8636 | unsigned long long result; |
8637 | |
8638 | if (!PyArg_ParseTuple(args,(char *)"O:GRan_int64",&obj0)) SWIG_failgoto fail; |
8639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8640 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_int64" "', argument " "1"" of type '" "GRan *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_int64" "', argument " "1"" of type '" "GRan *""'"); goto fail; } while(0); |
8642 | } |
8643 | arg1 = reinterpret_cast< GRan * >(argp1); |
8644 | { |
8645 | try { |
8646 | result = (unsigned long long)(arg1)->int64(); |
8647 | } |
8648 | catch (const GException::out_of_range& e) { |
8649 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8650 | } |
8651 | catch (const GExceptionHandler& e) { |
8652 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8653 | } |
8654 | catch (const std::exception& e) { |
8655 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8656 | } |
8657 | } |
8658 | resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); |
8659 | return resultobj; |
8660 | fail: |
8661 | return NULL__null; |
8662 | } |
8663 | |
8664 | |
8665 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_uniform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8666 | PyObject *resultobj = 0; |
8667 | GRan *arg1 = (GRan *) 0 ; |
8668 | void *argp1 = 0 ; |
8669 | int res1 = 0 ; |
8670 | PyObject * obj0 = 0 ; |
8671 | double result; |
8672 | |
8673 | if (!PyArg_ParseTuple(args,(char *)"O:GRan_uniform",&obj0)) SWIG_failgoto fail; |
8674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8675 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_uniform" "', argument " "1"" of type '" "GRan *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_uniform" "', argument " "1"" of type '" "GRan *""'"); goto fail; } while(0); |
8677 | } |
8678 | arg1 = reinterpret_cast< GRan * >(argp1); |
8679 | { |
8680 | try { |
8681 | result = (double)(arg1)->uniform(); |
8682 | } |
8683 | catch (const GException::out_of_range& e) { |
8684 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8685 | } |
8686 | catch (const GExceptionHandler& e) { |
8687 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8688 | } |
8689 | catch (const std::exception& e) { |
8690 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8691 | } |
8692 | } |
8693 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
8694 | return resultobj; |
8695 | fail: |
8696 | return NULL__null; |
8697 | } |
8698 | |
8699 | |
8700 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_exp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8701 | PyObject *resultobj = 0; |
8702 | GRan *arg1 = (GRan *) 0 ; |
8703 | double *arg2 = 0 ; |
8704 | void *argp1 = 0 ; |
8705 | int res1 = 0 ; |
8706 | double temp2 ; |
8707 | double val2 ; |
8708 | int ecode2 = 0 ; |
8709 | PyObject * obj0 = 0 ; |
8710 | PyObject * obj1 = 0 ; |
8711 | double result; |
8712 | |
8713 | if (!PyArg_ParseTuple(args,(char *)"OO:GRan_exp",&obj0,&obj1)) SWIG_failgoto fail; |
8714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8715 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_exp" "', argument " "1"" of type '" "GRan *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_exp" "', argument " "1" " of type '" "GRan *""'"); goto fail; } while(0); |
8717 | } |
8718 | arg1 = reinterpret_cast< GRan * >(argp1); |
8719 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
8720 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8721 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GRan_exp" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GRan_exp" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
8722 | } |
8723 | temp2 = static_cast< double >(val2); |
8724 | arg2 = &temp2; |
8725 | { |
8726 | try { |
8727 | result = (double)(arg1)->exp((double const &)*arg2); |
8728 | } |
8729 | catch (const GException::out_of_range& e) { |
8730 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8731 | } |
8732 | catch (const GExceptionHandler& e) { |
8733 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8734 | } |
8735 | catch (const std::exception& e) { |
8736 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8737 | } |
8738 | } |
8739 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
8740 | return resultobj; |
8741 | fail: |
8742 | return NULL__null; |
8743 | } |
8744 | |
8745 | |
8746 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_poisson(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8747 | PyObject *resultobj = 0; |
8748 | GRan *arg1 = (GRan *) 0 ; |
8749 | double *arg2 = 0 ; |
8750 | void *argp1 = 0 ; |
8751 | int res1 = 0 ; |
8752 | double temp2 ; |
8753 | double val2 ; |
8754 | int ecode2 = 0 ; |
8755 | PyObject * obj0 = 0 ; |
8756 | PyObject * obj1 = 0 ; |
8757 | double result; |
8758 | |
8759 | if (!PyArg_ParseTuple(args,(char *)"OO:GRan_poisson",&obj0,&obj1)) SWIG_failgoto fail; |
8760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8761 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_poisson" "', argument " "1"" of type '" "GRan *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_poisson" "', argument " "1"" of type '" "GRan *""'"); goto fail; } while(0); |
8763 | } |
8764 | arg1 = reinterpret_cast< GRan * >(argp1); |
8765 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
8766 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8767 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GRan_poisson" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GRan_poisson" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
8768 | } |
8769 | temp2 = static_cast< double >(val2); |
8770 | arg2 = &temp2; |
8771 | { |
8772 | try { |
8773 | result = (double)(arg1)->poisson((double const &)*arg2); |
8774 | } |
8775 | catch (const GException::out_of_range& e) { |
8776 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8777 | } |
8778 | catch (const GExceptionHandler& e) { |
8779 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8780 | } |
8781 | catch (const std::exception& e) { |
8782 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8783 | } |
8784 | } |
8785 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
8786 | return resultobj; |
8787 | fail: |
8788 | return NULL__null; |
8789 | } |
8790 | |
8791 | |
8792 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_chisq2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8793 | PyObject *resultobj = 0; |
8794 | GRan *arg1 = (GRan *) 0 ; |
8795 | void *argp1 = 0 ; |
8796 | int res1 = 0 ; |
8797 | PyObject * obj0 = 0 ; |
8798 | double result; |
8799 | |
8800 | if (!PyArg_ParseTuple(args,(char *)"O:GRan_chisq2",&obj0)) SWIG_failgoto fail; |
8801 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8802 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_chisq2" "', argument " "1"" of type '" "GRan *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_chisq2" "', argument " "1"" of type '" "GRan *""'"); goto fail; } while(0); |
8804 | } |
8805 | arg1 = reinterpret_cast< GRan * >(argp1); |
8806 | { |
8807 | try { |
8808 | result = (double)(arg1)->chisq2(); |
8809 | } |
8810 | catch (const GException::out_of_range& e) { |
8811 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8812 | } |
8813 | catch (const GExceptionHandler& e) { |
8814 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8815 | } |
8816 | catch (const std::exception& e) { |
8817 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8818 | } |
8819 | } |
8820 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
8821 | return resultobj; |
8822 | fail: |
8823 | return NULL__null; |
8824 | } |
8825 | |
8826 | |
8827 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRan_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8828 | PyObject *resultobj = 0; |
8829 | GRan *arg1 = (GRan *) 0 ; |
8830 | void *argp1 = 0 ; |
8831 | int res1 = 0 ; |
8832 | PyObject * obj0 = 0 ; |
8833 | GRan result; |
8834 | |
8835 | if (!PyArg_ParseTuple(args,(char *)"O:GRan_copy",&obj0)) SWIG_failgoto fail; |
8836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRan, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8837 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRan_copy" "', argument " "1"" of type '" "GRan *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GRan_copy" "', argument " "1" " of type '" "GRan *""'"); goto fail; } while(0); |
8839 | } |
8840 | arg1 = reinterpret_cast< GRan * >(argp1); |
8841 | { |
8842 | try { |
8843 | result = GRan_copy(arg1); |
8844 | } |
8845 | catch (const GException::out_of_range& e) { |
8846 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8847 | } |
8848 | catch (const GExceptionHandler& e) { |
8849 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8850 | } |
8851 | catch (const std::exception& e) { |
8852 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8853 | } |
8854 | } |
8855 | resultobj = SWIG_NewPointerObj((new GRan(static_cast< const GRan& >(result))), SWIGTYPE_p_GRan, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GRan(static_cast< const GRan& >(result))), swig_types[4], 0x1 | 0); |
8856 | return resultobj; |
8857 | fail: |
8858 | return NULL__null; |
8859 | } |
8860 | |
8861 | |
8862 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GRan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8863 | PyObject *obj; |
8864 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
8865 | SWIG_TypeNewClientData(SWIGTYPE_p_GRanswig_types[4], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
8866 | return SWIG_Py_Void(); |
8867 | } |
8868 | |
8869 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GUrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8870 | PyObject *resultobj = 0; |
8871 | GUrl *arg1 = (GUrl *) 0 ; |
8872 | void *argp1 = 0 ; |
8873 | int res1 = 0 ; |
8874 | PyObject * obj0 = 0 ; |
8875 | |
8876 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GUrl",&obj0)) SWIG_failgoto fail; |
8877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrl, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0x1 | 0, 0); |
8878 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GUrl" "', argument " "1"" of type '" "GUrl *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GUrl" "', argument " "1"" of type '" "GUrl *""'"); goto fail; } while(0); |
8880 | } |
8881 | arg1 = reinterpret_cast< GUrl * >(argp1); |
8882 | { |
8883 | try { |
8884 | delete arg1; |
8885 | } |
8886 | catch (const GException::out_of_range& e) { |
8887 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8888 | } |
8889 | catch (const GExceptionHandler& e) { |
8890 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8891 | } |
8892 | catch (const std::exception& e) { |
8893 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8894 | } |
8895 | } |
8896 | resultobj = SWIG_Py_Void(); |
8897 | return resultobj; |
8898 | fail: |
8899 | return NULL__null; |
8900 | } |
8901 | |
8902 | |
8903 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrl_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8904 | PyObject *resultobj = 0; |
8905 | GUrl *arg1 = (GUrl *) 0 ; |
8906 | void *argp1 = 0 ; |
8907 | int res1 = 0 ; |
8908 | PyObject * obj0 = 0 ; |
8909 | |
8910 | if (!PyArg_ParseTuple(args,(char *)"O:GUrl_clear",&obj0)) SWIG_failgoto fail; |
8911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrl, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8912 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrl_clear" "', argument " "1"" of type '" "GUrl *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrl_clear" "', argument " "1"" of type '" "GUrl *""'"); goto fail; } while(0); |
8914 | } |
8915 | arg1 = reinterpret_cast< GUrl * >(argp1); |
8916 | { |
8917 | try { |
8918 | (arg1)->clear(); |
8919 | } |
8920 | catch (const GException::out_of_range& e) { |
8921 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8922 | } |
8923 | catch (const GExceptionHandler& e) { |
8924 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8925 | } |
8926 | catch (const std::exception& e) { |
8927 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8928 | } |
8929 | } |
8930 | resultobj = SWIG_Py_Void(); |
8931 | return resultobj; |
8932 | fail: |
8933 | return NULL__null; |
8934 | } |
8935 | |
8936 | |
8937 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrl_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8938 | PyObject *resultobj = 0; |
8939 | GUrl *arg1 = (GUrl *) 0 ; |
8940 | void *argp1 = 0 ; |
8941 | int res1 = 0 ; |
8942 | PyObject * obj0 = 0 ; |
8943 | GUrl *result = 0 ; |
8944 | |
8945 | if (!PyArg_ParseTuple(args,(char *)"O:GUrl_clone",&obj0)) SWIG_failgoto fail; |
8946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrl, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8947 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrl_clone" "', argument " "1"" of type '" "GUrl const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrl_clone" "', argument " "1"" of type '" "GUrl const *""'"); goto fail; } while(0); |
8949 | } |
8950 | arg1 = reinterpret_cast< GUrl * >(argp1); |
8951 | { |
8952 | try { |
8953 | result = (GUrl *)((GUrl const *)arg1)->clone(); |
8954 | } |
8955 | catch (const GException::out_of_range& e) { |
8956 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8957 | } |
8958 | catch (const GExceptionHandler& e) { |
8959 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8960 | } |
8961 | catch (const std::exception& e) { |
8962 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8963 | } |
8964 | } |
8965 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GUrl, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
8966 | return resultobj; |
8967 | fail: |
8968 | return NULL__null; |
8969 | } |
8970 | |
8971 | |
8972 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrl_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8973 | PyObject *resultobj = 0; |
8974 | GUrl *arg1 = (GUrl *) 0 ; |
8975 | std::string *arg2 = 0 ; |
8976 | std::string *arg3 = 0 ; |
8977 | void *argp1 = 0 ; |
8978 | int res1 = 0 ; |
8979 | int res2 = SWIG_OLDOBJ((0)) ; |
8980 | int res3 = SWIG_OLDOBJ((0)) ; |
8981 | PyObject * obj0 = 0 ; |
8982 | PyObject * obj1 = 0 ; |
8983 | PyObject * obj2 = 0 ; |
8984 | |
8985 | if (!PyArg_ParseTuple(args,(char *)"OOO:GUrl_open",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8986 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrl, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8987 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrl_open" "', argument " "1"" of type '" "GUrl *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrl_open" "', argument " "1" " of type '" "GUrl *""'"); goto fail; } while(0); |
8989 | } |
8990 | arg1 = reinterpret_cast< GUrl * >(argp1); |
8991 | { |
8992 | std::string *ptr = (std::string *)0; |
8993 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8994 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8995 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GUrl_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GUrl_open" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
8996 | } |
8997 | if (!ptr) { |
8998 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GUrl_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GUrl_open" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8999 | } |
9000 | arg2 = ptr; |
9001 | } |
9002 | { |
9003 | std::string *ptr = (std::string *)0; |
9004 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
9005 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9006 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GUrl_open" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GUrl_open" "', argument " "3" " of type '" "std::string const &""'"); goto fail; } while (0); |
9007 | } |
9008 | if (!ptr) { |
9009 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GUrl_open" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GUrl_open" "', argument " "3"" of type '" "std::string const &" "'"); goto fail; } while(0); |
9010 | } |
9011 | arg3 = ptr; |
9012 | } |
9013 | { |
9014 | try { |
9015 | (arg1)->open((std::string const &)*arg2,(std::string const &)*arg3); |
9016 | } |
9017 | catch (const GException::out_of_range& e) { |
9018 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9019 | } |
9020 | catch (const GExceptionHandler& e) { |
9021 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9022 | } |
9023 | catch (const std::exception& e) { |
9024 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9025 | } |
9026 | } |
9027 | resultobj = SWIG_Py_Void(); |
9028 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9029 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
9030 | return resultobj; |
9031 | fail: |
9032 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9033 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
9034 | return NULL__null; |
9035 | } |
9036 | |
9037 | |
9038 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrl_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9039 | PyObject *resultobj = 0; |
9040 | GUrl *arg1 = (GUrl *) 0 ; |
9041 | void *argp1 = 0 ; |
9042 | int res1 = 0 ; |
9043 | PyObject * obj0 = 0 ; |
9044 | |
9045 | if (!PyArg_ParseTuple(args,(char *)"O:GUrl_close",&obj0)) SWIG_failgoto fail; |
9046 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrl, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9047 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrl_close" "', argument " "1"" of type '" "GUrl *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrl_close" "', argument " "1"" of type '" "GUrl *""'"); goto fail; } while(0); |
9049 | } |
9050 | arg1 = reinterpret_cast< GUrl * >(argp1); |
9051 | { |
9052 | try { |
9053 | (arg1)->close(); |
9054 | } |
9055 | catch (const GException::out_of_range& e) { |
9056 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9057 | } |
9058 | catch (const GExceptionHandler& e) { |
9059 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9060 | } |
9061 | catch (const std::exception& e) { |
9062 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9063 | } |
9064 | } |
9065 | resultobj = SWIG_Py_Void(); |
9066 | return resultobj; |
9067 | fail: |
9068 | return NULL__null; |
9069 | } |
9070 | |
9071 | |
9072 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrl_getchar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9073 | PyObject *resultobj = 0; |
9074 | GUrl *arg1 = (GUrl *) 0 ; |
9075 | void *argp1 = 0 ; |
9076 | int res1 = 0 ; |
9077 | PyObject * obj0 = 0 ; |
9078 | int result; |
9079 | |
9080 | if (!PyArg_ParseTuple(args,(char *)"O:GUrl_getchar",&obj0)) SWIG_failgoto fail; |
9081 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrl, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9082 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9083 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrl_getchar" "', argument " "1"" of type '" "GUrl const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrl_getchar" "', argument " "1"" of type '" "GUrl const *""'"); goto fail; } while(0); |
9084 | } |
9085 | arg1 = reinterpret_cast< GUrl * >(argp1); |
9086 | { |
9087 | try { |
9088 | result = (int)((GUrl const *)arg1)->getchar(); |
9089 | } |
9090 | catch (const GException::out_of_range& e) { |
9091 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9092 | } |
9093 | catch (const GExceptionHandler& e) { |
9094 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9095 | } |
9096 | catch (const std::exception& e) { |
9097 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9098 | } |
9099 | } |
9100 | resultobj = SWIG_From_int(static_cast< int >(result)); |
9101 | return resultobj; |
9102 | fail: |
9103 | return NULL__null; |
9104 | } |
9105 | |
9106 | |
9107 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrl_putchar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9108 | PyObject *resultobj = 0; |
9109 | GUrl *arg1 = (GUrl *) 0 ; |
9110 | int *arg2 = 0 ; |
9111 | void *argp1 = 0 ; |
9112 | int res1 = 0 ; |
9113 | int temp2 ; |
9114 | int val2 ; |
9115 | int ecode2 = 0 ; |
9116 | PyObject * obj0 = 0 ; |
9117 | PyObject * obj1 = 0 ; |
9118 | |
9119 | if (!PyArg_ParseTuple(args,(char *)"OO:GUrl_putchar",&obj0,&obj1)) SWIG_failgoto fail; |
9120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrl, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9121 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrl_putchar" "', argument " "1"" of type '" "GUrl *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrl_putchar" "', argument " "1"" of type '" "GUrl *""'"); goto fail; } while(0); |
9123 | } |
9124 | arg1 = reinterpret_cast< GUrl * >(argp1); |
9125 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9126 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9127 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GUrl_putchar" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GUrl_putchar" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9128 | } |
9129 | temp2 = static_cast< int >(val2); |
9130 | arg2 = &temp2; |
9131 | { |
9132 | try { |
9133 | (arg1)->putchar((int const &)*arg2); |
9134 | } |
9135 | catch (const GException::out_of_range& e) { |
9136 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9137 | } |
9138 | catch (const GExceptionHandler& e) { |
9139 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9140 | } |
9141 | catch (const std::exception& e) { |
9142 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9143 | } |
9144 | } |
9145 | resultobj = SWIG_Py_Void(); |
9146 | return resultobj; |
9147 | fail: |
9148 | return NULL__null; |
9149 | } |
9150 | |
9151 | |
9152 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrl_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9153 | PyObject *resultobj = 0; |
9154 | GUrl *arg1 = (GUrl *) 0 ; |
9155 | int *arg2 = 0 ; |
9156 | void *argp1 = 0 ; |
9157 | int res1 = 0 ; |
9158 | int temp2 ; |
9159 | int val2 ; |
9160 | int ecode2 = 0 ; |
9161 | PyObject * obj0 = 0 ; |
9162 | PyObject * obj1 = 0 ; |
9163 | char *result = 0 ; |
9164 | |
9165 | if (!PyArg_ParseTuple(args,(char *)"OO:GUrl_read",&obj0,&obj1)) SWIG_failgoto fail; |
9166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrl, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9167 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrl_read" "', argument " "1"" of type '" "GUrl *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrl_read" "', argument " "1" " of type '" "GUrl *""'"); goto fail; } while(0); |
9169 | } |
9170 | arg1 = reinterpret_cast< GUrl * >(argp1); |
9171 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9172 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9173 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GUrl_read" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GUrl_read" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9174 | } |
9175 | temp2 = static_cast< int >(val2); |
9176 | arg2 = &temp2; |
9177 | { |
9178 | try { |
9179 | result = (char *)GUrl_read(arg1,(int const &)*arg2); |
9180 | } |
9181 | catch (const GException::out_of_range& e) { |
9182 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9183 | } |
9184 | catch (const GExceptionHandler& e) { |
9185 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9186 | } |
9187 | catch (const std::exception& e) { |
9188 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9189 | } |
9190 | } |
9191 | resultobj = SWIG_FromCharPtr((const char *)result); |
9192 | return resultobj; |
9193 | fail: |
9194 | return NULL__null; |
9195 | } |
9196 | |
9197 | |
9198 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9199 | PyObject *resultobj = 0; |
9200 | GUrl *arg1 = (GUrl *) 0 ; |
9201 | std::string *arg2 = 0 ; |
9202 | int *arg3 = 0 ; |
9203 | void *argp1 = 0 ; |
9204 | int res1 = 0 ; |
9205 | int res2 = SWIG_OLDOBJ((0)) ; |
9206 | int temp3 ; |
9207 | int val3 ; |
9208 | int ecode3 = 0 ; |
9209 | PyObject * obj0 = 0 ; |
9210 | PyObject * obj1 = 0 ; |
9211 | PyObject * obj2 = 0 ; |
9212 | int result; |
9213 | |
9214 | if (!PyArg_ParseTuple(args,(char *)"OOO:GUrl_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrl, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9216 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrl_write" "', argument " "1"" of type '" "GUrl *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrl_write" "', argument " "1"" of type '" "GUrl *""'"); goto fail; } while(0); |
9218 | } |
9219 | arg1 = reinterpret_cast< GUrl * >(argp1); |
9220 | { |
9221 | std::string *ptr = (std::string *)0; |
9222 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9223 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9224 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GUrl_write" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GUrl_write" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9225 | } |
9226 | if (!ptr) { |
9227 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GUrl_write" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GUrl_write" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
9228 | } |
9229 | arg2 = ptr; |
9230 | } |
9231 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
9232 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
9233 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GUrl_write" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GUrl_write" "', argument " "3"" of type '" "int""'"); goto fail; } while(0); |
9234 | } |
9235 | temp3 = static_cast< int >(val3); |
9236 | arg3 = &temp3; |
9237 | { |
9238 | try { |
9239 | result = (int)GUrl_write(arg1,(std::string const &)*arg2,(int const &)*arg3); |
9240 | } |
9241 | catch (const GException::out_of_range& e) { |
9242 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9243 | } |
9244 | catch (const GExceptionHandler& e) { |
9245 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9246 | } |
9247 | catch (const std::exception& e) { |
9248 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9249 | } |
9250 | } |
9251 | resultobj = SWIG_From_int(static_cast< int >(result)); |
9252 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9253 | return resultobj; |
9254 | fail: |
9255 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9256 | return NULL__null; |
9257 | } |
9258 | |
9259 | |
9260 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GUrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9261 | PyObject *obj; |
9262 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
9263 | SWIG_TypeNewClientData(SWIGTYPE_p_GUrlswig_types[5], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
9264 | return SWIG_Py_Void(); |
9265 | } |
9266 | |
9267 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GUrlFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9268 | PyObject *resultobj = 0; |
9269 | GUrlFile *result = 0 ; |
9270 | |
9271 | if (!PyArg_ParseTuple(args,(char *)":new_GUrlFile")) SWIG_failgoto fail; |
9272 | { |
9273 | try { |
9274 | result = (GUrlFile *)new GUrlFile(); |
9275 | } |
9276 | catch (const GException::out_of_range& e) { |
9277 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9278 | } |
9279 | catch (const GExceptionHandler& e) { |
9280 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9281 | } |
9282 | catch (const std::exception& e) { |
9283 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9284 | } |
9285 | } |
9286 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GUrlFile, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
9287 | return resultobj; |
9288 | fail: |
9289 | return NULL__null; |
9290 | } |
9291 | |
9292 | |
9293 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GUrlFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9294 | PyObject *resultobj = 0; |
9295 | std::string *arg1 = 0 ; |
9296 | std::string *arg2 = 0 ; |
9297 | int res1 = SWIG_OLDOBJ((0)) ; |
9298 | int res2 = SWIG_OLDOBJ((0)) ; |
9299 | PyObject * obj0 = 0 ; |
9300 | PyObject * obj1 = 0 ; |
9301 | GUrlFile *result = 0 ; |
9302 | |
9303 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GUrlFile",&obj0,&obj1)) SWIG_failgoto fail; |
9304 | { |
9305 | std::string *ptr = (std::string *)0; |
9306 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
9307 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GUrlFile" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GUrlFile" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
9309 | } |
9310 | if (!ptr) { |
9311 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GUrlFile" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GUrlFile" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
9312 | } |
9313 | arg1 = ptr; |
9314 | } |
9315 | { |
9316 | std::string *ptr = (std::string *)0; |
9317 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9318 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9319 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GUrlFile" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GUrlFile" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9320 | } |
9321 | if (!ptr) { |
9322 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GUrlFile" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GUrlFile" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
9323 | } |
9324 | arg2 = ptr; |
9325 | } |
9326 | { |
9327 | try { |
9328 | result = (GUrlFile *)new GUrlFile((std::string const &)*arg1,(std::string const &)*arg2); |
9329 | } |
9330 | catch (const GException::out_of_range& e) { |
9331 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9332 | } |
9333 | catch (const GExceptionHandler& e) { |
9334 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9335 | } |
9336 | catch (const std::exception& e) { |
9337 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9338 | } |
9339 | } |
9340 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GUrlFile, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
9341 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
9342 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9343 | return resultobj; |
9344 | fail: |
9345 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
9346 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9347 | return NULL__null; |
9348 | } |
9349 | |
9350 | |
9351 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GUrlFile__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9352 | PyObject *resultobj = 0; |
9353 | GUrlFile *arg1 = 0 ; |
9354 | void *argp1 = 0 ; |
9355 | int res1 = 0 ; |
9356 | PyObject * obj0 = 0 ; |
9357 | GUrlFile *result = 0 ; |
9358 | |
9359 | if (!PyArg_ParseTuple(args,(char *)"O:new_GUrlFile",&obj0)) SWIG_failgoto fail; |
9360 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GUrlFile, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9361 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GUrlFile" "', argument " "1"" of type '" "GUrlFile const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GUrlFile" "', argument " "1"" of type '" "GUrlFile const &""'"); goto fail; } while (0); |
9363 | } |
9364 | if (!argp1) { |
9365 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GUrlFile" "', argument " "1"" of type '" "GUrlFile const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GUrlFile" "', argument " "1"" of type '" "GUrlFile const &" "'"); goto fail; } while(0); |
9366 | } |
9367 | arg1 = reinterpret_cast< GUrlFile * >(argp1); |
9368 | { |
9369 | try { |
9370 | result = (GUrlFile *)new GUrlFile((GUrlFile const &)*arg1); |
9371 | } |
9372 | catch (const GException::out_of_range& e) { |
9373 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9374 | } |
9375 | catch (const GExceptionHandler& e) { |
9376 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9377 | } |
9378 | catch (const std::exception& e) { |
9379 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9380 | } |
9381 | } |
9382 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GUrlFile, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
9383 | return resultobj; |
9384 | fail: |
9385 | return NULL__null; |
9386 | } |
9387 | |
9388 | |
9389 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GUrlFile(PyObject *self, PyObject *args) { |
9390 | int argc; |
9391 | PyObject *argv[3]; |
9392 | int ii; |
9393 | |
9394 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9395 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9396 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9397 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9398 | } |
9399 | if (argc == 0) { |
9400 | return _wrap_new_GUrlFile__SWIG_0(self, args); |
9401 | } |
9402 | if (argc == 1) { |
9403 | int _v; |
9404 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GUrlFile, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[6], 0, 0); |
9405 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9406 | if (_v) { |
9407 | return _wrap_new_GUrlFile__SWIG_2(self, args); |
9408 | } |
9409 | } |
9410 | if (argc == 2) { |
9411 | int _v; |
9412 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
9413 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9414 | if (_v) { |
9415 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9416 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9417 | if (_v) { |
9418 | return _wrap_new_GUrlFile__SWIG_1(self, args); |
9419 | } |
9420 | } |
9421 | } |
9422 | |
9423 | fail: |
9424 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GUrlFile'.\n" |
9425 | " Possible C/C++ prototypes are:\n" |
9426 | " GUrlFile::GUrlFile()\n" |
9427 | " GUrlFile::GUrlFile(std::string const &,std::string const &)\n" |
9428 | " GUrlFile::GUrlFile(GUrlFile const &)\n"); |
9429 | return 0; |
9430 | } |
9431 | |
9432 | |
9433 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GUrlFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9434 | PyObject *resultobj = 0; |
9435 | GUrlFile *arg1 = (GUrlFile *) 0 ; |
9436 | void *argp1 = 0 ; |
9437 | int res1 = 0 ; |
9438 | PyObject * obj0 = 0 ; |
9439 | |
9440 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GUrlFile",&obj0)) SWIG_failgoto fail; |
9441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlFile, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0x1 | 0, 0); |
9442 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GUrlFile" "', argument " "1"" of type '" "GUrlFile *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GUrlFile" "', argument " "1"" of type '" "GUrlFile *""'"); goto fail; } while(0); |
9444 | } |
9445 | arg1 = reinterpret_cast< GUrlFile * >(argp1); |
9446 | { |
9447 | try { |
9448 | delete arg1; |
9449 | } |
9450 | catch (const GException::out_of_range& e) { |
9451 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9452 | } |
9453 | catch (const GExceptionHandler& e) { |
9454 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9455 | } |
9456 | catch (const std::exception& e) { |
9457 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9458 | } |
9459 | } |
9460 | resultobj = SWIG_Py_Void(); |
9461 | return resultobj; |
9462 | fail: |
9463 | return NULL__null; |
9464 | } |
9465 | |
9466 | |
9467 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlFile_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9468 | PyObject *resultobj = 0; |
9469 | GUrlFile *arg1 = (GUrlFile *) 0 ; |
9470 | void *argp1 = 0 ; |
9471 | int res1 = 0 ; |
9472 | PyObject * obj0 = 0 ; |
9473 | |
9474 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlFile_clear",&obj0)) SWIG_failgoto fail; |
9475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlFile, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9476 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlFile_clear" "', argument " "1"" of type '" "GUrlFile *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlFile_clear" "', argument " "1"" of type '" "GUrlFile *""'"); goto fail; } while(0); |
9478 | } |
9479 | arg1 = reinterpret_cast< GUrlFile * >(argp1); |
9480 | { |
9481 | try { |
9482 | (arg1)->clear(); |
9483 | } |
9484 | catch (const GException::out_of_range& e) { |
9485 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9486 | } |
9487 | catch (const GExceptionHandler& e) { |
9488 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9489 | } |
9490 | catch (const std::exception& e) { |
9491 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9492 | } |
9493 | } |
9494 | resultobj = SWIG_Py_Void(); |
9495 | return resultobj; |
9496 | fail: |
9497 | return NULL__null; |
9498 | } |
9499 | |
9500 | |
9501 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlFile_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9502 | PyObject *resultobj = 0; |
9503 | GUrlFile *arg1 = (GUrlFile *) 0 ; |
9504 | void *argp1 = 0 ; |
9505 | int res1 = 0 ; |
9506 | PyObject * obj0 = 0 ; |
9507 | GUrlFile *result = 0 ; |
9508 | |
9509 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlFile_clone",&obj0)) SWIG_failgoto fail; |
9510 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlFile, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9511 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlFile_clone" "', argument " "1"" of type '" "GUrlFile const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlFile_clone" "', argument " "1"" of type '" "GUrlFile const *""'"); goto fail; } while(0 ); |
9513 | } |
9514 | arg1 = reinterpret_cast< GUrlFile * >(argp1); |
9515 | { |
9516 | try { |
9517 | result = (GUrlFile *)((GUrlFile const *)arg1)->clone(); |
9518 | } |
9519 | catch (const GException::out_of_range& e) { |
9520 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9521 | } |
9522 | catch (const GExceptionHandler& e) { |
9523 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9524 | } |
9525 | catch (const std::exception& e) { |
9526 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9527 | } |
9528 | } |
9529 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GUrlFile, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
9530 | return resultobj; |
9531 | fail: |
9532 | return NULL__null; |
9533 | } |
9534 | |
9535 | |
9536 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlFile_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9537 | PyObject *resultobj = 0; |
9538 | GUrlFile *arg1 = (GUrlFile *) 0 ; |
9539 | std::string *arg2 = 0 ; |
9540 | std::string *arg3 = 0 ; |
9541 | void *argp1 = 0 ; |
9542 | int res1 = 0 ; |
9543 | int res2 = SWIG_OLDOBJ((0)) ; |
9544 | int res3 = SWIG_OLDOBJ((0)) ; |
9545 | PyObject * obj0 = 0 ; |
9546 | PyObject * obj1 = 0 ; |
9547 | PyObject * obj2 = 0 ; |
9548 | |
9549 | if (!PyArg_ParseTuple(args,(char *)"OOO:GUrlFile_open",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9550 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlFile, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9551 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlFile_open" "', argument " "1"" of type '" "GUrlFile *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlFile_open" "', argument " "1"" of type '" "GUrlFile *""'"); goto fail; } while(0); |
9553 | } |
9554 | arg1 = reinterpret_cast< GUrlFile * >(argp1); |
9555 | { |
9556 | std::string *ptr = (std::string *)0; |
9557 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9558 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9559 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GUrlFile_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GUrlFile_open" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9560 | } |
9561 | if (!ptr) { |
9562 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GUrlFile_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GUrlFile_open" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9563 | } |
9564 | arg2 = ptr; |
9565 | } |
9566 | { |
9567 | std::string *ptr = (std::string *)0; |
9568 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
9569 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9570 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GUrlFile_open" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GUrlFile_open" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
9571 | } |
9572 | if (!ptr) { |
9573 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GUrlFile_open" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GUrlFile_open" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0); |
9574 | } |
9575 | arg3 = ptr; |
9576 | } |
9577 | { |
9578 | try { |
9579 | (arg1)->open((std::string const &)*arg2,(std::string const &)*arg3); |
9580 | } |
9581 | catch (const GException::out_of_range& e) { |
9582 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9583 | } |
9584 | catch (const GExceptionHandler& e) { |
9585 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9586 | } |
9587 | catch (const std::exception& e) { |
9588 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9589 | } |
9590 | } |
9591 | resultobj = SWIG_Py_Void(); |
9592 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9593 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
9594 | return resultobj; |
9595 | fail: |
9596 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9597 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
9598 | return NULL__null; |
9599 | } |
9600 | |
9601 | |
9602 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlFile_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9603 | PyObject *resultobj = 0; |
9604 | GUrlFile *arg1 = (GUrlFile *) 0 ; |
9605 | void *argp1 = 0 ; |
9606 | int res1 = 0 ; |
9607 | PyObject * obj0 = 0 ; |
9608 | |
9609 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlFile_close",&obj0)) SWIG_failgoto fail; |
9610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlFile, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9611 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlFile_close" "', argument " "1"" of type '" "GUrlFile *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlFile_close" "', argument " "1"" of type '" "GUrlFile *""'"); goto fail; } while(0); |
9613 | } |
9614 | arg1 = reinterpret_cast< GUrlFile * >(argp1); |
9615 | { |
9616 | try { |
9617 | (arg1)->close(); |
9618 | } |
9619 | catch (const GException::out_of_range& e) { |
9620 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9621 | } |
9622 | catch (const GExceptionHandler& e) { |
9623 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9624 | } |
9625 | catch (const std::exception& e) { |
9626 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9627 | } |
9628 | } |
9629 | resultobj = SWIG_Py_Void(); |
9630 | return resultobj; |
9631 | fail: |
9632 | return NULL__null; |
9633 | } |
9634 | |
9635 | |
9636 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlFile_getchar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9637 | PyObject *resultobj = 0; |
9638 | GUrlFile *arg1 = (GUrlFile *) 0 ; |
9639 | void *argp1 = 0 ; |
9640 | int res1 = 0 ; |
9641 | PyObject * obj0 = 0 ; |
9642 | int result; |
9643 | |
9644 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlFile_getchar",&obj0)) SWIG_failgoto fail; |
9645 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlFile, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9646 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlFile_getchar" "', argument " "1"" of type '" "GUrlFile const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlFile_getchar" "', argument " "1"" of type '" "GUrlFile const *""'"); goto fail; } while(0 ); |
9648 | } |
9649 | arg1 = reinterpret_cast< GUrlFile * >(argp1); |
9650 | { |
9651 | try { |
9652 | result = (int)((GUrlFile const *)arg1)->getchar(); |
9653 | } |
9654 | catch (const GException::out_of_range& e) { |
9655 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9656 | } |
9657 | catch (const GExceptionHandler& e) { |
9658 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9659 | } |
9660 | catch (const std::exception& e) { |
9661 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9662 | } |
9663 | } |
9664 | resultobj = SWIG_From_int(static_cast< int >(result)); |
9665 | return resultobj; |
9666 | fail: |
9667 | return NULL__null; |
9668 | } |
9669 | |
9670 | |
9671 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlFile_putchar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9672 | PyObject *resultobj = 0; |
9673 | GUrlFile *arg1 = (GUrlFile *) 0 ; |
9674 | int *arg2 = 0 ; |
9675 | void *argp1 = 0 ; |
9676 | int res1 = 0 ; |
9677 | int temp2 ; |
9678 | int val2 ; |
9679 | int ecode2 = 0 ; |
9680 | PyObject * obj0 = 0 ; |
9681 | PyObject * obj1 = 0 ; |
9682 | |
9683 | if (!PyArg_ParseTuple(args,(char *)"OO:GUrlFile_putchar",&obj0,&obj1)) SWIG_failgoto fail; |
9684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlFile, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9685 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlFile_putchar" "', argument " "1"" of type '" "GUrlFile *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlFile_putchar" "', argument " "1"" of type '" "GUrlFile *""'"); goto fail; } while(0); |
9687 | } |
9688 | arg1 = reinterpret_cast< GUrlFile * >(argp1); |
9689 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9690 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9691 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GUrlFile_putchar" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GUrlFile_putchar" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9692 | } |
9693 | temp2 = static_cast< int >(val2); |
9694 | arg2 = &temp2; |
9695 | { |
9696 | try { |
9697 | (arg1)->putchar((int const &)*arg2); |
9698 | } |
9699 | catch (const GException::out_of_range& e) { |
9700 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9701 | } |
9702 | catch (const GExceptionHandler& e) { |
9703 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9704 | } |
9705 | catch (const std::exception& e) { |
9706 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9707 | } |
9708 | } |
9709 | resultobj = SWIG_Py_Void(); |
9710 | return resultobj; |
9711 | fail: |
9712 | return NULL__null; |
9713 | } |
9714 | |
9715 | |
9716 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlFile_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9717 | PyObject *resultobj = 0; |
9718 | GUrlFile *arg1 = (GUrlFile *) 0 ; |
9719 | void *argp1 = 0 ; |
9720 | int res1 = 0 ; |
9721 | PyObject * obj0 = 0 ; |
9722 | GUrlFile result; |
9723 | |
9724 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlFile_copy",&obj0)) SWIG_failgoto fail; |
9725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlFile, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9726 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlFile_copy" "', argument " "1"" of type '" "GUrlFile *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlFile_copy" "', argument " "1"" of type '" "GUrlFile *""'"); goto fail; } while(0); |
9728 | } |
9729 | arg1 = reinterpret_cast< GUrlFile * >(argp1); |
9730 | { |
9731 | try { |
9732 | result = GUrlFile_copy(arg1); |
9733 | } |
9734 | catch (const GException::out_of_range& e) { |
9735 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9736 | } |
9737 | catch (const GExceptionHandler& e) { |
9738 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9739 | } |
9740 | catch (const std::exception& e) { |
9741 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9742 | } |
9743 | } |
9744 | resultobj = SWIG_NewPointerObj((new GUrlFile(static_cast< const GUrlFile& >(result))), SWIGTYPE_p_GUrlFile, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GUrlFile(static_cast< const GUrlFile& >(result))), swig_types[6], 0x1 | 0); |
9745 | return resultobj; |
9746 | fail: |
9747 | return NULL__null; |
9748 | } |
9749 | |
9750 | |
9751 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GUrlFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9752 | PyObject *obj; |
9753 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
9754 | SWIG_TypeNewClientData(SWIGTYPE_p_GUrlFileswig_types[6], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
9755 | return SWIG_Py_Void(); |
9756 | } |
9757 | |
9758 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GUrlString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9759 | PyObject *resultobj = 0; |
9760 | GUrlString *result = 0 ; |
9761 | |
9762 | if (!PyArg_ParseTuple(args,(char *)":new_GUrlString")) SWIG_failgoto fail; |
9763 | { |
9764 | try { |
9765 | result = (GUrlString *)new GUrlString(); |
9766 | } |
9767 | catch (const GException::out_of_range& e) { |
9768 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9769 | } |
9770 | catch (const GExceptionHandler& e) { |
9771 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9772 | } |
9773 | catch (const std::exception& e) { |
9774 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9775 | } |
9776 | } |
9777 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GUrlString, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
9778 | return resultobj; |
9779 | fail: |
9780 | return NULL__null; |
9781 | } |
9782 | |
9783 | |
9784 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GUrlString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9785 | PyObject *resultobj = 0; |
9786 | std::string *arg1 = 0 ; |
9787 | int res1 = SWIG_OLDOBJ((0)) ; |
9788 | PyObject * obj0 = 0 ; |
9789 | GUrlString *result = 0 ; |
9790 | |
9791 | if (!PyArg_ParseTuple(args,(char *)"O:new_GUrlString",&obj0)) SWIG_failgoto fail; |
9792 | { |
9793 | std::string *ptr = (std::string *)0; |
9794 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
9795 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GUrlString" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GUrlString" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
9797 | } |
9798 | if (!ptr) { |
9799 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GUrlString" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GUrlString" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
9800 | } |
9801 | arg1 = ptr; |
9802 | } |
9803 | { |
9804 | try { |
9805 | result = (GUrlString *)new GUrlString((std::string const &)*arg1); |
9806 | } |
9807 | catch (const GException::out_of_range& e) { |
9808 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9809 | } |
9810 | catch (const GExceptionHandler& e) { |
9811 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9812 | } |
9813 | catch (const std::exception& e) { |
9814 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9815 | } |
9816 | } |
9817 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GUrlString, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
9818 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
9819 | return resultobj; |
9820 | fail: |
9821 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
9822 | return NULL__null; |
9823 | } |
9824 | |
9825 | |
9826 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GUrlString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9827 | PyObject *resultobj = 0; |
9828 | GUrlString *arg1 = 0 ; |
9829 | void *argp1 = 0 ; |
9830 | int res1 = 0 ; |
9831 | PyObject * obj0 = 0 ; |
9832 | GUrlString *result = 0 ; |
9833 | |
9834 | if (!PyArg_ParseTuple(args,(char *)"O:new_GUrlString",&obj0)) SWIG_failgoto fail; |
9835 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GUrlString, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9836 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GUrlString" "', argument " "1"" of type '" "GUrlString const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GUrlString" "', argument " "1"" of type '" "GUrlString const &""'"); goto fail; } while (0); |
9838 | } |
9839 | if (!argp1) { |
9840 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GUrlString" "', argument " "1"" of type '" "GUrlString const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GUrlString" "', argument " "1"" of type '" "GUrlString const &""'"); goto fail; } while(0); |
9841 | } |
9842 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
9843 | { |
9844 | try { |
9845 | result = (GUrlString *)new GUrlString((GUrlString const &)*arg1); |
9846 | } |
9847 | catch (const GException::out_of_range& e) { |
9848 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9849 | } |
9850 | catch (const GExceptionHandler& e) { |
9851 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9852 | } |
9853 | catch (const std::exception& e) { |
9854 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9855 | } |
9856 | } |
9857 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GUrlString, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
9858 | return resultobj; |
9859 | fail: |
9860 | return NULL__null; |
9861 | } |
9862 | |
9863 | |
9864 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GUrlString(PyObject *self, PyObject *args) { |
9865 | int argc; |
9866 | PyObject *argv[2]; |
9867 | int ii; |
9868 | |
9869 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9870 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9871 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
9872 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9873 | } |
9874 | if (argc == 0) { |
9875 | return _wrap_new_GUrlString__SWIG_0(self, args); |
9876 | } |
9877 | if (argc == 1) { |
9878 | int _v; |
9879 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GUrlString, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[7], 0, 0); |
9880 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9881 | if (_v) { |
9882 | return _wrap_new_GUrlString__SWIG_2(self, args); |
9883 | } |
9884 | } |
9885 | if (argc == 1) { |
9886 | int _v; |
9887 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
9888 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9889 | if (_v) { |
9890 | return _wrap_new_GUrlString__SWIG_1(self, args); |
9891 | } |
9892 | } |
9893 | |
9894 | fail: |
9895 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GUrlString'.\n" |
9896 | " Possible C/C++ prototypes are:\n" |
9897 | " GUrlString::GUrlString()\n" |
9898 | " GUrlString::GUrlString(std::string const &)\n" |
9899 | " GUrlString::GUrlString(GUrlString const &)\n"); |
9900 | return 0; |
9901 | } |
9902 | |
9903 | |
9904 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GUrlString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9905 | PyObject *resultobj = 0; |
9906 | GUrlString *arg1 = (GUrlString *) 0 ; |
9907 | void *argp1 = 0 ; |
9908 | int res1 = 0 ; |
9909 | PyObject * obj0 = 0 ; |
9910 | |
9911 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GUrlString",&obj0)) SWIG_failgoto fail; |
9912 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0x1 | 0, 0); |
9913 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GUrlString" "', argument " "1"" of type '" "GUrlString *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GUrlString" "', argument " "1"" of type '" "GUrlString *""'"); goto fail; } while(0); |
9915 | } |
9916 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
9917 | { |
9918 | try { |
9919 | delete arg1; |
9920 | } |
9921 | catch (const GException::out_of_range& e) { |
9922 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9923 | } |
9924 | catch (const GExceptionHandler& e) { |
9925 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9926 | } |
9927 | catch (const std::exception& e) { |
9928 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9929 | } |
9930 | } |
9931 | resultobj = SWIG_Py_Void(); |
9932 | return resultobj; |
9933 | fail: |
9934 | return NULL__null; |
9935 | } |
9936 | |
9937 | |
9938 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9939 | PyObject *resultobj = 0; |
9940 | GUrlString *arg1 = (GUrlString *) 0 ; |
9941 | void *argp1 = 0 ; |
9942 | int res1 = 0 ; |
9943 | PyObject * obj0 = 0 ; |
9944 | |
9945 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlString_clear",&obj0)) SWIG_failgoto fail; |
9946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9947 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlString_clear" "', argument " "1"" of type '" "GUrlString *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlString_clear" "', argument " "1"" of type '" "GUrlString *""'"); goto fail; } while(0); |
9949 | } |
9950 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
9951 | { |
9952 | try { |
9953 | (arg1)->clear(); |
9954 | } |
9955 | catch (const GException::out_of_range& e) { |
9956 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9957 | } |
9958 | catch (const GExceptionHandler& e) { |
9959 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9960 | } |
9961 | catch (const std::exception& e) { |
9962 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9963 | } |
9964 | } |
9965 | resultobj = SWIG_Py_Void(); |
9966 | return resultobj; |
9967 | fail: |
9968 | return NULL__null; |
9969 | } |
9970 | |
9971 | |
9972 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9973 | PyObject *resultobj = 0; |
9974 | GUrlString *arg1 = (GUrlString *) 0 ; |
9975 | void *argp1 = 0 ; |
9976 | int res1 = 0 ; |
9977 | PyObject * obj0 = 0 ; |
9978 | GUrlString *result = 0 ; |
9979 | |
9980 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlString_clone",&obj0)) SWIG_failgoto fail; |
9981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9982 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlString_clone" "', argument " "1"" of type '" "GUrlString const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlString_clone" "', argument " "1"" of type '" "GUrlString const *""'"); goto fail; } while (0); |
9984 | } |
9985 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
9986 | { |
9987 | try { |
9988 | result = (GUrlString *)((GUrlString const *)arg1)->clone(); |
9989 | } |
9990 | catch (const GException::out_of_range& e) { |
9991 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9992 | } |
9993 | catch (const GExceptionHandler& e) { |
9994 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9995 | } |
9996 | catch (const std::exception& e) { |
9997 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9998 | } |
9999 | } |
10000 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], 0 | 0); |
10001 | return resultobj; |
10002 | fail: |
10003 | return NULL__null; |
10004 | } |
10005 | |
10006 | |
10007 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_open__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10008 | PyObject *resultobj = 0; |
10009 | GUrlString *arg1 = (GUrlString *) 0 ; |
10010 | std::string *arg2 = 0 ; |
10011 | std::string *arg3 = 0 ; |
10012 | void *argp1 = 0 ; |
10013 | int res1 = 0 ; |
10014 | int res2 = SWIG_OLDOBJ((0)) ; |
10015 | int res3 = SWIG_OLDOBJ((0)) ; |
10016 | PyObject * obj0 = 0 ; |
10017 | PyObject * obj1 = 0 ; |
10018 | PyObject * obj2 = 0 ; |
10019 | |
10020 | if (!PyArg_ParseTuple(args,(char *)"OOO:GUrlString_open",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
10021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10022 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlString_open" "', argument " "1"" of type '" "GUrlString *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlString_open" "', argument " "1"" of type '" "GUrlString *""'"); goto fail; } while(0); |
10024 | } |
10025 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
10026 | { |
10027 | std::string *ptr = (std::string *)0; |
10028 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10029 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10030 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GUrlString_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GUrlString_open" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10031 | } |
10032 | if (!ptr) { |
10033 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GUrlString_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GUrlString_open" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
10034 | } |
10035 | arg2 = ptr; |
10036 | } |
10037 | { |
10038 | std::string *ptr = (std::string *)0; |
10039 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
10040 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10041 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GUrlString_open" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GUrlString_open" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
10042 | } |
10043 | if (!ptr) { |
10044 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GUrlString_open" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GUrlString_open" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0); |
10045 | } |
10046 | arg3 = ptr; |
10047 | } |
10048 | { |
10049 | try { |
10050 | (arg1)->open((std::string const &)*arg2,(std::string const &)*arg3); |
10051 | } |
10052 | catch (const GException::out_of_range& e) { |
10053 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10054 | } |
10055 | catch (const GExceptionHandler& e) { |
10056 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10057 | } |
10058 | catch (const std::exception& e) { |
10059 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10060 | } |
10061 | } |
10062 | resultobj = SWIG_Py_Void(); |
10063 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10064 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
10065 | return resultobj; |
10066 | fail: |
10067 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10068 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
10069 | return NULL__null; |
10070 | } |
10071 | |
10072 | |
10073 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_open__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10074 | PyObject *resultobj = 0; |
10075 | GUrlString *arg1 = (GUrlString *) 0 ; |
10076 | std::string *arg2 = 0 ; |
10077 | void *argp1 = 0 ; |
10078 | int res1 = 0 ; |
10079 | int res2 = SWIG_OLDOBJ((0)) ; |
10080 | PyObject * obj0 = 0 ; |
10081 | PyObject * obj1 = 0 ; |
10082 | |
10083 | if (!PyArg_ParseTuple(args,(char *)"OO:GUrlString_open",&obj0,&obj1)) SWIG_failgoto fail; |
10084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10085 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlString_open" "', argument " "1"" of type '" "GUrlString *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlString_open" "', argument " "1"" of type '" "GUrlString *""'"); goto fail; } while(0); |
10087 | } |
10088 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
10089 | { |
10090 | std::string *ptr = (std::string *)0; |
10091 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10092 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10093 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GUrlString_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GUrlString_open" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10094 | } |
10095 | if (!ptr) { |
10096 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GUrlString_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GUrlString_open" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
10097 | } |
10098 | arg2 = ptr; |
10099 | } |
10100 | { |
10101 | try { |
10102 | (arg1)->open((std::string const &)*arg2); |
10103 | } |
10104 | catch (const GException::out_of_range& e) { |
10105 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10106 | } |
10107 | catch (const GExceptionHandler& e) { |
10108 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10109 | } |
10110 | catch (const std::exception& e) { |
10111 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10112 | } |
10113 | } |
10114 | resultobj = SWIG_Py_Void(); |
10115 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10116 | return resultobj; |
10117 | fail: |
10118 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10119 | return NULL__null; |
10120 | } |
10121 | |
10122 | |
10123 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_open(PyObject *self, PyObject *args) { |
10124 | int argc; |
10125 | PyObject *argv[4]; |
10126 | int ii; |
10127 | |
10128 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10129 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10130 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
10131 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10132 | } |
10133 | if (argc == 2) { |
10134 | int _v; |
10135 | void *vptr = 0; |
10136 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GUrlString, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
10137 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10138 | if (_v) { |
10139 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
10140 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10141 | if (_v) { |
10142 | return _wrap_GUrlString_open__SWIG_1(self, args); |
10143 | } |
10144 | } |
10145 | } |
10146 | if (argc == 3) { |
10147 | int _v; |
10148 | void *vptr = 0; |
10149 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GUrlString, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
10150 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10151 | if (_v) { |
10152 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
10153 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10154 | if (_v) { |
10155 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
10156 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10157 | if (_v) { |
10158 | return _wrap_GUrlString_open__SWIG_0(self, args); |
10159 | } |
10160 | } |
10161 | } |
10162 | } |
10163 | |
10164 | fail: |
10165 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GUrlString_open'.\n" |
10166 | " Possible C/C++ prototypes are:\n" |
10167 | " GUrlString::open(std::string const &,std::string const &)\n" |
10168 | " GUrlString::open(std::string const &)\n"); |
10169 | return 0; |
10170 | } |
10171 | |
10172 | |
10173 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10174 | PyObject *resultobj = 0; |
10175 | GUrlString *arg1 = (GUrlString *) 0 ; |
10176 | void *argp1 = 0 ; |
10177 | int res1 = 0 ; |
10178 | PyObject * obj0 = 0 ; |
10179 | |
10180 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlString_close",&obj0)) SWIG_failgoto fail; |
10181 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10182 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlString_close" "', argument " "1"" of type '" "GUrlString *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlString_close" "', argument " "1"" of type '" "GUrlString *""'"); goto fail; } while(0); |
10184 | } |
10185 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
10186 | { |
10187 | try { |
10188 | (arg1)->close(); |
10189 | } |
10190 | catch (const GException::out_of_range& e) { |
10191 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10192 | } |
10193 | catch (const GExceptionHandler& e) { |
10194 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10195 | } |
10196 | catch (const std::exception& e) { |
10197 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10198 | } |
10199 | } |
10200 | resultobj = SWIG_Py_Void(); |
10201 | return resultobj; |
10202 | fail: |
10203 | return NULL__null; |
10204 | } |
10205 | |
10206 | |
10207 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_getchar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10208 | PyObject *resultobj = 0; |
10209 | GUrlString *arg1 = (GUrlString *) 0 ; |
10210 | void *argp1 = 0 ; |
10211 | int res1 = 0 ; |
10212 | PyObject * obj0 = 0 ; |
10213 | int result; |
10214 | |
10215 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlString_getchar",&obj0)) SWIG_failgoto fail; |
10216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10217 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlString_getchar" "', argument " "1"" of type '" "GUrlString const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlString_getchar" "', argument " "1"" of type '" "GUrlString const *""'"); goto fail; } while (0); |
10219 | } |
10220 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
10221 | { |
10222 | try { |
10223 | result = (int)((GUrlString const *)arg1)->getchar(); |
10224 | } |
10225 | catch (const GException::out_of_range& e) { |
10226 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10227 | } |
10228 | catch (const GExceptionHandler& e) { |
10229 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10230 | } |
10231 | catch (const std::exception& e) { |
10232 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10233 | } |
10234 | } |
10235 | resultobj = SWIG_From_int(static_cast< int >(result)); |
10236 | return resultobj; |
10237 | fail: |
10238 | return NULL__null; |
10239 | } |
10240 | |
10241 | |
10242 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_putchar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10243 | PyObject *resultobj = 0; |
10244 | GUrlString *arg1 = (GUrlString *) 0 ; |
10245 | int *arg2 = 0 ; |
10246 | void *argp1 = 0 ; |
10247 | int res1 = 0 ; |
10248 | int temp2 ; |
10249 | int val2 ; |
10250 | int ecode2 = 0 ; |
10251 | PyObject * obj0 = 0 ; |
10252 | PyObject * obj1 = 0 ; |
10253 | |
10254 | if (!PyArg_ParseTuple(args,(char *)"OO:GUrlString_putchar",&obj0,&obj1)) SWIG_failgoto fail; |
10255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10256 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlString_putchar" "', argument " "1"" of type '" "GUrlString *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlString_putchar" "', argument " "1"" of type '" "GUrlString *""'"); goto fail; } while(0); |
10258 | } |
10259 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
10260 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
10261 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
10262 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GUrlString_putchar" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GUrlString_putchar" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
10263 | } |
10264 | temp2 = static_cast< int >(val2); |
10265 | arg2 = &temp2; |
10266 | { |
10267 | try { |
10268 | (arg1)->putchar((int const &)*arg2); |
10269 | } |
10270 | catch (const GException::out_of_range& e) { |
10271 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10272 | } |
10273 | catch (const GExceptionHandler& e) { |
10274 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10275 | } |
10276 | catch (const std::exception& e) { |
10277 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10278 | } |
10279 | } |
10280 | resultobj = SWIG_Py_Void(); |
10281 | return resultobj; |
10282 | fail: |
10283 | return NULL__null; |
10284 | } |
10285 | |
10286 | |
10287 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_string(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10288 | PyObject *resultobj = 0; |
10289 | GUrlString *arg1 = (GUrlString *) 0 ; |
10290 | void *argp1 = 0 ; |
10291 | int res1 = 0 ; |
10292 | PyObject * obj0 = 0 ; |
10293 | std::string *result = 0 ; |
10294 | |
10295 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlString_string",&obj0)) SWIG_failgoto fail; |
10296 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10297 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlString_string" "', argument " "1"" of type '" "GUrlString const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlString_string" "', argument " "1"" of type '" "GUrlString const *""'"); goto fail; } while (0); |
10299 | } |
10300 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
10301 | { |
10302 | try { |
10303 | result = (std::string *) &((GUrlString const *)arg1)->string(); |
10304 | } |
10305 | catch (const GException::out_of_range& e) { |
10306 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10307 | } |
10308 | catch (const GExceptionHandler& e) { |
10309 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10310 | } |
10311 | catch (const std::exception& e) { |
10312 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10313 | } |
10314 | } |
10315 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
10316 | return resultobj; |
10317 | fail: |
10318 | return NULL__null; |
10319 | } |
10320 | |
10321 | |
10322 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_rewind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10323 | PyObject *resultobj = 0; |
10324 | GUrlString *arg1 = (GUrlString *) 0 ; |
10325 | void *argp1 = 0 ; |
10326 | int res1 = 0 ; |
10327 | PyObject * obj0 = 0 ; |
10328 | |
10329 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlString_rewind",&obj0)) SWIG_failgoto fail; |
10330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10331 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlString_rewind" "', argument " "1"" of type '" "GUrlString *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlString_rewind" "', argument " "1"" of type '" "GUrlString *""'"); goto fail; } while(0); |
10333 | } |
10334 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
10335 | { |
10336 | try { |
10337 | (arg1)->rewind(); |
10338 | } |
10339 | catch (const GException::out_of_range& e) { |
10340 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10341 | } |
10342 | catch (const GExceptionHandler& e) { |
10343 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10344 | } |
10345 | catch (const std::exception& e) { |
10346 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10347 | } |
10348 | } |
10349 | resultobj = SWIG_Py_Void(); |
10350 | return resultobj; |
10351 | fail: |
10352 | return NULL__null; |
10353 | } |
10354 | |
10355 | |
10356 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GUrlString_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10357 | PyObject *resultobj = 0; |
10358 | GUrlString *arg1 = (GUrlString *) 0 ; |
10359 | void *argp1 = 0 ; |
10360 | int res1 = 0 ; |
10361 | PyObject * obj0 = 0 ; |
10362 | GUrlString result; |
10363 | |
10364 | if (!PyArg_ParseTuple(args,(char *)"O:GUrlString_copy",&obj0)) SWIG_failgoto fail; |
10365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GUrlString, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10366 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GUrlString_copy" "', argument " "1"" of type '" "GUrlString *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GUrlString_copy" "', argument " "1"" of type '" "GUrlString *""'"); goto fail; } while(0); |
10368 | } |
10369 | arg1 = reinterpret_cast< GUrlString * >(argp1); |
10370 | { |
10371 | try { |
10372 | result = GUrlString_copy(arg1); |
10373 | } |
10374 | catch (const GException::out_of_range& e) { |
10375 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10376 | } |
10377 | catch (const GExceptionHandler& e) { |
10378 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10379 | } |
10380 | catch (const std::exception& e) { |
10381 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10382 | } |
10383 | } |
10384 | resultobj = SWIG_NewPointerObj((new GUrlString(static_cast< const GUrlString& >(result))), SWIGTYPE_p_GUrlString, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GUrlString(static_cast < const GUrlString& >(result))), swig_types[7], 0x1 | 0); |
10385 | return resultobj; |
10386 | fail: |
10387 | return NULL__null; |
10388 | } |
10389 | |
10390 | |
10391 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GUrlString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10392 | PyObject *obj; |
10393 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
10394 | SWIG_TypeNewClientData(SWIGTYPE_p_GUrlStringswig_types[7], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
10395 | return SWIG_Py_Void(); |
10396 | } |
10397 | |
10398 | static PyMethodDef SwigMethods[] = { |
10399 | { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null}, |
10400 | { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"}, |
10401 | { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"}, |
10402 | { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n" |
10403 | "incr(size_t n=1) -> SwigPyIterator\n" |
10404 | "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n" |
10405 | ""}, |
10406 | { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n" |
10407 | "decr(size_t n=1) -> SwigPyIterator\n" |
10408 | "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n" |
10409 | ""}, |
10410 | { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"}, |
10411 | { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
10412 | { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"}, |
10413 | { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"}, |
10414 | { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"}, |
10415 | { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"}, |
10416 | { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10417 | { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
10418 | { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
10419 | { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10420 | { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10421 | { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10422 | { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n" |
10423 | "__sub__(ptrdiff_t n) -> SwigPyIterator\n" |
10424 | "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n" |
10425 | ""}, |
10426 | { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null}, |
10427 | { (char *)"strip_whitespace", _wrap_strip_whitespace, METH_VARARGS0x0001, (char *)"strip_whitespace(std::string const & arg) -> std::string"}, |
10428 | { (char *)"strip_chars", _wrap_strip_chars, METH_VARARGS0x0001, (char *)"strip_chars(std::string const & arg, std::string const & chars) -> std::string"}, |
10429 | { (char *)"expand_env", _wrap_expand_env, METH_VARARGS0x0001, (char *)"expand_env(std::string const & arg) -> std::string"}, |
10430 | { (char *)"toupper", _wrap_toupper, METH_VARARGS0x0001, (char *)"toupper(std::string const & s) -> std::string"}, |
10431 | { (char *)"tolower", _wrap_tolower, METH_VARARGS0x0001, (char *)"tolower(std::string const & s) -> std::string"}, |
10432 | { (char *)"split", _wrap_split, METH_VARARGS0x0001, (char *)"split(std::string const & s, std::string const & sep) -> std::vector< std::string,std::allocator< std::string > >"}, |
10433 | { (char *)"fill", _wrap_fill, METH_VARARGS0x0001, (char *)"fill(std::string const & s, int n) -> std::string"}, |
10434 | { (char *)"left", _wrap_left, METH_VARARGS0x0001, (char *)"\n" |
10435 | "left(std::string const & s, int n, char c=' ') -> std::string\n" |
10436 | "left(std::string const & s, int n) -> std::string\n" |
10437 | ""}, |
10438 | { (char *)"right", _wrap_right, METH_VARARGS0x0001, (char *)"\n" |
10439 | "right(std::string const & s, int n, char c=' ') -> std::string\n" |
10440 | "right(std::string const & s, int n) -> std::string\n" |
10441 | ""}, |
10442 | { (char *)"center", _wrap_center, METH_VARARGS0x0001, (char *)"\n" |
10443 | "center(std::string const & s, int n, char c=' ') -> std::string\n" |
10444 | "center(std::string const & s, int n) -> std::string\n" |
10445 | ""}, |
10446 | { (char *)"parformat", _wrap_parformat, METH_VARARGS0x0001, (char *)"\n" |
10447 | "parformat(std::string const & s, int const & indent=0) -> std::string\n" |
10448 | "parformat(std::string const & s) -> std::string\n" |
10449 | ""}, |
10450 | { (char *)"plaw_photon_flux", _wrap_plaw_photon_flux, METH_VARARGS0x0001, (char *)"plaw_photon_flux(double const & emin, double const & emax, double const & epivot, double const & gamma) -> double"}, |
10451 | { (char *)"plaw_energy_flux", _wrap_plaw_energy_flux, METH_VARARGS0x0001, (char *)"plaw_energy_flux(double const & emin, double const & emax, double const & epivot, double const & gamma) -> double"}, |
10452 | { (char *)"file_exists", _wrap_file_exists, METH_VARARGS0x0001, (char *)"file_exists(std::string const & filename) -> bool"}, |
10453 | { (char *)"isinfinite", _wrap_isinfinite, METH_VARARGS0x0001, (char *)"isinfinite(double const & x) -> bool"}, |
10454 | { (char *)"isnotanumber", _wrap_isnotanumber, METH_VARARGS0x0001, (char *)"isnotanumber(double const & x) -> bool"}, |
10455 | { (char *)"new_GNodeArray", _wrap_new_GNodeArray, METH_VARARGS0x0001, (char *)"\n" |
10456 | "GNodeArray()\n" |
10457 | "GNodeArray(int const & num, double const * array)\n" |
10458 | "GNodeArray(GVector const & vector)\n" |
10459 | "GNodeArray(std::vector< double,std::allocator< double > > const & vector)\n" |
10460 | "new_GNodeArray(GNodeArray array) -> GNodeArray\n" |
10461 | ""}, |
10462 | { (char *)"delete_GNodeArray", _wrap_delete_GNodeArray, METH_VARARGS0x0001, (char *)"delete_GNodeArray(GNodeArray self)"}, |
10463 | { (char *)"GNodeArray_clear", _wrap_GNodeArray_clear, METH_VARARGS0x0001, (char *)"GNodeArray_clear(GNodeArray self)"}, |
10464 | { (char *)"GNodeArray_clone", _wrap_GNodeArray_clone, METH_VARARGS0x0001, (char *)"GNodeArray_clone(GNodeArray self) -> GNodeArray"}, |
10465 | { (char *)"GNodeArray_at", _wrap_GNodeArray_at, METH_VARARGS0x0001, (char *)"GNodeArray_at(GNodeArray self, int const & index) -> double &"}, |
10466 | { (char *)"GNodeArray_size", _wrap_GNodeArray_size, METH_VARARGS0x0001, (char *)"GNodeArray_size(GNodeArray self) -> int"}, |
10467 | { (char *)"GNodeArray_isempty", _wrap_GNodeArray_isempty, METH_VARARGS0x0001, (char *)"GNodeArray_isempty(GNodeArray self) -> bool"}, |
10468 | { (char *)"GNodeArray_append", _wrap_GNodeArray_append, METH_VARARGS0x0001, (char *)"GNodeArray_append(GNodeArray self, double const & node)"}, |
10469 | { (char *)"GNodeArray_insert", _wrap_GNodeArray_insert, METH_VARARGS0x0001, (char *)"GNodeArray_insert(GNodeArray self, int const & index, double const & node)"}, |
10470 | { (char *)"GNodeArray_remove", _wrap_GNodeArray_remove, METH_VARARGS0x0001, (char *)"GNodeArray_remove(GNodeArray self, int const & index)"}, |
10471 | { (char *)"GNodeArray_reserve", _wrap_GNodeArray_reserve, METH_VARARGS0x0001, (char *)"GNodeArray_reserve(GNodeArray self, int const & num)"}, |
10472 | { (char *)"GNodeArray_extend", _wrap_GNodeArray_extend, METH_VARARGS0x0001, (char *)"GNodeArray_extend(GNodeArray self, GNodeArray nodes)"}, |
10473 | { (char *)"GNodeArray_nodes", _wrap_GNodeArray_nodes, METH_VARARGS0x0001, (char *)"\n" |
10474 | "nodes(int const & num, double const * array)\n" |
10475 | "nodes(GVector const & vector)\n" |
10476 | "GNodeArray_nodes(GNodeArray self, std::vector< double,std::allocator< double > > const & vector)\n" |
10477 | ""}, |
10478 | { (char *)"GNodeArray_interpolate", _wrap_GNodeArray_interpolate, METH_VARARGS0x0001, (char *)"GNodeArray_interpolate(GNodeArray self, double const & value, std::vector< double,std::allocator< double > > const & vector) -> double"}, |
10479 | { (char *)"GNodeArray_set_value", _wrap_GNodeArray_set_value, METH_VARARGS0x0001, (char *)"GNodeArray_set_value(GNodeArray self, double const & value)"}, |
10480 | { (char *)"GNodeArray_inx_left", _wrap_GNodeArray_inx_left, METH_VARARGS0x0001, (char *)"GNodeArray_inx_left(GNodeArray self) -> int const &"}, |
10481 | { (char *)"GNodeArray_inx_right", _wrap_GNodeArray_inx_right, METH_VARARGS0x0001, (char *)"GNodeArray_inx_right(GNodeArray self) -> int const &"}, |
10482 | { (char *)"GNodeArray_wgt_left", _wrap_GNodeArray_wgt_left, METH_VARARGS0x0001, (char *)"GNodeArray_wgt_left(GNodeArray self) -> double const &"}, |
10483 | { (char *)"GNodeArray_wgt_right", _wrap_GNodeArray_wgt_right, METH_VARARGS0x0001, (char *)"GNodeArray_wgt_right(GNodeArray self) -> double const &"}, |
10484 | { (char *)"GNodeArray___getitem__", _wrap_GNodeArray___getitem__, METH_VARARGS0x0001, (char *)"GNodeArray___getitem__(GNodeArray self, int const & index) -> double"}, |
10485 | { (char *)"GNodeArray___setitem__", _wrap_GNodeArray___setitem__, METH_VARARGS0x0001, (char *)"GNodeArray___setitem__(GNodeArray self, int const & index, double const & val)"}, |
10486 | { (char *)"GNodeArray_copy", _wrap_GNodeArray_copy, METH_VARARGS0x0001, (char *)"GNodeArray_copy(GNodeArray self) -> GNodeArray"}, |
10487 | { (char *)"GNodeArray_swigregister", GNodeArray_swigregister, METH_VARARGS0x0001, NULL__null}, |
10488 | { (char *)"new_GCsv", _wrap_new_GCsv, METH_VARARGS0x0001, (char *)"\n" |
10489 | "GCsv()\n" |
10490 | "GCsv(std::string const & filename, std::string const & sep=\" \")\n" |
10491 | "GCsv(std::string const & filename)\n" |
10492 | "new_GCsv(GCsv csv) -> GCsv\n" |
10493 | ""}, |
10494 | { (char *)"delete_GCsv", _wrap_delete_GCsv, METH_VARARGS0x0001, (char *)"delete_GCsv(GCsv self)"}, |
10495 | { (char *)"GCsv_clear", _wrap_GCsv_clear, METH_VARARGS0x0001, (char *)"GCsv_clear(GCsv self)"}, |
10496 | { (char *)"GCsv_clone", _wrap_GCsv_clone, METH_VARARGS0x0001, (char *)"GCsv_clone(GCsv self) -> GCsv"}, |
10497 | { (char *)"GCsv_size", _wrap_GCsv_size, METH_VARARGS0x0001, (char *)"GCsv_size(GCsv self) -> int"}, |
10498 | { (char *)"GCsv_ncols", _wrap_GCsv_ncols, METH_VARARGS0x0001, (char *)"GCsv_ncols(GCsv self) -> int const &"}, |
10499 | { (char *)"GCsv_nrows", _wrap_GCsv_nrows, METH_VARARGS0x0001, (char *)"GCsv_nrows(GCsv self) -> int const &"}, |
10500 | { (char *)"GCsv_string", _wrap_GCsv_string, METH_VARARGS0x0001, (char *)"GCsv_string(GCsv self, int const & row, int const & col) -> std::string"}, |
10501 | { (char *)"GCsv_real", _wrap_GCsv_real, METH_VARARGS0x0001, (char *)"GCsv_real(GCsv self, int const & row, int const & col) -> double"}, |
10502 | { (char *)"GCsv_integer", _wrap_GCsv_integer, METH_VARARGS0x0001, (char *)"GCsv_integer(GCsv self, int const & row, int const & col) -> int"}, |
10503 | { (char *)"GCsv_load", _wrap_GCsv_load, METH_VARARGS0x0001, (char *)"\n" |
10504 | "load(std::string const & filename, std::string const & sep=\" \")\n" |
10505 | "GCsv_load(GCsv self, std::string const & filename)\n" |
10506 | ""}, |
10507 | { (char *)"GCsv___getitem__", _wrap_GCsv___getitem__, METH_VARARGS0x0001, (char *)"GCsv___getitem__(GCsv self, int [] GCsvInx) -> std::string"}, |
10508 | { (char *)"GCsv___setitem__", _wrap_GCsv___setitem__, METH_VARARGS0x0001, (char *)"GCsv___setitem__(GCsv self, int [] GCsvInx, std::string value)"}, |
10509 | { (char *)"GCsv___len__", _wrap_GCsv___len__, METH_VARARGS0x0001, (char *)"GCsv___len__(GCsv self) -> int"}, |
10510 | { (char *)"GCsv_copy", _wrap_GCsv_copy, METH_VARARGS0x0001, (char *)"GCsv_copy(GCsv self) -> GCsv"}, |
10511 | { (char *)"GCsv_swigregister", GCsv_swigregister, METH_VARARGS0x0001, NULL__null}, |
10512 | { (char *)"new_GRan", _wrap_new_GRan, METH_VARARGS0x0001, (char *)"\n" |
10513 | "GRan()\n" |
10514 | "GRan(unsigned long long seed)\n" |
10515 | "new_GRan(GRan ran) -> GRan\n" |
10516 | ""}, |
10517 | { (char *)"delete_GRan", _wrap_delete_GRan, METH_VARARGS0x0001, (char *)"delete_GRan(GRan self)"}, |
10518 | { (char *)"GRan_clear", _wrap_GRan_clear, METH_VARARGS0x0001, (char *)"GRan_clear(GRan self)"}, |
10519 | { (char *)"GRan_clone", _wrap_GRan_clone, METH_VARARGS0x0001, (char *)"GRan_clone(GRan self) -> GRan"}, |
10520 | { (char *)"GRan_seed", _wrap_GRan_seed, METH_VARARGS0x0001, (char *)"\n" |
10521 | "seed(unsigned long long seed)\n" |
10522 | "GRan_seed(GRan self) -> unsigned long long\n" |
10523 | ""}, |
10524 | { (char *)"GRan_int32", _wrap_GRan_int32, METH_VARARGS0x0001, (char *)"GRan_int32(GRan self) -> unsigned long"}, |
10525 | { (char *)"GRan_int64", _wrap_GRan_int64, METH_VARARGS0x0001, (char *)"GRan_int64(GRan self) -> unsigned long long"}, |
10526 | { (char *)"GRan_uniform", _wrap_GRan_uniform, METH_VARARGS0x0001, (char *)"GRan_uniform(GRan self) -> double"}, |
10527 | { (char *)"GRan_exp", _wrap_GRan_exp, METH_VARARGS0x0001, (char *)"GRan_exp(GRan self, double const & arg) -> double"}, |
10528 | { (char *)"GRan_poisson", _wrap_GRan_poisson, METH_VARARGS0x0001, (char *)"GRan_poisson(GRan self, double const & arg) -> double"}, |
10529 | { (char *)"GRan_chisq2", _wrap_GRan_chisq2, METH_VARARGS0x0001, (char *)"GRan_chisq2(GRan self) -> double"}, |
10530 | { (char *)"GRan_copy", _wrap_GRan_copy, METH_VARARGS0x0001, (char *)"GRan_copy(GRan self) -> GRan"}, |
10531 | { (char *)"GRan_swigregister", GRan_swigregister, METH_VARARGS0x0001, NULL__null}, |
10532 | { (char *)"delete_GUrl", _wrap_delete_GUrl, METH_VARARGS0x0001, (char *)"delete_GUrl(GUrl self)"}, |
10533 | { (char *)"GUrl_clear", _wrap_GUrl_clear, METH_VARARGS0x0001, (char *)"GUrl_clear(GUrl self)"}, |
10534 | { (char *)"GUrl_clone", _wrap_GUrl_clone, METH_VARARGS0x0001, (char *)"GUrl_clone(GUrl self) -> GUrl"}, |
10535 | { (char *)"GUrl_open", _wrap_GUrl_open, METH_VARARGS0x0001, (char *)"GUrl_open(GUrl self, std::string const & url, std::string const & mode)"}, |
10536 | { (char *)"GUrl_close", _wrap_GUrl_close, METH_VARARGS0x0001, (char *)"GUrl_close(GUrl self)"}, |
10537 | { (char *)"GUrl_getchar", _wrap_GUrl_getchar, METH_VARARGS0x0001, (char *)"GUrl_getchar(GUrl self) -> int"}, |
10538 | { (char *)"GUrl_putchar", _wrap_GUrl_putchar, METH_VARARGS0x0001, (char *)"GUrl_putchar(GUrl self, int const & character)"}, |
10539 | { (char *)"GUrl_read", _wrap_GUrl_read, METH_VARARGS0x0001, (char *)"GUrl_read(GUrl self, int const & nbyte) -> char *"}, |
10540 | { (char *)"GUrl_write", _wrap_GUrl_write, METH_VARARGS0x0001, (char *)"GUrl_write(GUrl self, std::string const & buffer, int const & nbyte) -> int"}, |
10541 | { (char *)"GUrl_swigregister", GUrl_swigregister, METH_VARARGS0x0001, NULL__null}, |
10542 | { (char *)"new_GUrlFile", _wrap_new_GUrlFile, METH_VARARGS0x0001, (char *)"\n" |
10543 | "GUrlFile()\n" |
10544 | "GUrlFile(std::string const & url, std::string const & mode)\n" |
10545 | "new_GUrlFile(GUrlFile url) -> GUrlFile\n" |
10546 | ""}, |
10547 | { (char *)"delete_GUrlFile", _wrap_delete_GUrlFile, METH_VARARGS0x0001, (char *)"delete_GUrlFile(GUrlFile self)"}, |
10548 | { (char *)"GUrlFile_clear", _wrap_GUrlFile_clear, METH_VARARGS0x0001, (char *)"GUrlFile_clear(GUrlFile self)"}, |
10549 | { (char *)"GUrlFile_clone", _wrap_GUrlFile_clone, METH_VARARGS0x0001, (char *)"GUrlFile_clone(GUrlFile self) -> GUrlFile"}, |
10550 | { (char *)"GUrlFile_open", _wrap_GUrlFile_open, METH_VARARGS0x0001, (char *)"GUrlFile_open(GUrlFile self, std::string const & url, std::string const & mode)"}, |
10551 | { (char *)"GUrlFile_close", _wrap_GUrlFile_close, METH_VARARGS0x0001, (char *)"GUrlFile_close(GUrlFile self)"}, |
10552 | { (char *)"GUrlFile_getchar", _wrap_GUrlFile_getchar, METH_VARARGS0x0001, (char *)"GUrlFile_getchar(GUrlFile self) -> int"}, |
10553 | { (char *)"GUrlFile_putchar", _wrap_GUrlFile_putchar, METH_VARARGS0x0001, (char *)"GUrlFile_putchar(GUrlFile self, int const & character)"}, |
10554 | { (char *)"GUrlFile_copy", _wrap_GUrlFile_copy, METH_VARARGS0x0001, (char *)"GUrlFile_copy(GUrlFile self) -> GUrlFile"}, |
10555 | { (char *)"GUrlFile_swigregister", GUrlFile_swigregister, METH_VARARGS0x0001, NULL__null}, |
10556 | { (char *)"new_GUrlString", _wrap_new_GUrlString, METH_VARARGS0x0001, (char *)"\n" |
10557 | "GUrlString()\n" |
10558 | "GUrlString(std::string const & string)\n" |
10559 | "new_GUrlString(GUrlString url) -> GUrlString\n" |
10560 | ""}, |
10561 | { (char *)"delete_GUrlString", _wrap_delete_GUrlString, METH_VARARGS0x0001, (char *)"delete_GUrlString(GUrlString self)"}, |
10562 | { (char *)"GUrlString_clear", _wrap_GUrlString_clear, METH_VARARGS0x0001, (char *)"GUrlString_clear(GUrlString self)"}, |
10563 | { (char *)"GUrlString_clone", _wrap_GUrlString_clone, METH_VARARGS0x0001, (char *)"GUrlString_clone(GUrlString self) -> GUrlString"}, |
10564 | { (char *)"GUrlString_open", _wrap_GUrlString_open, METH_VARARGS0x0001, (char *)"\n" |
10565 | "open(std::string const & string, std::string const & mode=\"\")\n" |
10566 | "GUrlString_open(GUrlString self, std::string const & string)\n" |
10567 | ""}, |
10568 | { (char *)"GUrlString_close", _wrap_GUrlString_close, METH_VARARGS0x0001, (char *)"GUrlString_close(GUrlString self)"}, |
10569 | { (char *)"GUrlString_getchar", _wrap_GUrlString_getchar, METH_VARARGS0x0001, (char *)"GUrlString_getchar(GUrlString self) -> int"}, |
10570 | { (char *)"GUrlString_putchar", _wrap_GUrlString_putchar, METH_VARARGS0x0001, (char *)"GUrlString_putchar(GUrlString self, int const & character)"}, |
10571 | { (char *)"GUrlString_string", _wrap_GUrlString_string, METH_VARARGS0x0001, (char *)"GUrlString_string(GUrlString self) -> std::string const &"}, |
10572 | { (char *)"GUrlString_rewind", _wrap_GUrlString_rewind, METH_VARARGS0x0001, (char *)"GUrlString_rewind(GUrlString self)"}, |
10573 | { (char *)"GUrlString_copy", _wrap_GUrlString_copy, METH_VARARGS0x0001, (char *)"GUrlString_copy(GUrlString self) -> GUrlString"}, |
10574 | { (char *)"GUrlString_swigregister", GUrlString_swigregister, METH_VARARGS0x0001, NULL__null}, |
10575 | { NULL__null, NULL__null, 0, NULL__null } |
10576 | }; |
10577 | |
10578 | |
10579 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
10580 | |
10581 | static void *_p_GUrlTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10582 | return (void *)((GBase *) ((GUrl *) x)); |
10583 | } |
10584 | static void *_p_GUrlFileTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10585 | return (void *)((GBase *) (GUrl *) ((GUrlFile *) x)); |
10586 | } |
10587 | static void *_p_GNodeArrayTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10588 | return (void *)((GBase *) (GContainer *) ((GNodeArray *) x)); |
10589 | } |
10590 | static void *_p_GUrlStringTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10591 | return (void *)((GBase *) (GUrl *) ((GUrlString *) x)); |
10592 | } |
10593 | static void *_p_GContainerTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10594 | return (void *)((GBase *) ((GContainer *) x)); |
10595 | } |
10596 | static void *_p_GRanTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10597 | return (void *)((GBase *) ((GRan *) x)); |
10598 | } |
10599 | static void *_p_GCsvTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10600 | return (void *)((GBase *) ((GCsv *) x)); |
10601 | } |
10602 | static void *_p_GUrlFileTo_p_GUrl(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10603 | return (void *)((GUrl *) ((GUrlFile *) x)); |
10604 | } |
10605 | static void *_p_GUrlStringTo_p_GUrl(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10606 | return (void *)((GUrl *) ((GUrlString *) x)); |
10607 | } |
10608 | static void *_p_GNodeArrayTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10609 | return (void *)((GContainer *) ((GNodeArray *) x)); |
10610 | } |
10611 | static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0}; |
10612 | static swig_type_info _swigt__p_GContainer = {"_p_GContainer", "GContainer *", 0, 0, (void*)0, 0}; |
10613 | static swig_type_info _swigt__p_GCsv = {"_p_GCsv", "GCsv *", 0, 0, (void*)0, 0}; |
10614 | static swig_type_info _swigt__p_GNodeArray = {"_p_GNodeArray", "GNodeArray *", 0, 0, (void*)0, 0}; |
10615 | static swig_type_info _swigt__p_GRan = {"_p_GRan", "GRan *", 0, 0, (void*)0, 0}; |
10616 | static swig_type_info _swigt__p_GUrl = {"_p_GUrl", "GUrl *", 0, 0, (void*)0, 0}; |
10617 | static swig_type_info _swigt__p_GUrlFile = {"_p_GUrlFile", "GUrlFile *", 0, 0, (void*)0, 0}; |
10618 | static swig_type_info _swigt__p_GUrlString = {"_p_GUrlString", "GUrlString *", 0, 0, (void*)0, 0}; |
10619 | static swig_type_info _swigt__p_GVector = {"_p_GVector", "GVector *", 0, 0, (void*)0, 0}; |
10620 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
10621 | static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; |
10622 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; |
10623 | static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; |
10624 | static swig_type_info _swigt__p_std__vectorT_double_std__allocatorT_double_t_t = {"_p_std__vectorT_double_std__allocatorT_double_t_t", "std::vector< double,std::allocator< double > > *", 0, 0, (void*)0, 0}; |
10625 | static swig_type_info _swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t = {"_p_std__vectorT_std__string_std__allocatorT_std__string_t_t", "std::vector< std::string,std::allocator< std::string > > *", 0, 0, (void*)0, 0}; |
10626 | static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; |
10627 | |
10628 | static swig_type_info *swig_type_initial[] = { |
10629 | &_swigt__p_GBase, |
10630 | &_swigt__p_GContainer, |
10631 | &_swigt__p_GCsv, |
10632 | &_swigt__p_GNodeArray, |
10633 | &_swigt__p_GRan, |
10634 | &_swigt__p_GUrl, |
10635 | &_swigt__p_GUrlFile, |
10636 | &_swigt__p_GUrlString, |
10637 | &_swigt__p_GVector, |
10638 | &_swigt__p_char, |
10639 | &_swigt__p_double, |
10640 | &_swigt__p_int, |
10641 | &_swigt__p_std__invalid_argument, |
10642 | &_swigt__p_std__vectorT_double_std__allocatorT_double_t_t, |
10643 | &_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, |
10644 | &_swigt__p_swig__SwigPyIterator, |
10645 | }; |
10646 | |
10647 | static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GUrlFile, _p_GUrlFileTo_p_GBase, 0, 0}, {&_swigt__p_GNodeArray, _p_GNodeArrayTo_p_GBase, 0, 0}, {&_swigt__p_GUrlString, _p_GUrlStringTo_p_GBase, 0, 0}, {&_swigt__p_GRan, _p_GRanTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GContainer, _p_GContainerTo_p_GBase, 0, 0}, {&_swigt__p_GCsv, _p_GCsvTo_p_GBase, 0, 0}, {&_swigt__p_GUrl, _p_GUrlTo_p_GBase, 0, 0},{0, 0, 0, 0}}; |
10648 | static swig_cast_info _swigc__p_GContainer[] = { {&_swigt__p_GNodeArray, _p_GNodeArrayTo_p_GContainer, 0, 0}, {&_swigt__p_GContainer, 0, 0, 0},{0, 0, 0, 0}}; |
10649 | static swig_cast_info _swigc__p_GCsv[] = { {&_swigt__p_GCsv, 0, 0, 0},{0, 0, 0, 0}}; |
10650 | static swig_cast_info _swigc__p_GNodeArray[] = { {&_swigt__p_GNodeArray, 0, 0, 0},{0, 0, 0, 0}}; |
10651 | static swig_cast_info _swigc__p_GRan[] = { {&_swigt__p_GRan, 0, 0, 0},{0, 0, 0, 0}}; |
10652 | static swig_cast_info _swigc__p_GUrl[] = { {&_swigt__p_GUrlFile, _p_GUrlFileTo_p_GUrl, 0, 0}, {&_swigt__p_GUrlString, _p_GUrlStringTo_p_GUrl, 0, 0}, {&_swigt__p_GUrl, 0, 0, 0},{0, 0, 0, 0}}; |
10653 | static swig_cast_info _swigc__p_GUrlFile[] = { {&_swigt__p_GUrlFile, 0, 0, 0},{0, 0, 0, 0}}; |
10654 | static swig_cast_info _swigc__p_GUrlString[] = { {&_swigt__p_GUrlString, 0, 0, 0},{0, 0, 0, 0}}; |
10655 | static swig_cast_info _swigc__p_GVector[] = { {&_swigt__p_GVector, 0, 0, 0},{0, 0, 0, 0}}; |
10656 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
10657 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; |
10658 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; |
10659 | static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; |
10660 | static swig_cast_info _swigc__p_std__vectorT_double_std__allocatorT_double_t_t[] = { {&_swigt__p_std__vectorT_double_std__allocatorT_double_t_t, 0, 0, 0},{0, 0, 0, 0}}; |
10661 | static swig_cast_info _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t[] = { {&_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0, 0, 0},{0, 0, 0, 0}}; |
10662 | static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; |
10663 | |
10664 | static swig_cast_info *swig_cast_initial[] = { |
10665 | _swigc__p_GBase, |
10666 | _swigc__p_GContainer, |
10667 | _swigc__p_GCsv, |
10668 | _swigc__p_GNodeArray, |
10669 | _swigc__p_GRan, |
10670 | _swigc__p_GUrl, |
10671 | _swigc__p_GUrlFile, |
10672 | _swigc__p_GUrlString, |
10673 | _swigc__p_GVector, |
10674 | _swigc__p_char, |
10675 | _swigc__p_double, |
10676 | _swigc__p_int, |
10677 | _swigc__p_std__invalid_argument, |
10678 | _swigc__p_std__vectorT_double_std__allocatorT_double_t_t, |
10679 | _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, |
10680 | _swigc__p_swig__SwigPyIterator, |
10681 | }; |
10682 | |
10683 | |
10684 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
10685 | |
10686 | static swig_const_info swig_const_table[] = { |
10687 | {0, 0, 0, 0.0, 0, 0}}; |
10688 | |
10689 | #ifdef __cplusplus199711L |
10690 | } |
10691 | #endif |
10692 | /* ----------------------------------------------------------------------------- |
10693 | * Type initialization: |
10694 | * This problem is tough by the requirement that no dynamic |
10695 | * memory is used. Also, since swig_type_info structures store pointers to |
10696 | * swig_cast_info structures and swig_cast_info structures store pointers back |
10697 | * to swig_type_info structures, we need some lookup code at initialization. |
10698 | * The idea is that swig generates all the structures that are needed. |
10699 | * The runtime then collects these partially filled structures. |
10700 | * The SWIG_InitializeModule function takes these initial arrays out of |
10701 | * swig_module, and does all the lookup, filling in the swig_module.types |
10702 | * array with the correct data and linking the correct swig_cast_info |
10703 | * structures together. |
10704 | * |
10705 | * The generated swig_type_info structures are assigned staticly to an initial |
10706 | * array. We just loop through that array, and handle each type individually. |
10707 | * First we lookup if this type has been already loaded, and if so, use the |
10708 | * loaded structure instead of the generated one. Then we have to fill in the |
10709 | * cast linked list. The cast data is initially stored in something like a |
10710 | * two-dimensional array. Each row corresponds to a type (there are the same |
10711 | * number of rows as there are in the swig_type_initial array). Each entry in |
10712 | * a column is one of the swig_cast_info structures for that type. |
10713 | * The cast_initial array is actually an array of arrays, because each row has |
10714 | * a variable number of columns. So to actually build the cast linked list, |
10715 | * we find the array of casts associated with the type, and loop through it |
10716 | * adding the casts to the list. The one last trick we need to do is making |
10717 | * sure the type pointer in the swig_cast_info struct is correct. |
10718 | * |
10719 | * First off, we lookup the cast->type name to see if it is already loaded. |
10720 | * There are three cases to handle: |
10721 | * 1) If the cast->type has already been loaded AND the type we are adding |
10722 | * casting info to has not been loaded (it is in this module), THEN we |
10723 | * replace the cast->type pointer with the type pointer that has already |
10724 | * been loaded. |
10725 | * 2) If BOTH types (the one we are adding casting info to, and the |
10726 | * cast->type) are loaded, THEN the cast info has already been loaded by |
10727 | * the previous module so we just ignore it. |
10728 | * 3) Finally, if cast->type has not already been loaded, then we add that |
10729 | * swig_cast_info to the linked list (because the cast->type) pointer will |
10730 | * be correct. |
10731 | * ----------------------------------------------------------------------------- */ |
10732 | |
10733 | #ifdef __cplusplus199711L |
10734 | extern "C" { |
10735 | #if 0 |
10736 | } /* c-mode */ |
10737 | #endif |
10738 | #endif |
10739 | |
10740 | #if 0 |
10741 | #define SWIGRUNTIME_DEBUG |
10742 | #endif |
10743 | |
10744 | |
10745 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
10746 | SWIG_InitializeModule(void *clientdata) { |
10747 | size_t i; |
10748 | swig_module_info *module_head, *iter; |
10749 | int found, init; |
10750 | |
10751 | /* check to see if the circular list has been setup, if not, set it up */ |
10752 | if (swig_module.next==0) { |
10753 | /* Initialize the swig_module */ |
10754 | swig_module.type_initial = swig_type_initial; |
10755 | swig_module.cast_initial = swig_cast_initial; |
10756 | swig_module.next = &swig_module; |
10757 | init = 1; |
10758 | } else { |
10759 | init = 0; |
10760 | } |
10761 | |
10762 | /* Try and load any already created modules */ |
10763 | module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata); |
10764 | if (!module_head) { |
10765 | /* This is the first module loaded for this interpreter */ |
10766 | /* so set the swig module into the interpreter */ |
10767 | SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module); |
10768 | module_head = &swig_module; |
Value stored to 'module_head' is never read | |
10769 | } else { |
10770 | /* the interpreter has loaded a SWIG module, but has it loaded this one? */ |
10771 | found=0; |
10772 | iter=module_head; |
10773 | do { |
10774 | if (iter==&swig_module) { |
10775 | found=1; |
10776 | break; |
10777 | } |
10778 | iter=iter->next; |
10779 | } while (iter!= module_head); |
10780 | |
10781 | /* if the is found in the list, then all is done and we may leave */ |
10782 | if (found) return; |
10783 | /* otherwise we must add out module into the list */ |
10784 | swig_module.next = module_head->next; |
10785 | module_head->next = &swig_module; |
10786 | } |
10787 | |
10788 | /* When multiple interpreters are used, a module could have already been initialized in |
10789 | a different interpreter, but not yet have a pointer in this interpreter. |
10790 | In this case, we do not want to continue adding types... everything should be |
10791 | set up already */ |
10792 | if (init == 0) return; |
10793 | |
10794 | /* Now work on filling in swig_module.types */ |
10795 | #ifdef SWIGRUNTIME_DEBUG |
10796 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
10797 | #endif |
10798 | for (i = 0; i < swig_module.size; ++i) { |
10799 | swig_type_info *type = 0; |
10800 | swig_type_info *ret; |
10801 | swig_cast_info *cast; |
10802 | |
10803 | #ifdef SWIGRUNTIME_DEBUG |
10804 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
10805 | #endif |
10806 | |
10807 | /* if there is another module already loaded */ |
10808 | if (swig_module.next != &swig_module) { |
10809 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
10810 | } |
10811 | if (type) { |
10812 | /* Overwrite clientdata field */ |
10813 | #ifdef SWIGRUNTIME_DEBUG |
10814 | printf("SWIG_InitializeModule: found type %s\n", type->name); |
10815 | #endif |
10816 | if (swig_module.type_initial[i]->clientdata) { |
10817 | type->clientdata = swig_module.type_initial[i]->clientdata; |
10818 | #ifdef SWIGRUNTIME_DEBUG |
10819 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
10820 | #endif |
10821 | } |
10822 | } else { |
10823 | type = swig_module.type_initial[i]; |
10824 | } |
10825 | |
10826 | /* Insert casting types */ |
10827 | cast = swig_module.cast_initial[i]; |
10828 | while (cast->type) { |
10829 | /* Don't need to add information already in the list */ |
10830 | ret = 0; |
10831 | #ifdef SWIGRUNTIME_DEBUG |
10832 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
10833 | #endif |
10834 | if (swig_module.next != &swig_module) { |
10835 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
10836 | #ifdef SWIGRUNTIME_DEBUG |
10837 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
10838 | #endif |
10839 | } |
10840 | if (ret) { |
10841 | if (type == swig_module.type_initial[i]) { |
10842 | #ifdef SWIGRUNTIME_DEBUG |
10843 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
10844 | #endif |
10845 | cast->type = ret; |
10846 | ret = 0; |
10847 | } else { |
10848 | /* Check for casting already in the list */ |
10849 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
10850 | #ifdef SWIGRUNTIME_DEBUG |
10851 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
10852 | #endif |
10853 | if (!ocast) ret = 0; |
10854 | } |
10855 | } |
10856 | |
10857 | if (!ret) { |
10858 | #ifdef SWIGRUNTIME_DEBUG |
10859 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
10860 | #endif |
10861 | if (type->cast) { |
10862 | type->cast->prev = cast; |
10863 | cast->next = type->cast; |
10864 | } |
10865 | type->cast = cast; |
10866 | } |
10867 | cast++; |
10868 | } |
10869 | /* Set entry in modules->types array equal to the type */ |
10870 | swig_module.types[i] = type; |
10871 | } |
10872 | swig_module.types[i] = 0; |
10873 | |
10874 | #ifdef SWIGRUNTIME_DEBUG |
10875 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
10876 | for (i = 0; i < swig_module.size; ++i) { |
10877 | int j = 0; |
10878 | swig_cast_info *cast = swig_module.cast_initial[i]; |
10879 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
10880 | while (cast->type) { |
10881 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
10882 | cast++; |
10883 | ++j; |
10884 | } |
10885 | printf("---- Total casts: %d\n",j); |
10886 | } |
10887 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
10888 | #endif |
10889 | } |
10890 | |
10891 | /* This function will propagate the clientdata field of type to |
10892 | * any new swig_type_info structures that have been added into the list |
10893 | * of equivalent types. It is like calling |
10894 | * SWIG_TypeClientData(type, clientdata) a second time. |
10895 | */ |
10896 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
10897 | SWIG_PropagateClientData(void) { |
10898 | size_t i; |
10899 | swig_cast_info *equiv; |
10900 | static int init_run = 0; |
10901 | |
10902 | if (init_run) return; |
10903 | init_run = 1; |
10904 | |
10905 | for (i = 0; i < swig_module.size; i++) { |
10906 | if (swig_module.types[i]->clientdata) { |
10907 | equiv = swig_module.types[i]->cast; |
10908 | while (equiv) { |
10909 | if (!equiv->converter) { |
10910 | if (equiv->type && !equiv->type->clientdata) |
10911 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
10912 | } |
10913 | equiv = equiv->next; |
10914 | } |
10915 | } |
10916 | } |
10917 | } |
10918 | |
10919 | #ifdef __cplusplus199711L |
10920 | #if 0 |
10921 | { |
10922 | /* c-mode */ |
10923 | #endif |
10924 | } |
10925 | #endif |
10926 | |
10927 | |
10928 | |
10929 | #ifdef __cplusplus199711L |
10930 | extern "C" { |
10931 | #endif |
10932 | |
10933 | /* Python-specific SWIG API */ |
10934 | #define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink() |
10935 | #define SWIG_addvarlink(p, name, get_attr, set_attr)SWIG_Python_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) |
10936 | #define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) |
10937 | |
10938 | /* ----------------------------------------------------------------------------- |
10939 | * global variable support code. |
10940 | * ----------------------------------------------------------------------------- */ |
10941 | |
10942 | typedef struct swig_globalvar { |
10943 | char *name; /* Name of global variable */ |
10944 | PyObject *(*get_attr)(void); /* Return the current value */ |
10945 | int (*set_attr)(PyObject *); /* Set the value */ |
10946 | struct swig_globalvar *next; |
10947 | } swig_globalvar; |
10948 | |
10949 | typedef struct swig_varlinkobject { |
10950 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
10951 | swig_globalvar *vars; |
10952 | } swig_varlinkobject; |
10953 | |
10954 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
10955 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { |
10956 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10957 | return PyUnicode_InternFromString("<Swig global variables>"); |
10958 | #else |
10959 | return PyString_FromString("<Swig global variables>"); |
10960 | #endif |
10961 | } |
10962 | |
10963 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
10964 | swig_varlink_str(swig_varlinkobject *v) { |
10965 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10966 | PyObject *str = PyUnicode_InternFromString("("); |
10967 | PyObject *tail; |
10968 | PyObject *joined; |
10969 | swig_globalvar *var; |
10970 | for (var = v->vars; var; var=var->next) { |
10971 | tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name); |
10972 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
10973 | Py_DecRef(str); |
10974 | Py_DecRef(tail); |
10975 | str = joined; |
10976 | if (var->next) { |
10977 | tail = PyUnicode_InternFromString(", "); |
10978 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
10979 | Py_DecRef(str); |
10980 | Py_DecRef(tail); |
10981 | str = joined; |
10982 | } |
10983 | } |
10984 | tail = PyUnicode_InternFromString(")"); |
10985 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
10986 | Py_DecRef(str); |
10987 | Py_DecRef(tail); |
10988 | str = joined; |
10989 | #else |
10990 | PyObject *str = PyString_FromString("("); |
10991 | swig_globalvar *var; |
10992 | for (var = v->vars; var; var=var->next) { |
10993 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); |
10994 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); |
10995 | } |
10996 | PyString_ConcatAndDel(&str,PyString_FromString(")")); |
10997 | #endif |
10998 | return str; |
10999 | } |
11000 | |
11001 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
11002 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { |
11003 | char *tmp; |
11004 | PyObject *str = swig_varlink_str(v); |
11005 | fprintf(fp,"Swig global variables "); |
11006 | fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); |
11007 | SWIG_Python_str_DelForPy3(tmp); |
11008 | Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(str)))); } while (0); |
11009 | return 0; |
11010 | } |
11011 | |
11012 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
11013 | swig_varlink_dealloc(swig_varlinkobject *v) { |
11014 | swig_globalvar *var = v->vars; |
11015 | while (var) { |
11016 | swig_globalvar *n = var->next; |
11017 | free(var->name); |
11018 | free(var); |
11019 | var = n; |
11020 | } |
11021 | } |
11022 | |
11023 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
11024 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
11025 | PyObject *res = NULL__null; |
11026 | swig_globalvar *var = v->vars; |
11027 | while (var) { |
11028 | if (strcmp(var->name,n) == 0) { |
11029 | res = (*var->get_attr)(); |
11030 | break; |
11031 | } |
11032 | var = var->next; |
11033 | } |
11034 | if (res == NULL__null && !PyErr_Occurred()) { |
11035 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
11036 | } |
11037 | return res; |
11038 | } |
11039 | |
11040 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
11041 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
11042 | int res = 1; |
11043 | swig_globalvar *var = v->vars; |
11044 | while (var) { |
11045 | if (strcmp(var->name,n) == 0) { |
11046 | res = (*var->set_attr)(p); |
11047 | break; |
11048 | } |
11049 | var = var->next; |
11050 | } |
11051 | if (res == 1 && !PyErr_Occurred()) { |
11052 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
11053 | } |
11054 | return res; |
11055 | } |
11056 | |
11057 | SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject* |
11058 | swig_varlink_type(void) { |
11059 | static char varlink__doc__[] = "Swig var link object"; |
11060 | static PyTypeObject varlink_type; |
11061 | static int type_init = 0; |
11062 | if (!type_init) { |
11063 | const PyTypeObject tmp = { |
11064 | /* PyObject header changed in Python 3 */ |
11065 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11066 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
11067 | #else |
11068 | PyObject_HEAD_INIT(NULL)1, __null, |
11069 | 0, /* ob_size */ |
11070 | #endif |
11071 | (char *)"swigvarlink", /* tp_name */ |
11072 | sizeof(swig_varlinkobject), /* tp_basicsize */ |
11073 | 0, /* tp_itemsize */ |
11074 | (destructor) swig_varlink_dealloc, /* tp_dealloc */ |
11075 | (printfunc) swig_varlink_print, /* tp_print */ |
11076 | (getattrfunc) swig_varlink_getattr, /* tp_getattr */ |
11077 | (setattrfunc) swig_varlink_setattr, /* tp_setattr */ |
11078 | 0, /* tp_compare */ |
11079 | (reprfunc) swig_varlink_repr, /* tp_repr */ |
11080 | 0, /* tp_as_number */ |
11081 | 0, /* tp_as_sequence */ |
11082 | 0, /* tp_as_mapping */ |
11083 | 0, /* tp_hash */ |
11084 | 0, /* tp_call */ |
11085 | (reprfunc) swig_varlink_str, /* tp_str */ |
11086 | 0, /* tp_getattro */ |
11087 | 0, /* tp_setattro */ |
11088 | 0, /* tp_as_buffer */ |
11089 | 0, /* tp_flags */ |
11090 | varlink__doc__, /* tp_doc */ |
11091 | 0, /* tp_traverse */ |
11092 | 0, /* tp_clear */ |
11093 | 0, /* tp_richcompare */ |
11094 | 0, /* tp_weaklistoffset */ |
11095 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
11096 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
11097 | #endif |
11098 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
11099 | 0, /* tp_del */ |
11100 | #endif |
11101 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
11102 | 0, /* tp_version */ |
11103 | #endif |
11104 | #ifdef COUNT_ALLOCS |
11105 | 0,0,0,0 /* tp_alloc -> tp_next */ |
11106 | #endif |
11107 | }; |
11108 | varlink_type = tmp; |
11109 | type_init = 1; |
11110 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
11111 | varlink_type.ob_type = &PyType_Type; |
11112 | #else |
11113 | if (PyType_Ready(&varlink_type) < 0) |
11114 | return NULL__null; |
11115 | #endif |
11116 | } |
11117 | return &varlink_type; |
11118 | } |
11119 | |
11120 | /* Create a variable linking object for use later */ |
11121 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
11122 | SWIG_Python_newvarlink(void) { |
11123 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type())( (swig_varlinkobject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (swig_varlink_type())->tp_basicsize ) ), (swig_varlink_type ())) ); |
11124 | if (result) { |
11125 | result->vars = 0; |
11126 | } |
11127 | return ((PyObject*) result); |
11128 | } |
11129 | |
11130 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
11131 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
11132 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
11133 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); |
11134 | if (gv) { |
11135 | size_t size = strlen(name)+1; |
11136 | gv->name = (char *)malloc(size); |
11137 | if (gv->name) { |
11138 | strncpy(gv->name,name,size); |
11139 | gv->get_attr = get_attr; |
11140 | gv->set_attr = set_attr; |
11141 | gv->next = v->vars; |
11142 | } |
11143 | } |
11144 | v->vars = gv; |
11145 | } |
11146 | |
11147 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
11148 | SWIG_globals(void) { |
11149 | static PyObject *_SWIG_globals = 0; |
11150 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink(); |
11151 | return _SWIG_globals; |
11152 | } |
11153 | |
11154 | /* ----------------------------------------------------------------------------- |
11155 | * constants/methods manipulation |
11156 | * ----------------------------------------------------------------------------- */ |
11157 | |
11158 | /* Install Constants */ |
11159 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
11160 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
11161 | PyObject *obj = 0; |
11162 | size_t i; |
11163 | for (i = 0; constants[i].type; ++i) { |
11164 | switch(constants[i].type) { |
11165 | case SWIG_PY_POINTER4: |
11166 | obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants [i]).ptype, 0); |
11167 | break; |
11168 | case SWIG_PY_BINARY5: |
11169 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue , *(constants[i].ptype)); |
11170 | break; |
11171 | default: |
11172 | obj = 0; |
11173 | break; |
11174 | } |
11175 | if (obj) { |
11176 | PyDict_SetItemString(d, constants[i].name, obj); |
11177 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
11178 | } |
11179 | } |
11180 | } |
11181 | |
11182 | /* -----------------------------------------------------------------------------*/ |
11183 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
11184 | /* -----------------------------------------------------------------------------*/ |
11185 | |
11186 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
11187 | SWIG_Python_FixMethods(PyMethodDef *methods, |
11188 | swig_const_info *const_table, |
11189 | swig_type_info **types, |
11190 | swig_type_info **types_initial) { |
11191 | size_t i; |
11192 | for (i = 0; methods[i].ml_name; ++i) { |
11193 | const char *c = methods[i].ml_doc; |
11194 | if (c && (c = strstr(c, "swig_ptr: "))) { |
11195 | int j; |
11196 | swig_const_info *ci = 0; |
11197 | const char *name = c + 10; |
11198 | for (j = 0; const_table[j].type; ++j) { |
11199 | if (strncmp(const_table[j].name, name, |
11200 | strlen(const_table[j].name)) == 0) { |
11201 | ci = &(const_table[j]); |
11202 | break; |
11203 | } |
11204 | } |
11205 | if (ci) { |
11206 | void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0; |
11207 | if (ptr) { |
11208 | size_t shift = (ci->ptype) - types; |
11209 | swig_type_info *ty = types_initial[shift]; |
11210 | size_t ldoc = (c - methods[i].ml_doc); |
11211 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; |
11212 | char *ndoc = (char*)malloc(ldoc + lptr + 10); |
11213 | if (ndoc) { |
11214 | char *buff = ndoc; |
11215 | strncpy(buff, methods[i].ml_doc, ldoc); |
11216 | buff += ldoc; |
11217 | strncpy(buff, "swig_ptr: ", 10); |
11218 | buff += 10; |
11219 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); |
11220 | methods[i].ml_doc = ndoc; |
11221 | } |
11222 | } |
11223 | } |
11224 | } |
11225 | } |
11226 | } |
11227 | |
11228 | #ifdef __cplusplus199711L |
11229 | } |
11230 | #endif |
11231 | |
11232 | /* -----------------------------------------------------------------------------* |
11233 | * Partial Init method |
11234 | * -----------------------------------------------------------------------------*/ |
11235 | |
11236 | #ifdef __cplusplus199711L |
11237 | extern "C" |
11238 | #endif |
11239 | |
11240 | SWIGEXPORT__attribute__ ((visibility("default"))) |
11241 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11242 | PyObject* |
11243 | #else |
11244 | void |
11245 | #endif |
11246 | SWIG_initinit_support(void) { |
11247 | PyObject *m, *d, *md; |
11248 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11249 | static struct PyModuleDef SWIG_module = { |
11250 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
11251 | PyModuleDef_HEAD_INIT, |
11252 | # else |
11253 | { |
11254 | PyObject_HEAD_INIT(NULL)1, __null, |
11255 | NULL__null, /* m_init */ |
11256 | 0, /* m_index */ |
11257 | NULL__null, /* m_copy */ |
11258 | }, |
11259 | # endif |
11260 | (char *) SWIG_name"_support", |
11261 | NULL__null, |
11262 | -1, |
11263 | SwigMethods, |
11264 | NULL__null, |
11265 | NULL__null, |
11266 | NULL__null, |
11267 | NULL__null |
11268 | }; |
11269 | #endif |
11270 | |
11271 | #if defined(SWIGPYTHON_BUILTIN) |
11272 | static SwigPyClientData SwigPyObject_clientdata = { |
11273 | 0, 0, 0, 0, 0, 0, 0 |
11274 | }; |
11275 | static PyGetSetDef this_getset_def = { |
11276 | (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null |
11277 | }; |
11278 | static SwigPyGetSet thisown_getset_closure = { |
11279 | (PyCFunction) SwigPyObject_own, |
11280 | (PyCFunction) SwigPyObject_own |
11281 | }; |
11282 | static PyGetSetDef thisown_getset_def = { |
11283 | (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure |
11284 | }; |
11285 | PyObject *metatype_args; |
11286 | PyTypeObject *builtin_pytype; |
11287 | int builtin_base_count; |
11288 | swig_type_info *builtin_basetype; |
11289 | PyObject *tuple; |
11290 | PyGetSetDescrObject *static_getset; |
11291 | PyTypeObject *metatype; |
11292 | SwigPyClientData *cd; |
11293 | PyObject *public_interface, *public_symbol; |
11294 | PyObject *this_descr; |
11295 | PyObject *thisown_descr; |
11296 | int i; |
11297 | |
11298 | (void)builtin_pytype; |
11299 | (void)builtin_base_count; |
11300 | (void)builtin_basetype; |
11301 | (void)tuple; |
11302 | (void)static_getset; |
11303 | |
11304 | /* metatype is used to implement static member variables. */ |
11305 | metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); |
11306 | assert(metatype_args)((void)0); |
11307 | metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null); |
11308 | assert(metatype)((void)0); |
11309 | Py_DECREF(metatype_args)do { if ( --((PyObject*)(metatype_args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(metatype_args)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(metatype_args)))) ; } while (0); |
11310 | metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; |
11311 | assert(PyType_Ready(metatype) >= 0)((void)0); |
11312 | #endif |
11313 | |
11314 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
11315 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
11316 | |
11317 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11318 | m = PyModule_Create(&SWIG_module); |
11319 | #else |
11320 | m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_support", SwigMethods, (char *)__null , (PyObject *)__null, 1013); |
11321 | #endif |
11322 | md = d = PyModule_GetDict(m); |
11323 | (void)md; |
11324 | |
11325 | SWIG_InitializeModule(0); |
11326 | |
11327 | #ifdef SWIGPYTHON_BUILTIN |
11328 | SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module , "_p_SwigPyObject"); |
11329 | assert(SwigPyObject_stype)((void)0); |
11330 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
11331 | if (!cd) { |
11332 | SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; |
11333 | SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); |
11334 | } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { |
11335 | PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); |
11336 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11337 | return NULL__null; |
11338 | # else |
11339 | return; |
11340 | # endif |
11341 | } |
11342 | |
11343 | /* All objects have a 'this' attribute */ |
11344 | this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); |
11345 | (void)this_descr; |
11346 | |
11347 | /* All objects have a 'thisown' attribute */ |
11348 | thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); |
11349 | (void)thisown_descr; |
11350 | |
11351 | public_interface = PyList_New(0); |
11352 | public_symbol = 0; |
11353 | (void)public_symbol; |
11354 | |
11355 | PyDict_SetItemString(md, "__all__", public_interface); |
11356 | Py_DECREF(public_interface)do { if ( --((PyObject*)(public_interface))->ob_refcnt != 0 ) ; else ( (*(((PyObject*)((PyObject *)(public_interface)))-> ob_type)->tp_dealloc)((PyObject *)((PyObject *)(public_interface )))); } while (0); |
11357 | for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i) |
11358 | SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); |
11359 | for (i = 0; swig_const_table[i].name != 0; ++i) |
11360 | SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); |
11361 | #endif |
11362 | |
11363 | SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table); |
11364 | |
11365 | PyDict_SetItemString(md,(char*)"cvar", SWIG_globals()); |
11366 | SWIG_addvarlink(SWIG_globals(),(char*)"MeV2erg",Swig_var_MeV2erg_get, Swig_var_MeV2erg_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"MeV2erg", Swig_var_MeV2erg_get , Swig_var_MeV2erg_set); |
11367 | SWIG_addvarlink(SWIG_globals(),(char*)"erg2MeV",Swig_var_erg2MeV_get, Swig_var_erg2MeV_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"erg2MeV", Swig_var_erg2MeV_get , Swig_var_erg2MeV_set); |
11368 | SWIG_addvarlink(SWIG_globals(),(char*)"pc2cm",Swig_var_pc2cm_get, Swig_var_pc2cm_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"pc2cm", Swig_var_pc2cm_get , Swig_var_pc2cm_set); |
11369 | SWIG_addvarlink(SWIG_globals(),(char*)"sec_in_day",Swig_var_sec_in_day_get, Swig_var_sec_in_day_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"sec_in_day", Swig_var_sec_in_day_get , Swig_var_sec_in_day_set); |
11370 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11371 | return m; |
11372 | #else |
11373 | return; |
11374 | #endif |
11375 | } |
11376 |